Mercurial > pidgin
diff src/notify.h @ 6381:e006685f75aa
[gaim-migrate @ 6886]
Added gaim_notify_formatted().
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Tue, 05 Aug 2003 20:19:57 +0000 |
parents | ee0044f3e377 |
children | fb64cc87bc96 |
line wrap: on
line diff
--- a/src/notify.h Tue Aug 05 19:20:26 2003 +0000 +++ b/src/notify.h Tue Aug 05 20:19:57 2003 +0000 @@ -34,7 +34,8 @@ { GAIM_NOTIFY_MESSAGE = 0, /**< Message notification. */ GAIM_NOTIFY_EMAIL, /**< Single e-mail notification. */ - GAIM_NOTIFY_EMAILS /**< Multiple e-mail notification. */ + GAIM_NOTIFY_EMAILS, /**< Multiple e-mail notification. */ + GAIM_NOTIFY_FORMATTED /**< Formatted text. */ } GaimNotifyType; @@ -64,6 +65,9 @@ const char **subjects, const char **froms, const char **tos, const char **urls, GCallback cb, void *user_data); + void *(*notify_formatted)(const char *title, const char *primary, + const char *secondary, const char *text, + GCallback cb, void *user_data); void (*close_notify)(GaimNotifyType type, void *ui_handle); @@ -140,6 +144,26 @@ GCallback cb, void *user_data); /** + * Displays a notification with formatted text. + * + * The text is essentially a stripped-down format of HTML, the same that + * IMs may send. + * + * @param handle The plugin or connection handle. + * @param title The title of the message. + * @param primary The main point of the message. + * @param secondary The secondary information. + * @param text The formatted text. + * @param cb The callback to call when the user closes + * the notification. + * + * @return A UI-specific handle. + */ +void *gaim_notify_formatted(void *handle, const char *title, + const char *primary, const char *secondary, + const char *text, GCallback cb, void *user_data); + +/** * Closes a notification. * * This should be used only by the UI operation functions and part of the