Mon, 22 Aug 2011 06:32:44 +0000
Actually commit the purple_notify_user_info_prepend_pair_plaintext
function. I think I left it off my previous commit? Sorry.
And rename purple_notify_user_info_prepend_pair to
purple_notify_user_info_prepend_pair_html_html
| 5437 | 1 | /** |
| 2 | * @file notify.h Notification API | |
| 3 | * @ingroup core | |
|
20889
3d0ef192f98c
All the links to libpurple signal pages were in the comment containing the
Will Thompson <resiak@pidgin.im>
parents:
20355
diff
changeset
|
4 | * @see @ref notify-signals |
|
20147
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19868
diff
changeset
|
5 | */ |
|
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19868
diff
changeset
|
6 | |
|
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19868
diff
changeset
|
7 | /* purple |
| 5437 | 8 | * |
| 15884 | 9 | * Purple is the legal property of its developers, whose names are too numerous |
| 8046 | 10 | * to list here. Please refer to the COPYRIGHT file distributed with this |
| 11 | * source distribution. | |
|
6465
bd201d637ff4
[gaim-migrate @ 6974]
Christian Hammond <chipx86@chipx86.com>
parents:
6381
diff
changeset
|
12 | * |
| 5437 | 13 | * This program is free software; you can redistribute it and/or modify |
| 14 | * it under the terms of the GNU General Public License as published by | |
| 15 | * the Free Software Foundation; either version 2 of the License, or | |
| 16 | * (at your option) any later version. | |
| 17 | * | |
| 18 | * This program is distributed in the hope that it will be useful, | |
| 19 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 20 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 21 | * GNU General Public License for more details. | |
| 22 | * | |
| 23 | * You should have received a copy of the GNU General Public License | |
| 24 | * along with this program; if not, write to the Free Software | |
|
19859
71d37b57eff2
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
18412
diff
changeset
|
25 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 5437 | 26 | */ |
| 15884 | 27 | #ifndef _PURPLE_NOTIFY_H_ |
| 28 | #define _PURPLE_NOTIFY_H_ | |
| 5437 | 29 | |
| 30 | #include <stdlib.h> | |
| 31 | #include <glib-object.h> | |
| 32 | #include <glib.h> | |
| 33 | ||
| 15884 | 34 | typedef struct _PurpleNotifyUserInfoEntry PurpleNotifyUserInfoEntry; |
| 35 | typedef struct _PurpleNotifyUserInfo PurpleNotifyUserInfo; | |
|
15205
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
36 | |
| 9797 | 37 | #include "connection.h" |
| 38 | ||
| 5437 | 39 | /** |
|
12242
e7fc1748eb56
[gaim-migrate @ 14544]
Richard Laager <rlaager@pidgin.im>
parents:
12220
diff
changeset
|
40 | * Notification close callbacks. |
|
e7fc1748eb56
[gaim-migrate @ 14544]
Richard Laager <rlaager@pidgin.im>
parents:
12220
diff
changeset
|
41 | */ |
| 15884 | 42 | typedef void (*PurpleNotifyCloseCallback) (gpointer user_data); |
|
12242
e7fc1748eb56
[gaim-migrate @ 14544]
Richard Laager <rlaager@pidgin.im>
parents:
12220
diff
changeset
|
43 | |
|
12624
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
44 | |
|
12242
e7fc1748eb56
[gaim-migrate @ 14544]
Richard Laager <rlaager@pidgin.im>
parents:
12220
diff
changeset
|
45 | /** |
| 5437 | 46 | * Notification types. |
| 47 | */ | |
| 48 | typedef enum | |
| 49 | { | |
| 15884 | 50 | PURPLE_NOTIFY_MESSAGE = 0, /**< Message notification. */ |
|
23325
a374a26fe217
Use "email" and "Email" consistently. This is potentially controversial,
Richard Laager <rlaager@pidgin.im>
parents:
22762
diff
changeset
|
51 | PURPLE_NOTIFY_EMAIL, /**< Single email notification. */ |
|
a374a26fe217
Use "email" and "Email" consistently. This is potentially controversial,
Richard Laager <rlaager@pidgin.im>
parents:
22762
diff
changeset
|
52 | PURPLE_NOTIFY_EMAILS, /**< Multiple email notification. */ |
| 15884 | 53 | PURPLE_NOTIFY_FORMATTED, /**< Formatted text. */ |
| 54 | PURPLE_NOTIFY_SEARCHRESULTS, /**< Buddy search results. */ | |
| 55 | PURPLE_NOTIFY_USERINFO, /**< Formatted userinfo text. */ | |
| 56 | PURPLE_NOTIFY_URI /**< URI notification or display. */ | |
| 5437 | 57 | |
| 15884 | 58 | } PurpleNotifyType; |
| 5437 | 59 | |
|
12624
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
60 | |
| 5437 | 61 | /** |
| 62 | * Notification message types. | |
| 63 | */ | |
| 64 | typedef enum | |
| 65 | { | |
| 15884 | 66 | PURPLE_NOTIFY_MSG_ERROR = 0, /**< Error notification. */ |
| 67 | PURPLE_NOTIFY_MSG_WARNING, /**< Warning notification. */ | |
| 68 | PURPLE_NOTIFY_MSG_INFO /**< Information notification. */ | |
| 5437 | 69 | |
| 15884 | 70 | } PurpleNotifyMsgType; |
| 5437 | 71 | |
|
12624
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
72 | |
| 5437 | 73 | /** |
| 11359 | 74 | * The types of buttons |
| 75 | */ | |
| 76 | typedef enum | |
| 77 | { | |
| 15884 | 78 | PURPLE_NOTIFY_BUTTON_LABELED = 0, /**< special use, see _button_add_labeled */ |
| 79 | PURPLE_NOTIFY_BUTTON_CONTINUE = 1, | |
| 80 | PURPLE_NOTIFY_BUTTON_ADD, | |
| 81 | PURPLE_NOTIFY_BUTTON_INFO, | |
| 82 | PURPLE_NOTIFY_BUTTON_IM, | |
| 83 | PURPLE_NOTIFY_BUTTON_JOIN, | |
| 84 | PURPLE_NOTIFY_BUTTON_INVITE | |
| 85 | } PurpleNotifySearchButtonType; | |
| 11359 | 86 | |
| 87 | ||
| 88 | /** | |
| 89 | * Search results object. | |
| 90 | */ | |
| 91 | typedef struct | |
| 92 | { | |
| 93 | GList *columns; /**< List of the search column objects. */ | |
| 94 | GList *rows; /**< List of rows in the result. */ | |
| 95 | GList *buttons; /**< List of buttons to display. */ | |
| 96 | ||
| 15884 | 97 | } PurpleNotifySearchResults; |
| 11359 | 98 | |
|
15211
bb75b7bc10a8
[gaim-migrate @ 17935]
Evan Schoenberg <evands@pidgin.im>
parents:
15205
diff
changeset
|
99 | /** |
| 15884 | 100 | * Types of PurpleNotifyUserInfoEntry objects |
|
15211
bb75b7bc10a8
[gaim-migrate @ 17935]
Evan Schoenberg <evands@pidgin.im>
parents:
15205
diff
changeset
|
101 | */ |
|
bb75b7bc10a8
[gaim-migrate @ 17935]
Evan Schoenberg <evands@pidgin.im>
parents:
15205
diff
changeset
|
102 | typedef enum |
|
bb75b7bc10a8
[gaim-migrate @ 17935]
Evan Schoenberg <evands@pidgin.im>
parents:
15205
diff
changeset
|
103 | { |
| 15884 | 104 | PURPLE_NOTIFY_USER_INFO_ENTRY_PAIR = 0, |
| 105 | PURPLE_NOTIFY_USER_INFO_ENTRY_SECTION_BREAK, | |
| 106 | PURPLE_NOTIFY_USER_INFO_ENTRY_SECTION_HEADER | |
| 107 | } PurpleNotifyUserInfoEntryType; | |
|
12624
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
108 | |
| 11359 | 109 | /** |
| 110 | * Single column of a search result. | |
| 111 | */ | |
| 112 | typedef struct | |
| 113 | { | |
| 31696 | 114 | char *title; /**< Title of the column. */ |
|
31698
12d88a8ea37d
Document the default explicitly
Paul Aurich <darkrain42@pidgin.im>
parents:
31696
diff
changeset
|
115 | gboolean visible; /**< Should the column be visible to the user. Defaults to TRUE. */ |
| 11359 | 116 | |
| 15884 | 117 | } PurpleNotifySearchColumn; |
| 11359 | 118 | |
|
12624
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
119 | |
|
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
120 | /** |
|
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
121 | * Callback for a button in a search result. |
|
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
122 | * |
| 15884 | 123 | * @param c the PurpleConnection passed to purple_notify_searchresults |
| 13641 | 124 | * @param row the contents of the selected row |
| 125 | * @param user_data User defined data. | |
|
12624
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
126 | */ |
| 15884 | 127 | typedef void (*PurpleNotifySearchResultsCallback)(PurpleConnection *c, GList *row, |
| 13641 | 128 | gpointer user_data); |
| 11359 | 129 | |
| 130 | ||
| 131 | /** | |
| 132 | * Definition of a button. | |
| 133 | */ | |
| 134 | typedef struct | |
| 135 | { | |
| 15884 | 136 | PurpleNotifySearchButtonType type; |
| 137 | PurpleNotifySearchResultsCallback callback; /**< Function to be called when clicked. */ | |
| 138 | char *label; /**< only for PURPLE_NOTIFY_BUTTON_LABELED */ | |
| 139 | } PurpleNotifySearchButton; | |
| 11359 | 140 | |
| 141 | ||
| 142 | /** | |
| 5437 | 143 | * Notification UI operations. |
| 144 | */ | |
| 145 | typedef struct | |
| 146 | { | |
| 15884 | 147 | void *(*notify_message)(PurpleNotifyMsgType type, const char *title, |
|
12624
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
148 | const char *primary, const char *secondary); |
|
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
149 | |
| 15884 | 150 | void *(*notify_email)(PurpleConnection *gc, |
|
12647
b00d9913117e
[gaim-migrate @ 14985]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
12625
diff
changeset
|
151 | const char *subject, const char *from, |
|
12624
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
152 | const char *to, const char *url); |
|
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
153 | |
| 15884 | 154 | void *(*notify_emails)(PurpleConnection *gc, |
|
12647
b00d9913117e
[gaim-migrate @ 14985]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
12625
diff
changeset
|
155 | size_t count, gboolean detailed, |
|
12624
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
156 | const char **subjects, const char **froms, |
|
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
157 | const char **tos, const char **urls); |
|
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
158 | |
|
6381
53203c44c731
[gaim-migrate @ 6886]
Christian Hammond <chipx86@chipx86.com>
parents:
6356
diff
changeset
|
159 | void *(*notify_formatted)(const char *title, const char *primary, |
|
12624
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
160 | const char *secondary, const char *text); |
|
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
161 | |
| 15884 | 162 | void *(*notify_searchresults)(PurpleConnection *gc, const char *title, |
|
12624
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
163 | const char *primary, const char *secondary, |
| 15884 | 164 | PurpleNotifySearchResults *results, gpointer user_data); |
|
12624
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
165 | |
| 15884 | 166 | void (*notify_searchresults_new_rows)(PurpleConnection *gc, |
| 167 | PurpleNotifySearchResults *results, | |
| 13641 | 168 | void *data); |
|
12624
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
169 | |
| 15884 | 170 | void *(*notify_userinfo)(PurpleConnection *gc, const char *who, |
| 171 | PurpleNotifyUserInfo *user_info); | |
|
12624
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
172 | |
|
10240
09342bc554d9
[gaim-migrate @ 11377]
Herman Bloggs <herman@bluedigits.com>
parents:
10209
diff
changeset
|
173 | void *(*notify_uri)(const char *uri); |
| 5437 | 174 | |
| 15884 | 175 | void (*close_notify)(PurpleNotifyType type, void *ui_handle); |
| 5437 | 176 | |
|
16743
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15997
diff
changeset
|
177 | void (*_purple_reserved1)(void); |
|
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15997
diff
changeset
|
178 | void (*_purple_reserved2)(void); |
|
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15997
diff
changeset
|
179 | void (*_purple_reserved3)(void); |
|
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15997
diff
changeset
|
180 | void (*_purple_reserved4)(void); |
| 15884 | 181 | } PurpleNotifyUiOps; |
| 5437 | 182 | |
|
12624
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
183 | |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5522
diff
changeset
|
184 | #ifdef __cplusplus |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5522
diff
changeset
|
185 | extern "C" { |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5522
diff
changeset
|
186 | #endif |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5522
diff
changeset
|
187 | |
|
12624
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
188 | |
| 5437 | 189 | /**************************************************************************/ |
| 11359 | 190 | /** Search results notification API */ |
| 191 | /**************************************************************************/ | |
| 192 | /*@{*/ | |
| 193 | ||
| 194 | /** | |
| 195 | * Displays results from a buddy search. This can be, for example, | |
| 196 | * a window with a list of all found buddies, where you are given the | |
| 197 | * option of adding buddies to your buddy list. | |
| 198 | * | |
| 15884 | 199 | * @param gc The PurpleConnection handle associated with the information. |
| 11359 | 200 | * @param title The title of the message. If this is NULL, the title |
|
12259
23c20f8ffbef
[gaim-migrate @ 14561]
Richard Laager <rlaager@pidgin.im>
parents:
12257
diff
changeset
|
201 | * will be "Search Results." |
| 11359 | 202 | * @param primary The main point of the message. |
| 203 | * @param secondary The secondary information. | |
| 15884 | 204 | * @param results The PurpleNotifySearchResults instance. |
| 11359 | 205 | * @param cb The callback to call when the user closes |
| 206 | * the notification. | |
| 13641 | 207 | * @param user_data The data to pass to the close callback and any other |
| 208 | * callback associated with a button. | |
| 11359 | 209 | * |
| 210 | * @return A UI-specific handle. | |
| 211 | */ | |
| 15884 | 212 | void *purple_notify_searchresults(PurpleConnection *gc, const char *title, |
| 11359 | 213 | const char *primary, const char *secondary, |
| 15884 | 214 | PurpleNotifySearchResults *results, PurpleNotifyCloseCallback cb, |
| 12220 | 215 | gpointer user_data); |
| 11359 | 216 | |
|
19868
af326d8f70b1
This function wasn't documented in the Doxygen stuff. If I've documented
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
217 | /** |
|
af326d8f70b1
This function wasn't documented in the Doxygen stuff. If I've documented
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
218 | * Frees a PurpleNotifySearchResults object. |
|
af326d8f70b1
This function wasn't documented in the Doxygen stuff. If I've documented
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
219 | * |
|
af326d8f70b1
This function wasn't documented in the Doxygen stuff. If I've documented
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
220 | * @param results The PurpleNotifySearchResults to free. |
|
af326d8f70b1
This function wasn't documented in the Doxygen stuff. If I've documented
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
221 | */ |
| 15884 | 222 | void purple_notify_searchresults_free(PurpleNotifySearchResults *results); |
| 11359 | 223 | |
| 224 | /** | |
| 225 | * Replace old rows with the new. Reuse an existing window. | |
| 226 | * | |
| 15884 | 227 | * @param gc The PurpleConnection structure. |
| 228 | * @param results The PurpleNotifySearchResults structure. | |
| 229 | * @param data Data returned by the purple_notify_searchresults(). | |
| 11359 | 230 | */ |
| 15884 | 231 | void purple_notify_searchresults_new_rows(PurpleConnection *gc, |
| 232 | PurpleNotifySearchResults *results, | |
| 13641 | 233 | void *data); |
| 11359 | 234 | |
|
12624
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
235 | |
| 11359 | 236 | /** |
|
12624
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
237 | * Adds a stock button that will be displayed in the search results dialog. |
| 11359 | 238 | * |
| 239 | * @param results The search results object. | |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
240 | * @param type Type of the button. (TODO: Only one button of a given type |
|
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
241 | * can be displayed.) |
| 11359 | 242 | * @param cb Function that will be called on the click event. |
| 243 | */ | |
| 15884 | 244 | void purple_notify_searchresults_button_add(PurpleNotifySearchResults *results, |
| 245 | PurpleNotifySearchButtonType type, | |
| 246 | PurpleNotifySearchResultsCallback cb); | |
| 11359 | 247 | |
|
12624
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
248 | |
|
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
249 | /** |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
250 | * Adds a plain labelled button that will be displayed in the search results |
|
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
251 | * dialog. |
|
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
252 | * |
|
12624
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
253 | * @param results The search results object |
|
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
254 | * @param label The label to display |
|
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
255 | * @param cb Function that will be called on the click event |
|
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
256 | */ |
| 15884 | 257 | void purple_notify_searchresults_button_add_labeled(PurpleNotifySearchResults *results, |
|
12624
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
258 | const char *label, |
| 15884 | 259 | PurpleNotifySearchResultsCallback cb); |
|
12624
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
260 | |
|
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
261 | |
| 11359 | 262 | /** |
| 263 | * Returns a newly created search results object. | |
| 264 | * | |
| 265 | * @return The new search results object. | |
| 266 | */ | |
| 15884 | 267 | PurpleNotifySearchResults *purple_notify_searchresults_new(void); |
| 11359 | 268 | |
| 269 | /** | |
|
31698
12d88a8ea37d
Document the default explicitly
Paul Aurich <darkrain42@pidgin.im>
parents:
31696
diff
changeset
|
270 | * Returns a newly created search result column object. The column defaults |
|
12d88a8ea37d
Document the default explicitly
Paul Aurich <darkrain42@pidgin.im>
parents:
31696
diff
changeset
|
271 | * to being visible. |
| 11359 | 272 | * |
| 273 | * @param title Title of the column. NOTE: Title will get g_strdup()ed. | |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
274 | * |
| 11359 | 275 | * @return The new search column object. |
| 276 | */ | |
| 15884 | 277 | PurpleNotifySearchColumn *purple_notify_searchresults_column_new(const char *title); |
| 11359 | 278 | |
| 279 | /** | |
| 31696 | 280 | * Sets whether or not a search result column is visible. |
| 281 | * | |
| 282 | * @param field The search column object. | |
| 283 | * @param visible TRUE if visible, or FALSE if not. | |
| 284 | */ | |
| 285 | void purple_notify_searchresult_column_set_visible(PurpleNotifySearchColumn *column, gboolean visible); | |
| 286 | ||
| 287 | /** | |
| 288 | * Returns whether or not a search result column is visible. | |
| 289 | * | |
| 290 | * @param field The search column object. | |
| 291 | * | |
| 292 | * @return TRUE if the search result column is visible. FALSE otherwise. | |
| 293 | */ | |
| 294 | gboolean purple_notify_searchresult_column_is_visible(const PurpleNotifySearchColumn *column); | |
| 295 | ||
| 296 | /** | |
| 11359 | 297 | * Adds a new column to the search result object. |
| 298 | * | |
| 299 | * @param results The result object to which the column will be added. | |
|
11501
a8fc92026134
[gaim-migrate @ 13746]
Richard Laager <rlaager@pidgin.im>
parents:
11359
diff
changeset
|
300 | * @param column The column that will be added to the result object. |
| 11359 | 301 | */ |
| 15884 | 302 | void purple_notify_searchresults_column_add(PurpleNotifySearchResults *results, |
| 303 | PurpleNotifySearchColumn *column); | |
| 11359 | 304 | |
| 305 | /** | |
| 306 | * Adds a new row of the results to the search results object. | |
| 307 | * | |
| 308 | * @param results The search results object. | |
| 309 | * @param row The row of the results. | |
| 310 | */ | |
| 15884 | 311 | void purple_notify_searchresults_row_add(PurpleNotifySearchResults *results, |
| 11359 | 312 | GList *row); |
|
25893
77f655480a0f
Slap some PURPLE_DISABLE_DEPRECATED checks around the functions Mark just
Richard Laager <rlaager@pidgin.im>
parents:
25890
diff
changeset
|
313 | |
| 11359 | 314 | /*@}*/ |
| 315 | ||
| 316 | /**************************************************************************/ | |
| 5437 | 317 | /** @name Notification API */ |
| 318 | /**************************************************************************/ | |
| 319 | /*@{*/ | |
| 320 | ||
| 321 | /** | |
| 322 | * Displays a notification message to the user. | |
| 323 | * | |
| 324 | * @param handle The plugin or connection handle. | |
| 325 | * @param type The notification type. | |
| 326 | * @param title The title of the message. | |
| 327 | * @param primary The main point of the message. | |
| 328 | * @param secondary The secondary information. | |
| 329 | * @param cb The callback to call when the user closes | |
| 330 | * the notification. | |
| 331 | * @param user_data The data to pass to the callback. | |
| 332 | * | |
| 333 | * @return A UI-specific handle. | |
| 334 | */ | |
| 15884 | 335 | void *purple_notify_message(void *handle, PurpleNotifyMsgType type, |
| 5437 | 336 | const char *title, const char *primary, |
| 15884 | 337 | const char *secondary, PurpleNotifyCloseCallback cb, |
| 12220 | 338 | gpointer user_data); |
| 5437 | 339 | |
| 340 | /** | |
|
23325
a374a26fe217
Use "email" and "Email" consistently. This is potentially controversial,
Richard Laager <rlaager@pidgin.im>
parents:
22762
diff
changeset
|
341 | * Displays a single email notification to the user. |
| 5437 | 342 | * |
| 343 | * @param handle The plugin or connection handle. | |
|
23325
a374a26fe217
Use "email" and "Email" consistently. This is potentially controversial,
Richard Laager <rlaager@pidgin.im>
parents:
22762
diff
changeset
|
344 | * @param subject The subject of the email. |
| 5437 | 345 | * @param from The from address. |
| 346 | * @param to The destination address. | |
| 347 | * @param url The URL where the message can be read. | |
| 348 | * @param cb The callback to call when the user closes | |
| 349 | * the notification. | |
| 350 | * @param user_data The data to pass to the callback. | |
| 351 | * | |
| 352 | * @return A UI-specific handle. | |
| 353 | */ | |
| 15884 | 354 | void *purple_notify_email(void *handle, const char *subject, |
| 5437 | 355 | const char *from, const char *to, |
| 15884 | 356 | const char *url, PurpleNotifyCloseCallback cb, |
| 12220 | 357 | gpointer user_data); |
| 5437 | 358 | |
| 359 | /** | |
|
23325
a374a26fe217
Use "email" and "Email" consistently. This is potentially controversial,
Richard Laager <rlaager@pidgin.im>
parents:
22762
diff
changeset
|
360 | * Displays a notification for multiple emails to the user. |
| 5437 | 361 | * |
| 362 | * @param handle The plugin or connection handle. | |
|
27346
6779a6dbb742
Clarify this. This count gets passed around a lot of places... I'm
Mark Doliner <markdoliner@pidgin.im>
parents:
25893
diff
changeset
|
363 | * @param count The number of emails. '0' can be used to signify that |
|
6779a6dbb742
Clarify this. This count gets passed around a lot of places... I'm
Mark Doliner <markdoliner@pidgin.im>
parents:
25893
diff
changeset
|
364 | * the user has no unread emails and the UI should remove |
|
6779a6dbb742
Clarify this. This count gets passed around a lot of places... I'm
Mark Doliner <markdoliner@pidgin.im>
parents:
25893
diff
changeset
|
365 | * the mail notification. |
|
23325
a374a26fe217
Use "email" and "Email" consistently. This is potentially controversial,
Richard Laager <rlaager@pidgin.im>
parents:
22762
diff
changeset
|
366 | * @param detailed @c TRUE if there is information for each email in the |
|
5522
faa69c8f503d
[gaim-migrate @ 5922]
Christian Hammond <chipx86@chipx86.com>
parents:
5497
diff
changeset
|
367 | * arrays. |
| 5437 | 368 | * @param subjects The array of subjects. |
| 369 | * @param froms The array of from addresses. | |
| 370 | * @param tos The array of destination addresses. | |
|
6720
cdc5348dd848
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6467
diff
changeset
|
371 | * @param urls The URLs where the messages can be read. |
| 5437 | 372 | * @param cb The callback to call when the user closes |
| 373 | * the notification. | |
| 374 | * @param user_data The data to pass to the callback. | |
| 375 | * | |
| 376 | * @return A UI-specific handle. | |
| 377 | */ | |
| 15884 | 378 | void *purple_notify_emails(void *handle, size_t count, gboolean detailed, |
| 5437 | 379 | const char **subjects, const char **froms, |
| 380 | const char **tos, const char **urls, | |
| 15884 | 381 | PurpleNotifyCloseCallback cb, gpointer user_data); |
| 5437 | 382 | |
| 383 | /** | |
|
6381
53203c44c731
[gaim-migrate @ 6886]
Christian Hammond <chipx86@chipx86.com>
parents:
6356
diff
changeset
|
384 | * Displays a notification with formatted text. |
|
53203c44c731
[gaim-migrate @ 6886]
Christian Hammond <chipx86@chipx86.com>
parents:
6356
diff
changeset
|
385 | * |
|
53203c44c731
[gaim-migrate @ 6886]
Christian Hammond <chipx86@chipx86.com>
parents:
6356
diff
changeset
|
386 | * The text is essentially a stripped-down format of HTML, the same that |
|
53203c44c731
[gaim-migrate @ 6886]
Christian Hammond <chipx86@chipx86.com>
parents:
6356
diff
changeset
|
387 | * IMs may send. |
|
53203c44c731
[gaim-migrate @ 6886]
Christian Hammond <chipx86@chipx86.com>
parents:
6356
diff
changeset
|
388 | * |
|
53203c44c731
[gaim-migrate @ 6886]
Christian Hammond <chipx86@chipx86.com>
parents:
6356
diff
changeset
|
389 | * @param handle The plugin or connection handle. |
|
53203c44c731
[gaim-migrate @ 6886]
Christian Hammond <chipx86@chipx86.com>
parents:
6356
diff
changeset
|
390 | * @param title The title of the message. |
|
53203c44c731
[gaim-migrate @ 6886]
Christian Hammond <chipx86@chipx86.com>
parents:
6356
diff
changeset
|
391 | * @param primary The main point of the message. |
|
53203c44c731
[gaim-migrate @ 6886]
Christian Hammond <chipx86@chipx86.com>
parents:
6356
diff
changeset
|
392 | * @param secondary The secondary information. |
|
53203c44c731
[gaim-migrate @ 6886]
Christian Hammond <chipx86@chipx86.com>
parents:
6356
diff
changeset
|
393 | * @param text The formatted text. |
|
53203c44c731
[gaim-migrate @ 6886]
Christian Hammond <chipx86@chipx86.com>
parents:
6356
diff
changeset
|
394 | * @param cb The callback to call when the user closes |
|
53203c44c731
[gaim-migrate @ 6886]
Christian Hammond <chipx86@chipx86.com>
parents:
6356
diff
changeset
|
395 | * the notification. |
|
6720
cdc5348dd848
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6467
diff
changeset
|
396 | * @param user_data The data to pass to the callback. |
|
6381
53203c44c731
[gaim-migrate @ 6886]
Christian Hammond <chipx86@chipx86.com>
parents:
6356
diff
changeset
|
397 | * |
|
53203c44c731
[gaim-migrate @ 6886]
Christian Hammond <chipx86@chipx86.com>
parents:
6356
diff
changeset
|
398 | * @return A UI-specific handle. |
|
53203c44c731
[gaim-migrate @ 6886]
Christian Hammond <chipx86@chipx86.com>
parents:
6356
diff
changeset
|
399 | */ |
| 15884 | 400 | void *purple_notify_formatted(void *handle, const char *title, |
|
6381
53203c44c731
[gaim-migrate @ 6886]
Christian Hammond <chipx86@chipx86.com>
parents:
6356
diff
changeset
|
401 | const char *primary, const char *secondary, |
| 15884 | 402 | const char *text, PurpleNotifyCloseCallback cb, gpointer user_data); |
|
6381
53203c44c731
[gaim-migrate @ 6886]
Christian Hammond <chipx86@chipx86.com>
parents:
6356
diff
changeset
|
403 | |
|
53203c44c731
[gaim-migrate @ 6886]
Christian Hammond <chipx86@chipx86.com>
parents:
6356
diff
changeset
|
404 | /** |
|
9800
1115830011b8
[gaim-migrate @ 10668]
Mark Doliner <markdoliner@pidgin.im>
parents:
9797
diff
changeset
|
405 | * Displays user information with formatted text, passing information giving |
|
1115830011b8
[gaim-migrate @ 10668]
Mark Doliner <markdoliner@pidgin.im>
parents:
9797
diff
changeset
|
406 | * the connection and username from which the user information came. |
| 9797 | 407 | * |
| 408 | * The text is essentially a stripped-down format of HTML, the same that | |
| 409 | * IMs may send. | |
| 410 | * | |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
411 | * @param gc The PurpleConnection handle associated with the information. |
|
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
412 | * @param who The username associated with the information. |
|
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
413 | * @param user_info The PurpleNotifyUserInfo which contains the information |
|
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
414 | * @param cb The callback to call when the user closes the notification. |
|
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
415 | * @param user_data The data to pass to the callback. |
| 9797 | 416 | * |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
417 | * @return A UI-specific handle. |
| 9797 | 418 | */ |
| 15884 | 419 | void *purple_notify_userinfo(PurpleConnection *gc, const char *who, |
| 420 | PurpleNotifyUserInfo *user_info, PurpleNotifyCloseCallback cb, | |
| 12220 | 421 | gpointer user_data); |
| 9797 | 422 | |
| 423 | /** | |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
424 | * Create a new PurpleNotifyUserInfo which is suitable for passing to |
|
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
425 | * purple_notify_userinfo() |
|
15205
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
426 | * |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
427 | * @return A new PurpleNotifyUserInfo, which the caller must destroy when done |
|
15205
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
428 | */ |
| 15884 | 429 | PurpleNotifyUserInfo *purple_notify_user_info_new(void); |
|
15205
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
430 | |
|
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
431 | /** |
| 15884 | 432 | * Destroy a PurpleNotifyUserInfo |
|
15205
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
433 | * |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
434 | * @param user_info The PurpleNotifyUserInfo |
|
15205
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
435 | */ |
| 15884 | 436 | void purple_notify_user_info_destroy(PurpleNotifyUserInfo *user_info); |
|
15205
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
437 | |
|
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
438 | /** |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
439 | * Retrieve the array of PurpleNotifyUserInfoEntry objects from a |
|
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
440 | * PurpleNotifyUserInfo |
|
15325
d1dcb41d845b
[gaim-migrate @ 18053]
Evan Schoenberg <evands@pidgin.im>
parents:
15215
diff
changeset
|
441 | * |
|
32193
42173d1c1317
Change PurpleNotifyUserInfo->user_info_entries from a GList to a GQueue.
Mark Doliner <markdoliner@pidgin.im>
parents:
32191
diff
changeset
|
442 | * This GQueue may be manipulated directly with normal GQueue functions such |
|
42173d1c1317
Change PurpleNotifyUserInfo->user_info_entries from a GList to a GQueue.
Mark Doliner <markdoliner@pidgin.im>
parents:
32191
diff
changeset
|
443 | * as g_queue_push_tail(). Only PurpleNotifyUserInfoEntry are allowed in the |
|
42173d1c1317
Change PurpleNotifyUserInfo->user_info_entries from a GList to a GQueue.
Mark Doliner <markdoliner@pidgin.im>
parents:
32191
diff
changeset
|
444 | * queue. If a PurpleNotifyUserInfoEntry item is added to the queue, it |
|
42173d1c1317
Change PurpleNotifyUserInfo->user_info_entries from a GList to a GQueue.
Mark Doliner <markdoliner@pidgin.im>
parents:
32191
diff
changeset
|
445 | * should not be freed by the caller; PurpleNotifyUserInfo will free it when |
|
42173d1c1317
Change PurpleNotifyUserInfo->user_info_entries from a GList to a GQueue.
Mark Doliner <markdoliner@pidgin.im>
parents:
32191
diff
changeset
|
446 | * destroyed. |
|
15328
113b0b520010
[gaim-migrate @ 18056]
Evan Schoenberg <evands@pidgin.im>
parents:
15325
diff
changeset
|
447 | * |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
448 | * To remove a PurpleNotifyUserInfoEntry, use |
|
32193
42173d1c1317
Change PurpleNotifyUserInfo->user_info_entries from a GList to a GQueue.
Mark Doliner <markdoliner@pidgin.im>
parents:
32191
diff
changeset
|
449 | * purple_notify_user_info_remove_entry(). Do not use the GQueue directly. |
|
15205
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
450 | * |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
451 | * @param user_info The PurpleNotifyUserInfo |
|
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
452 | * |
|
32193
42173d1c1317
Change PurpleNotifyUserInfo->user_info_entries from a GList to a GQueue.
Mark Doliner <markdoliner@pidgin.im>
parents:
32191
diff
changeset
|
453 | * @constreturn A GQueue of PurpleNotifyUserInfoEntry objects. |
|
15205
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
454 | */ |
|
32193
42173d1c1317
Change PurpleNotifyUserInfo->user_info_entries from a GList to a GQueue.
Mark Doliner <markdoliner@pidgin.im>
parents:
32191
diff
changeset
|
455 | GQueue *purple_notify_user_info_get_entries(PurpleNotifyUserInfo *user_info); |
|
15205
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
456 | |
|
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
457 | /** |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
458 | * Create a textual representation of a PurpleNotifyUserInfo, separating |
|
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
459 | * entries with newline |
|
15205
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
460 | * |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
461 | * @param user_info The PurpleNotifyUserInfo |
|
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
462 | * @param newline The separation character |
|
15205
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
463 | */ |
| 15884 | 464 | char *purple_notify_user_info_get_text_with_newline(PurpleNotifyUserInfo *user_info, const char *newline); |
|
15205
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
465 | |
|
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
466 | /** |
| 15884 | 467 | * Add a label/value pair to a PurpleNotifyUserInfo object. |
| 468 | * PurpleNotifyUserInfo keeps track of the order in which pairs are added. | |
|
15205
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
469 | * |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
470 | * @param user_info The PurpleNotifyUserInfo |
|
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
471 | * @param label A label, which for example might be displayed by a |
|
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
472 | * UI with a colon after it ("Status:"). Do not include |
|
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
473 | * a colon. If NULL, value will be displayed without a |
|
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
474 | * label. |
|
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
475 | * @param value The value, which might be displayed by a UI after |
|
30537
9f833935ecd7
Add a purple_notify_user_info_add_pair_plaintext function that accepts a
Mark Doliner <markdoliner@pidgin.im>
parents:
27346
diff
changeset
|
476 | * the label. This should be valid HTML. If you want |
|
9f833935ecd7
Add a purple_notify_user_info_add_pair_plaintext function that accepts a
Mark Doliner <markdoliner@pidgin.im>
parents:
27346
diff
changeset
|
477 | * to insert plaintext then use |
|
9f833935ecd7
Add a purple_notify_user_info_add_pair_plaintext function that accepts a
Mark Doliner <markdoliner@pidgin.im>
parents:
27346
diff
changeset
|
478 | * purple_notify_user_info_add_pair_plaintext(), instead. |
|
9f833935ecd7
Add a purple_notify_user_info_add_pair_plaintext function that accepts a
Mark Doliner <markdoliner@pidgin.im>
parents:
27346
diff
changeset
|
479 | * If this is NULL the label will still be displayed; |
|
9f833935ecd7
Add a purple_notify_user_info_add_pair_plaintext function that accepts a
Mark Doliner <markdoliner@pidgin.im>
parents:
27346
diff
changeset
|
480 | * the UI should treat label as independent and not |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
481 | * include a colon if it would otherwise. |
|
15205
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
482 | */ |
|
32191
a4668d9dc8d1
Rename purple_notify_user_info_add_pair to
Mark Doliner <markdoliner@pidgin.im>
parents:
32143
diff
changeset
|
483 | void purple_notify_user_info_add_pair_html(PurpleNotifyUserInfo *user_info, const char *label, const char *value); |
|
15205
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
484 | |
|
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
485 | /** |
|
32191
a4668d9dc8d1
Rename purple_notify_user_info_add_pair to
Mark Doliner <markdoliner@pidgin.im>
parents:
32143
diff
changeset
|
486 | * Like purple_notify_user_info_add_pair_html, but value should be plaintext |
|
30537
9f833935ecd7
Add a purple_notify_user_info_add_pair_plaintext function that accepts a
Mark Doliner <markdoliner@pidgin.im>
parents:
27346
diff
changeset
|
487 | * and will be escaped using g_markup_escape_text(). |
|
9f833935ecd7
Add a purple_notify_user_info_add_pair_plaintext function that accepts a
Mark Doliner <markdoliner@pidgin.im>
parents:
27346
diff
changeset
|
488 | */ |
|
9f833935ecd7
Add a purple_notify_user_info_add_pair_plaintext function that accepts a
Mark Doliner <markdoliner@pidgin.im>
parents:
27346
diff
changeset
|
489 | void purple_notify_user_info_add_pair_plaintext(PurpleNotifyUserInfo *user_info, const char *label, const char *value); |
|
9f833935ecd7
Add a purple_notify_user_info_add_pair_plaintext function that accepts a
Mark Doliner <markdoliner@pidgin.im>
parents:
27346
diff
changeset
|
490 | |
|
9f833935ecd7
Add a purple_notify_user_info_add_pair_plaintext function that accepts a
Mark Doliner <markdoliner@pidgin.im>
parents:
27346
diff
changeset
|
491 | /** |
|
32204
2a09624616c3
Actually commit the purple_notify_user_info_prepend_pair_plaintext
Mark Doliner <markdoliner@pidgin.im>
parents:
32193
diff
changeset
|
492 | * Like purple_notify_user_info_add_pair_html, but the pair is inserted |
|
2a09624616c3
Actually commit the purple_notify_user_info_prepend_pair_plaintext
Mark Doliner <markdoliner@pidgin.im>
parents:
32193
diff
changeset
|
493 | * at the beginning of the list. |
|
15205
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
494 | */ |
|
32204
2a09624616c3
Actually commit the purple_notify_user_info_prepend_pair_plaintext
Mark Doliner <markdoliner@pidgin.im>
parents:
32193
diff
changeset
|
495 | void purple_notify_user_info_prepend_pair_html(PurpleNotifyUserInfo *user_info, const char *label, const char *value); |
|
2a09624616c3
Actually commit the purple_notify_user_info_prepend_pair_plaintext
Mark Doliner <markdoliner@pidgin.im>
parents:
32193
diff
changeset
|
496 | |
|
2a09624616c3
Actually commit the purple_notify_user_info_prepend_pair_plaintext
Mark Doliner <markdoliner@pidgin.im>
parents:
32193
diff
changeset
|
497 | /** |
|
2a09624616c3
Actually commit the purple_notify_user_info_prepend_pair_plaintext
Mark Doliner <markdoliner@pidgin.im>
parents:
32193
diff
changeset
|
498 | * Like purple_notify_user_info_prepend_pair_html, but value should be plaintext |
|
2a09624616c3
Actually commit the purple_notify_user_info_prepend_pair_plaintext
Mark Doliner <markdoliner@pidgin.im>
parents:
32193
diff
changeset
|
499 | * and will be escaped using g_markup_escape_text(). |
|
2a09624616c3
Actually commit the purple_notify_user_info_prepend_pair_plaintext
Mark Doliner <markdoliner@pidgin.im>
parents:
32193
diff
changeset
|
500 | */ |
|
2a09624616c3
Actually commit the purple_notify_user_info_prepend_pair_plaintext
Mark Doliner <markdoliner@pidgin.im>
parents:
32193
diff
changeset
|
501 | void purple_notify_user_info_prepend_pair_plaintext(PurpleNotifyUserInfo *user_info, const char *label, const char *value); |
|
15205
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
502 | |
|
25893
77f655480a0f
Slap some PURPLE_DISABLE_DEPRECATED checks around the functions Mark just
Richard Laager <rlaager@pidgin.im>
parents:
25890
diff
changeset
|
503 | #if !(defined PURPLE_DISABLE_DEPRECATED) || (defined _PURPLE_NOTIFY_C_) |
|
15205
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
504 | /** |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
505 | * Remove a PurpleNotifyUserInfoEntry from a PurpleNotifyUserInfo object |
|
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
506 | * without freeing the entry. |
|
15328
113b0b520010
[gaim-migrate @ 18056]
Evan Schoenberg <evands@pidgin.im>
parents:
15325
diff
changeset
|
507 | * |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
508 | * @param user_info The PurpleNotifyUserInfo |
|
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
509 | * @param user_info_entry The PurpleNotifyUserInfoEntry |
|
25890
26bb4211aa76
Deprecate some functions that aren't really needed
Mark Doliner <markdoliner@pidgin.im>
parents:
24702
diff
changeset
|
510 | * |
|
26bb4211aa76
Deprecate some functions that aren't really needed
Mark Doliner <markdoliner@pidgin.im>
parents:
24702
diff
changeset
|
511 | * @deprecated Nothing is using this function and it should be removed |
|
26bb4211aa76
Deprecate some functions that aren't really needed
Mark Doliner <markdoliner@pidgin.im>
parents:
24702
diff
changeset
|
512 | * in 3.0.0. Or, if we decide we want to keep it in 3.0.0 |
|
26bb4211aa76
Deprecate some functions that aren't really needed
Mark Doliner <markdoliner@pidgin.im>
parents:
24702
diff
changeset
|
513 | * then we should make purple_notify_user_info_entry_destroy |
|
26bb4211aa76
Deprecate some functions that aren't really needed
Mark Doliner <markdoliner@pidgin.im>
parents:
24702
diff
changeset
|
514 | * public so that entries can be free'd after they're removed. |
|
15328
113b0b520010
[gaim-migrate @ 18056]
Evan Schoenberg <evands@pidgin.im>
parents:
15325
diff
changeset
|
515 | */ |
| 15884 | 516 | void purple_notify_user_info_remove_entry(PurpleNotifyUserInfo *user_info, PurpleNotifyUserInfoEntry *user_info_entry); |
|
25893
77f655480a0f
Slap some PURPLE_DISABLE_DEPRECATED checks around the functions Mark just
Richard Laager <rlaager@pidgin.im>
parents:
25890
diff
changeset
|
517 | #endif |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
518 | |
|
15328
113b0b520010
[gaim-migrate @ 18056]
Evan Schoenberg <evands@pidgin.im>
parents:
15325
diff
changeset
|
519 | /** |
| 15884 | 520 | * Create a new PurpleNotifyUserInfoEntry |
|
15325
d1dcb41d845b
[gaim-migrate @ 18053]
Evan Schoenberg <evands@pidgin.im>
parents:
15215
diff
changeset
|
521 | * |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
522 | * If added to a PurpleNotifyUserInfo object, this should not be free()'d, |
|
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
523 | * as PurpleNotifyUserInfo will do so when destroyed. |
|
32191
a4668d9dc8d1
Rename purple_notify_user_info_add_pair to
Mark Doliner <markdoliner@pidgin.im>
parents:
32143
diff
changeset
|
524 | * purple_notify_user_info_add_pair_html(), |
|
32204
2a09624616c3
Actually commit the purple_notify_user_info_prepend_pair_plaintext
Mark Doliner <markdoliner@pidgin.im>
parents:
32193
diff
changeset
|
525 | * purple_notify_user_info_add_pair_plaintext(), |
|
2a09624616c3
Actually commit the purple_notify_user_info_prepend_pair_plaintext
Mark Doliner <markdoliner@pidgin.im>
parents:
32193
diff
changeset
|
526 | * purple_notify_user_info_prepend_pair_html() and |
|
2a09624616c3
Actually commit the purple_notify_user_info_prepend_pair_plaintext
Mark Doliner <markdoliner@pidgin.im>
parents:
32193
diff
changeset
|
527 | * purple_notify_user_info_prepend_pair_plaintext() are convenience |
|
2a09624616c3
Actually commit the purple_notify_user_info_prepend_pair_plaintext
Mark Doliner <markdoliner@pidgin.im>
parents:
32193
diff
changeset
|
528 | * methods for creating entries and adding them to a PurpleNotifyUserInfo. |
|
15325
d1dcb41d845b
[gaim-migrate @ 18053]
Evan Schoenberg <evands@pidgin.im>
parents:
15215
diff
changeset
|
529 | * |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
530 | * @param label A label, which for example might be displayed by a UI |
|
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
531 | * with a colon after it ("Status:"). Do not include a |
|
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
532 | * colon. If NULL, value will be displayed without a label. |
|
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
533 | * @param value The value, which might be displayed by a UI after the |
|
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
534 | * label. If NULL, label will still be displayed; the UI |
|
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
535 | * should then treat label as independent and not include a |
|
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
536 | * colon if it would otherwise. |
|
15325
d1dcb41d845b
[gaim-migrate @ 18053]
Evan Schoenberg <evands@pidgin.im>
parents:
15215
diff
changeset
|
537 | * |
| 15884 | 538 | * @result A new PurpleNotifyUserInfoEntry |
|
15325
d1dcb41d845b
[gaim-migrate @ 18053]
Evan Schoenberg <evands@pidgin.im>
parents:
15215
diff
changeset
|
539 | */ |
| 15884 | 540 | PurpleNotifyUserInfoEntry *purple_notify_user_info_entry_new(const char *label, const char *value); |
|
15325
d1dcb41d845b
[gaim-migrate @ 18053]
Evan Schoenberg <evands@pidgin.im>
parents:
15215
diff
changeset
|
541 | |
|
d1dcb41d845b
[gaim-migrate @ 18053]
Evan Schoenberg <evands@pidgin.im>
parents:
15215
diff
changeset
|
542 | /** |
|
15205
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
543 | * Add a section break. A UI might display this as a horizontal line. |
|
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
544 | * |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
545 | * @param user_info The PurpleNotifyUserInfo |
|
15205
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
546 | */ |
| 15884 | 547 | void purple_notify_user_info_add_section_break(PurpleNotifyUserInfo *user_info); |
|
15205
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
548 | |
|
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
549 | /** |
|
23346
fceca7f4710f
Added prepend functions for notify_user_info section headers and breaks
Evan Schoenberg <evands@pidgin.im>
parents:
23325
diff
changeset
|
550 | * Prepend a section break. A UI might display this as a horizontal line. |
|
fceca7f4710f
Added prepend functions for notify_user_info section headers and breaks
Evan Schoenberg <evands@pidgin.im>
parents:
23325
diff
changeset
|
551 | * |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
552 | * @param user_info The PurpleNotifyUserInfo |
|
23359
e1f7c36243e2
ChangeLog.API purple_notify_user_info_prepend_section_[break|header] and
Evan Schoenberg <evands@pidgin.im>
parents:
23346
diff
changeset
|
553 | * @since 2.5.0 |
|
23346
fceca7f4710f
Added prepend functions for notify_user_info section headers and breaks
Evan Schoenberg <evands@pidgin.im>
parents:
23325
diff
changeset
|
554 | */ |
|
fceca7f4710f
Added prepend functions for notify_user_info section headers and breaks
Evan Schoenberg <evands@pidgin.im>
parents:
23325
diff
changeset
|
555 | void purple_notify_user_info_prepend_section_break(PurpleNotifyUserInfo *user_info); |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
556 | |
|
23346
fceca7f4710f
Added prepend functions for notify_user_info section headers and breaks
Evan Schoenberg <evands@pidgin.im>
parents:
23325
diff
changeset
|
557 | /** |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
558 | * Add a section header. A UI might display this in a different font |
|
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
559 | * from other text. |
|
15205
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
560 | * |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
561 | * @param user_info The PurpleNotifyUserInfo |
|
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
562 | * @param label The name of the section |
|
15205
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
563 | */ |
| 15884 | 564 | void purple_notify_user_info_add_section_header(PurpleNotifyUserInfo *user_info, const char *label); |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
565 | |
|
23346
fceca7f4710f
Added prepend functions for notify_user_info section headers and breaks
Evan Schoenberg <evands@pidgin.im>
parents:
23325
diff
changeset
|
566 | /** |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
567 | * Prepend a section header. A UI might display this in a different font |
|
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
568 | * from other text. |
|
23346
fceca7f4710f
Added prepend functions for notify_user_info section headers and breaks
Evan Schoenberg <evands@pidgin.im>
parents:
23325
diff
changeset
|
569 | * |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
570 | * @param user_info The PurpleNotifyUserInfo |
|
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
571 | * @param label The name of the section |
|
23359
e1f7c36243e2
ChangeLog.API purple_notify_user_info_prepend_section_[break|header] and
Evan Schoenberg <evands@pidgin.im>
parents:
23346
diff
changeset
|
572 | * @since 2.5.0 |
|
23346
fceca7f4710f
Added prepend functions for notify_user_info section headers and breaks
Evan Schoenberg <evands@pidgin.im>
parents:
23325
diff
changeset
|
573 | */ |
|
fceca7f4710f
Added prepend functions for notify_user_info section headers and breaks
Evan Schoenberg <evands@pidgin.im>
parents:
23325
diff
changeset
|
574 | void purple_notify_user_info_prepend_section_header(PurpleNotifyUserInfo *user_info, const char *label); |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
575 | |
|
15205
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
576 | /** |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
577 | * Remove the last item which was added to a PurpleNotifyUserInfo. This |
|
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
578 | * could be used to remove a section header which is not needed. |
|
15205
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
579 | */ |
| 15884 | 580 | void purple_notify_user_info_remove_last_item(PurpleNotifyUserInfo *user_info); |
|
15205
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
581 | |
|
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
582 | /** |
| 15884 | 583 | * Get the label for a PurpleNotifyUserInfoEntry |
|
15205
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
584 | * |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
585 | * @param user_info_entry The PurpleNotifyUserInfoEntry |
|
15205
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
586 | * |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
587 | * @return The label |
|
15205
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
588 | */ |
|
22762
7f13bec07bad
constify the return value from purple_notify_user_info_entry_get_label
Mark Doliner <markdoliner@pidgin.im>
parents:
21453
diff
changeset
|
589 | const gchar *purple_notify_user_info_entry_get_label(PurpleNotifyUserInfoEntry *user_info_entry); |
|
15205
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
590 | |
|
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
591 | /** |
| 15884 | 592 | * Set the label for a PurpleNotifyUserInfoEntry |
|
15325
d1dcb41d845b
[gaim-migrate @ 18053]
Evan Schoenberg <evands@pidgin.im>
parents:
15215
diff
changeset
|
593 | * |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
594 | * @param user_info_entry The PurpleNotifyUserInfoEntry |
|
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
595 | * @param label The label |
|
15325
d1dcb41d845b
[gaim-migrate @ 18053]
Evan Schoenberg <evands@pidgin.im>
parents:
15215
diff
changeset
|
596 | */ |
| 15884 | 597 | void purple_notify_user_info_entry_set_label(PurpleNotifyUserInfoEntry *user_info_entry, const char *label); |
|
15325
d1dcb41d845b
[gaim-migrate @ 18053]
Evan Schoenberg <evands@pidgin.im>
parents:
15215
diff
changeset
|
598 | |
|
d1dcb41d845b
[gaim-migrate @ 18053]
Evan Schoenberg <evands@pidgin.im>
parents:
15215
diff
changeset
|
599 | /** |
| 15884 | 600 | * Get the value for a PurpleNotifyUserInfoEntry |
|
15205
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
601 | * |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
602 | * @param user_info_entry The PurpleNotifyUserInfoEntry |
|
15205
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
603 | * |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
604 | * @result The value |
|
15205
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
605 | */ |
|
22762
7f13bec07bad
constify the return value from purple_notify_user_info_entry_get_label
Mark Doliner <markdoliner@pidgin.im>
parents:
21453
diff
changeset
|
606 | const gchar *purple_notify_user_info_entry_get_value(PurpleNotifyUserInfoEntry *user_info_entry); |
|
15205
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
607 | |
|
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
608 | /** |
| 15884 | 609 | * Set the value for a PurpleNotifyUserInfoEntry |
|
15325
d1dcb41d845b
[gaim-migrate @ 18053]
Evan Schoenberg <evands@pidgin.im>
parents:
15215
diff
changeset
|
610 | * |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
611 | * @param user_info_entry The PurpleNotifyUserInfoEntry |
|
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
612 | * @param value The value |
|
15325
d1dcb41d845b
[gaim-migrate @ 18053]
Evan Schoenberg <evands@pidgin.im>
parents:
15215
diff
changeset
|
613 | */ |
| 15884 | 614 | void purple_notify_user_info_entry_set_value(PurpleNotifyUserInfoEntry *user_info_entry, const char *value); |
|
15325
d1dcb41d845b
[gaim-migrate @ 18053]
Evan Schoenberg <evands@pidgin.im>
parents:
15215
diff
changeset
|
615 | |
|
d1dcb41d845b
[gaim-migrate @ 18053]
Evan Schoenberg <evands@pidgin.im>
parents:
15215
diff
changeset
|
616 | |
|
d1dcb41d845b
[gaim-migrate @ 18053]
Evan Schoenberg <evands@pidgin.im>
parents:
15215
diff
changeset
|
617 | /** |
| 15884 | 618 | * Get the type of a PurpleNotifyUserInfoEntry |
|
15325
d1dcb41d845b
[gaim-migrate @ 18053]
Evan Schoenberg <evands@pidgin.im>
parents:
15215
diff
changeset
|
619 | * |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
620 | * @param user_info_entry The PurpleNotifyUserInfoEntry |
|
15325
d1dcb41d845b
[gaim-migrate @ 18053]
Evan Schoenberg <evands@pidgin.im>
parents:
15215
diff
changeset
|
621 | * |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
622 | * @return The PurpleNotifyUserInfoEntryType |
|
15325
d1dcb41d845b
[gaim-migrate @ 18053]
Evan Schoenberg <evands@pidgin.im>
parents:
15215
diff
changeset
|
623 | */ |
| 15884 | 624 | PurpleNotifyUserInfoEntryType purple_notify_user_info_entry_get_type(PurpleNotifyUserInfoEntry *user_info_entry); |
|
15325
d1dcb41d845b
[gaim-migrate @ 18053]
Evan Schoenberg <evands@pidgin.im>
parents:
15215
diff
changeset
|
625 | |
|
d1dcb41d845b
[gaim-migrate @ 18053]
Evan Schoenberg <evands@pidgin.im>
parents:
15215
diff
changeset
|
626 | /** |
| 15884 | 627 | * Set the type of a PurpleNotifyUserInfoEntry |
|
15325
d1dcb41d845b
[gaim-migrate @ 18053]
Evan Schoenberg <evands@pidgin.im>
parents:
15215
diff
changeset
|
628 | * |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
629 | * @param user_info_entry The PurpleNotifyUserInfoEntry |
|
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
630 | * @param type The PurpleNotifyUserInfoEntryType |
|
15325
d1dcb41d845b
[gaim-migrate @ 18053]
Evan Schoenberg <evands@pidgin.im>
parents:
15215
diff
changeset
|
631 | */ |
| 15884 | 632 | void purple_notify_user_info_entry_set_type(PurpleNotifyUserInfoEntry *user_info_entry, |
| 633 | PurpleNotifyUserInfoEntryType type); | |
|
15325
d1dcb41d845b
[gaim-migrate @ 18053]
Evan Schoenberg <evands@pidgin.im>
parents:
15215
diff
changeset
|
634 | |
|
d1dcb41d845b
[gaim-migrate @ 18053]
Evan Schoenberg <evands@pidgin.im>
parents:
15215
diff
changeset
|
635 | /** |
|
6465
bd201d637ff4
[gaim-migrate @ 6974]
Christian Hammond <chipx86@chipx86.com>
parents:
6381
diff
changeset
|
636 | * Opens a URI or somehow presents it to the user. |
|
bd201d637ff4
[gaim-migrate @ 6974]
Christian Hammond <chipx86@chipx86.com>
parents:
6381
diff
changeset
|
637 | * |
|
10240
09342bc554d9
[gaim-migrate @ 11377]
Herman Bloggs <herman@bluedigits.com>
parents:
10209
diff
changeset
|
638 | * @param handle The plugin or connection handle. |
|
09342bc554d9
[gaim-migrate @ 11377]
Herman Bloggs <herman@bluedigits.com>
parents:
10209
diff
changeset
|
639 | * @param uri The URI to display or go to. |
|
6465
bd201d637ff4
[gaim-migrate @ 6974]
Christian Hammond <chipx86@chipx86.com>
parents:
6381
diff
changeset
|
640 | * |
|
bd201d637ff4
[gaim-migrate @ 6974]
Christian Hammond <chipx86@chipx86.com>
parents:
6381
diff
changeset
|
641 | * @return A UI-specific handle, if any. This may only be presented if |
|
bd201d637ff4
[gaim-migrate @ 6974]
Christian Hammond <chipx86@chipx86.com>
parents:
6381
diff
changeset
|
642 | * the UI code displays a dialog instead of a webpage, or something |
|
bd201d637ff4
[gaim-migrate @ 6974]
Christian Hammond <chipx86@chipx86.com>
parents:
6381
diff
changeset
|
643 | * similar. |
|
bd201d637ff4
[gaim-migrate @ 6974]
Christian Hammond <chipx86@chipx86.com>
parents:
6381
diff
changeset
|
644 | */ |
| 15884 | 645 | void *purple_notify_uri(void *handle, const char *uri); |
|
6465
bd201d637ff4
[gaim-migrate @ 6974]
Christian Hammond <chipx86@chipx86.com>
parents:
6381
diff
changeset
|
646 | |
|
bd201d637ff4
[gaim-migrate @ 6974]
Christian Hammond <chipx86@chipx86.com>
parents:
6381
diff
changeset
|
647 | /** |
| 5437 | 648 | * Closes a notification. |
| 649 | * | |
| 650 | * This should be used only by the UI operation functions and part of the | |
| 651 | * core. | |
| 652 | * | |
|
5476
6f863ea68018
[gaim-migrate @ 5872]
Christian Hammond <chipx86@chipx86.com>
parents:
5437
diff
changeset
|
653 | * @param type The notification type. |
|
6f863ea68018
[gaim-migrate @ 5872]
Christian Hammond <chipx86@chipx86.com>
parents:
5437
diff
changeset
|
654 | * @param ui_handle The notification UI handle. |
| 5437 | 655 | */ |
| 15884 | 656 | void purple_notify_close(PurpleNotifyType type, void *ui_handle); |
| 5437 | 657 | |
| 658 | /** | |
| 659 | * Closes all notifications registered with the specified handle. | |
| 660 | * | |
| 661 | * @param handle The handle. | |
| 662 | */ | |
| 15884 | 663 | void purple_notify_close_with_handle(void *handle); |
| 5437 | 664 | |
| 665 | /** | |
| 15884 | 666 | * A wrapper for purple_notify_message that displays an information message. |
| 5437 | 667 | */ |
| 15884 | 668 | #define purple_notify_info(handle, title, primary, secondary) \ |
| 669 | purple_notify_message((handle), PURPLE_NOTIFY_MSG_INFO, (title), \ | |
| 5437 | 670 | (primary), (secondary), NULL, NULL) |
| 671 | ||
| 672 | /** | |
| 15884 | 673 | * A wrapper for purple_notify_message that displays a warning message. |
| 5437 | 674 | */ |
| 15884 | 675 | #define purple_notify_warning(handle, title, primary, secondary) \ |
| 676 | purple_notify_message((handle), PURPLE_NOTIFY_MSG_WARNING, (title), \ | |
| 5437 | 677 | (primary), (secondary), NULL, NULL) |
| 678 | ||
| 679 | /** | |
| 15884 | 680 | * A wrapper for purple_notify_message that displays an error message. |
| 5437 | 681 | */ |
| 15884 | 682 | #define purple_notify_error(handle, title, primary, secondary) \ |
| 683 | purple_notify_message((handle), PURPLE_NOTIFY_MSG_ERROR, (title), \ | |
| 5437 | 684 | (primary), (secondary), NULL, NULL) |
| 685 | ||
| 686 | /*@}*/ | |
| 687 | ||
| 688 | /**************************************************************************/ | |
| 10566 | 689 | /** @name UI Registration Functions */ |
| 5437 | 690 | /**************************************************************************/ |
| 691 | /*@{*/ | |
| 692 | ||
| 693 | /** | |
| 694 | * Sets the UI operations structure to be used when displaying a | |
| 695 | * notification. | |
| 696 | * | |
| 697 | * @param ops The UI operations structure. | |
| 698 | */ | |
| 15884 | 699 | void purple_notify_set_ui_ops(PurpleNotifyUiOps *ops); |
| 5437 | 700 | |
| 701 | /** | |
| 702 | * Returns the UI operations structure to be used when displaying a | |
| 703 | * notification. | |
| 704 | * | |
|
6467
754d318cac4a
[gaim-migrate @ 6976]
Christian Hammond <chipx86@chipx86.com>
parents:
6465
diff
changeset
|
705 | * @return The UI operations structure. |
| 5437 | 706 | */ |
| 15884 | 707 | PurpleNotifyUiOps *purple_notify_get_ui_ops(void); |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5522
diff
changeset
|
708 | |
|
5497
da3c08f3af25
[gaim-migrate @ 5893]
Mark Doliner <markdoliner@pidgin.im>
parents:
5476
diff
changeset
|
709 | /*@}*/ |
| 5437 | 710 | |
| 12129 | 711 | /**************************************************************************/ |
| 712 | /** @name Notify Subsystem */ | |
| 713 | /**************************************************************************/ | |
| 714 | /*@{*/ | |
| 715 | ||
| 716 | /** | |
| 717 | * Returns the notify subsystem handle. | |
| 718 | * | |
| 719 | * @return The notify subsystem handle. | |
| 720 | */ | |
| 15884 | 721 | void *purple_notify_get_handle(void); |
| 12129 | 722 | |
| 723 | /** | |
| 724 | * Initializes the notify subsystem. | |
| 725 | */ | |
| 15884 | 726 | void purple_notify_init(void); |
| 12129 | 727 | |
| 728 | /** | |
| 729 | * Uninitializes the notify subsystem. | |
| 730 | */ | |
| 15884 | 731 | void purple_notify_uninit(void); |
| 12129 | 732 | |
| 733 | /*@}*/ | |
| 734 | ||
| 735 | ||
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5522
diff
changeset
|
736 | #ifdef __cplusplus |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5522
diff
changeset
|
737 | } |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5522
diff
changeset
|
738 | #endif |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5522
diff
changeset
|
739 | |
| 15884 | 740 | #endif /* _PURPLE_NOTIFY_H_ */ |