Wed, 29 Jan 2014 10:49:02 +0530
Revert changes to doc comments
| 5477 | 1 | /** |
| 2 | * @file request.h Request API | |
| 3 | * @ingroup core | |
|
20147
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19859
diff
changeset
|
4 | */ |
|
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19859
diff
changeset
|
5 | |
|
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19859
diff
changeset
|
6 | /* purple |
| 5477 | 7 | * |
| 15884 | 8 | * Purple is the legal property of its developers, whose names are too numerous |
| 8046 | 9 | * to list here. Please refer to the COPYRIGHT file distributed with this |
| 10 | * source distribution. | |
|
7035
76bca80cd91d
[gaim-migrate @ 7598]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
11 | * |
| 5477 | 12 | * This program is free software; you can redistribute it and/or modify |
| 13 | * it under the terms of the GNU General Public License as published by | |
| 14 | * the Free Software Foundation; either version 2 of the License, or | |
| 15 | * (at your option) any later version. | |
| 16 | * | |
| 17 | * This program is distributed in the hope that it will be useful, | |
| 18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 20 | * GNU General Public License for more details. | |
| 21 | * | |
| 22 | * You should have received a copy of the GNU General Public License | |
| 23 | * 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:
19585
diff
changeset
|
24 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 5477 | 25 | */ |
| 15884 | 26 | #ifndef _PURPLE_REQUEST_H_ |
| 27 | #define _PURPLE_REQUEST_H_ | |
| 5477 | 28 | |
| 29 | #include <stdlib.h> | |
| 30 | #include <glib-object.h> | |
| 31 | #include <glib.h> | |
| 32 | ||
|
34185
cb2fe6b04447
Initial support for keyring settings
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33237
diff
changeset
|
33 | #include "certificate.h" |
|
36782
64936dae41a3
Merged soc.2013.gobjectification branch
Ankit Vani <a@nevitus.org>
parents:
36766
diff
changeset
|
34 | #include "conversation.h" |
|
34502
433382371e89
Request API: datasheet field
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34501
diff
changeset
|
35 | #include "request-datasheet.h" |
|
34185
cb2fe6b04447
Initial support for keyring settings
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33237
diff
changeset
|
36 | |
|
32554
0d844fac6679
Fix a bunch of tiny problems generating our doxygen documentation
Mark Doliner <markdoliner@pidgin.im>
parents:
32531
diff
changeset
|
37 | /** |
|
0d844fac6679
Fix a bunch of tiny problems generating our doxygen documentation
Mark Doliner <markdoliner@pidgin.im>
parents:
32531
diff
changeset
|
38 | * A request field. |
|
0d844fac6679
Fix a bunch of tiny problems generating our doxygen documentation
Mark Doliner <markdoliner@pidgin.im>
parents:
32531
diff
changeset
|
39 | */ |
|
24984
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
40 | typedef struct _PurpleRequestField PurpleRequestField; |
|
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
41 | |
|
32273
55a194e489bb
A small bit of hide-a-struct
Mark Doliner <markdoliner@pidgin.im>
parents:
32216
diff
changeset
|
42 | /** |
|
55a194e489bb
A small bit of hide-a-struct
Mark Doliner <markdoliner@pidgin.im>
parents:
32216
diff
changeset
|
43 | * Multiple fields request data. |
|
55a194e489bb
A small bit of hide-a-struct
Mark Doliner <markdoliner@pidgin.im>
parents:
32216
diff
changeset
|
44 | */ |
|
55a194e489bb
A small bit of hide-a-struct
Mark Doliner <markdoliner@pidgin.im>
parents:
32216
diff
changeset
|
45 | typedef struct _PurpleRequestFields PurpleRequestFields; |
|
55a194e489bb
A small bit of hide-a-struct
Mark Doliner <markdoliner@pidgin.im>
parents:
32216
diff
changeset
|
46 | |
|
55a194e489bb
A small bit of hide-a-struct
Mark Doliner <markdoliner@pidgin.im>
parents:
32216
diff
changeset
|
47 | /** |
|
55a194e489bb
A small bit of hide-a-struct
Mark Doliner <markdoliner@pidgin.im>
parents:
32216
diff
changeset
|
48 | * A group of fields with a title. |
|
55a194e489bb
A small bit of hide-a-struct
Mark Doliner <markdoliner@pidgin.im>
parents:
32216
diff
changeset
|
49 | */ |
|
55a194e489bb
A small bit of hide-a-struct
Mark Doliner <markdoliner@pidgin.im>
parents:
32216
diff
changeset
|
50 | typedef struct _PurpleRequestFieldGroup PurpleRequestFieldGroup; |
|
55a194e489bb
A small bit of hide-a-struct
Mark Doliner <markdoliner@pidgin.im>
parents:
32216
diff
changeset
|
51 | |
|
34329
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
52 | /** |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
53 | * Common parameters for UI operations. |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
54 | */ |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
55 | typedef struct _PurpleRequestCommonParameters PurpleRequestCommonParameters; |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
56 | |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
57 | #include "account.h" |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
58 | |
| 15884 | 59 | #define PURPLE_DEFAULT_ACTION_NONE -1 |
|
9948
2642975ffb85
[gaim-migrate @ 10844]
Dave West <kat@users.sourceforge.net>
parents:
9502
diff
changeset
|
60 | |
| 5477 | 61 | /** |
| 62 | * Request types. | |
| 63 | */ | |
| 64 | typedef enum | |
| 65 | { | |
| 15884 | 66 | PURPLE_REQUEST_INPUT = 0, /**< Text input request. */ |
| 67 | PURPLE_REQUEST_CHOICE, /**< Multiple-choice request. */ | |
| 68 | PURPLE_REQUEST_ACTION, /**< Action request. */ | |
|
34443
b7926ff76ed6
Request API: implement purple_request_wait
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34341
diff
changeset
|
69 | PURPLE_REQUEST_WAIT, /**< Please wait dialog. */ |
| 15884 | 70 | PURPLE_REQUEST_FIELDS, /**< Multiple fields request. */ |
| 71 | PURPLE_REQUEST_FILE, /**< File open or save request. */ | |
| 72 | PURPLE_REQUEST_FOLDER /**< Folder selection request. */ | |
| 5477 | 73 | |
| 15884 | 74 | } PurpleRequestType; |
| 5477 | 75 | |
| 76 | /** | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
77 | * A type of field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
78 | */ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
79 | typedef enum |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
80 | { |
| 15884 | 81 | PURPLE_REQUEST_FIELD_NONE, |
| 82 | PURPLE_REQUEST_FIELD_STRING, | |
| 83 | PURPLE_REQUEST_FIELD_INTEGER, | |
| 84 | PURPLE_REQUEST_FIELD_BOOLEAN, | |
| 85 | PURPLE_REQUEST_FIELD_CHOICE, | |
| 86 | PURPLE_REQUEST_FIELD_LIST, | |
| 87 | PURPLE_REQUEST_FIELD_LABEL, | |
| 88 | PURPLE_REQUEST_FIELD_IMAGE, | |
|
32886
359ad954dccc
Add PurpleCertificate request field API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
89 | PURPLE_REQUEST_FIELD_ACCOUNT, |
|
34502
433382371e89
Request API: datasheet field
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34501
diff
changeset
|
90 | PURPLE_REQUEST_FIELD_CERTIFICATE, |
|
433382371e89
Request API: datasheet field
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34501
diff
changeset
|
91 | PURPLE_REQUEST_FIELD_DATASHEET |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
92 | |
| 15884 | 93 | } PurpleRequestFieldType; |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
94 | |
|
34335
2496c53cd401
Request API: HTML feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34334
diff
changeset
|
95 | typedef enum |
|
2496c53cd401
Request API: HTML feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34334
diff
changeset
|
96 | { |
|
2496c53cd401
Request API: HTML feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34334
diff
changeset
|
97 | PURPLE_REQUEST_FEATURE_HTML = 0x00000001 |
|
2496c53cd401
Request API: HTML feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34334
diff
changeset
|
98 | } PurpleRequestFeature; |
|
2496c53cd401
Request API: HTML feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34334
diff
changeset
|
99 | |
|
34336
5f3ec29a886b
Request API: the ability to set stock icons
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34335
diff
changeset
|
100 | typedef enum |
|
5f3ec29a886b
Request API: the ability to set stock icons
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34335
diff
changeset
|
101 | { |
|
34443
b7926ff76ed6
Request API: implement purple_request_wait
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34341
diff
changeset
|
102 | PURPLE_REQUEST_ICON_DEFAULT = 0, |
|
b7926ff76ed6
Request API: implement purple_request_wait
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34341
diff
changeset
|
103 | PURPLE_REQUEST_ICON_REQUEST, |
|
34336
5f3ec29a886b
Request API: the ability to set stock icons
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34335
diff
changeset
|
104 | PURPLE_REQUEST_ICON_DIALOG, |
|
34443
b7926ff76ed6
Request API: implement purple_request_wait
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34341
diff
changeset
|
105 | PURPLE_REQUEST_ICON_WAIT, |
|
34336
5f3ec29a886b
Request API: the ability to set stock icons
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34335
diff
changeset
|
106 | PURPLE_REQUEST_ICON_INFO, |
|
5f3ec29a886b
Request API: the ability to set stock icons
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34335
diff
changeset
|
107 | PURPLE_REQUEST_ICON_WARNING, |
|
5f3ec29a886b
Request API: the ability to set stock icons
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34335
diff
changeset
|
108 | PURPLE_REQUEST_ICON_ERROR |
|
5f3ec29a886b
Request API: the ability to set stock icons
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34335
diff
changeset
|
109 | } PurpleRequestIconType; |
|
5f3ec29a886b
Request API: the ability to set stock icons
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34335
diff
changeset
|
110 | |
|
34448
e15d91a77cb3
Request API: PURPLE_REQUEST_WAIT with progress bar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34444
diff
changeset
|
111 | typedef void (*PurpleRequestCancelCb)(gpointer); |
|
e15d91a77cb3
Request API: PURPLE_REQUEST_WAIT with progress bar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34444
diff
changeset
|
112 | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
113 | /** |
| 5477 | 114 | * Request UI operations. |
| 115 | */ | |
| 116 | typedef struct | |
| 117 | { | |
|
34335
2496c53cd401
Request API: HTML feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34334
diff
changeset
|
118 | PurpleRequestFeature features; |
|
2496c53cd401
Request API: HTML feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34334
diff
changeset
|
119 | |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
120 | /** @see purple_request_input(). */ |
| 5477 | 121 | void *(*request_input)(const char *title, const char *primary, |
|
34333
b92698241603
Request API refactoring: switch purple_request_file to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34332
diff
changeset
|
122 | const char *secondary, const char *default_value, |
|
b92698241603
Request API refactoring: switch purple_request_file to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34332
diff
changeset
|
123 | gboolean multiline, gboolean masked, gchar *hint, |
|
b92698241603
Request API refactoring: switch purple_request_file to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34332
diff
changeset
|
124 | const char *ok_text, GCallback ok_cb, |
|
b92698241603
Request API refactoring: switch purple_request_file to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34332
diff
changeset
|
125 | const char *cancel_text, GCallback cancel_cb, |
|
b92698241603
Request API refactoring: switch purple_request_file to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34332
diff
changeset
|
126 | PurpleRequestCommonParameters *cpar, void *user_data); |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
127 | |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
128 | /** @see purple_request_choice_varg(). */ |
| 5477 | 129 | void *(*request_choice)(const char *title, const char *primary, |
|
34338
c652670afac5
Request API refactoring: custom PURPLE_REQUEST_CHOICE values, instead of indexes
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34337
diff
changeset
|
130 | const char *secondary, gpointer default_value, |
|
c652670afac5
Request API refactoring: custom PURPLE_REQUEST_CHOICE values, instead of indexes
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34337
diff
changeset
|
131 | const char *ok_text, GCallback ok_cb, const char *cancel_text, |
|
c652670afac5
Request API refactoring: custom PURPLE_REQUEST_CHOICE values, instead of indexes
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34337
diff
changeset
|
132 | GCallback cancel_cb, PurpleRequestCommonParameters *cpar, |
|
c652670afac5
Request API refactoring: custom PURPLE_REQUEST_CHOICE values, instead of indexes
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34337
diff
changeset
|
133 | void *user_data, va_list choices); |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
134 | |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
135 | /** @see purple_request_action_varg(). */ |
| 5477 | 136 | void *(*request_action)(const char *title, const char *primary, |
|
34333
b92698241603
Request API refactoring: switch purple_request_file to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34332
diff
changeset
|
137 | const char *secondary, int default_action, |
|
b92698241603
Request API refactoring: switch purple_request_file to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34332
diff
changeset
|
138 | PurpleRequestCommonParameters *cpar, void *user_data, |
|
b92698241603
Request API refactoring: switch purple_request_file to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34332
diff
changeset
|
139 | size_t action_count, va_list actions); |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
140 | |
|
34443
b7926ff76ed6
Request API: implement purple_request_wait
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34341
diff
changeset
|
141 | /** @see purple_request_wait(). */ |
|
b7926ff76ed6
Request API: implement purple_request_wait
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34341
diff
changeset
|
142 | void *(*request_wait)(const char *title, const char *primary, |
|
34448
e15d91a77cb3
Request API: PURPLE_REQUEST_WAIT with progress bar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34444
diff
changeset
|
143 | const char *secondary, gboolean with_progress, |
|
e15d91a77cb3
Request API: PURPLE_REQUEST_WAIT with progress bar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34444
diff
changeset
|
144 | PurpleRequestCancelCb cancel_cb, |
|
34443
b7926ff76ed6
Request API: implement purple_request_wait
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34341
diff
changeset
|
145 | PurpleRequestCommonParameters *cpar, void *user_data); |
|
b7926ff76ed6
Request API: implement purple_request_wait
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34341
diff
changeset
|
146 | |
|
34448
e15d91a77cb3
Request API: PURPLE_REQUEST_WAIT with progress bar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34444
diff
changeset
|
147 | /** |
|
e15d91a77cb3
Request API: PURPLE_REQUEST_WAIT with progress bar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34444
diff
changeset
|
148 | * @see purple_request_wait_pulse(). |
|
e15d91a77cb3
Request API: PURPLE_REQUEST_WAIT with progress bar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34444
diff
changeset
|
149 | * @see purple_request_wait_progress(). |
|
e15d91a77cb3
Request API: PURPLE_REQUEST_WAIT with progress bar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34444
diff
changeset
|
150 | */ |
|
e15d91a77cb3
Request API: PURPLE_REQUEST_WAIT with progress bar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34444
diff
changeset
|
151 | void (*request_wait_update)(void *ui_handle, gboolean pulse, |
|
e15d91a77cb3
Request API: PURPLE_REQUEST_WAIT with progress bar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34444
diff
changeset
|
152 | gfloat fraction); |
|
e15d91a77cb3
Request API: PURPLE_REQUEST_WAIT with progress bar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34444
diff
changeset
|
153 | |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
154 | /** @see purple_request_fields(). */ |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
155 | void *(*request_fields)(const char *title, const char *primary, |
|
34333
b92698241603
Request API refactoring: switch purple_request_file to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34332
diff
changeset
|
156 | const char *secondary, PurpleRequestFields *fields, |
|
b92698241603
Request API refactoring: switch purple_request_file to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34332
diff
changeset
|
157 | const char *ok_text, GCallback ok_cb, |
|
b92698241603
Request API refactoring: switch purple_request_file to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34332
diff
changeset
|
158 | const char *cancel_text, GCallback cancel_cb, |
|
b92698241603
Request API refactoring: switch purple_request_file to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34332
diff
changeset
|
159 | PurpleRequestCommonParameters *cpar, void *user_data); |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
160 | |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
161 | /** @see purple_request_file(). */ |
|
8843
944c71cc01af
[gaim-migrate @ 9610]
Pekka Riikonen <priikone@silcnet.org>
parents:
8735
diff
changeset
|
162 | void *(*request_file)(const char *title, const char *filename, |
|
34333
b92698241603
Request API refactoring: switch purple_request_file to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34332
diff
changeset
|
163 | gboolean savedialog, GCallback ok_cb, GCallback cancel_cb, |
|
b92698241603
Request API refactoring: switch purple_request_file to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34332
diff
changeset
|
164 | PurpleRequestCommonParameters *cpar, void *user_data); |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
165 | |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
166 | /** @see purple_request_folder(). */ |
|
13283
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
167 | void *(*request_folder)(const char *title, const char *dirname, |
|
34334
f5f3a9945a6d
Request API refactoring: switch purple_request_folder to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34333
diff
changeset
|
168 | GCallback ok_cb, GCallback cancel_cb, |
|
f5f3a9945a6d
Request API refactoring: switch purple_request_folder to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34333
diff
changeset
|
169 | PurpleRequestCommonParameters *cpar, void *user_data); |
|
16743
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
16613
diff
changeset
|
170 | |
|
34443
b7926ff76ed6
Request API: implement purple_request_wait
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34341
diff
changeset
|
171 | void (*close_request)(PurpleRequestType type, void *ui_handle); |
|
b7926ff76ed6
Request API: implement purple_request_wait
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34341
diff
changeset
|
172 | |
|
35024
eb3afb7643ce
Added /*< private >*/ for padding members, clean them up and add missing ones
Ankit Vani <a@nevitus.org>
parents:
34451
diff
changeset
|
173 | /*< private >*/ |
|
16743
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
16613
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:
16613
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:
16613
diff
changeset
|
176 | void (*_purple_reserved3)(void); |
|
34331
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
177 | void (*_purple_reserved4)(void); |
| 15884 | 178 | } PurpleRequestUiOps; |
| 5477 | 179 | |
| 15884 | 180 | typedef void (*PurpleRequestInputCb)(void *, const char *); |
|
22593
9f88ea5d40d9
Remove duplicated docs for _varg variants of request functions; correct and
Will Thompson <resiak@pidgin.im>
parents:
22263
diff
changeset
|
181 | |
|
33219
06b19630bdb0
Validation for Request API fixes
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33213
diff
changeset
|
182 | typedef gboolean (*PurpleRequestFieldValidator)(PurpleRequestField *field, |
|
34337
1d70570eab23
Request API: tiny type change
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34336
diff
changeset
|
183 | gchar **errmsg, gpointer user_data); |
|
33213
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
184 | |
|
34494
eee5ad689415
Request API: fields sensitivity
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34451
diff
changeset
|
185 | typedef gboolean (*PurpleRequestFieldSensitivityCb)(PurpleRequestField *field); |
|
eee5ad689415
Request API: fields sensitivity
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34451
diff
changeset
|
186 | |
|
22593
9f88ea5d40d9
Remove duplicated docs for _varg variants of request functions; correct and
Will Thompson <resiak@pidgin.im>
parents:
22263
diff
changeset
|
187 | /** The type of callbacks passed to purple_request_action(). The first |
|
9f88ea5d40d9
Remove duplicated docs for _varg variants of request functions; correct and
Will Thompson <resiak@pidgin.im>
parents:
22263
diff
changeset
|
188 | * argument is the @a user_data parameter; the second is the index in the list |
|
9f88ea5d40d9
Remove duplicated docs for _varg variants of request functions; correct and
Will Thompson <resiak@pidgin.im>
parents:
22263
diff
changeset
|
189 | * of actions of the one chosen. |
|
9f88ea5d40d9
Remove duplicated docs for _varg variants of request functions; correct and
Will Thompson <resiak@pidgin.im>
parents:
22263
diff
changeset
|
190 | */ |
| 15884 | 191 | typedef void (*PurpleRequestActionCb)(void *, int); |
|
34338
c652670afac5
Request API refactoring: custom PURPLE_REQUEST_CHOICE values, instead of indexes
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34337
diff
changeset
|
192 | typedef void (*PurpleRequestChoiceCb)(void *, gpointer); |
| 15884 | 193 | typedef void (*PurpleRequestFieldsCb)(void *, PurpleRequestFields *fields); |
| 194 | typedef void (*PurpleRequestFileCb)(void *, const char *filename); | |
|
34341
b23d9c0b64d5
Request API: help button support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34339
diff
changeset
|
195 | typedef void (*PurpleRequestHelpCb)(gpointer); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
196 | |
|
32787
7072f190d6ad
Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32604
diff
changeset
|
197 | G_BEGIN_DECLS |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5809
diff
changeset
|
198 | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
199 | /**************************************************************************/ |
|
34329
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
200 | /** @name Common parameters API */ |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
201 | /**************************************************************************/ |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
202 | /*@{*/ |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
203 | |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
204 | /** |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
205 | * Creates new parameters set for the request, which may or may not be used by |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
206 | * the UI to display the request. |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
207 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
208 | * @return The new parameters set. |
|
34329
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
209 | */ |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
210 | PurpleRequestCommonParameters * |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
211 | purple_request_cpar_new(void); |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
212 | |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
213 | /** |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
214 | * Creates new parameters set initially bound with the #PurpleConnection. |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
215 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
216 | * @return The new parameters set. |
|
34329
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
217 | */ |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
218 | PurpleRequestCommonParameters * |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
219 | purple_request_cpar_from_connection(PurpleConnection *gc); |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
220 | |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
221 | /** |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
222 | * Creates new parameters set initially bound with the #PurpleAccount. |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
223 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
224 | * @return The new parameters set. |
|
34329
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
225 | */ |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
226 | PurpleRequestCommonParameters * |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
227 | purple_request_cpar_from_account(PurpleAccount *account); |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
228 | |
|
34331
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
229 | /** |
|
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
230 | * Creates new parameters set initially bound with the #PurpleConversation. |
|
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
231 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
232 | * @return The new parameters set. |
|
34331
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
233 | */ |
|
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
234 | PurpleRequestCommonParameters * |
|
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
235 | purple_request_cpar_from_conversation(PurpleConversation *conv); |
|
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
236 | |
|
34329
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
237 | /* |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
238 | * Increases the reference count on the parameters set. |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
239 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
240 | * @param cpar The object to ref. |
|
34329
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
241 | */ |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
242 | void |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
243 | purple_request_cpar_ref(PurpleRequestCommonParameters *cpar); |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
244 | |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
245 | /** |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
246 | * Decreases the reference count on the parameters set. |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
247 | * |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
248 | * The object will be destroyed when this reaches 0. |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
249 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
250 | * @param cpar The parameters set object to unref and possibly destroy. |
|
34329
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
251 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
252 | * @return The NULL, if object was destroyed, cpar otherwise. |
|
34329
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
253 | */ |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
254 | PurpleRequestCommonParameters * |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
255 | purple_request_cpar_unref(PurpleRequestCommonParameters *cpar); |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
256 | |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
257 | /** |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
258 | * Sets the #PurpleAccount associated with the request, or @c NULL, if none is. |
|
34329
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
259 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
260 | * @param cpar The parameters set. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
261 | * @param account The #PurpleAccount to associate. |
|
34329
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
262 | */ |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
263 | void |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
264 | purple_request_cpar_set_account(PurpleRequestCommonParameters *cpar, |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
265 | PurpleAccount *account); |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
266 | |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
267 | /** |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
268 | * Gets the #PurpleAccount associated with the request. |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
269 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
270 | * @param cpar The parameters set (may be @c NULL). |
|
34329
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
271 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
272 | * @return The associated #PurpleAccount, or NULL if none is. |
|
34329
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
273 | */ |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
274 | PurpleAccount * |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
275 | purple_request_cpar_get_account(PurpleRequestCommonParameters *cpar); |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
276 | |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
277 | /** |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
278 | * Sets the #PurpleConversation associated with the request, or @c NULL, if |
|
34329
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
279 | * none is. |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
280 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
281 | * @param cpar The parameters set. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
282 | * @param conv The #PurpleConversation to associate. |
|
34329
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
283 | */ |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
284 | void |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
285 | purple_request_cpar_set_conversation(PurpleRequestCommonParameters *cpar, |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
286 | PurpleConversation *conv); |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
287 | |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
288 | /** |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
289 | * Gets the #PurpleConversation associated with the request. |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
290 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
291 | * @param cpar The parameters set (may be @c NULL). |
|
34329
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
292 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
293 | * @return The associated #PurpleConversation, or NULL if none is. |
|
34329
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
294 | */ |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
295 | PurpleConversation * |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
296 | purple_request_cpar_get_conversation(PurpleRequestCommonParameters *cpar); |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
297 | |
|
34331
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
298 | /** |
|
34336
5f3ec29a886b
Request API: the ability to set stock icons
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34335
diff
changeset
|
299 | * Sets the icon associated with the request. |
|
5f3ec29a886b
Request API: the ability to set stock icons
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34335
diff
changeset
|
300 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
301 | * @param cpar The parameters set. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
302 | * @param icon_type The icon type. |
|
34336
5f3ec29a886b
Request API: the ability to set stock icons
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34335
diff
changeset
|
303 | */ |
|
5f3ec29a886b
Request API: the ability to set stock icons
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34335
diff
changeset
|
304 | void |
|
5f3ec29a886b
Request API: the ability to set stock icons
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34335
diff
changeset
|
305 | purple_request_cpar_set_icon(PurpleRequestCommonParameters *cpar, |
|
5f3ec29a886b
Request API: the ability to set stock icons
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34335
diff
changeset
|
306 | PurpleRequestIconType icon_type); |
|
5f3ec29a886b
Request API: the ability to set stock icons
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34335
diff
changeset
|
307 | |
|
5f3ec29a886b
Request API: the ability to set stock icons
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34335
diff
changeset
|
308 | /** |
|
5f3ec29a886b
Request API: the ability to set stock icons
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34335
diff
changeset
|
309 | * Gets the icon associated with the request. |
|
5f3ec29a886b
Request API: the ability to set stock icons
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34335
diff
changeset
|
310 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
311 | * @param cpar The parameters set. |
|
34336
5f3ec29a886b
Request API: the ability to set stock icons
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34335
diff
changeset
|
312 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
313 | * @returns icon_type The icon type. |
|
34336
5f3ec29a886b
Request API: the ability to set stock icons
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34335
diff
changeset
|
314 | */ |
|
5f3ec29a886b
Request API: the ability to set stock icons
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34335
diff
changeset
|
315 | PurpleRequestIconType |
|
5f3ec29a886b
Request API: the ability to set stock icons
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34335
diff
changeset
|
316 | purple_request_cpar_get_icon(PurpleRequestCommonParameters *cpar); |
|
5f3ec29a886b
Request API: the ability to set stock icons
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34335
diff
changeset
|
317 | |
|
5f3ec29a886b
Request API: the ability to set stock icons
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34335
diff
changeset
|
318 | /** |
|
34331
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
319 | * Sets the custom icon associated with the request. |
|
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
320 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
321 | * @param cpar The parameters set. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
322 | * @param icon_data The icon image contents (@c NULL to reset). |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
323 | * @param icon_size The icon image size. |
|
34331
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
324 | */ |
|
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
325 | void |
|
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
326 | purple_request_cpar_set_custom_icon(PurpleRequestCommonParameters *cpar, |
|
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
327 | gconstpointer icon_data, gsize icon_size); |
|
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
328 | |
|
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
329 | /** |
|
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
330 | * Gets the custom icon associated with the request. |
|
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
331 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
332 | * @param cpar The parameters set (may be @c NULL). |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
333 | * @param icon_size The pointer to variable, where icon size should be stored |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
334 | * (may be @c NULL). |
|
34331
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
335 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
336 | * @return The icon image contents. |
|
34331
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
337 | */ |
|
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
338 | gconstpointer |
|
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
339 | purple_request_cpar_get_custom_icon(PurpleRequestCommonParameters *cpar, |
|
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
340 | gsize *icon_size); |
|
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
341 | |
|
34335
2496c53cd401
Request API: HTML feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34334
diff
changeset
|
342 | /** |
|
2496c53cd401
Request API: HTML feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34334
diff
changeset
|
343 | * Switches the request text to be HTML or not. |
|
2496c53cd401
Request API: HTML feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34334
diff
changeset
|
344 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
345 | * @param cpar The parameters set. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
346 | * @param enabled 1, if the text passed with the request contains HTML, |
|
34335
2496c53cd401
Request API: HTML feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34334
diff
changeset
|
347 | * 0 otherwise. Don't use any other values, as they may be |
|
2496c53cd401
Request API: HTML feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34334
diff
changeset
|
348 | * redefined in the future. |
|
2496c53cd401
Request API: HTML feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34334
diff
changeset
|
349 | */ |
|
2496c53cd401
Request API: HTML feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34334
diff
changeset
|
350 | void |
|
2496c53cd401
Request API: HTML feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34334
diff
changeset
|
351 | purple_request_cpar_set_html(PurpleRequestCommonParameters *cpar, |
|
2496c53cd401
Request API: HTML feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34334
diff
changeset
|
352 | gboolean enabled); |
|
2496c53cd401
Request API: HTML feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34334
diff
changeset
|
353 | |
|
2496c53cd401
Request API: HTML feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34334
diff
changeset
|
354 | /** |
|
2496c53cd401
Request API: HTML feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34334
diff
changeset
|
355 | * Checks, if the text passed to the request is HTML. |
|
2496c53cd401
Request API: HTML feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34334
diff
changeset
|
356 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
357 | * @param cpar The parameters set (may be @c NULL). |
|
34335
2496c53cd401
Request API: HTML feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34334
diff
changeset
|
358 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
359 | * @return @c TRUE, if the text is HTML, @c FALSE otherwise. |
|
34335
2496c53cd401
Request API: HTML feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34334
diff
changeset
|
360 | */ |
|
2496c53cd401
Request API: HTML feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34334
diff
changeset
|
361 | gboolean |
|
2496c53cd401
Request API: HTML feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34334
diff
changeset
|
362 | purple_request_cpar_is_html(PurpleRequestCommonParameters *cpar); |
|
2496c53cd401
Request API: HTML feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34334
diff
changeset
|
363 | |
|
34339
3579cb14f8f2
Request API: compact layout feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34338
diff
changeset
|
364 | /** |
|
3579cb14f8f2
Request API: compact layout feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34338
diff
changeset
|
365 | * Sets dialog display mode to compact or default. |
|
3579cb14f8f2
Request API: compact layout feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34338
diff
changeset
|
366 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
367 | * @param cpar The parameters set. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
368 | * @param compact TRUE for compact, FALSE otherwise. |
|
34339
3579cb14f8f2
Request API: compact layout feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34338
diff
changeset
|
369 | */ |
|
3579cb14f8f2
Request API: compact layout feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34338
diff
changeset
|
370 | void |
|
3579cb14f8f2
Request API: compact layout feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34338
diff
changeset
|
371 | purple_request_cpar_set_compact(PurpleRequestCommonParameters *cpar, |
|
3579cb14f8f2
Request API: compact layout feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34338
diff
changeset
|
372 | gboolean compact); |
|
3579cb14f8f2
Request API: compact layout feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34338
diff
changeset
|
373 | |
|
3579cb14f8f2
Request API: compact layout feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34338
diff
changeset
|
374 | /** |
|
3579cb14f8f2
Request API: compact layout feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34338
diff
changeset
|
375 | * Gets dialog display mode. |
|
3579cb14f8f2
Request API: compact layout feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34338
diff
changeset
|
376 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
377 | * @param cpar The parameters set (may be @c NULL). |
|
34339
3579cb14f8f2
Request API: compact layout feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34338
diff
changeset
|
378 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
379 | * @return TRUE for compact, FALSE for default. |
|
34339
3579cb14f8f2
Request API: compact layout feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34338
diff
changeset
|
380 | */ |
|
3579cb14f8f2
Request API: compact layout feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34338
diff
changeset
|
381 | gboolean |
|
3579cb14f8f2
Request API: compact layout feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34338
diff
changeset
|
382 | purple_request_cpar_is_compact(PurpleRequestCommonParameters *cpar); |
|
3579cb14f8f2
Request API: compact layout feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34338
diff
changeset
|
383 | |
|
34341
b23d9c0b64d5
Request API: help button support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34339
diff
changeset
|
384 | /** |
|
b23d9c0b64d5
Request API: help button support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34339
diff
changeset
|
385 | * Sets the callback for the Help button. |
|
b23d9c0b64d5
Request API: help button support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34339
diff
changeset
|
386 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
387 | * @param cpar The parameters set. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
388 | * @param cb The callback. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
389 | * @param user_data The data to be passed to the callback. |
|
34341
b23d9c0b64d5
Request API: help button support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34339
diff
changeset
|
390 | */ |
|
b23d9c0b64d5
Request API: help button support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34339
diff
changeset
|
391 | void |
|
b23d9c0b64d5
Request API: help button support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34339
diff
changeset
|
392 | purple_request_cpar_set_help_cb(PurpleRequestCommonParameters *cpar, |
|
b23d9c0b64d5
Request API: help button support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34339
diff
changeset
|
393 | PurpleRequestHelpCb cb, gpointer user_data); |
|
b23d9c0b64d5
Request API: help button support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34339
diff
changeset
|
394 | |
|
b23d9c0b64d5
Request API: help button support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34339
diff
changeset
|
395 | /** |
|
b23d9c0b64d5
Request API: help button support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34339
diff
changeset
|
396 | * Gets the callback for the Help button. |
|
b23d9c0b64d5
Request API: help button support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34339
diff
changeset
|
397 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
398 | * @param cpar The parameters set (may be @c NULL). |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
399 | * @param user_data The pointer to the variable, where user data (to be passed |
|
34341
b23d9c0b64d5
Request API: help button support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34339
diff
changeset
|
400 | * to callback function) should be stored. |
|
34444
4fe0e2422d82
Request API: extra actions for fields request
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34443
diff
changeset
|
401 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
402 | * @return The callback. |
|
34341
b23d9c0b64d5
Request API: help button support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34339
diff
changeset
|
403 | */ |
|
b23d9c0b64d5
Request API: help button support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34339
diff
changeset
|
404 | PurpleRequestHelpCb |
|
b23d9c0b64d5
Request API: help button support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34339
diff
changeset
|
405 | purple_request_cpar_get_help_cb(PurpleRequestCommonParameters *cpar, |
|
b23d9c0b64d5
Request API: help button support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34339
diff
changeset
|
406 | gpointer *user_data); |
|
b23d9c0b64d5
Request API: help button support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34339
diff
changeset
|
407 | |
|
34444
4fe0e2422d82
Request API: extra actions for fields request
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34443
diff
changeset
|
408 | /** |
|
4fe0e2422d82
Request API: extra actions for fields request
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34443
diff
changeset
|
409 | * Sets extra actions for the PurpleRequestFields dialog. |
|
4fe0e2422d82
Request API: extra actions for fields request
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34443
diff
changeset
|
410 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
411 | * @param cpar The parameters set. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
412 | * @param ... A list of actions. These are pairs of arguments. The first of |
|
34444
4fe0e2422d82
Request API: extra actions for fields request
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34443
diff
changeset
|
413 | * each pair is the <tt>char *</tt> label that appears on the |
|
4fe0e2422d82
Request API: extra actions for fields request
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34443
diff
changeset
|
414 | * button. It should have an underscore before the letter you want |
|
4fe0e2422d82
Request API: extra actions for fields request
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34443
diff
changeset
|
415 | * to use as the accelerator key for the button. The second of each |
|
4fe0e2422d82
Request API: extra actions for fields request
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34443
diff
changeset
|
416 | * pair is the #PurpleRequestFieldsCb function to use when the |
|
4fe0e2422d82
Request API: extra actions for fields request
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34443
diff
changeset
|
417 | * button is clicked. Should be terminated with the NULL label. |
|
4fe0e2422d82
Request API: extra actions for fields request
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34443
diff
changeset
|
418 | */ |
|
4fe0e2422d82
Request API: extra actions for fields request
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34443
diff
changeset
|
419 | void |
|
4fe0e2422d82
Request API: extra actions for fields request
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34443
diff
changeset
|
420 | purple_request_cpar_set_extra_actions(PurpleRequestCommonParameters *cpar, ...); |
|
4fe0e2422d82
Request API: extra actions for fields request
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34443
diff
changeset
|
421 | |
|
4fe0e2422d82
Request API: extra actions for fields request
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34443
diff
changeset
|
422 | /** |
|
4fe0e2422d82
Request API: extra actions for fields request
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34443
diff
changeset
|
423 | * Gets extra actions for the PurpleRequestFields dialog. |
|
4fe0e2422d82
Request API: extra actions for fields request
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34443
diff
changeset
|
424 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
425 | * @param cpar The parameters set (may be @c NULL). |
|
34444
4fe0e2422d82
Request API: extra actions for fields request
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34443
diff
changeset
|
426 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
427 | * @return A list of actions (pairs of arguments, as in setter). |
|
34444
4fe0e2422d82
Request API: extra actions for fields request
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34443
diff
changeset
|
428 | */ |
|
4fe0e2422d82
Request API: extra actions for fields request
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34443
diff
changeset
|
429 | GSList * |
|
4fe0e2422d82
Request API: extra actions for fields request
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34443
diff
changeset
|
430 | purple_request_cpar_get_extra_actions(PurpleRequestCommonParameters *cpar); |
|
4fe0e2422d82
Request API: extra actions for fields request
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34443
diff
changeset
|
431 | |
|
34451
b7165d4e1d73
Implement purple_*_is_valid_ui_handle, purple_request_cpar_*et_parent_from, pidgin_request_get_dialog_window
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34448
diff
changeset
|
432 | /** |
|
b7165d4e1d73
Implement purple_*_is_valid_ui_handle, purple_request_cpar_*et_parent_from, pidgin_request_get_dialog_window
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34448
diff
changeset
|
433 | * Sets the same parent window for this dialog, as the parent of specified |
|
b7165d4e1d73
Implement purple_*_is_valid_ui_handle, purple_request_cpar_*et_parent_from, pidgin_request_get_dialog_window
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34448
diff
changeset
|
434 | * Notify API or Request API dialog UI handle. |
|
b7165d4e1d73
Implement purple_*_is_valid_ui_handle, purple_request_cpar_*et_parent_from, pidgin_request_get_dialog_window
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34448
diff
changeset
|
435 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
436 | * @param cpar The parameters set. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
437 | * @param ui_handle The UI handle. |
|
34451
b7165d4e1d73
Implement purple_*_is_valid_ui_handle, purple_request_cpar_*et_parent_from, pidgin_request_get_dialog_window
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34448
diff
changeset
|
438 | */ |
|
b7165d4e1d73
Implement purple_*_is_valid_ui_handle, purple_request_cpar_*et_parent_from, pidgin_request_get_dialog_window
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34448
diff
changeset
|
439 | void |
|
b7165d4e1d73
Implement purple_*_is_valid_ui_handle, purple_request_cpar_*et_parent_from, pidgin_request_get_dialog_window
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34448
diff
changeset
|
440 | purple_request_cpar_set_parent_from(PurpleRequestCommonParameters *cpar, |
|
b7165d4e1d73
Implement purple_*_is_valid_ui_handle, purple_request_cpar_*et_parent_from, pidgin_request_get_dialog_window
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34448
diff
changeset
|
441 | gpointer ui_handle); |
|
b7165d4e1d73
Implement purple_*_is_valid_ui_handle, purple_request_cpar_*et_parent_from, pidgin_request_get_dialog_window
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34448
diff
changeset
|
442 | |
|
b7165d4e1d73
Implement purple_*_is_valid_ui_handle, purple_request_cpar_*et_parent_from, pidgin_request_get_dialog_window
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34448
diff
changeset
|
443 | /** |
|
b7165d4e1d73
Implement purple_*_is_valid_ui_handle, purple_request_cpar_*et_parent_from, pidgin_request_get_dialog_window
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34448
diff
changeset
|
444 | * Gets the parent "donor" for this dialog. |
|
b7165d4e1d73
Implement purple_*_is_valid_ui_handle, purple_request_cpar_*et_parent_from, pidgin_request_get_dialog_window
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34448
diff
changeset
|
445 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
446 | * @param cpar The parameters set (may be @c NULL). |
|
34451
b7165d4e1d73
Implement purple_*_is_valid_ui_handle, purple_request_cpar_*et_parent_from, pidgin_request_get_dialog_window
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34448
diff
changeset
|
447 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
448 | * @return The donors UI handle. |
|
34451
b7165d4e1d73
Implement purple_*_is_valid_ui_handle, purple_request_cpar_*et_parent_from, pidgin_request_get_dialog_window
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34448
diff
changeset
|
449 | */ |
|
b7165d4e1d73
Implement purple_*_is_valid_ui_handle, purple_request_cpar_*et_parent_from, pidgin_request_get_dialog_window
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34448
diff
changeset
|
450 | gpointer |
|
b7165d4e1d73
Implement purple_*_is_valid_ui_handle, purple_request_cpar_*et_parent_from, pidgin_request_get_dialog_window
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34448
diff
changeset
|
451 | purple_request_cpar_get_parent_from(PurpleRequestCommonParameters *cpar); |
|
b7165d4e1d73
Implement purple_*_is_valid_ui_handle, purple_request_cpar_*et_parent_from, pidgin_request_get_dialog_window
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34448
diff
changeset
|
452 | |
|
34329
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
453 | /*@}*/ |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
454 | |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
455 | /**************************************************************************/ |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
456 | /** @name Field List API */ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
457 | /**************************************************************************/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
458 | /*@{*/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
459 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
460 | /** |
| 15884 | 461 | * Creates a list of fields to pass to purple_request_fields(). |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
462 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
463 | * @return A PurpleRequestFields structure. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
464 | */ |
| 15884 | 465 | PurpleRequestFields *purple_request_fields_new(void); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
466 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
467 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
468 | * Destroys a list of fields. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
469 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
470 | * @param fields The list of fields to destroy. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
471 | */ |
| 15884 | 472 | void purple_request_fields_destroy(PurpleRequestFields *fields); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
473 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
474 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
475 | * Adds a group of fields to the list. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
476 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
477 | * @param fields The fields list. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
478 | * @param group The group to add. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
479 | */ |
| 15884 | 480 | void purple_request_fields_add_group(PurpleRequestFields *fields, |
| 481 | PurpleRequestFieldGroup *group); | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
482 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
483 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
484 | * Returns a list of all groups in a field list. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
485 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
486 | * @param fields The fields list. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
487 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
488 | * @constreturn A list of groups. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
489 | */ |
| 15884 | 490 | GList *purple_request_fields_get_groups(const PurpleRequestFields *fields); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
491 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
492 | /** |
|
34501
cb22f5baa4f6
Request API: tabs support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34498
diff
changeset
|
493 | * Set tab names for a field list. |
|
cb22f5baa4f6
Request API: tabs support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34498
diff
changeset
|
494 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
495 | * @param fields The fields list. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
496 | * @param tab_names NULL-terminated array of localized tab labels, |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
497 | * may be @c NULL. |
|
34501
cb22f5baa4f6
Request API: tabs support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34498
diff
changeset
|
498 | */ |
|
cb22f5baa4f6
Request API: tabs support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34498
diff
changeset
|
499 | void purple_request_fields_set_tab_names(PurpleRequestFields *fields, |
|
cb22f5baa4f6
Request API: tabs support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34498
diff
changeset
|
500 | const gchar **tab_names); |
|
cb22f5baa4f6
Request API: tabs support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34498
diff
changeset
|
501 | |
|
cb22f5baa4f6
Request API: tabs support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34498
diff
changeset
|
502 | /** |
|
cb22f5baa4f6
Request API: tabs support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34498
diff
changeset
|
503 | * Returns tab names of a field list. |
|
cb22f5baa4f6
Request API: tabs support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34498
diff
changeset
|
504 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
505 | * @param fields The fields list. |
|
34501
cb22f5baa4f6
Request API: tabs support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34498
diff
changeset
|
506 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
507 | * @return NULL-terminated array of localized tab labels, or NULL if tabs |
|
34501
cb22f5baa4f6
Request API: tabs support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34498
diff
changeset
|
508 | * are disabled. |
|
cb22f5baa4f6
Request API: tabs support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34498
diff
changeset
|
509 | */ |
|
cb22f5baa4f6
Request API: tabs support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34498
diff
changeset
|
510 | const gchar ** |
|
cb22f5baa4f6
Request API: tabs support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34498
diff
changeset
|
511 | purple_request_fields_get_tab_names(const PurpleRequestFields *fields); |
|
cb22f5baa4f6
Request API: tabs support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34498
diff
changeset
|
512 | |
|
cb22f5baa4f6
Request API: tabs support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34498
diff
changeset
|
513 | /** |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
514 | * Returns whether or not the field with the specified ID exists. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
515 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
516 | * @param fields The fields list. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
517 | * @param id The ID of the field. |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
518 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
519 | * @return TRUE if the field exists, or FALSE. |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
520 | */ |
| 15884 | 521 | gboolean purple_request_fields_exists(const PurpleRequestFields *fields, |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
522 | const char *id); |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
523 | |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
524 | /** |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
525 | * Returns a list of all required fields. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
526 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
527 | * @param fields The fields list. |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
528 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
529 | * @constreturn The list of required fields. |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
530 | */ |
|
33219
06b19630bdb0
Validation for Request API fixes
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33213
diff
changeset
|
531 | const GList *purple_request_fields_get_required( |
|
06b19630bdb0
Validation for Request API fixes
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33213
diff
changeset
|
532 | const PurpleRequestFields *fields); |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
533 | |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
534 | /** |
|
33213
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
535 | * Returns a list of all validated fields. |
|
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
536 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
537 | * @param fields The fields list. |
|
33213
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
538 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
539 | * @constreturn The list of validated fields. |
|
33213
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
540 | */ |
|
33219
06b19630bdb0
Validation for Request API fixes
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33213
diff
changeset
|
541 | const GList *purple_request_fields_get_validatable( |
|
06b19630bdb0
Validation for Request API fixes
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33213
diff
changeset
|
542 | const PurpleRequestFields *fields); |
|
33213
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
543 | |
|
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
544 | /** |
|
34496
f1eeb0d0cea5
Request API: fill in the comments
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34495
diff
changeset
|
545 | * Returns a list of all fields with sensitivity callback added. |
|
f1eeb0d0cea5
Request API: fill in the comments
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34495
diff
changeset
|
546 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
547 | * @param fields The fields list. |
|
34496
f1eeb0d0cea5
Request API: fill in the comments
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34495
diff
changeset
|
548 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
549 | * @constreturn The list of fields with automatic sensitivity callback. |
|
34496
f1eeb0d0cea5
Request API: fill in the comments
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34495
diff
changeset
|
550 | */ |
|
34494
eee5ad689415
Request API: fields sensitivity
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34451
diff
changeset
|
551 | const GList * |
|
eee5ad689415
Request API: fields sensitivity
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34451
diff
changeset
|
552 | purple_request_fields_get_autosensitive(const PurpleRequestFields *fields); |
|
eee5ad689415
Request API: fields sensitivity
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34451
diff
changeset
|
553 | |
|
33213
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
554 | /** |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
555 | * Returns whether or not a field with the specified ID is required. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
556 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
557 | * @param fields The fields list. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
558 | * @param id The field ID. |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
559 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
560 | * @return TRUE if the specified field is required, or FALSE. |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
561 | */ |
| 15884 | 562 | gboolean purple_request_fields_is_field_required(const PurpleRequestFields *fields, |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
563 | const char *id); |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
564 | |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
565 | /** |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
566 | * Returns whether or not all required fields have values. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
567 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
568 | * @param fields The fields list. |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
569 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
570 | * @return TRUE if all required fields have values, or FALSE. |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
571 | */ |
| 15884 | 572 | gboolean purple_request_fields_all_required_filled( |
| 573 | const PurpleRequestFields *fields); | |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
574 | |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
575 | /** |
|
33213
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
576 | * Returns whether or not all fields are valid. |
|
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
577 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
578 | * @param fields The fields list. |
|
33213
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
579 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
580 | * @return TRUE if all fields are valid, or FALSE. |
|
33213
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
581 | */ |
|
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
582 | gboolean purple_request_fields_all_valid(const PurpleRequestFields *fields); |
|
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
583 | |
|
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
584 | /** |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
585 | * Return the field with the specified ID. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
586 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
587 | * @param fields The fields list. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
588 | * @param id The ID of the field. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
589 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
590 | * @return The field, if found. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
591 | */ |
| 15884 | 592 | PurpleRequestField *purple_request_fields_get_field( |
| 593 | const PurpleRequestFields *fields, const char *id); | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
594 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
595 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
596 | * Returns the string value of a field with the specified ID. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
597 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
598 | * @param fields The fields list. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
599 | * @param id The ID of the field. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
600 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
601 | * @return The string value, if found, or @c NULL otherwise. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
602 | */ |
| 15884 | 603 | const char *purple_request_fields_get_string(const PurpleRequestFields *fields, |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
604 | const char *id); |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
605 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
606 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
607 | * Returns the integer value of a field with the specified ID. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
608 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
609 | * @param fields The fields list. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
610 | * @param id The ID of the field. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
611 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
612 | * @return The integer value, if found, or 0 otherwise. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
613 | */ |
| 15884 | 614 | int purple_request_fields_get_integer(const PurpleRequestFields *fields, |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
615 | const char *id); |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
616 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
617 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
618 | * Returns the boolean value of a field with the specified ID. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
619 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
620 | * @param fields The fields list. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
621 | * @param id The ID of the field. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
622 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
623 | * @return The boolean value, if found, or @c FALSE otherwise. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
624 | */ |
| 15884 | 625 | gboolean purple_request_fields_get_bool(const PurpleRequestFields *fields, |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
626 | const char *id); |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
627 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
628 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
629 | * Returns the choice index of a field with the specified ID. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
630 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
631 | * @param fields The fields list. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
632 | * @param id The ID of the field. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
633 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
634 | * @return The choice value, if found, or NULL otherwise. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
635 | */ |
|
34338
c652670afac5
Request API refactoring: custom PURPLE_REQUEST_CHOICE values, instead of indexes
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34337
diff
changeset
|
636 | gpointer |
|
c652670afac5
Request API refactoring: custom PURPLE_REQUEST_CHOICE values, instead of indexes
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34337
diff
changeset
|
637 | purple_request_fields_get_choice(const PurpleRequestFields *fields, |
|
c652670afac5
Request API refactoring: custom PURPLE_REQUEST_CHOICE values, instead of indexes
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34337
diff
changeset
|
638 | const char *id); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
639 | |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
640 | /** |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
641 | * Returns the account of a field with the specified ID. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
642 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
643 | * @param fields The fields list. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
644 | * @param id The ID of the field. |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
645 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
646 | * @return The account value, if found, or NULL otherwise. |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
647 | */ |
| 15884 | 648 | PurpleAccount *purple_request_fields_get_account(const PurpleRequestFields *fields, |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
649 | const char *id); |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
650 | |
|
32273
55a194e489bb
A small bit of hide-a-struct
Mark Doliner <markdoliner@pidgin.im>
parents:
32216
diff
changeset
|
651 | /** |
|
55a194e489bb
A small bit of hide-a-struct
Mark Doliner <markdoliner@pidgin.im>
parents:
32216
diff
changeset
|
652 | * Returns the UI data associated with this object. |
|
55a194e489bb
A small bit of hide-a-struct
Mark Doliner <markdoliner@pidgin.im>
parents:
32216
diff
changeset
|
653 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
654 | * @param fields The fields list. |
|
32273
55a194e489bb
A small bit of hide-a-struct
Mark Doliner <markdoliner@pidgin.im>
parents:
32216
diff
changeset
|
655 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
656 | * @return The UI data associated with this object. This is a |
|
32273
55a194e489bb
A small bit of hide-a-struct
Mark Doliner <markdoliner@pidgin.im>
parents:
32216
diff
changeset
|
657 | * convenience field provided to the UIs--it is not |
|
36637
9b0109ae118d
Renamed some prpl stuff to protocol stuff.
Ankit Vani <a@nevitus.org>
parents:
34193
diff
changeset
|
658 | * used by the libpurple core. |
|
32273
55a194e489bb
A small bit of hide-a-struct
Mark Doliner <markdoliner@pidgin.im>
parents:
32216
diff
changeset
|
659 | */ |
|
55a194e489bb
A small bit of hide-a-struct
Mark Doliner <markdoliner@pidgin.im>
parents:
32216
diff
changeset
|
660 | gpointer purple_request_fields_get_ui_data(const PurpleRequestFields *fields); |
|
55a194e489bb
A small bit of hide-a-struct
Mark Doliner <markdoliner@pidgin.im>
parents:
32216
diff
changeset
|
661 | |
|
55a194e489bb
A small bit of hide-a-struct
Mark Doliner <markdoliner@pidgin.im>
parents:
32216
diff
changeset
|
662 | /** |
|
55a194e489bb
A small bit of hide-a-struct
Mark Doliner <markdoliner@pidgin.im>
parents:
32216
diff
changeset
|
663 | * Set the UI data associated with this object. |
|
55a194e489bb
A small bit of hide-a-struct
Mark Doliner <markdoliner@pidgin.im>
parents:
32216
diff
changeset
|
664 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
665 | * @param fields The fields list. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
666 | * @param ui_data A pointer to associate with this object. |
|
32273
55a194e489bb
A small bit of hide-a-struct
Mark Doliner <markdoliner@pidgin.im>
parents:
32216
diff
changeset
|
667 | */ |
|
32554
0d844fac6679
Fix a bunch of tiny problems generating our doxygen documentation
Mark Doliner <markdoliner@pidgin.im>
parents:
32531
diff
changeset
|
668 | void purple_request_fields_set_ui_data(PurpleRequestFields *fields, gpointer ui_data); |
|
32273
55a194e489bb
A small bit of hide-a-struct
Mark Doliner <markdoliner@pidgin.im>
parents:
32216
diff
changeset
|
669 | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
670 | /*@}*/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
671 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
672 | /**************************************************************************/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
673 | /** @name Fields Group API */ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
674 | /**************************************************************************/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
675 | /*@{*/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
676 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
677 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
678 | * Creates a fields group with an optional title. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
679 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
680 | * @param title The optional title to give the group. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
681 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
682 | * @return A new fields group |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
683 | */ |
| 15884 | 684 | PurpleRequestFieldGroup *purple_request_field_group_new(const char *title); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
685 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
686 | /** |
|
34501
cb22f5baa4f6
Request API: tabs support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34498
diff
changeset
|
687 | * Sets tab number for a group. |
|
cb22f5baa4f6
Request API: tabs support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34498
diff
changeset
|
688 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
689 | * @param group The group. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
690 | * @param tab_no The tab number. |
|
34501
cb22f5baa4f6
Request API: tabs support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34498
diff
changeset
|
691 | * |
|
cb22f5baa4f6
Request API: tabs support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34498
diff
changeset
|
692 | * @see purple_request_fields_set_tab_names |
|
cb22f5baa4f6
Request API: tabs support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34498
diff
changeset
|
693 | */ |
|
cb22f5baa4f6
Request API: tabs support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34498
diff
changeset
|
694 | void purple_request_field_group_set_tab(PurpleRequestFieldGroup *group, |
|
cb22f5baa4f6
Request API: tabs support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34498
diff
changeset
|
695 | guint tab_no); |
|
cb22f5baa4f6
Request API: tabs support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34498
diff
changeset
|
696 | |
|
cb22f5baa4f6
Request API: tabs support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34498
diff
changeset
|
697 | /** |
|
cb22f5baa4f6
Request API: tabs support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34498
diff
changeset
|
698 | * Returns tab number of a group. |
|
cb22f5baa4f6
Request API: tabs support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34498
diff
changeset
|
699 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
700 | * @param group The group. |
|
34501
cb22f5baa4f6
Request API: tabs support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34498
diff
changeset
|
701 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
702 | * @return Tab number. |
|
34501
cb22f5baa4f6
Request API: tabs support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34498
diff
changeset
|
703 | * |
|
cb22f5baa4f6
Request API: tabs support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34498
diff
changeset
|
704 | * @see purple_request_fields_get_tab_names |
|
cb22f5baa4f6
Request API: tabs support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34498
diff
changeset
|
705 | */ |
|
cb22f5baa4f6
Request API: tabs support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34498
diff
changeset
|
706 | guint purple_request_field_group_get_tab(const PurpleRequestFieldGroup *group); |
|
cb22f5baa4f6
Request API: tabs support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34498
diff
changeset
|
707 | |
|
cb22f5baa4f6
Request API: tabs support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34498
diff
changeset
|
708 | /** |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
709 | * Destroys a fields group. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
710 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
711 | * @param group The group to destroy. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
712 | */ |
| 15884 | 713 | void purple_request_field_group_destroy(PurpleRequestFieldGroup *group); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
714 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
715 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
716 | * Adds a field to the group. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
717 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
718 | * @param group The group to add the field to. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
719 | * @param field The field to add to the group. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
720 | */ |
| 15884 | 721 | void purple_request_field_group_add_field(PurpleRequestFieldGroup *group, |
| 722 | PurpleRequestField *field); | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
723 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
724 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
725 | * Returns the title of a fields group. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
726 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
727 | * @param group The group. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
728 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
729 | * @return The title, if set. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
730 | */ |
| 15884 | 731 | const char *purple_request_field_group_get_title( |
| 732 | const PurpleRequestFieldGroup *group); | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
733 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
734 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
735 | * Returns a list of all fields in a group. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
736 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
737 | * @param group The group. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
738 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
739 | * @constreturn The list of fields in the group. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
740 | */ |
| 15884 | 741 | GList *purple_request_field_group_get_fields( |
| 742 | const PurpleRequestFieldGroup *group); | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
743 | |
|
32273
55a194e489bb
A small bit of hide-a-struct
Mark Doliner <markdoliner@pidgin.im>
parents:
32216
diff
changeset
|
744 | /** |
|
55a194e489bb
A small bit of hide-a-struct
Mark Doliner <markdoliner@pidgin.im>
parents:
32216
diff
changeset
|
745 | * Returns a list of all fields in a group. |
|
55a194e489bb
A small bit of hide-a-struct
Mark Doliner <markdoliner@pidgin.im>
parents:
32216
diff
changeset
|
746 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
747 | * @param group The group. |
|
32273
55a194e489bb
A small bit of hide-a-struct
Mark Doliner <markdoliner@pidgin.im>
parents:
32216
diff
changeset
|
748 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
749 | * @constreturn The list of fields in the group. |
|
32273
55a194e489bb
A small bit of hide-a-struct
Mark Doliner <markdoliner@pidgin.im>
parents:
32216
diff
changeset
|
750 | */ |
|
55a194e489bb
A small bit of hide-a-struct
Mark Doliner <markdoliner@pidgin.im>
parents:
32216
diff
changeset
|
751 | PurpleRequestFields *purple_request_field_group_get_fields_list( |
|
55a194e489bb
A small bit of hide-a-struct
Mark Doliner <markdoliner@pidgin.im>
parents:
32216
diff
changeset
|
752 | const PurpleRequestFieldGroup *group); |
|
55a194e489bb
A small bit of hide-a-struct
Mark Doliner <markdoliner@pidgin.im>
parents:
32216
diff
changeset
|
753 | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
754 | /*@}*/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
755 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
756 | /**************************************************************************/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
757 | /** @name Field API */ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
758 | /**************************************************************************/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
759 | /*@{*/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
760 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
761 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
762 | * Creates a field of the specified type. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
763 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
764 | * @param id The field ID. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
765 | * @param text The text label of the field. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
766 | * @param type The type of field. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
767 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
768 | * @return The new field. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
769 | */ |
| 15884 | 770 | PurpleRequestField *purple_request_field_new(const char *id, const char *text, |
| 771 | PurpleRequestFieldType type); | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
772 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
773 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
774 | * Destroys a field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
775 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
776 | * @param field The field to destroy. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
777 | */ |
| 15884 | 778 | void purple_request_field_destroy(PurpleRequestField *field); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
779 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
780 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
781 | * Sets the label text of a field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
782 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
783 | * @param field The field. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
784 | * @param label The text label. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
785 | */ |
| 15884 | 786 | void purple_request_field_set_label(PurpleRequestField *field, const char *label); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
787 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
788 | /** |
|
7904
266d6d5c68ac
[gaim-migrate @ 8564]
Christian Hammond <chipx86@chipx86.com>
parents:
7902
diff
changeset
|
789 | * Sets whether or not a field is visible. |
|
266d6d5c68ac
[gaim-migrate @ 8564]
Christian Hammond <chipx86@chipx86.com>
parents:
7902
diff
changeset
|
790 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
791 | * @param field The field. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
792 | * @param visible TRUE if visible, or FALSE if not. |
|
7904
266d6d5c68ac
[gaim-migrate @ 8564]
Christian Hammond <chipx86@chipx86.com>
parents:
7902
diff
changeset
|
793 | */ |
| 15884 | 794 | void purple_request_field_set_visible(PurpleRequestField *field, gboolean visible); |
|
7904
266d6d5c68ac
[gaim-migrate @ 8564]
Christian Hammond <chipx86@chipx86.com>
parents:
7902
diff
changeset
|
795 | |
|
266d6d5c68ac
[gaim-migrate @ 8564]
Christian Hammond <chipx86@chipx86.com>
parents:
7902
diff
changeset
|
796 | /** |
|
8285
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
797 | * Sets the type hint for the field. |
|
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
798 | * |
|
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
799 | * This is optionally used by the UIs to provide such features as |
|
10791
1e1e00d91561
[gaim-migrate @ 12433]
Richard Laager <rlaager@pidgin.im>
parents:
10566
diff
changeset
|
800 | * auto-completion for type hints like "account" and "screenname". |
|
8285
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
801 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
802 | * @param field The field. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
803 | * @param type_hint The type hint. |
|
8285
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
804 | */ |
| 15884 | 805 | void purple_request_field_set_type_hint(PurpleRequestField *field, |
|
8285
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
806 | const char *type_hint); |
|
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
807 | |
|
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
808 | /** |
|
31697
b6c47ea33682
Add API: purple_request_field_set_tooltip & purple_request_field_get_tooltip
Andrew Victor <andrew.victor@mxit.com>
parents:
31293
diff
changeset
|
809 | * Sets the tooltip for the field. |
|
b6c47ea33682
Add API: purple_request_field_set_tooltip & purple_request_field_get_tooltip
Andrew Victor <andrew.victor@mxit.com>
parents:
31293
diff
changeset
|
810 | * |
|
b6c47ea33682
Add API: purple_request_field_set_tooltip & purple_request_field_get_tooltip
Andrew Victor <andrew.victor@mxit.com>
parents:
31293
diff
changeset
|
811 | * This is optionally used by the UIs to provide a tooltip for |
|
b6c47ea33682
Add API: purple_request_field_set_tooltip & purple_request_field_get_tooltip
Andrew Victor <andrew.victor@mxit.com>
parents:
31293
diff
changeset
|
812 | * the field. |
|
b6c47ea33682
Add API: purple_request_field_set_tooltip & purple_request_field_get_tooltip
Andrew Victor <andrew.victor@mxit.com>
parents:
31293
diff
changeset
|
813 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
814 | * @param field The field. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
815 | * @param tooltip The tooltip text. |
|
31697
b6c47ea33682
Add API: purple_request_field_set_tooltip & purple_request_field_get_tooltip
Andrew Victor <andrew.victor@mxit.com>
parents:
31293
diff
changeset
|
816 | */ |
|
b6c47ea33682
Add API: purple_request_field_set_tooltip & purple_request_field_get_tooltip
Andrew Victor <andrew.victor@mxit.com>
parents:
31293
diff
changeset
|
817 | void purple_request_field_set_tooltip(PurpleRequestField *field, |
|
b6c47ea33682
Add API: purple_request_field_set_tooltip & purple_request_field_get_tooltip
Andrew Victor <andrew.victor@mxit.com>
parents:
31293
diff
changeset
|
818 | const char *tooltip); |
|
b6c47ea33682
Add API: purple_request_field_set_tooltip & purple_request_field_get_tooltip
Andrew Victor <andrew.victor@mxit.com>
parents:
31293
diff
changeset
|
819 | |
|
b6c47ea33682
Add API: purple_request_field_set_tooltip & purple_request_field_get_tooltip
Andrew Victor <andrew.victor@mxit.com>
parents:
31293
diff
changeset
|
820 | /** |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
821 | * Sets whether or not a field is required. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
822 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
823 | * @param field The field. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
824 | * @param required TRUE if required, or FALSE. |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
825 | */ |
| 15884 | 826 | void purple_request_field_set_required(PurpleRequestField *field, |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
827 | gboolean required); |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
828 | |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
829 | /** |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
830 | * Returns the type of a field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
831 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
832 | * @param field The field. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
833 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
834 | * @return The field's type. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
835 | */ |
| 15884 | 836 | PurpleRequestFieldType purple_request_field_get_type(const PurpleRequestField *field); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
837 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
838 | /** |
|
24984
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
839 | * Returns the group for the field. |
|
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
840 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
841 | * @param field The field. |
|
24984
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
842 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
843 | * @return The UI data. |
|
24984
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
844 | */ |
|
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
845 | PurpleRequestFieldGroup *purple_request_field_get_group(const PurpleRequestField *field); |
|
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
846 | |
|
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
847 | /** |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
848 | * Returns the ID of a field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
849 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
850 | * @param field The field. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
851 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
852 | * @return The ID |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
853 | */ |
| 15884 | 854 | const char *purple_request_field_get_id(const PurpleRequestField *field); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
855 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
856 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
857 | * Returns the label text of a field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
858 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
859 | * @param field The field. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
860 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
861 | * @return The label text. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
862 | */ |
| 15884 | 863 | const char *purple_request_field_get_label(const PurpleRequestField *field); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
864 | |
|
7904
266d6d5c68ac
[gaim-migrate @ 8564]
Christian Hammond <chipx86@chipx86.com>
parents:
7902
diff
changeset
|
865 | /** |
|
266d6d5c68ac
[gaim-migrate @ 8564]
Christian Hammond <chipx86@chipx86.com>
parents:
7902
diff
changeset
|
866 | * Returns whether or not a field is visible. |
|
266d6d5c68ac
[gaim-migrate @ 8564]
Christian Hammond <chipx86@chipx86.com>
parents:
7902
diff
changeset
|
867 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
868 | * @param field The field. |
|
7904
266d6d5c68ac
[gaim-migrate @ 8564]
Christian Hammond <chipx86@chipx86.com>
parents:
7902
diff
changeset
|
869 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
870 | * @return TRUE if the field is visible. FALSE otherwise. |
|
7904
266d6d5c68ac
[gaim-migrate @ 8564]
Christian Hammond <chipx86@chipx86.com>
parents:
7902
diff
changeset
|
871 | */ |
| 15884 | 872 | gboolean purple_request_field_is_visible(const PurpleRequestField *field); |
|
7904
266d6d5c68ac
[gaim-migrate @ 8564]
Christian Hammond <chipx86@chipx86.com>
parents:
7902
diff
changeset
|
873 | |
|
8285
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
874 | /** |
|
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
875 | * Returns the field's type hint. |
|
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
876 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
877 | * @param field The field. |
|
8285
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
878 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
879 | * @return The field's type hint. |
|
8285
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
880 | */ |
| 15884 | 881 | const char *purple_request_field_get_type_hint(const PurpleRequestField *field); |
|
8285
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
882 | |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
883 | /** |
|
31697
b6c47ea33682
Add API: purple_request_field_set_tooltip & purple_request_field_get_tooltip
Andrew Victor <andrew.victor@mxit.com>
parents:
31293
diff
changeset
|
884 | * Returns the field's tooltip. |
|
b6c47ea33682
Add API: purple_request_field_set_tooltip & purple_request_field_get_tooltip
Andrew Victor <andrew.victor@mxit.com>
parents:
31293
diff
changeset
|
885 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
886 | * @param field The field. |
|
31697
b6c47ea33682
Add API: purple_request_field_set_tooltip & purple_request_field_get_tooltip
Andrew Victor <andrew.victor@mxit.com>
parents:
31293
diff
changeset
|
887 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
888 | * @return The field's tooltip. |
|
31697
b6c47ea33682
Add API: purple_request_field_set_tooltip & purple_request_field_get_tooltip
Andrew Victor <andrew.victor@mxit.com>
parents:
31293
diff
changeset
|
889 | */ |
|
b6c47ea33682
Add API: purple_request_field_set_tooltip & purple_request_field_get_tooltip
Andrew Victor <andrew.victor@mxit.com>
parents:
31293
diff
changeset
|
890 | const char *purple_request_field_get_tooltip(const PurpleRequestField *field); |
|
b6c47ea33682
Add API: purple_request_field_set_tooltip & purple_request_field_get_tooltip
Andrew Victor <andrew.victor@mxit.com>
parents:
31293
diff
changeset
|
891 | |
|
b6c47ea33682
Add API: purple_request_field_set_tooltip & purple_request_field_get_tooltip
Andrew Victor <andrew.victor@mxit.com>
parents:
31293
diff
changeset
|
892 | /** |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
893 | * Returns whether or not a field is required. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
894 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
895 | * @param field The field. |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
896 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
897 | * @return TRUE if the field is required, or FALSE. |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
898 | */ |
| 15884 | 899 | gboolean purple_request_field_is_required(const PurpleRequestField *field); |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
900 | |
|
24984
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
901 | /** |
|
33213
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
902 | * Checks, if specified field has value. |
|
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
903 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
904 | * @param field The field. |
|
33213
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
905 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
906 | * @return TRUE if the field has value, or FALSE. |
|
33213
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
907 | */ |
|
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
908 | gboolean purple_request_field_is_filled(const PurpleRequestField *field); |
|
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
909 | |
|
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
910 | /** |
|
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
911 | * Sets validator for a single field. |
|
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
912 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
913 | * @param field The field. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
914 | * @param validator The validator callback, NULL to disable validation. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
915 | * @param user_data The data to pass to the callback. |
|
33213
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
916 | */ |
|
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
917 | void purple_request_field_set_validator(PurpleRequestField *field, |
|
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
918 | PurpleRequestFieldValidator validator, void *user_data); |
|
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
919 | |
|
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
920 | /** |
|
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
921 | * Returns whether or not field has validator set. |
|
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
922 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
923 | * @param field The field. |
|
33213
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
924 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
925 | * @return TRUE if the field has validator, or FALSE. |
|
33213
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
926 | */ |
|
33219
06b19630bdb0
Validation for Request API fixes
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33213
diff
changeset
|
927 | gboolean purple_request_field_is_validatable(PurpleRequestField *field); |
|
33213
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
928 | |
|
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
929 | /** |
|
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
930 | * Checks, if specified field is valid. |
|
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
931 | * |
|
33219
06b19630bdb0
Validation for Request API fixes
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33213
diff
changeset
|
932 | * If detailed message about failure reason is needed, there is an option to |
|
06b19630bdb0
Validation for Request API fixes
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33213
diff
changeset
|
933 | * return (via errmsg argument) pointer to newly allocated error message. |
|
06b19630bdb0
Validation for Request API fixes
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33213
diff
changeset
|
934 | * It must be freed with g_free after use. |
|
06b19630bdb0
Validation for Request API fixes
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33213
diff
changeset
|
935 | * |
|
33213
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
936 | * Note: empty, not required fields are valid. |
|
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
937 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
938 | * @param field The field. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
939 | * @param errmsg If non-NULL, the memory area, where the pointer to validation |
|
33219
06b19630bdb0
Validation for Request API fixes
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33213
diff
changeset
|
940 | * failure message will be set. |
|
33213
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
941 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
942 | * @return TRUE, if the field is valid, FALSE otherwise. |
|
33213
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
943 | */ |
|
33219
06b19630bdb0
Validation for Request API fixes
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33213
diff
changeset
|
944 | gboolean purple_request_field_is_valid(PurpleRequestField *field, gchar **errmsg); |
|
33213
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
945 | |
|
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
946 | /** |
|
34496
f1eeb0d0cea5
Request API: fill in the comments
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34495
diff
changeset
|
947 | * Sets field editable. |
|
f1eeb0d0cea5
Request API: fill in the comments
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34495
diff
changeset
|
948 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
949 | * @param field The field. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
950 | * @param sensitive TRUE if the field should be sensitive for user input. |
|
34496
f1eeb0d0cea5
Request API: fill in the comments
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34495
diff
changeset
|
951 | */ |
|
34494
eee5ad689415
Request API: fields sensitivity
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34451
diff
changeset
|
952 | void purple_request_field_set_sensitive(PurpleRequestField *field, |
|
eee5ad689415
Request API: fields sensitivity
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34451
diff
changeset
|
953 | gboolean sensitive); |
|
eee5ad689415
Request API: fields sensitivity
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34451
diff
changeset
|
954 | |
|
34496
f1eeb0d0cea5
Request API: fill in the comments
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34495
diff
changeset
|
955 | /** |
|
f1eeb0d0cea5
Request API: fill in the comments
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34495
diff
changeset
|
956 | * Checks, if field is editable. |
|
f1eeb0d0cea5
Request API: fill in the comments
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34495
diff
changeset
|
957 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
958 | * @param field The field. |
|
34496
f1eeb0d0cea5
Request API: fill in the comments
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34495
diff
changeset
|
959 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
960 | * @return TRUE, if the field is sensitive for user input. |
|
34496
f1eeb0d0cea5
Request API: fill in the comments
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34495
diff
changeset
|
961 | */ |
|
34494
eee5ad689415
Request API: fields sensitivity
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34451
diff
changeset
|
962 | gboolean purple_request_field_is_sensitive(PurpleRequestField *field); |
|
eee5ad689415
Request API: fields sensitivity
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34451
diff
changeset
|
963 | |
|
34496
f1eeb0d0cea5
Request API: fill in the comments
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34495
diff
changeset
|
964 | /** |
|
f1eeb0d0cea5
Request API: fill in the comments
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34495
diff
changeset
|
965 | * Sets the callback, used to determine if the field should be editable. |
|
f1eeb0d0cea5
Request API: fill in the comments
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34495
diff
changeset
|
966 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
967 | * @param field The field. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
968 | * @param cb The callback. |
|
34496
f1eeb0d0cea5
Request API: fill in the comments
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34495
diff
changeset
|
969 | */ |
|
34494
eee5ad689415
Request API: fields sensitivity
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34451
diff
changeset
|
970 | void purple_request_field_set_sensitivity_cb(PurpleRequestField *field, |
|
eee5ad689415
Request API: fields sensitivity
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34451
diff
changeset
|
971 | PurpleRequestFieldSensitivityCb cb); |
|
eee5ad689415
Request API: fields sensitivity
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34451
diff
changeset
|
972 | |
|
33213
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
973 | /** |
|
24984
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
974 | * Returns the ui_data for a field. |
|
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
975 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
976 | * @param field The field. |
|
24984
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
977 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
978 | * @return The UI data. |
|
24984
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
979 | */ |
|
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
980 | gpointer purple_request_field_get_ui_data(const PurpleRequestField *field); |
|
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
981 | |
|
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
982 | /** |
|
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
983 | * Sets the ui_data for a field. |
|
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
984 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
985 | * @param field The field. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
986 | * @param ui_data The UI data. |
|
24984
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
987 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
988 | * @return The UI data. |
|
24984
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
989 | */ |
|
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
990 | void purple_request_field_set_ui_data(PurpleRequestField *field, |
|
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
991 | gpointer ui_data); |
|
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
992 | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
993 | /*@}*/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
994 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
995 | /**************************************************************************/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
996 | /** @name String Field API */ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
997 | /**************************************************************************/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
998 | /*@{*/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
999 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1000 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1001 | * Creates a string request field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1002 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1003 | * @param id The field ID. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1004 | * @param text The text label of the field. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1005 | * @param default_value The optional default value. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1006 | * @param multiline Whether or not this should be a multiline string. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1007 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1008 | * @return The new field. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1009 | */ |
| 15884 | 1010 | PurpleRequestField *purple_request_field_string_new(const char *id, |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1011 | const char *text, |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1012 | const char *default_value, |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1013 | gboolean multiline); |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1014 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1015 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1016 | * Sets the default value in a string field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1017 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1018 | * @param field The field. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1019 | * @param default_value The default value. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1020 | */ |
| 15884 | 1021 | void purple_request_field_string_set_default_value(PurpleRequestField *field, |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1022 | const char *default_value); |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1023 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1024 | /** |
|
5808
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
1025 | * Sets the value in a string field. |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
1026 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1027 | * @param field The field. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1028 | * @param value The value. |
|
5808
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
1029 | */ |
| 15884 | 1030 | void purple_request_field_string_set_value(PurpleRequestField *field, |
|
5808
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
1031 | const char *value); |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
1032 | |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
1033 | /** |
|
7047
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
1034 | * Sets whether or not a string field is masked |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
1035 | * (commonly used for password fields). |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
1036 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1037 | * @param field The field. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1038 | * @param masked The masked value. |
|
7047
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
1039 | */ |
| 15884 | 1040 | void purple_request_field_string_set_masked(PurpleRequestField *field, |
|
7047
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
1041 | gboolean masked); |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
1042 | |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
1043 | /** |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1044 | * Returns the default value in a string field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1045 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1046 | * @param field The field. |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1047 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1048 | * @return The default value. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1049 | */ |
| 15884 | 1050 | const char *purple_request_field_string_get_default_value( |
| 1051 | const PurpleRequestField *field); | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1052 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1053 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1054 | * Returns the user-entered value in a string field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1055 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1056 | * @param field The field. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1057 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1058 | * @return The value. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1059 | */ |
| 15884 | 1060 | const char *purple_request_field_string_get_value(const PurpleRequestField *field); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1061 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1062 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1063 | * Returns whether or not a string field is multi-line. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1064 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1065 | * @param field The field. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1066 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1067 | * @return @c TRUE if the field is mulit-line, or @c FALSE otherwise. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1068 | */ |
| 15884 | 1069 | gboolean purple_request_field_string_is_multiline(const PurpleRequestField *field); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1070 | |
|
7047
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
1071 | /** |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
1072 | * Returns whether or not a string field is masked. |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
1073 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1074 | * @param field The field. |
|
7047
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
1075 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1076 | * @return @c TRUE if the field is masked, or @c FALSE otherwise. |
|
7047
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
1077 | */ |
| 15884 | 1078 | gboolean purple_request_field_string_is_masked(const PurpleRequestField *field); |
|
7047
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
1079 | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1080 | /*@}*/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1081 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1082 | /**************************************************************************/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1083 | /** @name Integer Field API */ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1084 | /**************************************************************************/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1085 | /*@{*/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1086 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1087 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1088 | * Creates an integer field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1089 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1090 | * @param id The field ID. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1091 | * @param text The text label of the field. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1092 | * @param default_value The default value. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1093 | * @param lower_bound The lower bound. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1094 | * @param upper_bound The upper bound. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1095 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1096 | * @return The new field. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1097 | */ |
| 15884 | 1098 | PurpleRequestField *purple_request_field_int_new(const char *id, |
|
33935
e740bbb8350c
Request API: fix integer fields, add bounds to them
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33237
diff
changeset
|
1099 | const char *text, int default_value, int lower_bound, int upper_bound); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1100 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1101 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1102 | * Sets the default value in an integer field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1103 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1104 | * @param field The field. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1105 | * @param default_value The default value. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1106 | */ |
| 15884 | 1107 | void purple_request_field_int_set_default_value(PurpleRequestField *field, |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1108 | int default_value); |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1109 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1110 | /** |
|
33935
e740bbb8350c
Request API: fix integer fields, add bounds to them
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33237
diff
changeset
|
1111 | * Sets the lower bound in an integer field. |
|
e740bbb8350c
Request API: fix integer fields, add bounds to them
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33237
diff
changeset
|
1112 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1113 | * @param field The field. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1114 | * @param lower_bound The lower bound. |
|
33935
e740bbb8350c
Request API: fix integer fields, add bounds to them
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33237
diff
changeset
|
1115 | */ |
|
e740bbb8350c
Request API: fix integer fields, add bounds to them
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33237
diff
changeset
|
1116 | void purple_request_field_int_set_lower_bound(PurpleRequestField *field, int lower_bound); |
|
e740bbb8350c
Request API: fix integer fields, add bounds to them
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33237
diff
changeset
|
1117 | |
|
e740bbb8350c
Request API: fix integer fields, add bounds to them
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33237
diff
changeset
|
1118 | /** |
|
e740bbb8350c
Request API: fix integer fields, add bounds to them
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33237
diff
changeset
|
1119 | * Sets the upper bound in an integer field. |
|
e740bbb8350c
Request API: fix integer fields, add bounds to them
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33237
diff
changeset
|
1120 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1121 | * @param field The field. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1122 | * @param upper_bound The upper bound. |
|
33935
e740bbb8350c
Request API: fix integer fields, add bounds to them
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33237
diff
changeset
|
1123 | */ |
|
e740bbb8350c
Request API: fix integer fields, add bounds to them
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33237
diff
changeset
|
1124 | void purple_request_field_int_set_upper_bound(PurpleRequestField *field, int lower_bound); |
|
e740bbb8350c
Request API: fix integer fields, add bounds to them
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33237
diff
changeset
|
1125 | |
|
e740bbb8350c
Request API: fix integer fields, add bounds to them
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33237
diff
changeset
|
1126 | /** |
|
5808
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
1127 | * Sets the value in an integer field. |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
1128 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1129 | * @param field The field. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1130 | * @param value The value. |
|
5808
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
1131 | */ |
| 15884 | 1132 | void purple_request_field_int_set_value(PurpleRequestField *field, int value); |
|
5808
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
1133 | |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
1134 | /** |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1135 | * Returns the default value in an integer field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1136 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1137 | * @param field The field. |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1138 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1139 | * @return The default value. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1140 | */ |
| 15884 | 1141 | int purple_request_field_int_get_default_value(const PurpleRequestField *field); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1142 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1143 | /** |
|
33935
e740bbb8350c
Request API: fix integer fields, add bounds to them
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33237
diff
changeset
|
1144 | * Returns the lower bound in an integer field. |
|
e740bbb8350c
Request API: fix integer fields, add bounds to them
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33237
diff
changeset
|
1145 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1146 | * @param field The field. |
|
33935
e740bbb8350c
Request API: fix integer fields, add bounds to them
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33237
diff
changeset
|
1147 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1148 | * @return The lower bound. |
|
33935
e740bbb8350c
Request API: fix integer fields, add bounds to them
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33237
diff
changeset
|
1149 | */ |
|
e740bbb8350c
Request API: fix integer fields, add bounds to them
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33237
diff
changeset
|
1150 | int purple_request_field_int_get_lower_bound(const PurpleRequestField *field); |
|
e740bbb8350c
Request API: fix integer fields, add bounds to them
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33237
diff
changeset
|
1151 | |
|
e740bbb8350c
Request API: fix integer fields, add bounds to them
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33237
diff
changeset
|
1152 | /** |
|
e740bbb8350c
Request API: fix integer fields, add bounds to them
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33237
diff
changeset
|
1153 | * Returns the upper bound in an integer field. |
|
e740bbb8350c
Request API: fix integer fields, add bounds to them
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33237
diff
changeset
|
1154 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1155 | * @param field The field. |
|
33935
e740bbb8350c
Request API: fix integer fields, add bounds to them
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33237
diff
changeset
|
1156 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1157 | * @return The upper bound. |
|
33935
e740bbb8350c
Request API: fix integer fields, add bounds to them
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33237
diff
changeset
|
1158 | */ |
|
e740bbb8350c
Request API: fix integer fields, add bounds to them
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33237
diff
changeset
|
1159 | int purple_request_field_int_get_upper_bound(const PurpleRequestField *field); |
|
e740bbb8350c
Request API: fix integer fields, add bounds to them
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33237
diff
changeset
|
1160 | |
|
e740bbb8350c
Request API: fix integer fields, add bounds to them
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33237
diff
changeset
|
1161 | /** |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1162 | * Returns the user-entered value in an integer field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1163 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1164 | * @param field The field. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1165 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1166 | * @return The value. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1167 | */ |
| 15884 | 1168 | int purple_request_field_int_get_value(const PurpleRequestField *field); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1169 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1170 | /*@}*/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1171 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1172 | /**************************************************************************/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1173 | /** @name Boolean Field API */ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1174 | /**************************************************************************/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1175 | /*@{*/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1176 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1177 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1178 | * Creates a boolean field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1179 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1180 | * This is often represented as a checkbox. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1181 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1182 | * @param id The field ID. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1183 | * @param text The text label of the field. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1184 | * @param default_value The default value. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1185 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1186 | * @return The new field. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1187 | */ |
| 15884 | 1188 | PurpleRequestField *purple_request_field_bool_new(const char *id, |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1189 | const char *text, |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1190 | gboolean default_value); |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1191 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1192 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1193 | * Sets the default value in an boolean field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1194 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1195 | * @param field The field. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1196 | * @param default_value The default value. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1197 | */ |
| 15884 | 1198 | void purple_request_field_bool_set_default_value(PurpleRequestField *field, |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1199 | gboolean default_value); |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1200 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1201 | /** |
|
5808
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
1202 | * Sets the value in an boolean field. |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
1203 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1204 | * @param field The field. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1205 | * @param value The value. |
|
5808
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
1206 | */ |
| 15884 | 1207 | void purple_request_field_bool_set_value(PurpleRequestField *field, |
|
5808
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
1208 | gboolean value); |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
1209 | |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
1210 | /** |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1211 | * Returns the default value in an boolean field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1212 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1213 | * @param field The field. |
|
6720
cdc5348dd848
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6035
diff
changeset
|
1214 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1215 | * @return The default value. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1216 | */ |
| 15884 | 1217 | gboolean purple_request_field_bool_get_default_value( |
| 1218 | const PurpleRequestField *field); | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1219 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1220 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1221 | * Returns the user-entered value in an boolean field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1222 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1223 | * @param field The field. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1224 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1225 | * @return The value. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1226 | */ |
| 15884 | 1227 | gboolean purple_request_field_bool_get_value(const PurpleRequestField *field); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1228 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1229 | /*@}*/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1230 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1231 | /**************************************************************************/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1232 | /** @name Choice Field API */ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1233 | /**************************************************************************/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1234 | /*@{*/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1235 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1236 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1237 | * Creates a multiple choice field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1238 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1239 | * This is often represented as a group of radio buttons. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1240 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1241 | * @param id The field ID. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1242 | * @param text The optional label of the field. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1243 | * @param default_value The default choice. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1244 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1245 | * @return The new field. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1246 | */ |
|
34338
c652670afac5
Request API refactoring: custom PURPLE_REQUEST_CHOICE values, instead of indexes
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34337
diff
changeset
|
1247 | PurpleRequestField * |
|
c652670afac5
Request API refactoring: custom PURPLE_REQUEST_CHOICE values, instead of indexes
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34337
diff
changeset
|
1248 | purple_request_field_choice_new(const char *id, const char *text, |
|
c652670afac5
Request API refactoring: custom PURPLE_REQUEST_CHOICE values, instead of indexes
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34337
diff
changeset
|
1249 | gpointer default_value); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1250 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1251 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1252 | * Adds a choice to a multiple choice field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1253 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1254 | * @param field The choice field. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1255 | * @param label The choice label. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1256 | * @param data The choice value. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1257 | */ |
|
34338
c652670afac5
Request API refactoring: custom PURPLE_REQUEST_CHOICE values, instead of indexes
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34337
diff
changeset
|
1258 | void |
|
c652670afac5
Request API refactoring: custom PURPLE_REQUEST_CHOICE values, instead of indexes
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34337
diff
changeset
|
1259 | purple_request_field_choice_add(PurpleRequestField *field, const char *label, |
|
c652670afac5
Request API refactoring: custom PURPLE_REQUEST_CHOICE values, instead of indexes
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34337
diff
changeset
|
1260 | gpointer data); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1261 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1262 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1263 | * Sets the default value in an choice field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1264 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1265 | * @param field The field. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1266 | * @param default_value The default value. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1267 | */ |
|
34338
c652670afac5
Request API refactoring: custom PURPLE_REQUEST_CHOICE values, instead of indexes
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34337
diff
changeset
|
1268 | void |
|
c652670afac5
Request API refactoring: custom PURPLE_REQUEST_CHOICE values, instead of indexes
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34337
diff
changeset
|
1269 | purple_request_field_choice_set_default_value(PurpleRequestField *field, |
|
c652670afac5
Request API refactoring: custom PURPLE_REQUEST_CHOICE values, instead of indexes
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34337
diff
changeset
|
1270 | gpointer default_value); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1271 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1272 | /** |
|
5808
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
1273 | * Sets the value in an choice field. |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
1274 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1275 | * @param field The field. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1276 | * @param value The value. |
|
5808
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
1277 | */ |
|
34338
c652670afac5
Request API refactoring: custom PURPLE_REQUEST_CHOICE values, instead of indexes
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34337
diff
changeset
|
1278 | void |
|
c652670afac5
Request API refactoring: custom PURPLE_REQUEST_CHOICE values, instead of indexes
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34337
diff
changeset
|
1279 | purple_request_field_choice_set_value(PurpleRequestField *field, |
|
c652670afac5
Request API refactoring: custom PURPLE_REQUEST_CHOICE values, instead of indexes
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34337
diff
changeset
|
1280 | gpointer value); |
|
5808
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
1281 | |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
1282 | /** |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1283 | * Returns the default value in an choice field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1284 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1285 | * @param field The field. |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1286 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1287 | * @return The default value. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1288 | */ |
|
34338
c652670afac5
Request API refactoring: custom PURPLE_REQUEST_CHOICE values, instead of indexes
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34337
diff
changeset
|
1289 | gpointer |
|
c652670afac5
Request API refactoring: custom PURPLE_REQUEST_CHOICE values, instead of indexes
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34337
diff
changeset
|
1290 | purple_request_field_choice_get_default_value(const PurpleRequestField *field); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1291 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1292 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1293 | * Returns the user-entered value in an choice field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1294 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1295 | * @param field The field. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1296 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1297 | * @return The value. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1298 | */ |
|
34338
c652670afac5
Request API refactoring: custom PURPLE_REQUEST_CHOICE values, instead of indexes
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34337
diff
changeset
|
1299 | gpointer |
|
c652670afac5
Request API refactoring: custom PURPLE_REQUEST_CHOICE values, instead of indexes
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34337
diff
changeset
|
1300 | purple_request_field_choice_get_value(const PurpleRequestField *field); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1301 | |
|
5809
3550646492e0
[gaim-migrate @ 6239]
Christian Hammond <chipx86@chipx86.com>
parents:
5808
diff
changeset
|
1302 | /** |
|
34338
c652670afac5
Request API refactoring: custom PURPLE_REQUEST_CHOICE values, instead of indexes
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34337
diff
changeset
|
1303 | * Returns a list of elements in a choice field. |
|
5809
3550646492e0
[gaim-migrate @ 6239]
Christian Hammond <chipx86@chipx86.com>
parents:
5808
diff
changeset
|
1304 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1305 | * @param field The field. |
|
5809
3550646492e0
[gaim-migrate @ 6239]
Christian Hammond <chipx86@chipx86.com>
parents:
5808
diff
changeset
|
1306 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1307 | * @constreturn The list of pairs <label, value>. |
|
5809
3550646492e0
[gaim-migrate @ 6239]
Christian Hammond <chipx86@chipx86.com>
parents:
5808
diff
changeset
|
1308 | */ |
|
34338
c652670afac5
Request API refactoring: custom PURPLE_REQUEST_CHOICE values, instead of indexes
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34337
diff
changeset
|
1309 | GList * |
|
c652670afac5
Request API refactoring: custom PURPLE_REQUEST_CHOICE values, instead of indexes
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34337
diff
changeset
|
1310 | purple_request_field_choice_get_elements(const PurpleRequestField *field); |
|
c652670afac5
Request API refactoring: custom PURPLE_REQUEST_CHOICE values, instead of indexes
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34337
diff
changeset
|
1311 | |
|
34339
3579cb14f8f2
Request API: compact layout feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34338
diff
changeset
|
1312 | /** |
|
3579cb14f8f2
Request API: compact layout feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34338
diff
changeset
|
1313 | * Sets the destructor for field values. |
|
3579cb14f8f2
Request API: compact layout feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34338
diff
changeset
|
1314 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1315 | * @param field The field. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1316 | * @param destroy The destroy function. |
|
34339
3579cb14f8f2
Request API: compact layout feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34338
diff
changeset
|
1317 | */ |
|
34338
c652670afac5
Request API refactoring: custom PURPLE_REQUEST_CHOICE values, instead of indexes
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34337
diff
changeset
|
1318 | void |
|
c652670afac5
Request API refactoring: custom PURPLE_REQUEST_CHOICE values, instead of indexes
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34337
diff
changeset
|
1319 | purple_request_field_choice_set_data_destructor(PurpleRequestField *field, |
|
c652670afac5
Request API refactoring: custom PURPLE_REQUEST_CHOICE values, instead of indexes
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34337
diff
changeset
|
1320 | GDestroyNotify destroy); |
|
5809
3550646492e0
[gaim-migrate @ 6239]
Christian Hammond <chipx86@chipx86.com>
parents:
5808
diff
changeset
|
1321 | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1322 | /*@}*/ |
|
5482
6831f83bfae5
[gaim-migrate @ 5878]
Christian Hammond <chipx86@chipx86.com>
parents:
5477
diff
changeset
|
1323 | |
| 5477 | 1324 | /**************************************************************************/ |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1325 | /** @name List Field API */ |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1326 | /**************************************************************************/ |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1327 | /*@{*/ |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1328 | |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1329 | /** |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1330 | * Creates a multiple list item field. |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1331 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1332 | * @param id The field ID. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1333 | * @param text The optional label of the field. |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1334 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1335 | * @return The new field. |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1336 | */ |
| 15884 | 1337 | PurpleRequestField *purple_request_field_list_new(const char *id, const char *text); |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1338 | |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1339 | /** |
|
7899
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
1340 | * Sets whether or not a list field allows multiple selection. |
|
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
1341 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1342 | * @param field The list field. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1343 | * @param multi_select TRUE if multiple selection is enabled, |
|
7899
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
1344 | * or FALSE otherwise. |
|
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
1345 | */ |
| 15884 | 1346 | void purple_request_field_list_set_multi_select(PurpleRequestField *field, |
|
7899
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
1347 | gboolean multi_select); |
|
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
1348 | |
|
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
1349 | /** |
|
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
1350 | * Returns whether or not a list field allows multiple selection. |
|
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
1351 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1352 | * @param field The list field. |
|
7899
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
1353 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1354 | * @return TRUE if multiple selection is enabled, or FALSE otherwise. |
|
7899
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
1355 | */ |
| 15884 | 1356 | gboolean purple_request_field_list_get_multi_select( |
| 1357 | const PurpleRequestField *field); | |
|
7899
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
1358 | |
|
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
1359 | /** |
|
7909
f2b88b6b97a7
[gaim-migrate @ 8569]
Christian Hammond <chipx86@chipx86.com>
parents:
7905
diff
changeset
|
1360 | * Returns the data for a particular item. |
|
f2b88b6b97a7
[gaim-migrate @ 8569]
Christian Hammond <chipx86@chipx86.com>
parents:
7905
diff
changeset
|
1361 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1362 | * @param field The list field. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1363 | * @param text The item text. |
|
7909
f2b88b6b97a7
[gaim-migrate @ 8569]
Christian Hammond <chipx86@chipx86.com>
parents:
7905
diff
changeset
|
1364 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1365 | * @return The data associated with the item. |
|
7909
f2b88b6b97a7
[gaim-migrate @ 8569]
Christian Hammond <chipx86@chipx86.com>
parents:
7905
diff
changeset
|
1366 | */ |
| 15884 | 1367 | void *purple_request_field_list_get_data(const PurpleRequestField *field, |
|
7909
f2b88b6b97a7
[gaim-migrate @ 8569]
Christian Hammond <chipx86@chipx86.com>
parents:
7905
diff
changeset
|
1368 | const char *text); |
|
f2b88b6b97a7
[gaim-migrate @ 8569]
Christian Hammond <chipx86@chipx86.com>
parents:
7905
diff
changeset
|
1369 | |
|
f2b88b6b97a7
[gaim-migrate @ 8569]
Christian Hammond <chipx86@chipx86.com>
parents:
7905
diff
changeset
|
1370 | /** |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1371 | * Adds an item to a list field. |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1372 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1373 | * @param field The list field. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1374 | * @param item The list item. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1375 | * @param icon_path The path to icon file, or @c NULL for no icon. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1376 | * @param data The associated data. |
|
24625
4082cd694acb
This patch comes from the combined work of contributors minstrel, NightFox,
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22593
diff
changeset
|
1377 | */ |
|
4082cd694acb
This patch comes from the combined work of contributors minstrel, NightFox,
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22593
diff
changeset
|
1378 | void purple_request_field_list_add_icon(PurpleRequestField *field, |
|
4082cd694acb
This patch comes from the combined work of contributors minstrel, NightFox,
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22593
diff
changeset
|
1379 | const char *item, const char* icon_path, void* data); |
|
4082cd694acb
This patch comes from the combined work of contributors minstrel, NightFox,
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22593
diff
changeset
|
1380 | |
|
4082cd694acb
This patch comes from the combined work of contributors minstrel, NightFox,
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22593
diff
changeset
|
1381 | /** |
|
7902
6c04e5d38897
[gaim-migrate @ 8562]
Christian Hammond <chipx86@chipx86.com>
parents:
7901
diff
changeset
|
1382 | * Adds a selected item to the list field. |
|
6c04e5d38897
[gaim-migrate @ 8562]
Christian Hammond <chipx86@chipx86.com>
parents:
7901
diff
changeset
|
1383 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1384 | * @param field The field. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1385 | * @param item The item to add. |
|
7902
6c04e5d38897
[gaim-migrate @ 8562]
Christian Hammond <chipx86@chipx86.com>
parents:
7901
diff
changeset
|
1386 | */ |
| 15884 | 1387 | void purple_request_field_list_add_selected(PurpleRequestField *field, |
|
7902
6c04e5d38897
[gaim-migrate @ 8562]
Christian Hammond <chipx86@chipx86.com>
parents:
7901
diff
changeset
|
1388 | const char *item); |
|
6c04e5d38897
[gaim-migrate @ 8562]
Christian Hammond <chipx86@chipx86.com>
parents:
7901
diff
changeset
|
1389 | |
|
6c04e5d38897
[gaim-migrate @ 8562]
Christian Hammond <chipx86@chipx86.com>
parents:
7901
diff
changeset
|
1390 | /** |
|
6c04e5d38897
[gaim-migrate @ 8562]
Christian Hammond <chipx86@chipx86.com>
parents:
7901
diff
changeset
|
1391 | * Clears the list of selected items in a list field. |
|
6c04e5d38897
[gaim-migrate @ 8562]
Christian Hammond <chipx86@chipx86.com>
parents:
7901
diff
changeset
|
1392 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1393 | * @param field The field. |
|
7902
6c04e5d38897
[gaim-migrate @ 8562]
Christian Hammond <chipx86@chipx86.com>
parents:
7901
diff
changeset
|
1394 | */ |
| 15884 | 1395 | void purple_request_field_list_clear_selected(PurpleRequestField *field); |
|
7902
6c04e5d38897
[gaim-migrate @ 8562]
Christian Hammond <chipx86@chipx86.com>
parents:
7901
diff
changeset
|
1396 | |
|
6c04e5d38897
[gaim-migrate @ 8562]
Christian Hammond <chipx86@chipx86.com>
parents:
7901
diff
changeset
|
1397 | /** |
|
7901
f09d051b649d
[gaim-migrate @ 8561]
Christian Hammond <chipx86@chipx86.com>
parents:
7899
diff
changeset
|
1398 | * Sets a list of selected items in a list field. |
|
f09d051b649d
[gaim-migrate @ 8561]
Christian Hammond <chipx86@chipx86.com>
parents:
7899
diff
changeset
|
1399 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1400 | * @param field The field. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1401 | * @param items The list of selected items, which is not modified or freed. |
|
7901
f09d051b649d
[gaim-migrate @ 8561]
Christian Hammond <chipx86@chipx86.com>
parents:
7899
diff
changeset
|
1402 | */ |
| 15884 | 1403 | void purple_request_field_list_set_selected(PurpleRequestField *field, |
|
18190
bcf28ef7e8ff
Re-fix the DBus list handling code by killing const GList* / const GSList*
Richard Laager <rlaager@pidgin.im>
parents:
16743
diff
changeset
|
1404 | GList *items); |
|
7901
f09d051b649d
[gaim-migrate @ 8561]
Christian Hammond <chipx86@chipx86.com>
parents:
7899
diff
changeset
|
1405 | |
|
f09d051b649d
[gaim-migrate @ 8561]
Christian Hammond <chipx86@chipx86.com>
parents:
7899
diff
changeset
|
1406 | /** |
|
7964
10d58eb8a16a
[gaim-migrate @ 8641]
Christian Hammond <chipx86@chipx86.com>
parents:
7963
diff
changeset
|
1407 | * Returns whether or not a particular item is selected in a list field. |
|
10d58eb8a16a
[gaim-migrate @ 8641]
Christian Hammond <chipx86@chipx86.com>
parents:
7963
diff
changeset
|
1408 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1409 | * @param field The field. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1410 | * @param item The item. |
|
7964
10d58eb8a16a
[gaim-migrate @ 8641]
Christian Hammond <chipx86@chipx86.com>
parents:
7963
diff
changeset
|
1411 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1412 | * @return TRUE if the item is selected. FALSE otherwise. |
|
7964
10d58eb8a16a
[gaim-migrate @ 8641]
Christian Hammond <chipx86@chipx86.com>
parents:
7963
diff
changeset
|
1413 | */ |
| 15884 | 1414 | gboolean purple_request_field_list_is_selected(const PurpleRequestField *field, |
|
7964
10d58eb8a16a
[gaim-migrate @ 8641]
Christian Hammond <chipx86@chipx86.com>
parents:
7963
diff
changeset
|
1415 | const char *item); |
|
10d58eb8a16a
[gaim-migrate @ 8641]
Christian Hammond <chipx86@chipx86.com>
parents:
7963
diff
changeset
|
1416 | |
|
10d58eb8a16a
[gaim-migrate @ 8641]
Christian Hammond <chipx86@chipx86.com>
parents:
7963
diff
changeset
|
1417 | /** |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1418 | * Returns a list of selected items in a list field. |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1419 | * |
|
7963
f982dbac2ccf
[gaim-migrate @ 8640]
Christian Hammond <chipx86@chipx86.com>
parents:
7909
diff
changeset
|
1420 | * To retrieve the data for each item, use |
| 15884 | 1421 | * purple_request_field_list_get_data(). |
|
7963
f982dbac2ccf
[gaim-migrate @ 8640]
Christian Hammond <chipx86@chipx86.com>
parents:
7909
diff
changeset
|
1422 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1423 | * @param field The field. |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1424 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1425 | * @constreturn The list of selected items. |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1426 | */ |
|
18190
bcf28ef7e8ff
Re-fix the DBus list handling code by killing const GList* / const GSList*
Richard Laager <rlaager@pidgin.im>
parents:
16743
diff
changeset
|
1427 | GList *purple_request_field_list_get_selected( |
| 15884 | 1428 | const PurpleRequestField *field); |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1429 | |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1430 | /** |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1431 | * Returns a list of items in a list field. |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1432 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1433 | * @param field The field. |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1434 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1435 | * @constreturn The list of items. |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1436 | */ |
|
18190
bcf28ef7e8ff
Re-fix the DBus list handling code by killing const GList* / const GSList*
Richard Laager <rlaager@pidgin.im>
parents:
16743
diff
changeset
|
1437 | GList *purple_request_field_list_get_items(const PurpleRequestField *field); |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1438 | |
|
24625
4082cd694acb
This patch comes from the combined work of contributors minstrel, NightFox,
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22593
diff
changeset
|
1439 | /** |
|
4082cd694acb
This patch comes from the combined work of contributors minstrel, NightFox,
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22593
diff
changeset
|
1440 | * Returns a list of icons in a list field. |
|
4082cd694acb
This patch comes from the combined work of contributors minstrel, NightFox,
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22593
diff
changeset
|
1441 | * |
|
24899
54719498c900
Deprecate purple_request_field_list_add() in favor of the new
Richard Laager <rlaager@pidgin.im>
parents:
24892
diff
changeset
|
1442 | * The icons will correspond with the items, in order. |
|
54719498c900
Deprecate purple_request_field_list_add() in favor of the new
Richard Laager <rlaager@pidgin.im>
parents:
24892
diff
changeset
|
1443 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1444 | * @param field The field. |
|
24625
4082cd694acb
This patch comes from the combined work of contributors minstrel, NightFox,
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22593
diff
changeset
|
1445 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1446 | * @constreturn The list of icons or @c NULL (i.e. the empty GList) if no |
|
24899
54719498c900
Deprecate purple_request_field_list_add() in favor of the new
Richard Laager <rlaager@pidgin.im>
parents:
24892
diff
changeset
|
1447 | * items have icons. |
|
24625
4082cd694acb
This patch comes from the combined work of contributors minstrel, NightFox,
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22593
diff
changeset
|
1448 | */ |
|
4082cd694acb
This patch comes from the combined work of contributors minstrel, NightFox,
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22593
diff
changeset
|
1449 | GList *purple_request_field_list_get_icons(const PurpleRequestField *field); |
|
4082cd694acb
This patch comes from the combined work of contributors minstrel, NightFox,
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22593
diff
changeset
|
1450 | |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1451 | /*@}*/ |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1452 | |
|
7905
03db29949e5d
[gaim-migrate @ 8565]
Christian Hammond <chipx86@chipx86.com>
parents:
7904
diff
changeset
|
1453 | /**************************************************************************/ |
|
03db29949e5d
[gaim-migrate @ 8565]
Christian Hammond <chipx86@chipx86.com>
parents:
7904
diff
changeset
|
1454 | /** @name Label Field API */ |
|
03db29949e5d
[gaim-migrate @ 8565]
Christian Hammond <chipx86@chipx86.com>
parents:
7904
diff
changeset
|
1455 | /**************************************************************************/ |
|
03db29949e5d
[gaim-migrate @ 8565]
Christian Hammond <chipx86@chipx86.com>
parents:
7904
diff
changeset
|
1456 | /*@{*/ |
|
03db29949e5d
[gaim-migrate @ 8565]
Christian Hammond <chipx86@chipx86.com>
parents:
7904
diff
changeset
|
1457 | |
|
03db29949e5d
[gaim-migrate @ 8565]
Christian Hammond <chipx86@chipx86.com>
parents:
7904
diff
changeset
|
1458 | /** |
|
03db29949e5d
[gaim-migrate @ 8565]
Christian Hammond <chipx86@chipx86.com>
parents:
7904
diff
changeset
|
1459 | * Creates a label field. |
|
03db29949e5d
[gaim-migrate @ 8565]
Christian Hammond <chipx86@chipx86.com>
parents:
7904
diff
changeset
|
1460 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1461 | * @param id The field ID. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1462 | * @param text The label of the field. |
|
7905
03db29949e5d
[gaim-migrate @ 8565]
Christian Hammond <chipx86@chipx86.com>
parents:
7904
diff
changeset
|
1463 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1464 | * @return The new field. |
|
7905
03db29949e5d
[gaim-migrate @ 8565]
Christian Hammond <chipx86@chipx86.com>
parents:
7904
diff
changeset
|
1465 | */ |
| 15884 | 1466 | PurpleRequestField *purple_request_field_label_new(const char *id, |
|
7905
03db29949e5d
[gaim-migrate @ 8565]
Christian Hammond <chipx86@chipx86.com>
parents:
7904
diff
changeset
|
1467 | const char *text); |
|
03db29949e5d
[gaim-migrate @ 8565]
Christian Hammond <chipx86@chipx86.com>
parents:
7904
diff
changeset
|
1468 | |
|
03db29949e5d
[gaim-migrate @ 8565]
Christian Hammond <chipx86@chipx86.com>
parents:
7904
diff
changeset
|
1469 | /*@}*/ |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1470 | |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1471 | /**************************************************************************/ |
| 11357 | 1472 | /** @name Image Field API */ |
| 1473 | /**************************************************************************/ | |
| 1474 | /*@{*/ | |
| 1475 | ||
| 1476 | /** | |
| 1477 | * Creates an image field. | |
| 1478 | * | |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1479 | * @param id The field ID. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1480 | * @param text The label of the field. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1481 | * @param buf The image data. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1482 | * @param size The size of the data in @a buffer. |
| 11357 | 1483 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1484 | * @return The new field. |
| 11357 | 1485 | */ |
| 15884 | 1486 | PurpleRequestField *purple_request_field_image_new(const char *id, const char *text, |
| 11357 | 1487 | const char *buf, gsize size); |
| 1488 | ||
| 1489 | /** | |
|
12399
535d819a4c74
[gaim-migrate @ 14706]
Richard Laager <rlaager@pidgin.im>
parents:
11502
diff
changeset
|
1490 | * Sets the scale factors of an image field. |
|
535d819a4c74
[gaim-migrate @ 14706]
Richard Laager <rlaager@pidgin.im>
parents:
11502
diff
changeset
|
1491 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1492 | * @param field The image field. |
|
12399
535d819a4c74
[gaim-migrate @ 14706]
Richard Laager <rlaager@pidgin.im>
parents:
11502
diff
changeset
|
1493 | * @param x The x scale factor. |
|
535d819a4c74
[gaim-migrate @ 14706]
Richard Laager <rlaager@pidgin.im>
parents:
11502
diff
changeset
|
1494 | * @param y The y scale factor. |
|
535d819a4c74
[gaim-migrate @ 14706]
Richard Laager <rlaager@pidgin.im>
parents:
11502
diff
changeset
|
1495 | */ |
| 15884 | 1496 | void purple_request_field_image_set_scale(PurpleRequestField *field, unsigned int x, unsigned int y); |
|
12399
535d819a4c74
[gaim-migrate @ 14706]
Richard Laager <rlaager@pidgin.im>
parents:
11502
diff
changeset
|
1497 | |
|
535d819a4c74
[gaim-migrate @ 14706]
Richard Laager <rlaager@pidgin.im>
parents:
11502
diff
changeset
|
1498 | /** |
| 11357 | 1499 | * Returns pointer to the image. |
| 1500 | * | |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1501 | * @param field The image field. |
| 11357 | 1502 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1503 | * @return Pointer to the image. |
| 11357 | 1504 | */ |
| 15884 | 1505 | const char *purple_request_field_image_get_buffer(PurpleRequestField *field); |
| 11357 | 1506 | |
| 1507 | /** | |
| 1508 | * Returns size (in bytes) of the image. | |
| 1509 | * | |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1510 | * @param field The image field. |
| 11357 | 1511 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1512 | * @return Size of the image. |
| 11357 | 1513 | */ |
| 15884 | 1514 | gsize purple_request_field_image_get_size(PurpleRequestField *field); |
| 11357 | 1515 | |
| 1516 | /** | |
| 1517 | * Returns X scale coefficient of the image. | |
| 1518 | * | |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1519 | * @param field The image field. |
| 11357 | 1520 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1521 | * @return X scale coefficient of the image. |
| 11357 | 1522 | */ |
| 15884 | 1523 | unsigned int purple_request_field_image_get_scale_x(PurpleRequestField *field); |
| 11357 | 1524 | |
| 1525 | /** | |
| 1526 | * Returns Y scale coefficient of the image. | |
| 1527 | * | |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1528 | * @param field The image field. |
| 11357 | 1529 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1530 | * @return Y scale coefficient of the image. |
| 11357 | 1531 | */ |
| 15884 | 1532 | unsigned int purple_request_field_image_get_scale_y(PurpleRequestField *field); |
| 11357 | 1533 | |
| 1534 | /*@}*/ | |
| 1535 | ||
| 1536 | /**************************************************************************/ | |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1537 | /** @name Account Field API */ |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1538 | /**************************************************************************/ |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1539 | /*@{*/ |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1540 | |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1541 | /** |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1542 | * Creates an account field. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1543 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1544 | * By default, this field will not show offline accounts. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1545 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1546 | * @param id The field ID. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1547 | * @param text The text label of the field. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1548 | * @param account The optional default account. |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1549 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1550 | * @return The new field. |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1551 | */ |
| 15884 | 1552 | PurpleRequestField *purple_request_field_account_new(const char *id, |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1553 | const char *text, |
| 15884 | 1554 | PurpleAccount *account); |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1555 | |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1556 | /** |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1557 | * Sets the default account on an account field. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1558 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1559 | * @param field The account field. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1560 | * @param default_value The default account. |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1561 | */ |
| 15884 | 1562 | void purple_request_field_account_set_default_value(PurpleRequestField *field, |
| 1563 | PurpleAccount *default_value); | |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1564 | |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1565 | /** |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1566 | * Sets the account in an account field. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1567 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1568 | * @param field The account field. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1569 | * @param value The account. |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1570 | */ |
| 15884 | 1571 | void purple_request_field_account_set_value(PurpleRequestField *field, |
| 1572 | PurpleAccount *value); | |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1573 | |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1574 | /** |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1575 | * Sets whether or not to show all accounts in an account field. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1576 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1577 | * If TRUE, all accounts, online or offline, will be shown. If FALSE, |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1578 | * only online accounts will be shown. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1579 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1580 | * @param field The account field. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1581 | * @param show_all Whether or not to show all accounts. |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1582 | */ |
| 15884 | 1583 | void purple_request_field_account_set_show_all(PurpleRequestField *field, |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1584 | gboolean show_all); |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1585 | |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1586 | /** |
|
8289
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1587 | * Sets the account filter function in an account field. |
|
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1588 | * |
|
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1589 | * This function will determine which accounts get displayed and which |
|
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1590 | * don't. |
|
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1591 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1592 | * @param field The account field. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1593 | * @param filter_func The account filter function. |
|
8289
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1594 | */ |
| 15884 | 1595 | void purple_request_field_account_set_filter(PurpleRequestField *field, |
| 1596 | PurpleFilterAccountFunc filter_func); | |
|
8289
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1597 | |
|
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1598 | /** |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1599 | * Returns the default account in an account field. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1600 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1601 | * @param field The field. |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1602 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1603 | * @return The default account. |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1604 | */ |
| 15884 | 1605 | PurpleAccount *purple_request_field_account_get_default_value( |
| 1606 | const PurpleRequestField *field); | |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1607 | |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1608 | /** |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1609 | * Returns the user-entered account in an account field. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1610 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1611 | * @param field The field. |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1612 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1613 | * @return The user-entered account. |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1614 | */ |
| 15884 | 1615 | PurpleAccount *purple_request_field_account_get_value( |
| 1616 | const PurpleRequestField *field); | |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1617 | |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1618 | /** |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1619 | * Returns whether or not to show all accounts in an account field. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1620 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1621 | * If TRUE, all accounts, online or offline, will be shown. If FALSE, |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1622 | * only online accounts will be shown. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1623 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1624 | * @param field The account field. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1625 | * @return Whether or not to show all accounts. |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1626 | */ |
| 15884 | 1627 | gboolean purple_request_field_account_get_show_all( |
| 1628 | const PurpleRequestField *field); | |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1629 | |
|
8289
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1630 | /** |
|
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1631 | * Returns the account filter function in an account field. |
|
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1632 | * |
|
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1633 | * This function will determine which accounts get displayed and which |
|
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1634 | * don't. |
|
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1635 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1636 | * @param field The account field. |
|
8289
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1637 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1638 | * @return The account filter function. |
|
8289
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1639 | */ |
| 15884 | 1640 | PurpleFilterAccountFunc purple_request_field_account_get_filter( |
| 1641 | const PurpleRequestField *field); | |
|
8289
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1642 | |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1643 | /*@}*/ |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1644 | |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1645 | /**************************************************************************/ |
|
32886
359ad954dccc
Add PurpleCertificate request field API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
1646 | /** @name Certificate Field API */ |
|
359ad954dccc
Add PurpleCertificate request field API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
1647 | /**************************************************************************/ |
|
359ad954dccc
Add PurpleCertificate request field API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
1648 | /*@{*/ |
|
359ad954dccc
Add PurpleCertificate request field API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
1649 | |
|
359ad954dccc
Add PurpleCertificate request field API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
1650 | /** |
|
359ad954dccc
Add PurpleCertificate request field API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
1651 | * Creates a certificate field. |
|
359ad954dccc
Add PurpleCertificate request field API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
1652 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1653 | * @param id The field ID. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1654 | * @param text The label of the field. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1655 | * @param cert The certificate of the field. |
|
32886
359ad954dccc
Add PurpleCertificate request field API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
1656 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1657 | * @return The new field. |
|
32886
359ad954dccc
Add PurpleCertificate request field API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
1658 | */ |
|
359ad954dccc
Add PurpleCertificate request field API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
1659 | PurpleRequestField *purple_request_field_certificate_new(const char *id, |
|
359ad954dccc
Add PurpleCertificate request field API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
1660 | const char *text, |
|
359ad954dccc
Add PurpleCertificate request field API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
1661 | PurpleCertificate *cert); |
|
359ad954dccc
Add PurpleCertificate request field API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
1662 | |
|
359ad954dccc
Add PurpleCertificate request field API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
1663 | /** |
|
359ad954dccc
Add PurpleCertificate request field API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
1664 | * Returns the certificate in a certificate field. |
|
359ad954dccc
Add PurpleCertificate request field API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
1665 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1666 | * @param field The field. |
|
32886
359ad954dccc
Add PurpleCertificate request field API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
1667 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1668 | * @return The certificate. |
|
32886
359ad954dccc
Add PurpleCertificate request field API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
1669 | */ |
|
359ad954dccc
Add PurpleCertificate request field API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
1670 | PurpleCertificate *purple_request_field_certificate_get_value( |
|
359ad954dccc
Add PurpleCertificate request field API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
1671 | const PurpleRequestField *field); |
|
359ad954dccc
Add PurpleCertificate request field API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
1672 | |
|
359ad954dccc
Add PurpleCertificate request field API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
1673 | /*@}*/ |
|
359ad954dccc
Add PurpleCertificate request field API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
1674 | |
|
359ad954dccc
Add PurpleCertificate request field API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
1675 | /**************************************************************************/ |
|
34502
433382371e89
Request API: datasheet field
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34501
diff
changeset
|
1676 | /** @name Datasheet Field API */ |
|
433382371e89
Request API: datasheet field
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34501
diff
changeset
|
1677 | /**************************************************************************/ |
|
433382371e89
Request API: datasheet field
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34501
diff
changeset
|
1678 | /*@{*/ |
|
433382371e89
Request API: datasheet field
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34501
diff
changeset
|
1679 | |
|
433382371e89
Request API: datasheet field
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34501
diff
changeset
|
1680 | /** |
|
433382371e89
Request API: datasheet field
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34501
diff
changeset
|
1681 | * Creates a datasheet item field. |
|
433382371e89
Request API: datasheet field
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34501
diff
changeset
|
1682 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1683 | * @param id The field ID. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1684 | * @param text The label of the field, may be @c NULL. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1685 | * @param sheet The datasheet. |
|
34502
433382371e89
Request API: datasheet field
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34501
diff
changeset
|
1686 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1687 | * @return The new field. |
|
34502
433382371e89
Request API: datasheet field
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34501
diff
changeset
|
1688 | */ |
|
433382371e89
Request API: datasheet field
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34501
diff
changeset
|
1689 | PurpleRequestField *purple_request_field_datasheet_new(const char *id, |
|
433382371e89
Request API: datasheet field
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34501
diff
changeset
|
1690 | const gchar *text, PurpleRequestDatasheet *sheet); |
|
433382371e89
Request API: datasheet field
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34501
diff
changeset
|
1691 | |
|
433382371e89
Request API: datasheet field
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34501
diff
changeset
|
1692 | /** |
|
433382371e89
Request API: datasheet field
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34501
diff
changeset
|
1693 | * Returns a datasheet for a field. |
|
433382371e89
Request API: datasheet field
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34501
diff
changeset
|
1694 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1695 | * @param field The field. |
|
34502
433382371e89
Request API: datasheet field
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34501
diff
changeset
|
1696 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1697 | * @constreturn The datasheet object. |
|
34502
433382371e89
Request API: datasheet field
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34501
diff
changeset
|
1698 | */ |
|
433382371e89
Request API: datasheet field
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34501
diff
changeset
|
1699 | PurpleRequestDatasheet *purple_request_field_datasheet_get_sheet( |
|
433382371e89
Request API: datasheet field
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34501
diff
changeset
|
1700 | PurpleRequestField *field); |
|
433382371e89
Request API: datasheet field
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34501
diff
changeset
|
1701 | |
|
433382371e89
Request API: datasheet field
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34501
diff
changeset
|
1702 | /*@}*/ |
|
433382371e89
Request API: datasheet field
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34501
diff
changeset
|
1703 | |
|
433382371e89
Request API: datasheet field
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34501
diff
changeset
|
1704 | /**************************************************************************/ |
|
33237
2574432da068
Validation for Request API: common validators
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33219
diff
changeset
|
1705 | /** @name Validators for request fields. */ |
|
2574432da068
Validation for Request API: common validators
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33219
diff
changeset
|
1706 | /**************************************************************************/ |
|
2574432da068
Validation for Request API: common validators
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33219
diff
changeset
|
1707 | /*@{*/ |
|
2574432da068
Validation for Request API: common validators
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33219
diff
changeset
|
1708 | |
|
2574432da068
Validation for Request API: common validators
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33219
diff
changeset
|
1709 | /** |
|
2574432da068
Validation for Request API: common validators
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33219
diff
changeset
|
1710 | * Validates a field which should contain an email address. |
|
2574432da068
Validation for Request API: common validators
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33219
diff
changeset
|
1711 | * |
|
2574432da068
Validation for Request API: common validators
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33219
diff
changeset
|
1712 | * @see purple_request_field_set_validator |
|
2574432da068
Validation for Request API: common validators
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33219
diff
changeset
|
1713 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1714 | * @param field The field. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1715 | * @param errmsg (Optional) destination for error message. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1716 | * @param user_data Ignored. |
|
33237
2574432da068
Validation for Request API: common validators
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33219
diff
changeset
|
1717 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1718 | * @return TRUE, if field contains valid email address. |
|
33237
2574432da068
Validation for Request API: common validators
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33219
diff
changeset
|
1719 | */ |
|
2574432da068
Validation for Request API: common validators
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33219
diff
changeset
|
1720 | gboolean purple_request_field_email_validator(PurpleRequestField *field, |
|
2574432da068
Validation for Request API: common validators
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33219
diff
changeset
|
1721 | gchar **errmsg, void *user_data); |
|
2574432da068
Validation for Request API: common validators
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33219
diff
changeset
|
1722 | |
|
2574432da068
Validation for Request API: common validators
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33219
diff
changeset
|
1723 | /** |
|
2574432da068
Validation for Request API: common validators
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33219
diff
changeset
|
1724 | * Validates a field which should contain alphanumeric content. |
|
2574432da068
Validation for Request API: common validators
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33219
diff
changeset
|
1725 | * |
|
2574432da068
Validation for Request API: common validators
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33219
diff
changeset
|
1726 | * @see purple_request_field_set_validator |
|
2574432da068
Validation for Request API: common validators
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33219
diff
changeset
|
1727 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1728 | * @param field The field. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1729 | * @param errmsg (Optional) destination for error message. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1730 | * @param user_data (Optional) allowed character list (NULL-terminated string). |
|
33237
2574432da068
Validation for Request API: common validators
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33219
diff
changeset
|
1731 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1732 | * @return TRUE, if field contains only alphanumeric characters. |
|
33237
2574432da068
Validation for Request API: common validators
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33219
diff
changeset
|
1733 | */ |
|
2574432da068
Validation for Request API: common validators
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33219
diff
changeset
|
1734 | gboolean purple_request_field_alphanumeric_validator(PurpleRequestField *field, |
|
2574432da068
Validation for Request API: common validators
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33219
diff
changeset
|
1735 | gchar **errmsg, void *allowed_characters); |
|
2574432da068
Validation for Request API: common validators
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33219
diff
changeset
|
1736 | |
|
2574432da068
Validation for Request API: common validators
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33219
diff
changeset
|
1737 | /*@}*/ |
|
2574432da068
Validation for Request API: common validators
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33219
diff
changeset
|
1738 | |
|
2574432da068
Validation for Request API: common validators
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33219
diff
changeset
|
1739 | /**************************************************************************/ |
| 5477 | 1740 | /** @name Request API */ |
| 1741 | /**************************************************************************/ | |
| 1742 | /*@{*/ | |
| 1743 | ||
| 1744 | /** | |
| 1745 | * Prompts the user for text input. | |
| 1746 | * | |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1747 | * @param handle The plugin or connection handle. For some |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1748 | * things this is <em>extremely</em> important. The |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1749 | * handle is used to programmatically close the request |
|
36637
9b0109ae118d
Renamed some prpl stuff to protocol stuff.
Ankit Vani <a@nevitus.org>
parents:
34193
diff
changeset
|
1750 | * dialog when it is no longer needed. For protocols this |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1751 | * is often a pointer to the #PurpleConnection |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1752 | * instance. For plugins this should be a similar, |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1753 | * unique memory location. This value is important |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1754 | * because it allows a request to be closed with |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1755 | * purple_request_close_with_handle() when, for |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1756 | * example, you sign offline. If the request is |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1757 | * <em>not</em> closed it is <strong>very</strong> |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1758 | * likely to cause a crash whenever the callback |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1759 | * handler functions are triggered. |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1760 | * @param title The title of the message, or @c NULL if it should have |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1761 | * no title. |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1762 | * @param primary The main point of the message, or @c NULL if you're |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1763 | * feeling enigmatic. |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1764 | * @param secondary Secondary information, or @c NULL if there is none. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1765 | * @param default_value The default value. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1766 | * @param multiline @c TRUE if the inputted text can span multiple lines. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1767 | * @param masked @c TRUE if the inputted text should be masked in some |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1768 | * way (such as by displaying characters as stars). This |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1769 | * might be because the input is some kind of password. |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1770 | * @param hint Optionally suggest how the input box should appear. |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1771 | * Use "html", for example, to allow the user to enter |
|
8699
0b894347c40d
[gaim-migrate @ 9452]
Mark Doliner <markdoliner@pidgin.im>
parents:
8697
diff
changeset
|
1772 | * HTML. |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1773 | * @param ok_text The text for the @c OK button, which may not be @c NULL. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1774 | * @param ok_cb The callback for the @c OK button, which may not be @c |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1775 | * NULL. |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1776 | * @param cancel_text The text for the @c Cancel button, which may not be @c |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1777 | * NULL. |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1778 | * @param cancel_cb The callback for the @c Cancel button, which may be |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1779 | * @c NULL. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1780 | * @param cpar The #PurpleRequestCommonParameters object, which gets |
|
34329
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
1781 | * unref'ed after this call. |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1782 | * @param user_data The data to pass to the callback. |
| 5477 | 1783 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1784 | * @return A UI-specific handle. |
| 5477 | 1785 | */ |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1786 | void *purple_request_input(void *handle, const char *title, const char *primary, |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1787 | const char *secondary, const char *default_value, gboolean multiline, |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1788 | gboolean masked, gchar *hint, |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1789 | const char *ok_text, GCallback ok_cb, |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1790 | const char *cancel_text, GCallback cancel_cb, |
|
34329
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
1791 | PurpleRequestCommonParameters *cpar, |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1792 | void *user_data); |
| 5477 | 1793 | |
| 1794 | /** | |
| 1795 | * Prompts the user for multiple-choice input. | |
| 1796 | * | |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1797 | * @param handle The plugin or connection handle. For some things this |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1798 | * is <em>extremely</em> important. See the comments on |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1799 | * purple_request_input(). |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1800 | * @param title The title of the message, or @c NULL if it should have |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1801 | * no title. |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1802 | * @param primary The main point of the message, or @c NULL if you're |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1803 | * feeling enigmatic. |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1804 | * @param secondary Secondary information, or @c NULL if there is none. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1805 | * @param default_value The default choice; this should be one of the values |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1806 | * listed in the varargs. |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1807 | * @param ok_text The text for the @c OK button, which may not be @c NULL. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1808 | * @param ok_cb The callback for the @c OK button, which may not be @c |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1809 | * NULL. |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1810 | * @param cancel_text The text for the @c Cancel button, which may not be @c |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1811 | * NULL. |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1812 | * @param cancel_cb The callback for the @c Cancel button, or @c NULL to |
|
21988
7945c3805412
Sadrul informs me that cancel_cb may in fact be NULL.
Will Thompson <resiak@pidgin.im>
parents:
21980
diff
changeset
|
1813 | * do nothing. |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1814 | * @param cpar The #PurpleRequestCommonParameters object, which gets |
|
34330
35d5e8fcc07b
Request API refactoring: switch purple_request_choice to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34329
diff
changeset
|
1815 | * unref'ed after this call. |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1816 | * @param user_data The data to pass to the callback. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1817 | * @param ... The choices, which should be pairs of <tt>char *</tt> |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1818 | * descriptions and <tt>int</tt> values, terminated with a |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1819 | * @c NULL parameter. |
| 5477 | 1820 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1821 | * @return A UI-specific handle. |
| 5477 | 1822 | */ |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1823 | void *purple_request_choice(void *handle, const char *title, const char *primary, |
|
34338
c652670afac5
Request API refactoring: custom PURPLE_REQUEST_CHOICE values, instead of indexes
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34337
diff
changeset
|
1824 | const char *secondary, gpointer default_value, |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1825 | const char *ok_text, GCallback ok_cb, |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1826 | const char *cancel_text, GCallback cancel_cb, |
|
34330
35d5e8fcc07b
Request API refactoring: switch purple_request_choice to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34329
diff
changeset
|
1827 | PurpleRequestCommonParameters *cpar, |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1828 | void *user_data, ...) G_GNUC_NULL_TERMINATED; |
| 5477 | 1829 | |
| 1830 | /** | |
|
22593
9f88ea5d40d9
Remove duplicated docs for _varg variants of request functions; correct and
Will Thompson <resiak@pidgin.im>
parents:
22263
diff
changeset
|
1831 | * <tt>va_list</tt> version of purple_request_choice(); see its documentation. |
| 5477 | 1832 | */ |
| 15884 | 1833 | void *purple_request_choice_varg(void *handle, const char *title, |
|
34338
c652670afac5
Request API refactoring: custom PURPLE_REQUEST_CHOICE values, instead of indexes
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34337
diff
changeset
|
1834 | const char *primary, const char *secondary, gpointer default_value, |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1835 | const char *ok_text, GCallback ok_cb, |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1836 | const char *cancel_text, GCallback cancel_cb, |
|
34330
35d5e8fcc07b
Request API refactoring: switch purple_request_choice to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34329
diff
changeset
|
1837 | PurpleRequestCommonParameters *cpar, |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1838 | void *user_data, va_list choices); |
| 5477 | 1839 | |
| 1840 | /** | |
| 1841 | * Prompts the user for an action. | |
| 1842 | * | |
| 1843 | * This is often represented as a dialog with a button for each action. | |
| 1844 | * | |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1845 | * @param handle The plugin or connection handle. For some things this |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1846 | * is <em>extremely</em> important. See the comments on |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1847 | * purple_request_input(). |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1848 | * @param title The title of the message, or @c NULL if it should have |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1849 | * no title. |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1850 | * @param primary The main point of the message, or @c NULL if you're |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1851 | * feeling enigmatic. |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1852 | * @param secondary Secondary information, or @c NULL if there is none. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1853 | * @param default_action The default action, zero-indexed; if the third action |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1854 | * supplied should be the default, supply <tt>2</tt>. |
|
22263
c9a202d78b6e
* Clarify the documentation for purple_request_action's 'default_ation'
Mark Doliner <markdoliner@pidgin.im>
parents:
21990
diff
changeset
|
1855 | * The should be the action that users are most likely |
|
c9a202d78b6e
* Clarify the documentation for purple_request_action's 'default_ation'
Mark Doliner <markdoliner@pidgin.im>
parents:
21990
diff
changeset
|
1856 | * to select. |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1857 | * @param cpar The #PurpleRequestCommonParameters object, which gets |
|
34331
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
1858 | * unref'ed after this call. |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1859 | * @param user_data The data to pass to the callback. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1860 | * @param action_count The number of actions. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1861 | * @param ... A list of actions. These are pairs of |
|
15356
a5ad506222a1
[gaim-migrate @ 18085]
Mark Doliner <markdoliner@pidgin.im>
parents:
14254
diff
changeset
|
1862 | * arguments. The first of each pair is the |
|
22593
9f88ea5d40d9
Remove duplicated docs for _varg variants of request functions; correct and
Will Thompson <resiak@pidgin.im>
parents:
22263
diff
changeset
|
1863 | * <tt>char *</tt> label that appears on the button. It |
|
9f88ea5d40d9
Remove duplicated docs for _varg variants of request functions; correct and
Will Thompson <resiak@pidgin.im>
parents:
22263
diff
changeset
|
1864 | * should have an underscore before the letter you want |
|
9f88ea5d40d9
Remove duplicated docs for _varg variants of request functions; correct and
Will Thompson <resiak@pidgin.im>
parents:
22263
diff
changeset
|
1865 | * to use as the accelerator key for the button. The |
|
9f88ea5d40d9
Remove duplicated docs for _varg variants of request functions; correct and
Will Thompson <resiak@pidgin.im>
parents:
22263
diff
changeset
|
1866 | * second of each pair is the #PurpleRequestActionCb |
|
15356
a5ad506222a1
[gaim-migrate @ 18085]
Mark Doliner <markdoliner@pidgin.im>
parents:
14254
diff
changeset
|
1867 | * function to use when the button is clicked. |
| 5477 | 1868 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1869 | * @return A UI-specific handle. |
| 5477 | 1870 | */ |
|
34331
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
1871 | void * |
|
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
1872 | purple_request_action(void *handle, const char *title, const char *primary, |
|
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
1873 | const char *secondary, int default_action, |
|
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
1874 | PurpleRequestCommonParameters *cpar, void *user_data, |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1875 | size_t action_count, ...); |
| 5477 | 1876 | |
| 1877 | /** | |
|
22593
9f88ea5d40d9
Remove duplicated docs for _varg variants of request functions; correct and
Will Thompson <resiak@pidgin.im>
parents:
22263
diff
changeset
|
1878 | * <tt>va_list</tt> version of purple_request_action(); see its documentation. |
| 5477 | 1879 | */ |
|
34331
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
1880 | void * |
|
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
1881 | purple_request_action_varg(void *handle, const char *title, const char *primary, |
|
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
1882 | const char *secondary, int default_action, |
|
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
1883 | PurpleRequestCommonParameters *cpar, void *user_data, |
|
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
1884 | size_t action_count, va_list actions); |
|
27427
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
1885 | |
|
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
1886 | /** |
|
34443
b7926ff76ed6
Request API: implement purple_request_wait
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34341
diff
changeset
|
1887 | * Displays a "please wait" dialog. |
|
b7926ff76ed6
Request API: implement purple_request_wait
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34341
diff
changeset
|
1888 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1889 | * @param handle The plugin or connection handle. For some things this |
|
34448
e15d91a77cb3
Request API: PURPLE_REQUEST_WAIT with progress bar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34444
diff
changeset
|
1890 | * is <em>extremely</em> important. See the comments on |
|
e15d91a77cb3
Request API: PURPLE_REQUEST_WAIT with progress bar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34444
diff
changeset
|
1891 | * purple_request_input(). |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1892 | * @param title The title of the message, or @c NULL if it should have |
|
34448
e15d91a77cb3
Request API: PURPLE_REQUEST_WAIT with progress bar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34444
diff
changeset
|
1893 | * default title. |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1894 | * @param primary The main point of the message, or @c NULL if you're |
|
34448
e15d91a77cb3
Request API: PURPLE_REQUEST_WAIT with progress bar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34444
diff
changeset
|
1895 | * feeling enigmatic. |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1896 | * @param secondary Secondary information, or @c NULL if there is none. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1897 | * @param with_progress @c TRUE, if we want to display progress bar, @c FALSE |
|
34448
e15d91a77cb3
Request API: PURPLE_REQUEST_WAIT with progress bar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34444
diff
changeset
|
1898 | * otherwise |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1899 | * @param cancel_cb The callback for the @c Cancel button, which may be |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1900 | * @c NULL. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1901 | * @param cpar The #PurpleRequestCommonParameters object, which gets |
|
34448
e15d91a77cb3
Request API: PURPLE_REQUEST_WAIT with progress bar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34444
diff
changeset
|
1902 | * unref'ed after this call. |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1903 | * @param user_data The data to pass to the callback. |
|
34443
b7926ff76ed6
Request API: implement purple_request_wait
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34341
diff
changeset
|
1904 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1905 | * @return A UI-specific handle. |
|
34443
b7926ff76ed6
Request API: implement purple_request_wait
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34341
diff
changeset
|
1906 | */ |
|
b7926ff76ed6
Request API: implement purple_request_wait
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34341
diff
changeset
|
1907 | void * |
|
b7926ff76ed6
Request API: implement purple_request_wait
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34341
diff
changeset
|
1908 | purple_request_wait(void *handle, const char *title, const char *primary, |
|
34448
e15d91a77cb3
Request API: PURPLE_REQUEST_WAIT with progress bar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34444
diff
changeset
|
1909 | const char *secondary, gboolean with_progress, |
|
e15d91a77cb3
Request API: PURPLE_REQUEST_WAIT with progress bar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34444
diff
changeset
|
1910 | PurpleRequestCancelCb cancel_cb, PurpleRequestCommonParameters *cpar, |
|
e15d91a77cb3
Request API: PURPLE_REQUEST_WAIT with progress bar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34444
diff
changeset
|
1911 | void *user_data); |
|
e15d91a77cb3
Request API: PURPLE_REQUEST_WAIT with progress bar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34444
diff
changeset
|
1912 | |
|
e15d91a77cb3
Request API: PURPLE_REQUEST_WAIT with progress bar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34444
diff
changeset
|
1913 | /** |
|
e15d91a77cb3
Request API: PURPLE_REQUEST_WAIT with progress bar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34444
diff
changeset
|
1914 | * Notifies the "please wait" dialog that some progress has been made, but you |
|
e15d91a77cb3
Request API: PURPLE_REQUEST_WAIT with progress bar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34444
diff
changeset
|
1915 | * don't know how much. |
|
e15d91a77cb3
Request API: PURPLE_REQUEST_WAIT with progress bar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34444
diff
changeset
|
1916 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1917 | * @param ui_handle The request UI handle. |
|
34448
e15d91a77cb3
Request API: PURPLE_REQUEST_WAIT with progress bar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34444
diff
changeset
|
1918 | */ |
|
e15d91a77cb3
Request API: PURPLE_REQUEST_WAIT with progress bar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34444
diff
changeset
|
1919 | void |
|
e15d91a77cb3
Request API: PURPLE_REQUEST_WAIT with progress bar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34444
diff
changeset
|
1920 | purple_request_wait_pulse(void *ui_handle); |
|
e15d91a77cb3
Request API: PURPLE_REQUEST_WAIT with progress bar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34444
diff
changeset
|
1921 | |
|
e15d91a77cb3
Request API: PURPLE_REQUEST_WAIT with progress bar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34444
diff
changeset
|
1922 | /** |
|
e15d91a77cb3
Request API: PURPLE_REQUEST_WAIT with progress bar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34444
diff
changeset
|
1923 | * Notifies the "please wait" dialog about progress has been made. |
|
e15d91a77cb3
Request API: PURPLE_REQUEST_WAIT with progress bar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34444
diff
changeset
|
1924 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1925 | * @param ui_handle The request UI handle. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1926 | * @param fraction The part of task that is done (between 0.0 and 1.0, |
|
34448
e15d91a77cb3
Request API: PURPLE_REQUEST_WAIT with progress bar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34444
diff
changeset
|
1927 | * inclusive). |
|
e15d91a77cb3
Request API: PURPLE_REQUEST_WAIT with progress bar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34444
diff
changeset
|
1928 | */ |
|
e15d91a77cb3
Request API: PURPLE_REQUEST_WAIT with progress bar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34444
diff
changeset
|
1929 | void |
|
e15d91a77cb3
Request API: PURPLE_REQUEST_WAIT with progress bar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34444
diff
changeset
|
1930 | purple_request_wait_progress(void *ui_handle, gfloat fraction); |
|
34443
b7926ff76ed6
Request API: implement purple_request_wait
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34341
diff
changeset
|
1931 | |
|
b7926ff76ed6
Request API: implement purple_request_wait
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34341
diff
changeset
|
1932 | /** |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1933 | * Displays groups of fields for the user to fill in. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1934 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1935 | * @param handle The plugin or connection handle. For some things this |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1936 | * is <em>extremely</em> important. See the comments on |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1937 | * purple_request_input(). |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1938 | * @param title The title of the message, or @c NULL if it should have |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1939 | * no title. |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1940 | * @param primary The main point of the message, or @c NULL if you're |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1941 | * feeling enigmatic. |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1942 | * @param secondary Secondary information, or @c NULL if there is none. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1943 | * @param fields The list of fields. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1944 | * @param ok_text The text for the @c OK button, which may not be @c NULL. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1945 | * @param ok_cb The callback for the @c OK button, which may not be @c |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1946 | * NULL. |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1947 | * @param cancel_text The text for the @c Cancel button, which may not be @c |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1948 | * NULL. |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1949 | * @param cancel_cb The callback for the @c Cancel button, which may be |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1950 | * @c NULL. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1951 | * @param cpar The #PurpleRequestCommonParameters object, which gets |
|
34332
876483829700
Request API refactoring: switch purple_request_fields to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34331
diff
changeset
|
1952 | * unref'ed after this call. |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1953 | * @param user_data The data to pass to the callback. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1954 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1955 | * @return A UI-specific handle. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1956 | */ |
|
34332
876483829700
Request API refactoring: switch purple_request_fields to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34331
diff
changeset
|
1957 | void * |
|
876483829700
Request API refactoring: switch purple_request_fields to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34331
diff
changeset
|
1958 | purple_request_fields(void *handle, const char *title, const char *primary, |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1959 | const char *secondary, PurpleRequestFields *fields, |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1960 | const char *ok_text, GCallback ok_cb, |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1961 | const char *cancel_text, GCallback cancel_cb, |
|
34332
876483829700
Request API refactoring: switch purple_request_fields to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34331
diff
changeset
|
1962 | PurpleRequestCommonParameters *cpar, |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1963 | void *user_data); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1964 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1965 | /** |
|
34451
b7165d4e1d73
Implement purple_*_is_valid_ui_handle, purple_request_cpar_*et_parent_from, pidgin_request_get_dialog_window
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34448
diff
changeset
|
1966 | * Checks, if passed UI handle is valid. |
|
b7165d4e1d73
Implement purple_*_is_valid_ui_handle, purple_request_cpar_*et_parent_from, pidgin_request_get_dialog_window
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34448
diff
changeset
|
1967 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1968 | * @param ui_handle The UI handle. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1969 | * @param type The pointer to variable, where request type may be stored |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1970 | * (may be @c NULL). |
|
34451
b7165d4e1d73
Implement purple_*_is_valid_ui_handle, purple_request_cpar_*et_parent_from, pidgin_request_get_dialog_window
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34448
diff
changeset
|
1971 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1972 | * @return TRUE, if handle is valid, FALSE otherwise. |
|
34451
b7165d4e1d73
Implement purple_*_is_valid_ui_handle, purple_request_cpar_*et_parent_from, pidgin_request_get_dialog_window
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34448
diff
changeset
|
1973 | */ |
|
b7165d4e1d73
Implement purple_*_is_valid_ui_handle, purple_request_cpar_*et_parent_from, pidgin_request_get_dialog_window
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34448
diff
changeset
|
1974 | gboolean |
|
b7165d4e1d73
Implement purple_*_is_valid_ui_handle, purple_request_cpar_*et_parent_from, pidgin_request_get_dialog_window
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34448
diff
changeset
|
1975 | purple_request_is_valid_ui_handle(void *ui_handle, PurpleRequestType *type); |
|
b7165d4e1d73
Implement purple_*_is_valid_ui_handle, purple_request_cpar_*et_parent_from, pidgin_request_get_dialog_window
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34448
diff
changeset
|
1976 | |
|
b7165d4e1d73
Implement purple_*_is_valid_ui_handle, purple_request_cpar_*et_parent_from, pidgin_request_get_dialog_window
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34448
diff
changeset
|
1977 | /** |
|
34478
be28ca093028
Add close notification for Request API dialogs
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34451
diff
changeset
|
1978 | * Adds a function called when notification dialog is closed. |
|
be28ca093028
Add close notification for Request API dialogs
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34451
diff
changeset
|
1979 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1980 | * @param ui_handle The UI handle. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1981 | * @param notify The function to be called. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1982 | * @param notify_data The data to be passed to the callback function. |
|
34478
be28ca093028
Add close notification for Request API dialogs
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34451
diff
changeset
|
1983 | */ |
|
be28ca093028
Add close notification for Request API dialogs
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34451
diff
changeset
|
1984 | void |
|
be28ca093028
Add close notification for Request API dialogs
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34451
diff
changeset
|
1985 | purple_request_add_close_notify(void *ui_handle, GDestroyNotify notify, |
|
be28ca093028
Add close notification for Request API dialogs
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34451
diff
changeset
|
1986 | gpointer notify_data); |
|
be28ca093028
Add close notification for Request API dialogs
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34451
diff
changeset
|
1987 | |
|
be28ca093028
Add close notification for Request API dialogs
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34451
diff
changeset
|
1988 | /** |
| 5477 | 1989 | * Closes a request. |
| 1990 | * | |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1991 | * @param type The request type. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1992 | * @param uihandle The request UI handle. |
| 5477 | 1993 | */ |
| 15884 | 1994 | void purple_request_close(PurpleRequestType type, void *uihandle); |
| 5477 | 1995 | |
| 1996 | /** | |
| 1997 | * Closes all requests registered with the specified handle. | |
| 1998 | * | |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
1999 | * @param handle The handle, as supplied as the @a handle parameter to one of the |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
2000 | * <tt>purple_request_*</tt> functions. |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
2001 | * |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
2002 | * @see purple_request_input(). |
| 5477 | 2003 | */ |
| 15884 | 2004 | void purple_request_close_with_handle(void *handle); |
| 5477 | 2005 | |
| 2006 | /** | |
| 15884 | 2007 | * A wrapper for purple_request_action() that uses @c Yes and @c No buttons. |
| 5477 | 2008 | */ |
|
20685
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
2009 | #define purple_request_yes_no(handle, title, primary, secondary, \ |
|
34331
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
2010 | default_action, cpar, user_data, yes_cb, no_cb) \ |
| 15884 | 2011 | purple_request_action((handle), (title), (primary), (secondary), \ |
|
34331
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
2012 | (default_action), (cpar), (user_data), 2, _("_Yes"), (yes_cb), \ |
|
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
2013 | _("_No"), (no_cb)) |
| 5477 | 2014 | |
| 2015 | /** | |
| 15884 | 2016 | * A wrapper for purple_request_action() that uses @c OK and @c Cancel buttons. |
| 5477 | 2017 | */ |
|
20685
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
2018 | #define purple_request_ok_cancel(handle, title, primary, secondary, \ |
|
34331
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
2019 | default_action, cpar, user_data, ok_cb, cancel_cb) \ |
| 15884 | 2020 | purple_request_action((handle), (title), (primary), (secondary), \ |
|
34331
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
2021 | (default_action), (cpar), (user_data), 2, _("_OK"), (ok_cb), \ |
|
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
2022 | _("_Cancel"), (cancel_cb)) |
|
5498
01eec144d71b
[gaim-migrate @ 5894]
Christian Hammond <chipx86@chipx86.com>
parents:
5496
diff
changeset
|
2023 | |
|
01eec144d71b
[gaim-migrate @ 5894]
Christian Hammond <chipx86@chipx86.com>
parents:
5496
diff
changeset
|
2024 | /** |
| 15884 | 2025 | * A wrapper for purple_request_action() that uses Accept and Cancel buttons. |
|
5498
01eec144d71b
[gaim-migrate @ 5894]
Christian Hammond <chipx86@chipx86.com>
parents:
5496
diff
changeset
|
2026 | */ |
|
20685
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
2027 | #define purple_request_accept_cancel(handle, title, primary, secondary, \ |
|
34331
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
2028 | default_action, cpar, user_data, accept_cb, cancel_cb) \ |
| 15884 | 2029 | purple_request_action((handle), (title), (primary), (secondary), \ |
|
34331
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
2030 | (default_action), (cpar), (user_data), 2, _("_Accept"), \ |
|
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
2031 | (accept_cb), _("_Cancel"), (cancel_cb)) |
|
27427
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
2032 | |
|
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
2033 | /** |
|
13268
5f523813f880
[gaim-migrate @ 15633]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
12716
diff
changeset
|
2034 | * Displays a file selector request dialog. Returns the selected filename to |
|
9502
d43f69354213
[gaim-migrate @ 10329]
Mark Doliner <markdoliner@pidgin.im>
parents:
9000
diff
changeset
|
2035 | * the callback. Can be used for either opening a file or saving a file. |
|
8843
944c71cc01af
[gaim-migrate @ 9610]
Pekka Riikonen <priikone@silcnet.org>
parents:
8735
diff
changeset
|
2036 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
2037 | * @param handle The plugin or connection handle. For some things this |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
2038 | * is <em>extremely</em> important. See the comments on |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
2039 | * purple_request_input(). |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
2040 | * @param title The title of the message, or @c NULL if it should have |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
2041 | * no title. |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
2042 | * @param filename The default filename (may be @c NULL) |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
2043 | * @param savedialog True if this dialog is being used to save a file. |
|
9502
d43f69354213
[gaim-migrate @ 10329]
Mark Doliner <markdoliner@pidgin.im>
parents:
9000
diff
changeset
|
2044 | * False if it is being used to open a file. |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
2045 | * @param ok_cb The callback for the @c OK button. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
2046 | * @param cancel_cb The callback for the @c Cancel button, which may be @c NULL. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
2047 | * @param cpar The #PurpleRequestCommonParameters object, which gets |
|
34333
b92698241603
Request API refactoring: switch purple_request_file to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34332
diff
changeset
|
2048 | * unref'ed after this call. |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
2049 | * @param user_data The data to pass to the callback. |
|
8843
944c71cc01af
[gaim-migrate @ 9610]
Pekka Riikonen <priikone@silcnet.org>
parents:
8735
diff
changeset
|
2050 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
2051 | * @return A UI-specific handle. |
|
8843
944c71cc01af
[gaim-migrate @ 9610]
Pekka Riikonen <priikone@silcnet.org>
parents:
8735
diff
changeset
|
2052 | */ |
|
34333
b92698241603
Request API refactoring: switch purple_request_file to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34332
diff
changeset
|
2053 | void * |
|
b92698241603
Request API refactoring: switch purple_request_file to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34332
diff
changeset
|
2054 | purple_request_file(void *handle, const char *title, const char *filename, |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
2055 | gboolean savedialog, GCallback ok_cb, GCallback cancel_cb, |
|
34333
b92698241603
Request API refactoring: switch purple_request_file to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34332
diff
changeset
|
2056 | PurpleRequestCommonParameters *cpar, void *user_data); |
|
8843
944c71cc01af
[gaim-migrate @ 9610]
Pekka Riikonen <priikone@silcnet.org>
parents:
8735
diff
changeset
|
2057 | |
|
13283
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
2058 | /** |
|
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
2059 | * Displays a folder select dialog. Returns the selected filename to |
|
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
2060 | * the callback. |
|
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
2061 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
2062 | * @param handle The plugin or connection handle. For some things this |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
2063 | * is <em>extremely</em> important. See the comments on |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
2064 | * purple_request_input(). |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
2065 | * @param title The title of the message, or @c NULL if it should have |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
2066 | * no title. |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
2067 | * @param dirname The default directory name (may be @c NULL) |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
2068 | * @param ok_cb The callback for the @c OK button. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
2069 | * @param cancel_cb The callback for the @c Cancel button, which may be @c NULL. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
2070 | * @param cpar The #PurpleRequestCommonParameters object, which gets |
|
34334
f5f3a9945a6d
Request API refactoring: switch purple_request_folder to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34333
diff
changeset
|
2071 | * unref'ed after this call. |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
2072 | * @param user_data The data to pass to the callback. |
|
13283
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
2073 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
2074 | * @return A UI-specific handle. |
|
13283
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
2075 | */ |
|
34334
f5f3a9945a6d
Request API refactoring: switch purple_request_folder to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34333
diff
changeset
|
2076 | void * |
|
f5f3a9945a6d
Request API refactoring: switch purple_request_folder to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34333
diff
changeset
|
2077 | purple_request_folder(void *handle, const char *title, const char *dirname, |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
2078 | GCallback ok_cb, GCallback cancel_cb, |
|
34334
f5f3a9945a6d
Request API refactoring: switch purple_request_folder to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34333
diff
changeset
|
2079 | PurpleRequestCommonParameters *cpar, void *user_data); |
|
13283
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
2080 | |
|
32888
3dc779e621c5
Add a function for prompting about a certificate. This is basically
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32886
diff
changeset
|
2081 | /** |
|
3dc779e621c5
Add a function for prompting about a certificate. This is basically
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32886
diff
changeset
|
2082 | * Prompts the user for action over a certificate. |
|
3dc779e621c5
Add a function for prompting about a certificate. This is basically
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32886
diff
changeset
|
2083 | * |
|
3dc779e621c5
Add a function for prompting about a certificate. This is basically
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32886
diff
changeset
|
2084 | * This is often represented as a dialog with a button for each action. |
|
3dc779e621c5
Add a function for prompting about a certificate. This is basically
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32886
diff
changeset
|
2085 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
2086 | * @param handle The plugin or connection handle. For some things this |
|
32888
3dc779e621c5
Add a function for prompting about a certificate. This is basically
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32886
diff
changeset
|
2087 | * is <em>extremely</em> important. See the comments on |
|
3dc779e621c5
Add a function for prompting about a certificate. This is basically
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32886
diff
changeset
|
2088 | * purple_request_input(). |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
2089 | * @param title The title of the message, or @c NULL if it should have |
|
32888
3dc779e621c5
Add a function for prompting about a certificate. This is basically
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32886
diff
changeset
|
2090 | * no title. |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
2091 | * @param primary The main point of the message, or @c NULL if you're |
|
32888
3dc779e621c5
Add a function for prompting about a certificate. This is basically
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32886
diff
changeset
|
2092 | * feeling enigmatic. |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
2093 | * @param secondary Secondary information, or @c NULL if there is none. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
2094 | * @param cert The #PurpleCertificate associated with this request. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
2095 | * @param ok_text The text for the @c OK button, which may not be @c NULL. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
2096 | * @param ok_cb The callback for the @c OK button, which may not be |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
2097 | * @c NULL. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
2098 | * @param cancel_text The text for the @c Cancel button, which may not be |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
2099 | * @c NULL. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
2100 | * @param cancel_cb The callback for the @c Cancel button, which may be |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
2101 | * @c NULL. |
|
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
2102 | * @param user_data The data to pass to the callback. |
|
32888
3dc779e621c5
Add a function for prompting about a certificate. This is basically
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32886
diff
changeset
|
2103 | * |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
2104 | * @return A UI-specific handle. |
|
32888
3dc779e621c5
Add a function for prompting about a certificate. This is basically
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32886
diff
changeset
|
2105 | */ |
|
3dc779e621c5
Add a function for prompting about a certificate. This is basically
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32886
diff
changeset
|
2106 | void *purple_request_certificate(void *handle, const char *title, |
|
3dc779e621c5
Add a function for prompting about a certificate. This is basically
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32886
diff
changeset
|
2107 | const char *primary, const char *secondary, PurpleCertificate *cert, |
|
3dc779e621c5
Add a function for prompting about a certificate. This is basically
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32886
diff
changeset
|
2108 | const char *ok_text, GCallback ok_cb, |
|
3dc779e621c5
Add a function for prompting about a certificate. This is basically
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32886
diff
changeset
|
2109 | const char *cancel_text, GCallback cancel_cb, |
|
3dc779e621c5
Add a function for prompting about a certificate. This is basically
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32886
diff
changeset
|
2110 | void *user_data); |
|
3dc779e621c5
Add a function for prompting about a certificate. This is basically
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32886
diff
changeset
|
2111 | |
|
9502
d43f69354213
[gaim-migrate @ 10329]
Mark Doliner <markdoliner@pidgin.im>
parents:
9000
diff
changeset
|
2112 | /*@}*/ |
|
8843
944c71cc01af
[gaim-migrate @ 9610]
Pekka Riikonen <priikone@silcnet.org>
parents:
8735
diff
changeset
|
2113 | |
| 5477 | 2114 | /**************************************************************************/ |
| 10566 | 2115 | /** @name UI Registration Functions */ |
| 5477 | 2116 | /**************************************************************************/ |
| 2117 | /*@{*/ | |
| 2118 | ||
| 2119 | /** | |
| 2120 | * Sets the UI operations structure to be used when displaying a | |
| 2121 | * request. | |
| 2122 | * | |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
2123 | * @param ops The UI operations structure. |
| 5477 | 2124 | */ |
| 15884 | 2125 | void purple_request_set_ui_ops(PurpleRequestUiOps *ops); |
| 5477 | 2126 | |
| 2127 | /** | |
| 2128 | * Returns the UI operations structure to be used when displaying a | |
| 2129 | * request. | |
| 2130 | * | |
|
37023
d9bcdc9a91e6
Revert changes to doc comments
Ankit Vani <a@nevitus.org>
parents:
37022
diff
changeset
|
2131 | * @return The UI operations structure. |
| 5477 | 2132 | */ |
| 15884 | 2133 | PurpleRequestUiOps *purple_request_get_ui_ops(void); |
| 5477 | 2134 | |
| 2135 | /*@}*/ | |
| 2136 | ||
|
32787
7072f190d6ad
Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32604
diff
changeset
|
2137 | G_END_DECLS |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5809
diff
changeset
|
2138 | |
| 15884 | 2139 | #endif /* _PURPLE_REQUEST_H_ */ |