Mercurial > pidgin
diff src/notify.h @ 6465:fb64cc87bc96
[gaim-migrate @ 6974]
open_url() is gone forever! WOOHOO! Now we have gaim_notify_uri(). Oh, and
whitespace changes in some files, because they just really bugged me.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Thu, 14 Aug 2003 03:55:13 +0000 |
parents | e006685f75aa |
children | aabb0b331ac8 |
line wrap: on
line diff
--- a/src/notify.h Thu Aug 14 03:28:17 2003 +0000 +++ b/src/notify.h Thu Aug 14 03:55:13 2003 +0000 @@ -5,7 +5,7 @@ * gaim * * Copyright (C) 2003 Christian Hammond <chipx86@gnupdate.org> - * + * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or @@ -35,7 +35,8 @@ GAIM_NOTIFY_MESSAGE = 0, /**< Message notification. */ GAIM_NOTIFY_EMAIL, /**< Single e-mail notification. */ GAIM_NOTIFY_EMAILS, /**< Multiple e-mail notification. */ - GAIM_NOTIFY_FORMATTED /**< Formatted text. */ + GAIM_NOTIFY_FORMATTED, /**< Formatted text. */ + GAIM_NOTIFY_URI /**< URI notification or display. */ } GaimNotifyType; @@ -68,6 +69,7 @@ void *(*notify_formatted)(const char *title, const char *primary, const char *secondary, const char *text, GCallback cb, void *user_data); + void *(*notify_uri)(const char *uri); void (*close_notify)(GaimNotifyType type, void *ui_handle); @@ -164,6 +166,18 @@ const char *text, GCallback cb, void *user_data); /** + * Opens a URI or somehow presents it to the user. + * + * @param handle The plugin or connection handle. + * @param url The URI to display or go to. + * + * @return A UI-specific handle, if any. This may only be presented if + * the UI code displays a dialog instead of a webpage, or something + * similar. + */ +void *gaim_notify_uri(void *handle, const char *uri); + +/** * Closes a notification. * * This should be used only by the UI operation functions and part of the