Tue, 16 Jul 2013 21:07:06 +0530
Made purple_notify_user_info_entry_destroy() public, so entries can be free'd after calling remove_entry
| 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; |
|
34793
07f8ceb4e690
Added GBoxed for PurpleNotifyUserInfo
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
35 | |
|
07f8ceb4e690
Added GBoxed for PurpleNotifyUserInfo
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
36 | #define PURPLE_TYPE_NOTIFY_USER_INFO (purple_notify_user_info_get_type()) |
|
32691
d6eb58903f8b
Hide struct PurpleNotifySearchColumn.
Andrew Victor <andrew.victor@mxit.com>
parents:
32604
diff
changeset
|
37 | typedef struct _PurpleNotifyUserInfo PurpleNotifyUserInfo; |
|
34793
07f8ceb4e690
Added GBoxed for PurpleNotifyUserInfo
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
38 | |
|
32691
d6eb58903f8b
Hide struct PurpleNotifySearchColumn.
Andrew Victor <andrew.victor@mxit.com>
parents:
32604
diff
changeset
|
39 | /** @copydoc _PurpleNotifySearchColumn */ |
|
d6eb58903f8b
Hide struct PurpleNotifySearchColumn.
Andrew Victor <andrew.victor@mxit.com>
parents:
32604
diff
changeset
|
40 | typedef struct _PurpleNotifySearchColumn PurpleNotifySearchColumn; |
|
15205
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
41 | |
| 9797 | 42 | #include "connection.h" |
| 43 | ||
|
32691
d6eb58903f8b
Hide struct PurpleNotifySearchColumn.
Andrew Victor <andrew.victor@mxit.com>
parents:
32604
diff
changeset
|
44 | |
| 5437 | 45 | /** |
|
12242
e7fc1748eb56
[gaim-migrate @ 14544]
Richard Laager <rlaager@pidgin.im>
parents:
12220
diff
changeset
|
46 | * Notification close callbacks. |
|
e7fc1748eb56
[gaim-migrate @ 14544]
Richard Laager <rlaager@pidgin.im>
parents:
12220
diff
changeset
|
47 | */ |
| 15884 | 48 | typedef void (*PurpleNotifyCloseCallback) (gpointer user_data); |
|
12242
e7fc1748eb56
[gaim-migrate @ 14544]
Richard Laager <rlaager@pidgin.im>
parents:
12220
diff
changeset
|
49 | |
|
12624
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
50 | |
|
12242
e7fc1748eb56
[gaim-migrate @ 14544]
Richard Laager <rlaager@pidgin.im>
parents:
12220
diff
changeset
|
51 | /** |
| 5437 | 52 | * Notification types. |
| 53 | */ | |
| 54 | typedef enum | |
| 55 | { | |
| 15884 | 56 | 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
|
57 | 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
|
58 | PURPLE_NOTIFY_EMAILS, /**< Multiple email notification. */ |
| 15884 | 59 | PURPLE_NOTIFY_FORMATTED, /**< Formatted text. */ |
| 60 | PURPLE_NOTIFY_SEARCHRESULTS, /**< Buddy search results. */ | |
| 61 | PURPLE_NOTIFY_USERINFO, /**< Formatted userinfo text. */ | |
| 62 | PURPLE_NOTIFY_URI /**< URI notification or display. */ | |
| 5437 | 63 | |
| 15884 | 64 | } PurpleNotifyType; |
| 5437 | 65 | |
|
12624
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
66 | |
| 5437 | 67 | /** |
| 68 | * Notification message types. | |
| 69 | */ | |
| 70 | typedef enum | |
| 71 | { | |
| 15884 | 72 | PURPLE_NOTIFY_MSG_ERROR = 0, /**< Error notification. */ |
| 73 | PURPLE_NOTIFY_MSG_WARNING, /**< Warning notification. */ | |
| 74 | PURPLE_NOTIFY_MSG_INFO /**< Information notification. */ | |
| 5437 | 75 | |
| 15884 | 76 | } PurpleNotifyMsgType; |
| 5437 | 77 | |
|
12624
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
78 | |
| 5437 | 79 | /** |
| 11359 | 80 | * The types of buttons |
| 81 | */ | |
| 82 | typedef enum | |
| 83 | { | |
| 15884 | 84 | PURPLE_NOTIFY_BUTTON_LABELED = 0, /**< special use, see _button_add_labeled */ |
| 85 | PURPLE_NOTIFY_BUTTON_CONTINUE = 1, | |
| 86 | PURPLE_NOTIFY_BUTTON_ADD, | |
| 87 | PURPLE_NOTIFY_BUTTON_INFO, | |
| 88 | PURPLE_NOTIFY_BUTTON_IM, | |
| 89 | PURPLE_NOTIFY_BUTTON_JOIN, | |
| 90 | PURPLE_NOTIFY_BUTTON_INVITE | |
| 91 | } PurpleNotifySearchButtonType; | |
| 11359 | 92 | |
| 93 | ||
| 94 | /** | |
| 95 | * Search results object. | |
| 96 | */ | |
| 97 | typedef struct | |
| 98 | { | |
| 99 | GList *columns; /**< List of the search column objects. */ | |
| 100 | GList *rows; /**< List of rows in the result. */ | |
| 101 | GList *buttons; /**< List of buttons to display. */ | |
| 102 | ||
| 15884 | 103 | } PurpleNotifySearchResults; |
| 11359 | 104 | |
|
15211
bb75b7bc10a8
[gaim-migrate @ 17935]
Evan Schoenberg <evands@pidgin.im>
parents:
15205
diff
changeset
|
105 | /** |
| 15884 | 106 | * Types of PurpleNotifyUserInfoEntry objects |
|
15211
bb75b7bc10a8
[gaim-migrate @ 17935]
Evan Schoenberg <evands@pidgin.im>
parents:
15205
diff
changeset
|
107 | */ |
|
bb75b7bc10a8
[gaim-migrate @ 17935]
Evan Schoenberg <evands@pidgin.im>
parents:
15205
diff
changeset
|
108 | typedef enum |
|
bb75b7bc10a8
[gaim-migrate @ 17935]
Evan Schoenberg <evands@pidgin.im>
parents:
15205
diff
changeset
|
109 | { |
| 15884 | 110 | PURPLE_NOTIFY_USER_INFO_ENTRY_PAIR = 0, |
| 111 | PURPLE_NOTIFY_USER_INFO_ENTRY_SECTION_BREAK, | |
| 112 | PURPLE_NOTIFY_USER_INFO_ENTRY_SECTION_HEADER | |
| 113 | } PurpleNotifyUserInfoEntryType; | |
|
12624
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
114 | |
| 11359 | 115 | |
|
12624
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
116 | |
|
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
117 | /** |
|
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
118 | * Callback for a button in a search result. |
|
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
119 | * |
| 15884 | 120 | * @param c the PurpleConnection passed to purple_notify_searchresults |
| 13641 | 121 | * @param row the contents of the selected row |
| 122 | * @param user_data User defined data. | |
|
12624
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
123 | */ |
| 15884 | 124 | typedef void (*PurpleNotifySearchResultsCallback)(PurpleConnection *c, GList *row, |
| 13641 | 125 | gpointer user_data); |
| 11359 | 126 | |
| 127 | ||
| 128 | /** | |
| 129 | * Definition of a button. | |
| 130 | */ | |
| 131 | typedef struct | |
| 132 | { | |
| 15884 | 133 | PurpleNotifySearchButtonType type; |
| 134 | PurpleNotifySearchResultsCallback callback; /**< Function to be called when clicked. */ | |
| 135 | char *label; /**< only for PURPLE_NOTIFY_BUTTON_LABELED */ | |
| 136 | } PurpleNotifySearchButton; | |
| 11359 | 137 | |
| 138 | ||
| 139 | /** | |
| 5437 | 140 | * Notification UI operations. |
| 141 | */ | |
| 142 | typedef struct | |
| 143 | { | |
| 15884 | 144 | void *(*notify_message)(PurpleNotifyMsgType type, const char *title, |
|
12624
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
145 | const char *primary, const char *secondary); |
|
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
146 | |
| 15884 | 147 | void *(*notify_email)(PurpleConnection *gc, |
|
12647
b00d9913117e
[gaim-migrate @ 14985]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
12625
diff
changeset
|
148 | const char *subject, const char *from, |
|
12624
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
149 | const char *to, const char *url); |
|
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
150 | |
| 15884 | 151 | void *(*notify_emails)(PurpleConnection *gc, |
|
12647
b00d9913117e
[gaim-migrate @ 14985]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
12625
diff
changeset
|
152 | size_t count, gboolean detailed, |
|
12624
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
153 | const char **subjects, const char **froms, |
|
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
154 | const char **tos, const char **urls); |
|
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
155 | |
|
6381
53203c44c731
[gaim-migrate @ 6886]
Christian Hammond <chipx86@chipx86.com>
parents:
6356
diff
changeset
|
156 | void *(*notify_formatted)(const char *title, const char *primary, |
|
12624
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
157 | const char *secondary, const char *text); |
|
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
158 | |
| 15884 | 159 | void *(*notify_searchresults)(PurpleConnection *gc, const char *title, |
|
12624
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
160 | const char *primary, const char *secondary, |
| 15884 | 161 | PurpleNotifySearchResults *results, gpointer user_data); |
|
12624
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
162 | |
| 15884 | 163 | void (*notify_searchresults_new_rows)(PurpleConnection *gc, |
| 164 | PurpleNotifySearchResults *results, | |
| 13641 | 165 | void *data); |
|
12624
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
166 | |
| 15884 | 167 | void *(*notify_userinfo)(PurpleConnection *gc, const char *who, |
| 168 | PurpleNotifyUserInfo *user_info); | |
|
12624
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
169 | |
|
10240
09342bc554d9
[gaim-migrate @ 11377]
Herman Bloggs <herman@bluedigits.com>
parents:
10209
diff
changeset
|
170 | void *(*notify_uri)(const char *uri); |
| 5437 | 171 | |
| 15884 | 172 | void (*close_notify)(PurpleNotifyType type, void *ui_handle); |
| 5437 | 173 | |
|
16743
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15997
diff
changeset
|
174 | 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
|
175 | 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
|
176 | 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
|
177 | void (*_purple_reserved4)(void); |
| 15884 | 178 | } PurpleNotifyUiOps; |
| 5437 | 179 | |
|
12624
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
180 | |
|
32787
7072f190d6ad
Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32691
diff
changeset
|
181 | G_BEGIN_DECLS |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5522
diff
changeset
|
182 | |
|
12624
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
183 | |
| 5437 | 184 | /**************************************************************************/ |
| 11359 | 185 | /** Search results notification API */ |
| 186 | /**************************************************************************/ | |
| 187 | /*@{*/ | |
| 188 | ||
| 189 | /** | |
| 190 | * Displays results from a buddy search. This can be, for example, | |
| 191 | * a window with a list of all found buddies, where you are given the | |
| 192 | * option of adding buddies to your buddy list. | |
| 193 | * | |
| 15884 | 194 | * @param gc The PurpleConnection handle associated with the information. |
| 11359 | 195 | * @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
|
196 | * will be "Search Results." |
| 11359 | 197 | * @param primary The main point of the message. |
| 198 | * @param secondary The secondary information. | |
| 15884 | 199 | * @param results The PurpleNotifySearchResults instance. |
| 11359 | 200 | * @param cb The callback to call when the user closes |
| 201 | * the notification. | |
| 13641 | 202 | * @param user_data The data to pass to the close callback and any other |
| 203 | * callback associated with a button. | |
| 11359 | 204 | * |
| 205 | * @return A UI-specific handle. | |
| 206 | */ | |
| 15884 | 207 | void *purple_notify_searchresults(PurpleConnection *gc, const char *title, |
| 11359 | 208 | const char *primary, const char *secondary, |
| 15884 | 209 | PurpleNotifySearchResults *results, PurpleNotifyCloseCallback cb, |
| 12220 | 210 | gpointer user_data); |
| 11359 | 211 | |
|
19868
af326d8f70b1
This function wasn't documented in the Doxygen stuff. If I've documented
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
212 | /** |
|
af326d8f70b1
This function wasn't documented in the Doxygen stuff. If I've documented
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
213 | * 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
|
214 | * |
|
af326d8f70b1
This function wasn't documented in the Doxygen stuff. If I've documented
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
215 | * @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
|
216 | */ |
| 15884 | 217 | void purple_notify_searchresults_free(PurpleNotifySearchResults *results); |
| 11359 | 218 | |
| 219 | /** | |
| 220 | * Replace old rows with the new. Reuse an existing window. | |
| 221 | * | |
| 15884 | 222 | * @param gc The PurpleConnection structure. |
| 223 | * @param results The PurpleNotifySearchResults structure. | |
| 224 | * @param data Data returned by the purple_notify_searchresults(). | |
| 11359 | 225 | */ |
| 15884 | 226 | void purple_notify_searchresults_new_rows(PurpleConnection *gc, |
| 227 | PurpleNotifySearchResults *results, | |
| 13641 | 228 | void *data); |
| 11359 | 229 | |
|
12624
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
230 | |
| 11359 | 231 | /** |
|
12624
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
232 | * Adds a stock button that will be displayed in the search results dialog. |
| 11359 | 233 | * |
| 234 | * @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
|
235 | * @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
|
236 | * can be displayed.) |
| 11359 | 237 | * @param cb Function that will be called on the click event. |
| 238 | */ | |
| 15884 | 239 | void purple_notify_searchresults_button_add(PurpleNotifySearchResults *results, |
| 240 | PurpleNotifySearchButtonType type, | |
| 241 | PurpleNotifySearchResultsCallback cb); | |
| 11359 | 242 | |
|
12624
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
243 | |
|
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
244 | /** |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
245 | * 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
|
246 | * dialog. |
|
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
247 | * |
|
12624
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
248 | * @param results The search results object |
|
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
249 | * @param label The label to display |
|
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
250 | * @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
|
251 | */ |
| 15884 | 252 | void purple_notify_searchresults_button_add_labeled(PurpleNotifySearchResults *results, |
|
12624
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
253 | const char *label, |
| 15884 | 254 | PurpleNotifySearchResultsCallback cb); |
|
12624
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
255 | |
|
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12323
diff
changeset
|
256 | |
| 11359 | 257 | /** |
| 258 | * Returns a newly created search results object. | |
| 259 | * | |
| 260 | * @return The new search results object. | |
| 261 | */ | |
| 15884 | 262 | PurpleNotifySearchResults *purple_notify_searchresults_new(void); |
| 11359 | 263 | |
| 264 | /** | |
|
31698
12d88a8ea37d
Document the default explicitly
Paul Aurich <darkrain42@pidgin.im>
parents:
31696
diff
changeset
|
265 | * 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
|
266 | * to being visible. |
| 11359 | 267 | * |
| 268 | * @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
|
269 | * |
| 11359 | 270 | * @return The new search column object. |
| 271 | */ | |
| 15884 | 272 | PurpleNotifySearchColumn *purple_notify_searchresults_column_new(const char *title); |
| 11359 | 273 | |
| 274 | /** | |
|
32691
d6eb58903f8b
Hide struct PurpleNotifySearchColumn.
Andrew Victor <andrew.victor@mxit.com>
parents:
32604
diff
changeset
|
275 | * Returns the title of the column |
|
d6eb58903f8b
Hide struct PurpleNotifySearchColumn.
Andrew Victor <andrew.victor@mxit.com>
parents:
32604
diff
changeset
|
276 | * |
|
d6eb58903f8b
Hide struct PurpleNotifySearchColumn.
Andrew Victor <andrew.victor@mxit.com>
parents:
32604
diff
changeset
|
277 | * @param column The search column object. |
|
d6eb58903f8b
Hide struct PurpleNotifySearchColumn.
Andrew Victor <andrew.victor@mxit.com>
parents:
32604
diff
changeset
|
278 | * |
|
d6eb58903f8b
Hide struct PurpleNotifySearchColumn.
Andrew Victor <andrew.victor@mxit.com>
parents:
32604
diff
changeset
|
279 | * @return The title of the column |
|
d6eb58903f8b
Hide struct PurpleNotifySearchColumn.
Andrew Victor <andrew.victor@mxit.com>
parents:
32604
diff
changeset
|
280 | */ |
|
d6eb58903f8b
Hide struct PurpleNotifySearchColumn.
Andrew Victor <andrew.victor@mxit.com>
parents:
32604
diff
changeset
|
281 | const char *purple_notify_searchresult_column_get_title(const PurpleNotifySearchColumn *column); |
|
d6eb58903f8b
Hide struct PurpleNotifySearchColumn.
Andrew Victor <andrew.victor@mxit.com>
parents:
32604
diff
changeset
|
282 | |
|
d6eb58903f8b
Hide struct PurpleNotifySearchColumn.
Andrew Victor <andrew.victor@mxit.com>
parents:
32604
diff
changeset
|
283 | /** |
| 31696 | 284 | * Sets whether or not a search result column is visible. |
| 285 | * | |
|
32554
0d844fac6679
Fix a bunch of tiny problems generating our doxygen documentation
Mark Doliner <markdoliner@pidgin.im>
parents:
32204
diff
changeset
|
286 | * @param column The search column object. |
| 31696 | 287 | * @param visible TRUE if visible, or FALSE if not. |
| 288 | */ | |
| 289 | void purple_notify_searchresult_column_set_visible(PurpleNotifySearchColumn *column, gboolean visible); | |
| 290 | ||
| 291 | /** | |
| 292 | * Returns whether or not a search result column is visible. | |
| 293 | * | |
|
32554
0d844fac6679
Fix a bunch of tiny problems generating our doxygen documentation
Mark Doliner <markdoliner@pidgin.im>
parents:
32204
diff
changeset
|
294 | * @param column The search column object. |
| 31696 | 295 | * |
| 296 | * @return TRUE if the search result column is visible. FALSE otherwise. | |
| 297 | */ | |
| 298 | gboolean purple_notify_searchresult_column_is_visible(const PurpleNotifySearchColumn *column); | |
| 299 | ||
| 300 | /** | |
| 11359 | 301 | * Adds a new column to the search result object. |
| 302 | * | |
| 303 | * @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
|
304 | * @param column The column that will be added to the result object. |
| 11359 | 305 | */ |
| 15884 | 306 | void purple_notify_searchresults_column_add(PurpleNotifySearchResults *results, |
| 307 | PurpleNotifySearchColumn *column); | |
| 11359 | 308 | |
| 309 | /** | |
| 310 | * Adds a new row of the results to the search results object. | |
| 311 | * | |
| 312 | * @param results The search results object. | |
| 313 | * @param row The row of the results. | |
| 314 | */ | |
| 15884 | 315 | void purple_notify_searchresults_row_add(PurpleNotifySearchResults *results, |
| 11359 | 316 | GList *row); |
|
25893
77f655480a0f
Slap some PURPLE_DISABLE_DEPRECATED checks around the functions Mark just
Richard Laager <rlaager@pidgin.im>
parents:
25890
diff
changeset
|
317 | |
| 11359 | 318 | /*@}*/ |
| 319 | ||
| 320 | /**************************************************************************/ | |
| 5437 | 321 | /** @name Notification API */ |
| 322 | /**************************************************************************/ | |
| 323 | /*@{*/ | |
| 324 | ||
| 325 | /** | |
| 326 | * Displays a notification message to the user. | |
| 327 | * | |
| 328 | * @param handle The plugin or connection handle. | |
| 329 | * @param type The notification type. | |
| 330 | * @param title The title of the message. | |
| 331 | * @param primary The main point of the message. | |
| 332 | * @param secondary The secondary information. | |
| 333 | * @param cb The callback to call when the user closes | |
| 334 | * the notification. | |
| 335 | * @param user_data The data to pass to the callback. | |
| 336 | * | |
| 337 | * @return A UI-specific handle. | |
| 338 | */ | |
| 15884 | 339 | void *purple_notify_message(void *handle, PurpleNotifyMsgType type, |
| 5437 | 340 | const char *title, const char *primary, |
| 15884 | 341 | const char *secondary, PurpleNotifyCloseCallback cb, |
| 12220 | 342 | gpointer user_data); |
| 5437 | 343 | |
| 344 | /** | |
|
23325
a374a26fe217
Use "email" and "Email" consistently. This is potentially controversial,
Richard Laager <rlaager@pidgin.im>
parents:
22762
diff
changeset
|
345 | * Displays a single email notification to the user. |
| 5437 | 346 | * |
| 347 | * @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
|
348 | * @param subject The subject of the email. |
| 5437 | 349 | * @param from The from address. |
| 350 | * @param to The destination address. | |
| 351 | * @param url The URL where the message can be read. | |
| 352 | * @param cb The callback to call when the user closes | |
| 353 | * the notification. | |
| 354 | * @param user_data The data to pass to the callback. | |
| 355 | * | |
| 356 | * @return A UI-specific handle. | |
| 357 | */ | |
| 15884 | 358 | void *purple_notify_email(void *handle, const char *subject, |
| 5437 | 359 | const char *from, const char *to, |
| 15884 | 360 | const char *url, PurpleNotifyCloseCallback cb, |
| 12220 | 361 | gpointer user_data); |
| 5437 | 362 | |
| 363 | /** | |
|
23325
a374a26fe217
Use "email" and "Email" consistently. This is potentially controversial,
Richard Laager <rlaager@pidgin.im>
parents:
22762
diff
changeset
|
364 | * Displays a notification for multiple emails to the user. |
| 5437 | 365 | * |
| 366 | * @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
|
367 | * @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
|
368 | * 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
|
369 | * the mail notification. |
|
23325
a374a26fe217
Use "email" and "Email" consistently. This is potentially controversial,
Richard Laager <rlaager@pidgin.im>
parents:
22762
diff
changeset
|
370 | * @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
|
371 | * arrays. |
| 5437 | 372 | * @param subjects The array of subjects. |
| 373 | * @param froms The array of from addresses. | |
| 374 | * @param tos The array of destination addresses. | |
|
6720
cdc5348dd848
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6467
diff
changeset
|
375 | * @param urls The URLs where the messages can be read. |
| 5437 | 376 | * @param cb The callback to call when the user closes |
| 377 | * the notification. | |
| 378 | * @param user_data The data to pass to the callback. | |
| 379 | * | |
| 380 | * @return A UI-specific handle. | |
| 381 | */ | |
| 15884 | 382 | void *purple_notify_emails(void *handle, size_t count, gboolean detailed, |
| 5437 | 383 | const char **subjects, const char **froms, |
| 384 | const char **tos, const char **urls, | |
| 15884 | 385 | PurpleNotifyCloseCallback cb, gpointer user_data); |
| 5437 | 386 | |
| 387 | /** | |
|
6381
53203c44c731
[gaim-migrate @ 6886]
Christian Hammond <chipx86@chipx86.com>
parents:
6356
diff
changeset
|
388 | * Displays a notification with formatted text. |
|
53203c44c731
[gaim-migrate @ 6886]
Christian Hammond <chipx86@chipx86.com>
parents:
6356
diff
changeset
|
389 | * |
|
53203c44c731
[gaim-migrate @ 6886]
Christian Hammond <chipx86@chipx86.com>
parents:
6356
diff
changeset
|
390 | * 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
|
391 | * IMs may send. |
|
53203c44c731
[gaim-migrate @ 6886]
Christian Hammond <chipx86@chipx86.com>
parents:
6356
diff
changeset
|
392 | * |
|
53203c44c731
[gaim-migrate @ 6886]
Christian Hammond <chipx86@chipx86.com>
parents:
6356
diff
changeset
|
393 | * @param handle The plugin or connection handle. |
|
53203c44c731
[gaim-migrate @ 6886]
Christian Hammond <chipx86@chipx86.com>
parents:
6356
diff
changeset
|
394 | * @param title The title of the message. |
|
53203c44c731
[gaim-migrate @ 6886]
Christian Hammond <chipx86@chipx86.com>
parents:
6356
diff
changeset
|
395 | * @param primary The main point of the message. |
|
53203c44c731
[gaim-migrate @ 6886]
Christian Hammond <chipx86@chipx86.com>
parents:
6356
diff
changeset
|
396 | * @param secondary The secondary information. |
|
53203c44c731
[gaim-migrate @ 6886]
Christian Hammond <chipx86@chipx86.com>
parents:
6356
diff
changeset
|
397 | * @param text The formatted text. |
|
53203c44c731
[gaim-migrate @ 6886]
Christian Hammond <chipx86@chipx86.com>
parents:
6356
diff
changeset
|
398 | * @param cb The callback to call when the user closes |
|
53203c44c731
[gaim-migrate @ 6886]
Christian Hammond <chipx86@chipx86.com>
parents:
6356
diff
changeset
|
399 | * the notification. |
|
6720
cdc5348dd848
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6467
diff
changeset
|
400 | * @param user_data The data to pass to the callback. |
|
6381
53203c44c731
[gaim-migrate @ 6886]
Christian Hammond <chipx86@chipx86.com>
parents:
6356
diff
changeset
|
401 | * |
|
53203c44c731
[gaim-migrate @ 6886]
Christian Hammond <chipx86@chipx86.com>
parents:
6356
diff
changeset
|
402 | * @return A UI-specific handle. |
|
53203c44c731
[gaim-migrate @ 6886]
Christian Hammond <chipx86@chipx86.com>
parents:
6356
diff
changeset
|
403 | */ |
| 15884 | 404 | void *purple_notify_formatted(void *handle, const char *title, |
|
6381
53203c44c731
[gaim-migrate @ 6886]
Christian Hammond <chipx86@chipx86.com>
parents:
6356
diff
changeset
|
405 | const char *primary, const char *secondary, |
| 15884 | 406 | const char *text, PurpleNotifyCloseCallback cb, gpointer user_data); |
|
6381
53203c44c731
[gaim-migrate @ 6886]
Christian Hammond <chipx86@chipx86.com>
parents:
6356
diff
changeset
|
407 | |
|
53203c44c731
[gaim-migrate @ 6886]
Christian Hammond <chipx86@chipx86.com>
parents:
6356
diff
changeset
|
408 | /** |
|
9800
1115830011b8
[gaim-migrate @ 10668]
Mark Doliner <markdoliner@pidgin.im>
parents:
9797
diff
changeset
|
409 | * Displays user information with formatted text, passing information giving |
|
1115830011b8
[gaim-migrate @ 10668]
Mark Doliner <markdoliner@pidgin.im>
parents:
9797
diff
changeset
|
410 | * the connection and username from which the user information came. |
| 9797 | 411 | * |
| 412 | * The text is essentially a stripped-down format of HTML, the same that | |
| 413 | * IMs may send. | |
| 414 | * | |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
415 | * @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
|
416 | * @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
|
417 | * @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
|
418 | * @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
|
419 | * @param user_data The data to pass to the callback. |
| 9797 | 420 | * |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
421 | * @return A UI-specific handle. |
| 9797 | 422 | */ |
| 15884 | 423 | void *purple_notify_userinfo(PurpleConnection *gc, const char *who, |
| 424 | PurpleNotifyUserInfo *user_info, PurpleNotifyCloseCallback cb, | |
| 12220 | 425 | gpointer user_data); |
| 9797 | 426 | |
| 427 | /** | |
|
34793
07f8ceb4e690
Added GBoxed for PurpleNotifyUserInfo
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
428 | * Returns the GType for the PurpleNotifyUserInfo boxed structure. |
|
07f8ceb4e690
Added GBoxed for PurpleNotifyUserInfo
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
429 | */ |
|
07f8ceb4e690
Added GBoxed for PurpleNotifyUserInfo
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
430 | GType purple_notify_user_info_get_type(void); |
|
07f8ceb4e690
Added GBoxed for PurpleNotifyUserInfo
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
431 | |
|
07f8ceb4e690
Added GBoxed for PurpleNotifyUserInfo
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
432 | /** |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
433 | * 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
|
434 | * purple_notify_userinfo() |
|
15205
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
435 | * |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
436 | * @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
|
437 | */ |
| 15884 | 438 | PurpleNotifyUserInfo *purple_notify_user_info_new(void); |
|
15205
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
439 | |
|
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
440 | /** |
| 15884 | 441 | * Destroy a PurpleNotifyUserInfo |
|
15205
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
442 | * |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
443 | * @param user_info The PurpleNotifyUserInfo |
|
15205
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
444 | */ |
| 15884 | 445 | void purple_notify_user_info_destroy(PurpleNotifyUserInfo *user_info); |
|
15205
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
446 | |
|
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
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 | * 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
|
449 | * PurpleNotifyUserInfo |
|
15325
d1dcb41d845b
[gaim-migrate @ 18053]
Evan Schoenberg <evands@pidgin.im>
parents:
15215
diff
changeset
|
450 | * |
|
32193
42173d1c1317
Change PurpleNotifyUserInfo->user_info_entries from a GList to a GQueue.
Mark Doliner <markdoliner@pidgin.im>
parents:
32191
diff
changeset
|
451 | * 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
|
452 | * 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
|
453 | * 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
|
454 | * 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
|
455 | * destroyed. |
|
15328
113b0b520010
[gaim-migrate @ 18056]
Evan Schoenberg <evands@pidgin.im>
parents:
15325
diff
changeset
|
456 | * |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
457 | * 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
|
458 | * 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
|
459 | * |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
460 | * @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
|
461 | * |
|
32193
42173d1c1317
Change PurpleNotifyUserInfo->user_info_entries from a GList to a GQueue.
Mark Doliner <markdoliner@pidgin.im>
parents:
32191
diff
changeset
|
462 | * @constreturn A GQueue of PurpleNotifyUserInfoEntry objects. |
|
15205
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
463 | */ |
|
32193
42173d1c1317
Change PurpleNotifyUserInfo->user_info_entries from a GList to a GQueue.
Mark Doliner <markdoliner@pidgin.im>
parents:
32191
diff
changeset
|
464 | GQueue *purple_notify_user_info_get_entries(PurpleNotifyUserInfo *user_info); |
|
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 | /** |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
467 | * 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
|
468 | * entries with newline |
|
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 newline The separation character |
|
15205
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
472 | */ |
| 15884 | 473 | 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
|
474 | |
|
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
475 | /** |
| 15884 | 476 | * Add a label/value pair to a PurpleNotifyUserInfo object. |
| 477 | * 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
|
478 | * |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
479 | * @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
|
480 | * @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
|
481 | * 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
|
482 | * 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
|
483 | * label. |
|
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
484 | * @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
|
485 | * 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
|
486 | * 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
|
487 | * 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
|
488 | * 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
|
489 | * 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
|
490 | * include a colon if it would otherwise. |
|
15205
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
491 | */ |
|
32191
a4668d9dc8d1
Rename purple_notify_user_info_add_pair to
Mark Doliner <markdoliner@pidgin.im>
parents:
32143
diff
changeset
|
492 | 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
|
493 | |
|
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
494 | /** |
|
32191
a4668d9dc8d1
Rename purple_notify_user_info_add_pair to
Mark Doliner <markdoliner@pidgin.im>
parents:
32143
diff
changeset
|
495 | * 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
|
496 | * 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
|
497 | */ |
|
9f833935ecd7
Add a purple_notify_user_info_add_pair_plaintext function that accepts a
Mark Doliner <markdoliner@pidgin.im>
parents:
27346
diff
changeset
|
498 | 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
|
499 | |
|
9f833935ecd7
Add a purple_notify_user_info_add_pair_plaintext function that accepts a
Mark Doliner <markdoliner@pidgin.im>
parents:
27346
diff
changeset
|
500 | /** |
|
32204
2a09624616c3
Actually commit the purple_notify_user_info_prepend_pair_plaintext
Mark Doliner <markdoliner@pidgin.im>
parents:
32193
diff
changeset
|
501 | * 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
|
502 | * at the beginning of the list. |
|
15205
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
503 | */ |
|
32204
2a09624616c3
Actually commit the purple_notify_user_info_prepend_pair_plaintext
Mark Doliner <markdoliner@pidgin.im>
parents:
32193
diff
changeset
|
504 | 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
|
505 | |
|
2a09624616c3
Actually commit the purple_notify_user_info_prepend_pair_plaintext
Mark Doliner <markdoliner@pidgin.im>
parents:
32193
diff
changeset
|
506 | /** |
|
2a09624616c3
Actually commit the purple_notify_user_info_prepend_pair_plaintext
Mark Doliner <markdoliner@pidgin.im>
parents:
32193
diff
changeset
|
507 | * 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
|
508 | * 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
|
509 | */ |
|
2a09624616c3
Actually commit the purple_notify_user_info_prepend_pair_plaintext
Mark Doliner <markdoliner@pidgin.im>
parents:
32193
diff
changeset
|
510 | 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
|
511 | |
|
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
512 | /** |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
513 | * 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
|
514 | * without freeing the entry. |
|
15328
113b0b520010
[gaim-migrate @ 18056]
Evan Schoenberg <evands@pidgin.im>
parents:
15325
diff
changeset
|
515 | * |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
516 | * @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
|
517 | * @param user_info_entry The PurpleNotifyUserInfoEntry |
|
15328
113b0b520010
[gaim-migrate @ 18056]
Evan Schoenberg <evands@pidgin.im>
parents:
15325
diff
changeset
|
518 | */ |
| 15884 | 519 | void purple_notify_user_info_remove_entry(PurpleNotifyUserInfo *user_info, PurpleNotifyUserInfoEntry *user_info_entry); |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
520 | |
|
15328
113b0b520010
[gaim-migrate @ 18056]
Evan Schoenberg <evands@pidgin.im>
parents:
15325
diff
changeset
|
521 | /** |
| 15884 | 522 | * Create a new PurpleNotifyUserInfoEntry |
|
15325
d1dcb41d845b
[gaim-migrate @ 18053]
Evan Schoenberg <evands@pidgin.im>
parents:
15215
diff
changeset
|
523 | * |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
524 | * 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
|
525 | * 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
|
526 | * 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
|
527 | * 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
|
528 | * 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
|
529 | * 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
|
530 | * methods for creating entries and adding them to a PurpleNotifyUserInfo. |
|
15325
d1dcb41d845b
[gaim-migrate @ 18053]
Evan Schoenberg <evands@pidgin.im>
parents:
15215
diff
changeset
|
531 | * |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
532 | * @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
|
533 | * 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
|
534 | * 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
|
535 | * @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
|
536 | * 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
|
537 | * 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
|
538 | * colon if it would otherwise. |
|
15325
d1dcb41d845b
[gaim-migrate @ 18053]
Evan Schoenberg <evands@pidgin.im>
parents:
15215
diff
changeset
|
539 | * |
| 15884 | 540 | * @result A new PurpleNotifyUserInfoEntry |
|
15325
d1dcb41d845b
[gaim-migrate @ 18053]
Evan Schoenberg <evands@pidgin.im>
parents:
15215
diff
changeset
|
541 | */ |
| 15884 | 542 | 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
|
543 | |
|
d1dcb41d845b
[gaim-migrate @ 18053]
Evan Schoenberg <evands@pidgin.im>
parents:
15215
diff
changeset
|
544 | /** |
|
34795
979a2d8fb770
Made purple_notify_user_info_entry_destroy() public, so entries can be free'd after calling remove_entry
Ankit Vani <a@nevitus.org>
parents:
34793
diff
changeset
|
545 | * Destroy a PurpleNotifyUserInfoEntry |
|
979a2d8fb770
Made purple_notify_user_info_entry_destroy() public, so entries can be free'd after calling remove_entry
Ankit Vani <a@nevitus.org>
parents:
34793
diff
changeset
|
546 | * |
|
979a2d8fb770
Made purple_notify_user_info_entry_destroy() public, so entries can be free'd after calling remove_entry
Ankit Vani <a@nevitus.org>
parents:
34793
diff
changeset
|
547 | * @param user_info_entry The PurpleNotifyUserInfoEntry |
|
979a2d8fb770
Made purple_notify_user_info_entry_destroy() public, so entries can be free'd after calling remove_entry
Ankit Vani <a@nevitus.org>
parents:
34793
diff
changeset
|
548 | */ |
|
979a2d8fb770
Made purple_notify_user_info_entry_destroy() public, so entries can be free'd after calling remove_entry
Ankit Vani <a@nevitus.org>
parents:
34793
diff
changeset
|
549 | void purple_notify_user_info_entry_destroy(PurpleNotifyUserInfoEntry *user_info_entry); |
|
979a2d8fb770
Made purple_notify_user_info_entry_destroy() public, so entries can be free'd after calling remove_entry
Ankit Vani <a@nevitus.org>
parents:
34793
diff
changeset
|
550 | |
|
979a2d8fb770
Made purple_notify_user_info_entry_destroy() public, so entries can be free'd after calling remove_entry
Ankit Vani <a@nevitus.org>
parents:
34793
diff
changeset
|
551 | /** |
|
15205
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
552 | * 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
|
553 | * |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
554 | * @param user_info The PurpleNotifyUserInfo |
|
15205
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
555 | */ |
| 15884 | 556 | 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
|
557 | |
|
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
558 | /** |
|
23346
fceca7f4710f
Added prepend functions for notify_user_info section headers and breaks
Evan Schoenberg <evands@pidgin.im>
parents:
23325
diff
changeset
|
559 | * 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
|
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 |
|
23346
fceca7f4710f
Added prepend functions for notify_user_info section headers and breaks
Evan Schoenberg <evands@pidgin.im>
parents:
23325
diff
changeset
|
562 | */ |
|
fceca7f4710f
Added prepend functions for notify_user_info section headers and breaks
Evan Schoenberg <evands@pidgin.im>
parents:
23325
diff
changeset
|
563 | 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
|
564 | |
|
23346
fceca7f4710f
Added prepend functions for notify_user_info section headers and breaks
Evan Schoenberg <evands@pidgin.im>
parents:
23325
diff
changeset
|
565 | /** |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
566 | * 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
|
567 | * from other text. |
|
15205
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
568 | * |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
569 | * @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
|
570 | * @param label The name of the section |
|
15205
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
571 | */ |
| 15884 | 572 | 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
|
573 | |
|
23346
fceca7f4710f
Added prepend functions for notify_user_info section headers and breaks
Evan Schoenberg <evands@pidgin.im>
parents:
23325
diff
changeset
|
574 | /** |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
575 | * 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
|
576 | * 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
|
577 | * |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
578 | * @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
|
579 | * @param label The name of the section |
|
23346
fceca7f4710f
Added prepend functions for notify_user_info section headers and breaks
Evan Schoenberg <evands@pidgin.im>
parents:
23325
diff
changeset
|
580 | */ |
|
fceca7f4710f
Added prepend functions for notify_user_info section headers and breaks
Evan Schoenberg <evands@pidgin.im>
parents:
23325
diff
changeset
|
581 | 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
|
582 | |
|
15205
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
583 | /** |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
584 | * 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
|
585 | * 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
|
586 | */ |
| 15884 | 587 | 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
|
588 | |
|
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
589 | /** |
| 15884 | 590 | * Get the label for a PurpleNotifyUserInfoEntry |
|
15205
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
591 | * |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
592 | * @param user_info_entry The PurpleNotifyUserInfoEntry |
|
15205
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
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 | * @return The label |
|
15205
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
595 | */ |
|
22762
7f13bec07bad
constify the return value from purple_notify_user_info_entry_get_label
Mark Doliner <markdoliner@pidgin.im>
parents:
21453
diff
changeset
|
596 | 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
|
597 | |
|
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
598 | /** |
| 15884 | 599 | * Set the label for a PurpleNotifyUserInfoEntry |
|
15325
d1dcb41d845b
[gaim-migrate @ 18053]
Evan Schoenberg <evands@pidgin.im>
parents:
15215
diff
changeset
|
600 | * |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
601 | * @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
|
602 | * @param label The label |
|
15325
d1dcb41d845b
[gaim-migrate @ 18053]
Evan Schoenberg <evands@pidgin.im>
parents:
15215
diff
changeset
|
603 | */ |
| 15884 | 604 | 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
|
605 | |
|
d1dcb41d845b
[gaim-migrate @ 18053]
Evan Schoenberg <evands@pidgin.im>
parents:
15215
diff
changeset
|
606 | /** |
| 15884 | 607 | * Get the value for a PurpleNotifyUserInfoEntry |
|
15205
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
608 | * |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
609 | * @param user_info_entry The PurpleNotifyUserInfoEntry |
|
15205
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
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 | * @result The value |
|
15205
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
612 | */ |
|
22762
7f13bec07bad
constify the return value from purple_notify_user_info_entry_get_label
Mark Doliner <markdoliner@pidgin.im>
parents:
21453
diff
changeset
|
613 | 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
|
614 | |
|
f642029b2f97
[gaim-migrate @ 17929]
Evan Schoenberg <evands@pidgin.im>
parents:
14254
diff
changeset
|
615 | /** |
| 15884 | 616 | * Set the value for a PurpleNotifyUserInfoEntry |
|
15325
d1dcb41d845b
[gaim-migrate @ 18053]
Evan Schoenberg <evands@pidgin.im>
parents:
15215
diff
changeset
|
617 | * |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
618 | * @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
|
619 | * @param value The value |
|
15325
d1dcb41d845b
[gaim-migrate @ 18053]
Evan Schoenberg <evands@pidgin.im>
parents:
15215
diff
changeset
|
620 | */ |
| 15884 | 621 | 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
|
622 | |
|
d1dcb41d845b
[gaim-migrate @ 18053]
Evan Schoenberg <evands@pidgin.im>
parents:
15215
diff
changeset
|
623 | |
|
d1dcb41d845b
[gaim-migrate @ 18053]
Evan Schoenberg <evands@pidgin.im>
parents:
15215
diff
changeset
|
624 | /** |
| 15884 | 625 | * Get the type of a PurpleNotifyUserInfoEntry |
|
15325
d1dcb41d845b
[gaim-migrate @ 18053]
Evan Schoenberg <evands@pidgin.im>
parents:
15215
diff
changeset
|
626 | * |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
627 | * @param user_info_entry The 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 | * @return The PurpleNotifyUserInfoEntryType |
|
15325
d1dcb41d845b
[gaim-migrate @ 18053]
Evan Schoenberg <evands@pidgin.im>
parents:
15215
diff
changeset
|
630 | */ |
| 15884 | 631 | 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
|
632 | |
|
d1dcb41d845b
[gaim-migrate @ 18053]
Evan Schoenberg <evands@pidgin.im>
parents:
15215
diff
changeset
|
633 | /** |
| 15884 | 634 | * Set the type of a PurpleNotifyUserInfoEntry |
|
15325
d1dcb41d845b
[gaim-migrate @ 18053]
Evan Schoenberg <evands@pidgin.im>
parents:
15215
diff
changeset
|
635 | * |
|
24702
55805ee6a45b
Remove stray whitespace and wrap the function comments at less than 80
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
636 | * @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
|
637 | * @param type The PurpleNotifyUserInfoEntryType |
|
15325
d1dcb41d845b
[gaim-migrate @ 18053]
Evan Schoenberg <evands@pidgin.im>
parents:
15215
diff
changeset
|
638 | */ |
| 15884 | 639 | void purple_notify_user_info_entry_set_type(PurpleNotifyUserInfoEntry *user_info_entry, |
| 640 | PurpleNotifyUserInfoEntryType type); | |
|
15325
d1dcb41d845b
[gaim-migrate @ 18053]
Evan Schoenberg <evands@pidgin.im>
parents:
15215
diff
changeset
|
641 | |
|
d1dcb41d845b
[gaim-migrate @ 18053]
Evan Schoenberg <evands@pidgin.im>
parents:
15215
diff
changeset
|
642 | /** |
|
6465
bd201d637ff4
[gaim-migrate @ 6974]
Christian Hammond <chipx86@chipx86.com>
parents:
6381
diff
changeset
|
643 | * Opens a URI or somehow presents it to the user. |
|
bd201d637ff4
[gaim-migrate @ 6974]
Christian Hammond <chipx86@chipx86.com>
parents:
6381
diff
changeset
|
644 | * |
|
10240
09342bc554d9
[gaim-migrate @ 11377]
Herman Bloggs <herman@bluedigits.com>
parents:
10209
diff
changeset
|
645 | * @param handle The plugin or connection handle. |
|
09342bc554d9
[gaim-migrate @ 11377]
Herman Bloggs <herman@bluedigits.com>
parents:
10209
diff
changeset
|
646 | * @param uri The URI to display or go to. |
|
6465
bd201d637ff4
[gaim-migrate @ 6974]
Christian Hammond <chipx86@chipx86.com>
parents:
6381
diff
changeset
|
647 | * |
|
bd201d637ff4
[gaim-migrate @ 6974]
Christian Hammond <chipx86@chipx86.com>
parents:
6381
diff
changeset
|
648 | * @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
|
649 | * 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
|
650 | * similar. |
|
bd201d637ff4
[gaim-migrate @ 6974]
Christian Hammond <chipx86@chipx86.com>
parents:
6381
diff
changeset
|
651 | */ |
| 15884 | 652 | void *purple_notify_uri(void *handle, const char *uri); |
|
6465
bd201d637ff4
[gaim-migrate @ 6974]
Christian Hammond <chipx86@chipx86.com>
parents:
6381
diff
changeset
|
653 | |
|
bd201d637ff4
[gaim-migrate @ 6974]
Christian Hammond <chipx86@chipx86.com>
parents:
6381
diff
changeset
|
654 | /** |
| 5437 | 655 | * Closes a notification. |
| 656 | * | |
| 657 | * This should be used only by the UI operation functions and part of the | |
| 658 | * core. | |
| 659 | * | |
|
5476
6f863ea68018
[gaim-migrate @ 5872]
Christian Hammond <chipx86@chipx86.com>
parents:
5437
diff
changeset
|
660 | * @param type The notification type. |
|
6f863ea68018
[gaim-migrate @ 5872]
Christian Hammond <chipx86@chipx86.com>
parents:
5437
diff
changeset
|
661 | * @param ui_handle The notification UI handle. |
| 5437 | 662 | */ |
| 15884 | 663 | void purple_notify_close(PurpleNotifyType type, void *ui_handle); |
| 5437 | 664 | |
| 665 | /** | |
| 666 | * Closes all notifications registered with the specified handle. | |
| 667 | * | |
| 668 | * @param handle The handle. | |
| 669 | */ | |
| 15884 | 670 | void purple_notify_close_with_handle(void *handle); |
| 5437 | 671 | |
| 672 | /** | |
| 15884 | 673 | * A wrapper for purple_notify_message that displays an information message. |
| 5437 | 674 | */ |
| 15884 | 675 | #define purple_notify_info(handle, title, primary, secondary) \ |
| 676 | purple_notify_message((handle), PURPLE_NOTIFY_MSG_INFO, (title), \ | |
| 5437 | 677 | (primary), (secondary), NULL, NULL) |
| 678 | ||
| 679 | /** | |
| 15884 | 680 | * A wrapper for purple_notify_message that displays a warning message. |
| 5437 | 681 | */ |
| 15884 | 682 | #define purple_notify_warning(handle, title, primary, secondary) \ |
| 683 | purple_notify_message((handle), PURPLE_NOTIFY_MSG_WARNING, (title), \ | |
| 5437 | 684 | (primary), (secondary), NULL, NULL) |
| 685 | ||
| 686 | /** | |
| 15884 | 687 | * A wrapper for purple_notify_message that displays an error message. |
| 5437 | 688 | */ |
| 15884 | 689 | #define purple_notify_error(handle, title, primary, secondary) \ |
| 690 | purple_notify_message((handle), PURPLE_NOTIFY_MSG_ERROR, (title), \ | |
| 5437 | 691 | (primary), (secondary), NULL, NULL) |
| 692 | ||
| 693 | /*@}*/ | |
| 694 | ||
| 695 | /**************************************************************************/ | |
| 10566 | 696 | /** @name UI Registration Functions */ |
| 5437 | 697 | /**************************************************************************/ |
| 698 | /*@{*/ | |
| 699 | ||
| 700 | /** | |
| 701 | * Sets the UI operations structure to be used when displaying a | |
| 702 | * notification. | |
| 703 | * | |
| 704 | * @param ops The UI operations structure. | |
| 705 | */ | |
| 15884 | 706 | void purple_notify_set_ui_ops(PurpleNotifyUiOps *ops); |
| 5437 | 707 | |
| 708 | /** | |
| 709 | * Returns the UI operations structure to be used when displaying a | |
| 710 | * notification. | |
| 711 | * | |
|
6467
754d318cac4a
[gaim-migrate @ 6976]
Christian Hammond <chipx86@chipx86.com>
parents:
6465
diff
changeset
|
712 | * @return The UI operations structure. |
| 5437 | 713 | */ |
| 15884 | 714 | PurpleNotifyUiOps *purple_notify_get_ui_ops(void); |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5522
diff
changeset
|
715 | |
|
5497
da3c08f3af25
[gaim-migrate @ 5893]
Mark Doliner <markdoliner@pidgin.im>
parents:
5476
diff
changeset
|
716 | /*@}*/ |
| 5437 | 717 | |
| 12129 | 718 | /**************************************************************************/ |
| 719 | /** @name Notify Subsystem */ | |
| 720 | /**************************************************************************/ | |
| 721 | /*@{*/ | |
| 722 | ||
| 723 | /** | |
| 724 | * Returns the notify subsystem handle. | |
| 725 | * | |
| 726 | * @return The notify subsystem handle. | |
| 727 | */ | |
| 15884 | 728 | void *purple_notify_get_handle(void); |
| 12129 | 729 | |
| 730 | /** | |
| 731 | * Initializes the notify subsystem. | |
| 732 | */ | |
| 15884 | 733 | void purple_notify_init(void); |
| 12129 | 734 | |
| 735 | /** | |
| 736 | * Uninitializes the notify subsystem. | |
| 737 | */ | |
| 15884 | 738 | void purple_notify_uninit(void); |
| 12129 | 739 | |
| 740 | /*@}*/ | |
| 741 | ||
| 742 | ||
|
32787
7072f190d6ad
Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32691
diff
changeset
|
743 | G_END_DECLS |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5522
diff
changeset
|
744 | |
| 15884 | 745 | #endif /* _PURPLE_NOTIFY_H_ */ |