Mercurial > pidgin.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
6464:059649ed25ed | 6465:fb64cc87bc96 |
---|---|
3 * @ingroup core | 3 * @ingroup core |
4 * | 4 * |
5 * gaim | 5 * gaim |
6 * | 6 * |
7 * Copyright (C) 2003 Christian Hammond <chipx86@gnupdate.org> | 7 * Copyright (C) 2003 Christian Hammond <chipx86@gnupdate.org> |
8 * | 8 * |
9 * This program is free software; you can redistribute it and/or modify | 9 * This program is free software; you can redistribute it and/or modify |
10 * it under the terms of the GNU General Public License as published by | 10 * it under the terms of the GNU General Public License as published by |
11 * the Free Software Foundation; either version 2 of the License, or | 11 * the Free Software Foundation; either version 2 of the License, or |
12 * (at your option) any later version. | 12 * (at your option) any later version. |
13 * | 13 * |
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 GAIM_NOTIFY_FORMATTED, /**< Formatted text. */ |
39 GAIM_NOTIFY_URI /**< URI notification or display. */ | |
39 | 40 |
40 } GaimNotifyType; | 41 } GaimNotifyType; |
41 | 42 |
42 /** | 43 /** |
43 * Notification message types. | 44 * Notification message types. |
66 const char **tos, const char **urls, | 67 const char **tos, const char **urls, |
67 GCallback cb, void *user_data); | 68 GCallback cb, void *user_data); |
68 void *(*notify_formatted)(const char *title, const char *primary, | 69 void *(*notify_formatted)(const char *title, const char *primary, |
69 const char *secondary, const char *text, | 70 const char *secondary, const char *text, |
70 GCallback cb, void *user_data); | 71 GCallback cb, void *user_data); |
72 void *(*notify_uri)(const char *uri); | |
71 | 73 |
72 void (*close_notify)(GaimNotifyType type, void *ui_handle); | 74 void (*close_notify)(GaimNotifyType type, void *ui_handle); |
73 | 75 |
74 } GaimNotifyUiOps; | 76 } GaimNotifyUiOps; |
75 | 77 |
162 void *gaim_notify_formatted(void *handle, const char *title, | 164 void *gaim_notify_formatted(void *handle, const char *title, |
163 const char *primary, const char *secondary, | 165 const char *primary, const char *secondary, |
164 const char *text, GCallback cb, void *user_data); | 166 const char *text, GCallback cb, void *user_data); |
165 | 167 |
166 /** | 168 /** |
169 * Opens a URI or somehow presents it to the user. | |
170 * | |
171 * @param handle The plugin or connection handle. | |
172 * @param url The URI to display or go to. | |
173 * | |
174 * @return A UI-specific handle, if any. This may only be presented if | |
175 * the UI code displays a dialog instead of a webpage, or something | |
176 * similar. | |
177 */ | |
178 void *gaim_notify_uri(void *handle, const char *uri); | |
179 | |
180 /** | |
167 * Closes a notification. | 181 * Closes a notification. |
168 * | 182 * |
169 * This should be used only by the UI operation functions and part of the | 183 * This should be used only by the UI operation functions and part of the |
170 * core. | 184 * core. |
171 * | 185 * |