Mercurial > pidgin
comparison 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 |
comparison
equal
deleted
inserted
replaced
6380:0f0b34c72e69 | 6381:e006685f75aa |
---|---|
32 */ | 32 */ |
33 typedef enum | 33 typedef enum |
34 { | 34 { |
35 GAIM_NOTIFY_MESSAGE = 0, /**< Message notification. */ | 35 GAIM_NOTIFY_MESSAGE = 0, /**< Message notification. */ |
36 GAIM_NOTIFY_EMAIL, /**< Single e-mail notification. */ | 36 GAIM_NOTIFY_EMAIL, /**< Single e-mail notification. */ |
37 GAIM_NOTIFY_EMAILS /**< Multiple e-mail notification. */ | 37 GAIM_NOTIFY_EMAILS, /**< Multiple e-mail notification. */ |
38 GAIM_NOTIFY_FORMATTED /**< Formatted text. */ | |
38 | 39 |
39 } GaimNotifyType; | 40 } GaimNotifyType; |
40 | 41 |
41 /** | 42 /** |
42 * Notification message types. | 43 * Notification message types. |
62 GCallback cb, void *user_data); | 63 GCallback cb, void *user_data); |
63 void *(*notify_emails)(size_t count, gboolean detailed, | 64 void *(*notify_emails)(size_t count, gboolean detailed, |
64 const char **subjects, const char **froms, | 65 const char **subjects, const char **froms, |
65 const char **tos, const char **urls, | 66 const char **tos, const char **urls, |
66 GCallback cb, void *user_data); | 67 GCallback cb, void *user_data); |
68 void *(*notify_formatted)(const char *title, const char *primary, | |
69 const char *secondary, const char *text, | |
70 GCallback cb, void *user_data); | |
67 | 71 |
68 void (*close_notify)(GaimNotifyType type, void *ui_handle); | 72 void (*close_notify)(GaimNotifyType type, void *ui_handle); |
69 | 73 |
70 } GaimNotifyUiOps; | 74 } GaimNotifyUiOps; |
71 | 75 |
138 const char **subjects, const char **froms, | 142 const char **subjects, const char **froms, |
139 const char **tos, const char **urls, | 143 const char **tos, const char **urls, |
140 GCallback cb, void *user_data); | 144 GCallback cb, void *user_data); |
141 | 145 |
142 /** | 146 /** |
147 * Displays a notification with formatted text. | |
148 * | |
149 * The text is essentially a stripped-down format of HTML, the same that | |
150 * IMs may send. | |
151 * | |
152 * @param handle The plugin or connection handle. | |
153 * @param title The title of the message. | |
154 * @param primary The main point of the message. | |
155 * @param secondary The secondary information. | |
156 * @param text The formatted text. | |
157 * @param cb The callback to call when the user closes | |
158 * the notification. | |
159 * | |
160 * @return A UI-specific handle. | |
161 */ | |
162 void *gaim_notify_formatted(void *handle, const char *title, | |
163 const char *primary, const char *secondary, | |
164 const char *text, GCallback cb, void *user_data); | |
165 | |
166 /** | |
143 * Closes a notification. | 167 * Closes a notification. |
144 * | 168 * |
145 * This should be used only by the UI operation functions and part of the | 169 * This should be used only by the UI operation functions and part of the |
146 * core. | 170 * core. |
147 * | 171 * |