Tue, 10 Sep 2013 13:06:10 +0200
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
| 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" |
|
cb2fe6b04447
Initial support for keyring settings
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33237
diff
changeset
|
34 | |
|
32554
0d844fac6679
Fix a bunch of tiny problems generating our doxygen documentation
Mark Doliner <markdoliner@pidgin.im>
parents:
32531
diff
changeset
|
35 | /** |
|
0d844fac6679
Fix a bunch of tiny problems generating our doxygen documentation
Mark Doliner <markdoliner@pidgin.im>
parents:
32531
diff
changeset
|
36 | * A request field. |
|
0d844fac6679
Fix a bunch of tiny problems generating our doxygen documentation
Mark Doliner <markdoliner@pidgin.im>
parents:
32531
diff
changeset
|
37 | */ |
|
24984
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
38 | 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
|
39 | |
|
32273
55a194e489bb
A small bit of hide-a-struct
Mark Doliner <markdoliner@pidgin.im>
parents:
32216
diff
changeset
|
40 | /** |
|
55a194e489bb
A small bit of hide-a-struct
Mark Doliner <markdoliner@pidgin.im>
parents:
32216
diff
changeset
|
41 | * Multiple fields request data. |
|
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 | typedef struct _PurpleRequestFields PurpleRequestFields; |
|
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 | /** |
|
55a194e489bb
A small bit of hide-a-struct
Mark Doliner <markdoliner@pidgin.im>
parents:
32216
diff
changeset
|
46 | * A group of fields with a title. |
|
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 | typedef struct _PurpleRequestFieldGroup PurpleRequestFieldGroup; |
|
55a194e489bb
A small bit of hide-a-struct
Mark Doliner <markdoliner@pidgin.im>
parents:
32216
diff
changeset
|
49 | |
|
34329
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
50 | /** |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
51 | * 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
|
52 | */ |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
53 | 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
|
54 | |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
55 | #include "account.h" |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
56 | |
| 15884 | 57 | #define PURPLE_DEFAULT_ACTION_NONE -1 |
|
9948
2642975ffb85
[gaim-migrate @ 10844]
Dave West <kat@users.sourceforge.net>
parents:
9502
diff
changeset
|
58 | |
| 5477 | 59 | /** |
| 60 | * Request types. | |
| 61 | */ | |
| 62 | typedef enum | |
| 63 | { | |
| 15884 | 64 | PURPLE_REQUEST_INPUT = 0, /**< Text input request. */ |
| 65 | PURPLE_REQUEST_CHOICE, /**< Multiple-choice request. */ | |
| 66 | PURPLE_REQUEST_ACTION, /**< Action request. */ | |
| 67 | PURPLE_REQUEST_FIELDS, /**< Multiple fields request. */ | |
| 68 | PURPLE_REQUEST_FILE, /**< File open or save request. */ | |
| 69 | PURPLE_REQUEST_FOLDER /**< Folder selection request. */ | |
| 5477 | 70 | |
| 15884 | 71 | } PurpleRequestType; |
| 5477 | 72 | |
| 73 | /** | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
74 | * A type of field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
75 | */ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
76 | typedef enum |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
77 | { |
| 15884 | 78 | PURPLE_REQUEST_FIELD_NONE, |
| 79 | PURPLE_REQUEST_FIELD_STRING, | |
| 80 | PURPLE_REQUEST_FIELD_INTEGER, | |
| 81 | PURPLE_REQUEST_FIELD_BOOLEAN, | |
| 82 | PURPLE_REQUEST_FIELD_CHOICE, | |
| 83 | PURPLE_REQUEST_FIELD_LIST, | |
| 84 | PURPLE_REQUEST_FIELD_LABEL, | |
| 85 | PURPLE_REQUEST_FIELD_IMAGE, | |
|
32886
359ad954dccc
Add PurpleCertificate request field API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
86 | PURPLE_REQUEST_FIELD_ACCOUNT, |
|
359ad954dccc
Add PurpleCertificate request field API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
87 | PURPLE_REQUEST_FIELD_CERTIFICATE |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
88 | |
| 15884 | 89 | } PurpleRequestFieldType; |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
90 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
91 | /** |
| 5477 | 92 | * Request UI operations. |
| 93 | */ | |
| 94 | typedef struct | |
| 95 | { | |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
96 | /** @see purple_request_input(). */ |
| 5477 | 97 | void *(*request_input)(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
|
98 | const char *secondary, const char *default_value, |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
99 | gboolean multiline, 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
|
100 | 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
|
101 | 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
|
102 | PurpleRequestCommonParameters *cpar, |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
103 | 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
|
104 | |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
105 | /** @see purple_request_choice_varg(). */ |
| 5477 | 106 | void *(*request_choice)(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
|
107 | const char *secondary, int default_value, |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
108 | 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
|
109 | const char *cancel_text, GCallback cancel_cb, |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
110 | PurpleAccount *account, const char *who, |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
111 | PurpleConversation *conv, void *user_data, |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
112 | va_list choices); |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
113 | |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
114 | /** @see purple_request_action_varg(). */ |
| 5477 | 115 | void *(*request_action)(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
|
116 | const char *secondary, int default_action, |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
117 | PurpleAccount *account, const char *who, |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
118 | PurpleConversation *conv, void *user_data, |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
119 | size_t action_count, va_list actions); |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
120 | |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
121 | /** @see purple_request_fields(). */ |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
122 | void *(*request_fields)(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
|
123 | 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
|
124 | 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
|
125 | const char *cancel_text, GCallback cancel_cb, |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
126 | PurpleAccount *account, const char *who, |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
127 | PurpleConversation *conv, void *user_data); |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
128 | |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
129 | /** @see purple_request_file(). */ |
|
8843
944c71cc01af
[gaim-migrate @ 9610]
Pekka Riikonen <priikone@silcnet.org>
parents:
8735
diff
changeset
|
130 | void *(*request_file)(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
|
131 | gboolean savedialog, 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
|
132 | GCallback cancel_cb, PurpleAccount *account, |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
133 | const char *who, PurpleConversation *conv, |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
134 | void *user_data); |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
135 | |
| 15884 | 136 | void (*close_request)(PurpleRequestType type, void *ui_handle); |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
137 | |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
138 | /** @see purple_request_folder(). */ |
|
13283
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
139 | void *(*request_folder)(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
|
140 | GCallback ok_cb, GCallback cancel_cb, |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
141 | PurpleAccount *account, const char *who, |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
142 | PurpleConversation *conv, 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
|
143 | |
|
30146
ffa4c7208d1c
It seems like the _varg should be at the end.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30131
diff
changeset
|
144 | /** @see purple_request_action_with_icon_varg(). */ |
|
27427
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
145 | void *(*request_action_with_icon)(const char *title, const char *primary, |
|
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
146 | const char *secondary, int default_action, |
|
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
147 | PurpleAccount *account, const char *who, |
|
31293
169eeb43b52c
Remove trailing whitespace
Richard Laager <rlaager@pidgin.im>
parents:
30146
diff
changeset
|
148 | PurpleConversation *conv, |
|
30125
e28699c46311
Whitespace trim.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29775
diff
changeset
|
149 | gconstpointer icon_data, gsize icon_size, |
|
e28699c46311
Whitespace trim.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29775
diff
changeset
|
150 | void *user_data, |
|
27427
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
151 | size_t action_count, va_list actions); |
|
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
152 | |
|
16743
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
16613
diff
changeset
|
153 | 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
|
154 | 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
|
155 | void (*_purple_reserved3)(void); |
| 15884 | 156 | } PurpleRequestUiOps; |
| 5477 | 157 | |
| 15884 | 158 | 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
|
159 | |
|
33219
06b19630bdb0
Validation for Request API fixes
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33213
diff
changeset
|
160 | typedef gboolean (*PurpleRequestFieldValidator)(PurpleRequestField *field, |
|
06b19630bdb0
Validation for Request API fixes
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33213
diff
changeset
|
161 | gchar **errmsg, void *user_data); |
|
33213
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
162 | |
|
22593
9f88ea5d40d9
Remove duplicated docs for _varg variants of request functions; correct and
Will Thompson <resiak@pidgin.im>
parents:
22263
diff
changeset
|
163 | /** 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
|
164 | * 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
|
165 | * 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
|
166 | */ |
| 15884 | 167 | typedef void (*PurpleRequestActionCb)(void *, int); |
| 168 | typedef void (*PurpleRequestChoiceCb)(void *, int); | |
| 169 | typedef void (*PurpleRequestFieldsCb)(void *, PurpleRequestFields *fields); | |
| 170 | typedef void (*PurpleRequestFileCb)(void *, const char *filename); | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
171 | |
|
32787
7072f190d6ad
Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32604
diff
changeset
|
172 | G_BEGIN_DECLS |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5809
diff
changeset
|
173 | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
174 | /**************************************************************************/ |
|
34329
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
175 | /** @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
|
176 | /**************************************************************************/ |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
177 | /*@{*/ |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
178 | |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
179 | /** |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
180 | * 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
|
181 | * 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
|
182 | * |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
183 | * @return The new parameters set. |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
184 | */ |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
185 | PurpleRequestCommonParameters * |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
186 | 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
|
187 | |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
188 | /** |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
189 | * 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
|
190 | * |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
191 | * @return The new parameters set. |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
192 | */ |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
193 | PurpleRequestCommonParameters * |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
194 | 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
|
195 | |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
196 | /** |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
197 | * 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
|
198 | * |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
199 | * @return The new parameters set. |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
200 | */ |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
201 | PurpleRequestCommonParameters * |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
202 | 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
|
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 | * 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
|
206 | * |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
207 | * @param cpar The object to ref. |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
208 | */ |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
209 | void |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
210 | 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
|
211 | |
|
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 | * 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
|
214 | * |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
215 | * 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
|
216 | * |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
217 | * @param cpar The parameters set object to unref and possibly destroy. |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
218 | * |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
219 | * @return The NULL, if object was destroyed, cpar otherwise. |
|
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 | PurpleRequestCommonParameters * |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
222 | 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
|
223 | |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
224 | /** |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
225 | * Sets the #PurpleAccount associated with the request, or @c NULL, if none is. |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
226 | * |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
227 | * @param cpar 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
|
228 | * @param account The #PurpleAccount to associate. |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
229 | */ |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
230 | void |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
231 | 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
|
232 | PurpleAccount *account); |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
233 | |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
234 | /** |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
235 | * 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
|
236 | * |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
237 | * @param cpar The parameters set (may be @c NULL). |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
238 | * |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
239 | * @return The associated #PurpleAccount, or NULL if none is. |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
240 | */ |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
241 | PurpleAccount * |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
242 | 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
|
243 | |
|
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 | * Sets the #PurpleConversation associated with the request, or @c NULL, if |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
246 | * none is. |
|
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 | * @param cpar 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
|
249 | * @param conv The #PurpleConversation to associate. |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
250 | */ |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
251 | void |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
252 | 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
|
253 | PurpleConversation *conv); |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
254 | |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
255 | /** |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
256 | * 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
|
257 | * |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
258 | * @param cpar The parameters set (may be @c NULL). |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
259 | * |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
260 | * @return The associated #PurpleConversation, or NULL if none is. |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
261 | */ |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
262 | PurpleConversation * |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
263 | 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
|
264 | |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
265 | /*@}*/ |
|
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 | /**************************************************************************/ |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
268 | /** @name Field List API */ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
269 | /**************************************************************************/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
270 | /*@{*/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
271 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
272 | /** |
| 15884 | 273 | * 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
|
274 | * |
| 15884 | 275 | * @return A PurpleRequestFields structure. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
276 | */ |
| 15884 | 277 | PurpleRequestFields *purple_request_fields_new(void); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
278 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
279 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
280 | * Destroys a list of fields. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
281 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
282 | * @param fields The list of fields to destroy. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
283 | */ |
| 15884 | 284 | void purple_request_fields_destroy(PurpleRequestFields *fields); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
285 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
286 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
287 | * Adds a group of fields to the list. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
288 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
289 | * @param fields The fields list. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
290 | * @param group The group to add. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
291 | */ |
| 15884 | 292 | void purple_request_fields_add_group(PurpleRequestFields *fields, |
| 293 | PurpleRequestFieldGroup *group); | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
294 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
295 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
296 | * Returns a list of all groups in a field list. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
297 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
298 | * @param fields The fields list. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
299 | * |
|
20971
b5e1eb080f33
Replace a bunch of @return markers with @constreturn markers. I believe these
Etan Reisner <deryni@pidgin.im>
parents:
20147
diff
changeset
|
300 | * @constreturn A list of groups. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
301 | */ |
| 15884 | 302 | GList *purple_request_fields_get_groups(const PurpleRequestFields *fields); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
303 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
304 | /** |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
305 | * Returns whether or not the field with the specified ID exists. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
306 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
307 | * @param fields The fields list. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
308 | * @param id The ID of the field. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
309 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
310 | * @return TRUE if the field exists, or FALSE. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
311 | */ |
| 15884 | 312 | gboolean purple_request_fields_exists(const PurpleRequestFields *fields, |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
313 | const char *id); |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
314 | |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
315 | /** |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
316 | * Returns a list of all required fields. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
317 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
318 | * @param fields The fields list. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
319 | * |
|
18190
bcf28ef7e8ff
Re-fix the DBus list handling code by killing const GList* / const GSList*
Richard Laager <rlaager@pidgin.im>
parents:
16743
diff
changeset
|
320 | * @constreturn The list of required fields. |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
321 | */ |
|
33219
06b19630bdb0
Validation for Request API fixes
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33213
diff
changeset
|
322 | const GList *purple_request_fields_get_required( |
|
06b19630bdb0
Validation for Request API fixes
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33213
diff
changeset
|
323 | const PurpleRequestFields *fields); |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
324 | |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
325 | /** |
|
33213
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
326 | * 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
|
327 | * |
|
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
328 | * @param fields The fields list. |
|
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
329 | * |
|
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
330 | * @constreturn The list of validated fields. |
|
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
331 | */ |
|
33219
06b19630bdb0
Validation for Request API fixes
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33213
diff
changeset
|
332 | const GList *purple_request_fields_get_validatable( |
|
06b19630bdb0
Validation for Request API fixes
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33213
diff
changeset
|
333 | 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
|
334 | |
|
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
335 | /** |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
336 | * 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
|
337 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
338 | * @param fields The fields list. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
339 | * @param id The field ID. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
340 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
341 | * @return TRUE if the specified field is required, or FALSE. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
342 | */ |
| 15884 | 343 | gboolean purple_request_fields_is_field_required(const PurpleRequestFields *fields, |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
344 | const char *id); |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
345 | |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
346 | /** |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
347 | * Returns whether or not all required fields have values. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
348 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
349 | * @param fields The fields list. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
350 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
351 | * @return TRUE if all required fields have values, or FALSE. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
352 | */ |
| 15884 | 353 | gboolean purple_request_fields_all_required_filled( |
| 354 | const PurpleRequestFields *fields); | |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
355 | |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
356 | /** |
|
33213
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
357 | * 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
|
358 | * |
|
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
359 | * @param fields The fields list. |
|
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
360 | * |
|
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
361 | * @return TRUE if all fields are valid, or FALSE. |
|
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
362 | */ |
|
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
363 | 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
|
364 | |
|
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
365 | /** |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
366 | * Return the field with the specified ID. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
367 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
368 | * @param fields The fields list. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
369 | * @param id The ID of the field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
370 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
371 | * @return The field, if found. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
372 | */ |
| 15884 | 373 | PurpleRequestField *purple_request_fields_get_field( |
| 374 | const PurpleRequestFields *fields, const char *id); | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
375 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
376 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
377 | * Returns the string value of a field with the specified ID. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
378 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
379 | * @param fields The fields list. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
380 | * @param id The ID of the field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
381 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
382 | * @return The string value, if found, or @c NULL otherwise. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
383 | */ |
| 15884 | 384 | const char *purple_request_fields_get_string(const PurpleRequestFields *fields, |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
385 | const char *id); |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
386 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
387 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
388 | * Returns the integer value of a field with the specified ID. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
389 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
390 | * @param fields The fields list. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
391 | * @param id The ID of the field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
392 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
393 | * @return The integer value, if found, or 0 otherwise. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
394 | */ |
| 15884 | 395 | int purple_request_fields_get_integer(const PurpleRequestFields *fields, |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
396 | const char *id); |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
397 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
398 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
399 | * Returns the boolean value of a field with the specified ID. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
400 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
401 | * @param fields The fields list. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
402 | * @param id The ID of the field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
403 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
404 | * @return The boolean value, if found, or @c FALSE otherwise. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
405 | */ |
| 15884 | 406 | gboolean purple_request_fields_get_bool(const PurpleRequestFields *fields, |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
407 | const char *id); |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
408 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
409 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
410 | * Returns the choice index of a field with the specified ID. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
411 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
412 | * @param fields The fields list. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
413 | * @param id The ID of the field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
414 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
415 | * @return The choice index, if found, or -1 otherwise. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
416 | */ |
| 15884 | 417 | int purple_request_fields_get_choice(const PurpleRequestFields *fields, |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
418 | const char *id); |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
419 | |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
420 | /** |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
421 | * Returns the account of a field with the specified ID. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
422 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
423 | * @param fields The fields list. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
424 | * @param id The ID of the field. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
425 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
426 | * @return The account value, if found, or NULL otherwise. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
427 | */ |
| 15884 | 428 | PurpleAccount *purple_request_fields_get_account(const PurpleRequestFields *fields, |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
429 | const char *id); |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
430 | |
|
32273
55a194e489bb
A small bit of hide-a-struct
Mark Doliner <markdoliner@pidgin.im>
parents:
32216
diff
changeset
|
431 | /** |
|
55a194e489bb
A small bit of hide-a-struct
Mark Doliner <markdoliner@pidgin.im>
parents:
32216
diff
changeset
|
432 | * 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
|
433 | * |
|
55a194e489bb
A small bit of hide-a-struct
Mark Doliner <markdoliner@pidgin.im>
parents:
32216
diff
changeset
|
434 | * @param fields The fields list. |
|
55a194e489bb
A small bit of hide-a-struct
Mark Doliner <markdoliner@pidgin.im>
parents:
32216
diff
changeset
|
435 | * |
|
55a194e489bb
A small bit of hide-a-struct
Mark Doliner <markdoliner@pidgin.im>
parents:
32216
diff
changeset
|
436 | * @return The UI data associated with this object. This is a |
|
55a194e489bb
A small bit of hide-a-struct
Mark Doliner <markdoliner@pidgin.im>
parents:
32216
diff
changeset
|
437 | * convenience field provided to the UIs--it is not |
|
55a194e489bb
A small bit of hide-a-struct
Mark Doliner <markdoliner@pidgin.im>
parents:
32216
diff
changeset
|
438 | * used by the libuprple core. |
|
55a194e489bb
A small bit of hide-a-struct
Mark Doliner <markdoliner@pidgin.im>
parents:
32216
diff
changeset
|
439 | */ |
|
55a194e489bb
A small bit of hide-a-struct
Mark Doliner <markdoliner@pidgin.im>
parents:
32216
diff
changeset
|
440 | 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
|
441 | |
|
55a194e489bb
A small bit of hide-a-struct
Mark Doliner <markdoliner@pidgin.im>
parents:
32216
diff
changeset
|
442 | /** |
|
55a194e489bb
A small bit of hide-a-struct
Mark Doliner <markdoliner@pidgin.im>
parents:
32216
diff
changeset
|
443 | * 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
|
444 | * |
|
55a194e489bb
A small bit of hide-a-struct
Mark Doliner <markdoliner@pidgin.im>
parents:
32216
diff
changeset
|
445 | * @param fields The fields list. |
|
55a194e489bb
A small bit of hide-a-struct
Mark Doliner <markdoliner@pidgin.im>
parents:
32216
diff
changeset
|
446 | * @param ui_data A pointer to associate with this object. |
|
55a194e489bb
A small bit of hide-a-struct
Mark Doliner <markdoliner@pidgin.im>
parents:
32216
diff
changeset
|
447 | */ |
|
32554
0d844fac6679
Fix a bunch of tiny problems generating our doxygen documentation
Mark Doliner <markdoliner@pidgin.im>
parents:
32531
diff
changeset
|
448 | 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
|
449 | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
450 | /*@}*/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
451 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
452 | /**************************************************************************/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
453 | /** @name Fields Group API */ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
454 | /**************************************************************************/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
455 | /*@{*/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
456 | |
|
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 | * Creates a fields group with an optional title. |
|
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 | * @param title The optional title to give the group. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
461 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
462 | * @return A new fields group |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
463 | */ |
| 15884 | 464 | PurpleRequestFieldGroup *purple_request_field_group_new(const char *title); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
465 | |
|
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 | * Destroys a fields group. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
468 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
469 | * @param group The group to destroy. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
470 | */ |
| 15884 | 471 | void purple_request_field_group_destroy(PurpleRequestFieldGroup *group); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
472 | |
|
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 | * Adds a field to the group. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
475 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
476 | * @param group The group to add the field to. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
477 | * @param field The field to add to the group. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
478 | */ |
| 15884 | 479 | void purple_request_field_group_add_field(PurpleRequestFieldGroup *group, |
| 480 | PurpleRequestField *field); | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
481 | |
|
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 | * Returns the title of a fields group. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
484 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
485 | * @param group The group. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
486 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
487 | * @return The title, if set. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
488 | */ |
| 15884 | 489 | const char *purple_request_field_group_get_title( |
| 490 | const PurpleRequestFieldGroup *group); | |
|
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 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
493 | * Returns a list of all fields in a group. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
494 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
495 | * @param group The group. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
496 | * |
|
20971
b5e1eb080f33
Replace a bunch of @return markers with @constreturn markers. I believe these
Etan Reisner <deryni@pidgin.im>
parents:
20147
diff
changeset
|
497 | * @constreturn The list of fields in the group. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
498 | */ |
| 15884 | 499 | GList *purple_request_field_group_get_fields( |
| 500 | const PurpleRequestFieldGroup *group); | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
501 | |
|
32273
55a194e489bb
A small bit of hide-a-struct
Mark Doliner <markdoliner@pidgin.im>
parents:
32216
diff
changeset
|
502 | /** |
|
55a194e489bb
A small bit of hide-a-struct
Mark Doliner <markdoliner@pidgin.im>
parents:
32216
diff
changeset
|
503 | * 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
|
504 | * |
|
55a194e489bb
A small bit of hide-a-struct
Mark Doliner <markdoliner@pidgin.im>
parents:
32216
diff
changeset
|
505 | * @param group The group. |
|
55a194e489bb
A small bit of hide-a-struct
Mark Doliner <markdoliner@pidgin.im>
parents:
32216
diff
changeset
|
506 | * |
|
55a194e489bb
A small bit of hide-a-struct
Mark Doliner <markdoliner@pidgin.im>
parents:
32216
diff
changeset
|
507 | * @constreturn The list of fields in the group. |
|
55a194e489bb
A small bit of hide-a-struct
Mark Doliner <markdoliner@pidgin.im>
parents:
32216
diff
changeset
|
508 | */ |
|
55a194e489bb
A small bit of hide-a-struct
Mark Doliner <markdoliner@pidgin.im>
parents:
32216
diff
changeset
|
509 | 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
|
510 | const PurpleRequestFieldGroup *group); |
|
55a194e489bb
A small bit of hide-a-struct
Mark Doliner <markdoliner@pidgin.im>
parents:
32216
diff
changeset
|
511 | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
512 | /*@}*/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
513 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
514 | /**************************************************************************/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
515 | /** @name Field API */ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
516 | /**************************************************************************/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
517 | /*@{*/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
518 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
519 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
520 | * Creates a field of the specified type. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
521 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
522 | * @param id The field ID. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
523 | * @param text The text label of the field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
524 | * @param type The type of field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
525 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
526 | * @return The new field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
527 | */ |
| 15884 | 528 | PurpleRequestField *purple_request_field_new(const char *id, const char *text, |
| 529 | PurpleRequestFieldType type); | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
530 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
531 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
532 | * Destroys a field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
533 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
534 | * @param field The field to destroy. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
535 | */ |
| 15884 | 536 | void purple_request_field_destroy(PurpleRequestField *field); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
537 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
538 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
539 | * Sets the label text of a field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
540 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
541 | * @param field The field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
542 | * @param label The text label. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
543 | */ |
| 15884 | 544 | 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
|
545 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
546 | /** |
|
7904
266d6d5c68ac
[gaim-migrate @ 8564]
Christian Hammond <chipx86@chipx86.com>
parents:
7902
diff
changeset
|
547 | * Sets whether or not a field is visible. |
|
266d6d5c68ac
[gaim-migrate @ 8564]
Christian Hammond <chipx86@chipx86.com>
parents:
7902
diff
changeset
|
548 | * |
|
8285
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
549 | * @param field The field. |
|
7904
266d6d5c68ac
[gaim-migrate @ 8564]
Christian Hammond <chipx86@chipx86.com>
parents:
7902
diff
changeset
|
550 | * @param visible TRUE if visible, or FALSE if not. |
|
266d6d5c68ac
[gaim-migrate @ 8564]
Christian Hammond <chipx86@chipx86.com>
parents:
7902
diff
changeset
|
551 | */ |
| 15884 | 552 | void purple_request_field_set_visible(PurpleRequestField *field, gboolean visible); |
|
7904
266d6d5c68ac
[gaim-migrate @ 8564]
Christian Hammond <chipx86@chipx86.com>
parents:
7902
diff
changeset
|
553 | |
|
266d6d5c68ac
[gaim-migrate @ 8564]
Christian Hammond <chipx86@chipx86.com>
parents:
7902
diff
changeset
|
554 | /** |
|
8285
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
555 | * Sets the type hint for the field. |
|
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
556 | * |
|
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
557 | * 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
|
558 | * auto-completion for type hints like "account" and "screenname". |
|
8285
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
559 | * |
|
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
560 | * @param field The field. |
|
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
561 | * @param type_hint The type hint. |
|
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
562 | */ |
| 15884 | 563 | void purple_request_field_set_type_hint(PurpleRequestField *field, |
|
8285
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
564 | const char *type_hint); |
|
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
565 | |
|
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
566 | /** |
|
31697
b6c47ea33682
Add API: purple_request_field_set_tooltip & purple_request_field_get_tooltip
Andrew Victor <andrew.victor@mxit.com>
parents:
31293
diff
changeset
|
567 | * 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
|
568 | * |
|
b6c47ea33682
Add API: purple_request_field_set_tooltip & purple_request_field_get_tooltip
Andrew Victor <andrew.victor@mxit.com>
parents:
31293
diff
changeset
|
569 | * 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
|
570 | * 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
|
571 | * |
|
b6c47ea33682
Add API: purple_request_field_set_tooltip & purple_request_field_get_tooltip
Andrew Victor <andrew.victor@mxit.com>
parents:
31293
diff
changeset
|
572 | * @param field 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
|
573 | * @param tooltip The tooltip text. |
|
b6c47ea33682
Add API: purple_request_field_set_tooltip & purple_request_field_get_tooltip
Andrew Victor <andrew.victor@mxit.com>
parents:
31293
diff
changeset
|
574 | */ |
|
b6c47ea33682
Add API: purple_request_field_set_tooltip & purple_request_field_get_tooltip
Andrew Victor <andrew.victor@mxit.com>
parents:
31293
diff
changeset
|
575 | 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
|
576 | 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
|
577 | |
|
b6c47ea33682
Add API: purple_request_field_set_tooltip & purple_request_field_get_tooltip
Andrew Victor <andrew.victor@mxit.com>
parents:
31293
diff
changeset
|
578 | /** |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
579 | * Sets whether or not a field is required. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
580 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
581 | * @param field The field. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
582 | * @param required TRUE if required, or FALSE. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
583 | */ |
| 15884 | 584 | void purple_request_field_set_required(PurpleRequestField *field, |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
585 | gboolean required); |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
586 | |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
587 | /** |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
588 | * Returns the type of a field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
589 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
590 | * @param field The field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
591 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
592 | * @return The field's type. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
593 | */ |
| 15884 | 594 | PurpleRequestFieldType purple_request_field_get_type(const PurpleRequestField *field); |
|
5807
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 | /** |
|
24984
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
597 | * 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
|
598 | * |
|
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
599 | * @param field The field. |
|
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
600 | * |
|
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
601 | * @return The UI data. |
|
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
602 | */ |
|
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
603 | 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
|
604 | |
|
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
605 | /** |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
606 | * Returns the ID of a field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
607 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
608 | * @param field The field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
609 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
610 | * @return The ID |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
611 | */ |
| 15884 | 612 | const char *purple_request_field_get_id(const PurpleRequestField *field); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
613 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
614 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
615 | * Returns the label text of a field. |
|
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 | * @param field The field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
618 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
619 | * @return The label text. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
620 | */ |
| 15884 | 621 | const char *purple_request_field_get_label(const PurpleRequestField *field); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
622 | |
|
7904
266d6d5c68ac
[gaim-migrate @ 8564]
Christian Hammond <chipx86@chipx86.com>
parents:
7902
diff
changeset
|
623 | /** |
|
266d6d5c68ac
[gaim-migrate @ 8564]
Christian Hammond <chipx86@chipx86.com>
parents:
7902
diff
changeset
|
624 | * Returns whether or not a field is visible. |
|
266d6d5c68ac
[gaim-migrate @ 8564]
Christian Hammond <chipx86@chipx86.com>
parents:
7902
diff
changeset
|
625 | * |
|
266d6d5c68ac
[gaim-migrate @ 8564]
Christian Hammond <chipx86@chipx86.com>
parents:
7902
diff
changeset
|
626 | * @param field The field. |
|
266d6d5c68ac
[gaim-migrate @ 8564]
Christian Hammond <chipx86@chipx86.com>
parents:
7902
diff
changeset
|
627 | * |
|
266d6d5c68ac
[gaim-migrate @ 8564]
Christian Hammond <chipx86@chipx86.com>
parents:
7902
diff
changeset
|
628 | * @return TRUE if the field is visible. FALSE otherwise. |
|
266d6d5c68ac
[gaim-migrate @ 8564]
Christian Hammond <chipx86@chipx86.com>
parents:
7902
diff
changeset
|
629 | */ |
| 15884 | 630 | gboolean purple_request_field_is_visible(const PurpleRequestField *field); |
|
7904
266d6d5c68ac
[gaim-migrate @ 8564]
Christian Hammond <chipx86@chipx86.com>
parents:
7902
diff
changeset
|
631 | |
|
8285
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
632 | /** |
|
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
633 | * Returns the field's type hint. |
|
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
634 | * |
|
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
635 | * @param field The field. |
|
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
636 | * |
|
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
637 | * @return The field's type hint. |
|
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
638 | */ |
| 15884 | 639 | 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
|
640 | |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
641 | /** |
|
31697
b6c47ea33682
Add API: purple_request_field_set_tooltip & purple_request_field_get_tooltip
Andrew Victor <andrew.victor@mxit.com>
parents:
31293
diff
changeset
|
642 | * 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
|
643 | * |
|
b6c47ea33682
Add API: purple_request_field_set_tooltip & purple_request_field_get_tooltip
Andrew Victor <andrew.victor@mxit.com>
parents:
31293
diff
changeset
|
644 | * @param field 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
|
645 | * |
|
b6c47ea33682
Add API: purple_request_field_set_tooltip & purple_request_field_get_tooltip
Andrew Victor <andrew.victor@mxit.com>
parents:
31293
diff
changeset
|
646 | * @return 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
|
647 | */ |
|
b6c47ea33682
Add API: purple_request_field_set_tooltip & purple_request_field_get_tooltip
Andrew Victor <andrew.victor@mxit.com>
parents:
31293
diff
changeset
|
648 | 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
|
649 | |
|
b6c47ea33682
Add API: purple_request_field_set_tooltip & purple_request_field_get_tooltip
Andrew Victor <andrew.victor@mxit.com>
parents:
31293
diff
changeset
|
650 | /** |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
651 | * Returns whether or not a field is required. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
652 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
653 | * @param field The field. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
654 | * |
|
8735
01248ea222d3
[gaim-migrate @ 9490]
Jonathan Champ <royanee@users.sourceforge.net>
parents:
8699
diff
changeset
|
655 | * @return TRUE if the field is required, or FALSE. |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
656 | */ |
| 15884 | 657 | gboolean purple_request_field_is_required(const PurpleRequestField *field); |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
658 | |
|
24984
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
659 | /** |
|
33213
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
660 | * 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
|
661 | * |
|
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
662 | * @param field The field. |
|
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
663 | * |
|
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
664 | * @return TRUE if the field has value, or FALSE. |
|
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
665 | */ |
|
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
666 | 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
|
667 | |
|
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
668 | /** |
|
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
669 | * 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
|
670 | * |
|
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
671 | * @param field The field. |
|
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
672 | * @param validator The validator callback, NULL to disable validation. |
|
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
673 | * @param user_data The data to pass to the callback. |
|
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
674 | */ |
|
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
675 | 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
|
676 | 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
|
677 | |
|
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
678 | /** |
|
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
679 | * 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
|
680 | * |
|
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
681 | * @param field The field. |
|
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
682 | * |
|
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
683 | * @return TRUE if the field has validator, or FALSE. |
|
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
684 | */ |
|
33219
06b19630bdb0
Validation for Request API fixes
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33213
diff
changeset
|
685 | 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
|
686 | |
|
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
687 | /** |
|
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
688 | * 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
|
689 | * |
|
33219
06b19630bdb0
Validation for Request API fixes
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33213
diff
changeset
|
690 | * 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
|
691 | * 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
|
692 | * 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
|
693 | * |
|
33213
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
694 | * 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
|
695 | * |
|
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
696 | * @param field The field. |
|
33219
06b19630bdb0
Validation for Request API fixes
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33213
diff
changeset
|
697 | * @param errmsg If non-NULL, the memory area, where the pointer to validation |
|
06b19630bdb0
Validation for Request API fixes
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33213
diff
changeset
|
698 | * 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
|
699 | * |
|
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
700 | * @return TRUE, if the field is valid, FALSE otherwise. |
|
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
701 | */ |
|
33219
06b19630bdb0
Validation for Request API fixes
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33213
diff
changeset
|
702 | 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
|
703 | |
|
2852fbde4722
Validation for Request API; use it in 'new IM' dialog.
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32888
diff
changeset
|
704 | /** |
|
24984
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
705 | * 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
|
706 | * |
|
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
707 | * @param field The field. |
|
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
708 | * |
|
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
709 | * @return The UI data. |
|
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
710 | */ |
|
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
711 | 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
|
712 | |
|
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
713 | /** |
|
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
714 | * 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
|
715 | * |
|
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
716 | * @param field The field. |
|
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
717 | * @param ui_data The UI data. |
|
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
718 | * |
|
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
719 | * @return The UI data. |
|
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
720 | */ |
|
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
721 | 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
|
722 | 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
|
723 | |
|
5807
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 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
726 | /**************************************************************************/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
727 | /** @name String Field API */ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
728 | /**************************************************************************/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
729 | /*@{*/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
730 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
731 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
732 | * Creates a string request field. |
|
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 | * @param id The field ID. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
735 | * @param text The text label of the field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
736 | * @param default_value The optional default value. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
737 | * @param multiline Whether or not this should be a multiline string. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
738 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
739 | * @return The new field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
740 | */ |
| 15884 | 741 | PurpleRequestField *purple_request_field_string_new(const char *id, |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
742 | const char *text, |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
743 | const char *default_value, |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
744 | gboolean multiline); |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
745 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
746 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
747 | * Sets the default value in a string field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
748 | * |
|
5808
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
749 | * @param field The field. |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
750 | * @param default_value The default value. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
751 | */ |
| 15884 | 752 | void purple_request_field_string_set_default_value(PurpleRequestField *field, |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
753 | const char *default_value); |
|
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 | /** |
|
5808
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
756 | * Sets the value in a string field. |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
757 | * |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
758 | * @param field The field. |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
759 | * @param value The value. |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
760 | */ |
| 15884 | 761 | void purple_request_field_string_set_value(PurpleRequestField *field, |
|
5808
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
762 | const char *value); |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
763 | |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
764 | /** |
|
7047
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
765 | * Sets whether or not a string field is masked |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
766 | * (commonly used for password fields). |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
767 | * |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
768 | * @param field The field. |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
769 | * @param masked The masked value. |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
770 | */ |
| 15884 | 771 | void purple_request_field_string_set_masked(PurpleRequestField *field, |
|
7047
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
772 | gboolean masked); |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
773 | |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
774 | /** |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
775 | * Sets whether or not a string field is editable. |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
776 | * |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
777 | * @param field The field. |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
778 | * @param editable The editable value. |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
779 | */ |
| 15884 | 780 | void purple_request_field_string_set_editable(PurpleRequestField *field, |
|
7047
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
781 | gboolean editable); |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
782 | |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
783 | /** |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
784 | * Returns the default value in a string field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
785 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
786 | * @param field The field. |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
787 | * |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
788 | * @return The default value. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
789 | */ |
| 15884 | 790 | const char *purple_request_field_string_get_default_value( |
| 791 | const PurpleRequestField *field); | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
792 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
793 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
794 | * Returns the user-entered value in a string field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
795 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
796 | * @param field The field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
797 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
798 | * @return The value. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
799 | */ |
| 15884 | 800 | 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
|
801 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
802 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
803 | * Returns whether or not a string field is multi-line. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
804 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
805 | * @param field The field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
806 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
807 | * @return @c TRUE if the field is mulit-line, or @c FALSE otherwise. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
808 | */ |
| 15884 | 809 | gboolean purple_request_field_string_is_multiline(const PurpleRequestField *field); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
810 | |
|
7047
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
811 | /** |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
812 | * Returns whether or not a string field is masked. |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
813 | * |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
814 | * @param field The field. |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
815 | * |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
816 | * @return @c TRUE if the field is masked, or @c FALSE otherwise. |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
817 | */ |
| 15884 | 818 | gboolean purple_request_field_string_is_masked(const PurpleRequestField *field); |
|
7047
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
819 | |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
820 | /** |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
821 | * Returns whether or not a string field is editable. |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
822 | * |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
823 | * @param field The field. |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
824 | * |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
825 | * @return @c TRUE if the field is editable, or @c FALSE otherwise. |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
826 | */ |
| 15884 | 827 | gboolean purple_request_field_string_is_editable(const PurpleRequestField *field); |
|
7047
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
828 | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
829 | /*@}*/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
830 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
831 | /**************************************************************************/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
832 | /** @name Integer Field API */ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
833 | /**************************************************************************/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
834 | /*@{*/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
835 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
836 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
837 | * Creates an integer field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
838 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
839 | * @param id The field ID. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
840 | * @param text The text label of the field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
841 | * @param default_value The default value. |
|
33935
e740bbb8350c
Request API: fix integer fields, add bounds to them
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33237
diff
changeset
|
842 | * @param lower_bound The lower bound. |
|
e740bbb8350c
Request API: fix integer fields, add bounds to them
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33237
diff
changeset
|
843 | * @param upper_bound The upper bound. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
844 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
845 | * @return The new field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
846 | */ |
| 15884 | 847 | 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
|
848 | 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
|
849 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
850 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
851 | * Sets the default value in an integer field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
852 | * |
|
5808
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
853 | * @param field The field. |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
854 | * @param default_value The default value. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
855 | */ |
| 15884 | 856 | void purple_request_field_int_set_default_value(PurpleRequestField *field, |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
857 | int default_value); |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
858 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
859 | /** |
|
33935
e740bbb8350c
Request API: fix integer fields, add bounds to them
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33237
diff
changeset
|
860 | * 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
|
861 | * |
|
e740bbb8350c
Request API: fix integer fields, add bounds to them
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33237
diff
changeset
|
862 | * @param field The field. |
|
e740bbb8350c
Request API: fix integer fields, add bounds to them
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33237
diff
changeset
|
863 | * @param lower_bound The lower bound. |
|
e740bbb8350c
Request API: fix integer fields, add bounds to them
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33237
diff
changeset
|
864 | */ |
|
e740bbb8350c
Request API: fix integer fields, add bounds to them
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33237
diff
changeset
|
865 | 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
|
866 | |
|
e740bbb8350c
Request API: fix integer fields, add bounds to them
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33237
diff
changeset
|
867 | /** |
|
e740bbb8350c
Request API: fix integer fields, add bounds to them
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33237
diff
changeset
|
868 | * 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
|
869 | * |
|
e740bbb8350c
Request API: fix integer fields, add bounds to them
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33237
diff
changeset
|
870 | * @param field The field. |
|
e740bbb8350c
Request API: fix integer fields, add bounds to them
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33237
diff
changeset
|
871 | * @param upper_bound The upper bound. |
|
e740bbb8350c
Request API: fix integer fields, add bounds to them
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33237
diff
changeset
|
872 | */ |
|
e740bbb8350c
Request API: fix integer fields, add bounds to them
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33237
diff
changeset
|
873 | 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
|
874 | |
|
e740bbb8350c
Request API: fix integer fields, add bounds to them
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33237
diff
changeset
|
875 | /** |
|
5808
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
876 | * Sets the value in an integer field. |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
877 | * |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
878 | * @param field The field. |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
879 | * @param value The value. |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
880 | */ |
| 15884 | 881 | 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
|
882 | |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
883 | /** |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
884 | * Returns the default value in an integer field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
885 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
886 | * @param field The field. |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
887 | * |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
888 | * @return The default value. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
889 | */ |
| 15884 | 890 | 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
|
891 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
892 | /** |
|
33935
e740bbb8350c
Request API: fix integer fields, add bounds to them
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33237
diff
changeset
|
893 | * 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
|
894 | * |
|
e740bbb8350c
Request API: fix integer fields, add bounds to them
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33237
diff
changeset
|
895 | * @param field The field. |
|
e740bbb8350c
Request API: fix integer fields, add bounds to them
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33237
diff
changeset
|
896 | * |
|
e740bbb8350c
Request API: fix integer fields, add bounds to them
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33237
diff
changeset
|
897 | * @return The lower bound. |
|
e740bbb8350c
Request API: fix integer fields, add bounds to them
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33237
diff
changeset
|
898 | */ |
|
e740bbb8350c
Request API: fix integer fields, add bounds to them
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33237
diff
changeset
|
899 | 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
|
900 | |
|
e740bbb8350c
Request API: fix integer fields, add bounds to them
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33237
diff
changeset
|
901 | /** |
|
e740bbb8350c
Request API: fix integer fields, add bounds to them
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33237
diff
changeset
|
902 | * 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
|
903 | * |
|
e740bbb8350c
Request API: fix integer fields, add bounds to them
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33237
diff
changeset
|
904 | * @param field The field. |
|
e740bbb8350c
Request API: fix integer fields, add bounds to them
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33237
diff
changeset
|
905 | * |
|
e740bbb8350c
Request API: fix integer fields, add bounds to them
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33237
diff
changeset
|
906 | * @return The upper bound. |
|
e740bbb8350c
Request API: fix integer fields, add bounds to them
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33237
diff
changeset
|
907 | */ |
|
e740bbb8350c
Request API: fix integer fields, add bounds to them
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33237
diff
changeset
|
908 | 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
|
909 | |
|
e740bbb8350c
Request API: fix integer fields, add bounds to them
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33237
diff
changeset
|
910 | /** |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
911 | * Returns the user-entered value in an integer field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
912 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
913 | * @param field The field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
914 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
915 | * @return The value. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
916 | */ |
| 15884 | 917 | int purple_request_field_int_get_value(const PurpleRequestField *field); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
918 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
919 | /*@}*/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
920 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
921 | /**************************************************************************/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
922 | /** @name Boolean Field API */ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
923 | /**************************************************************************/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
924 | /*@{*/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
925 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
926 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
927 | * Creates a boolean field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
928 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
929 | * This is often represented as a checkbox. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
930 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
931 | * @param id The field ID. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
932 | * @param text The text label of the field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
933 | * @param default_value The default value. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
934 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
935 | * @return The new field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
936 | */ |
| 15884 | 937 | PurpleRequestField *purple_request_field_bool_new(const char *id, |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
938 | const char *text, |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
939 | gboolean default_value); |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
940 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
941 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
942 | * Sets the default value in an boolean field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
943 | * |
|
6720
cdc5348dd848
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6035
diff
changeset
|
944 | * @param field The field. |
|
cdc5348dd848
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6035
diff
changeset
|
945 | * @param default_value The default value. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
946 | */ |
| 15884 | 947 | void purple_request_field_bool_set_default_value(PurpleRequestField *field, |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
948 | gboolean default_value); |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
949 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
950 | /** |
|
5808
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
951 | * Sets the value in an boolean field. |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
952 | * |
|
6720
cdc5348dd848
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6035
diff
changeset
|
953 | * @param field The field. |
|
cdc5348dd848
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6035
diff
changeset
|
954 | * @param value The value. |
|
5808
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
955 | */ |
| 15884 | 956 | void purple_request_field_bool_set_value(PurpleRequestField *field, |
|
5808
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
957 | gboolean value); |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
958 | |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
959 | /** |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
960 | * Returns the default value in an boolean field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
961 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
962 | * @param field The field. |
|
6720
cdc5348dd848
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6035
diff
changeset
|
963 | * |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
964 | * @return The default value. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
965 | */ |
| 15884 | 966 | gboolean purple_request_field_bool_get_default_value( |
| 967 | const PurpleRequestField *field); | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
968 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
969 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
970 | * Returns the user-entered value in an boolean field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
971 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
972 | * @param field The field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
973 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
974 | * @return The value. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
975 | */ |
| 15884 | 976 | gboolean purple_request_field_bool_get_value(const PurpleRequestField *field); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
977 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
978 | /*@}*/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
979 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
980 | /**************************************************************************/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
981 | /** @name Choice Field API */ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
982 | /**************************************************************************/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
983 | /*@{*/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
984 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
985 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
986 | * Creates a multiple choice field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
987 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
988 | * This is often represented as a group of radio buttons. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
989 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
990 | * @param id The field ID. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
991 | * @param text The optional label of the field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
992 | * @param default_value The default choice. |
|
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 | * @return The new field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
995 | */ |
| 15884 | 996 | PurpleRequestField *purple_request_field_choice_new(const char *id, |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
997 | const char *text, |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
998 | int default_value); |
|
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 | * Adds a choice to a multiple choice field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1002 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1003 | * @param field The choice field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1004 | * @param label The choice label. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1005 | */ |
| 15884 | 1006 | void purple_request_field_choice_add(PurpleRequestField *field, |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1007 | const char *label); |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1008 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1009 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1010 | * Sets the default value in an choice field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1011 | * |
|
5808
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
1012 | * @param field The field. |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
1013 | * @param default_value The default value. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1014 | */ |
| 15884 | 1015 | void purple_request_field_choice_set_default_value(PurpleRequestField *field, |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1016 | int default_value); |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1017 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1018 | /** |
|
5808
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
1019 | * Sets the value in an choice field. |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
1020 | * |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
1021 | * @param field The field. |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
1022 | * @param value The value. |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
1023 | */ |
| 15884 | 1024 | void purple_request_field_choice_set_value(PurpleRequestField *field, int value); |
|
5808
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
1025 | |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
1026 | /** |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1027 | * Returns the default value in an choice field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1028 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1029 | * @param field The field. |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1030 | * |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1031 | * @return The default value. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1032 | */ |
| 15884 | 1033 | int purple_request_field_choice_get_default_value(const PurpleRequestField *field); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1034 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1035 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1036 | * Returns the user-entered value in an choice field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1037 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1038 | * @param field The field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1039 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1040 | * @return The value. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1041 | */ |
| 15884 | 1042 | int purple_request_field_choice_get_value(const PurpleRequestField *field); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1043 | |
|
5809
3550646492e0
[gaim-migrate @ 6239]
Christian Hammond <chipx86@chipx86.com>
parents:
5808
diff
changeset
|
1044 | /** |
|
3550646492e0
[gaim-migrate @ 6239]
Christian Hammond <chipx86@chipx86.com>
parents:
5808
diff
changeset
|
1045 | * Returns a list of labels in a choice field. |
|
3550646492e0
[gaim-migrate @ 6239]
Christian Hammond <chipx86@chipx86.com>
parents:
5808
diff
changeset
|
1046 | * |
|
3550646492e0
[gaim-migrate @ 6239]
Christian Hammond <chipx86@chipx86.com>
parents:
5808
diff
changeset
|
1047 | * @param field The field. |
|
3550646492e0
[gaim-migrate @ 6239]
Christian Hammond <chipx86@chipx86.com>
parents:
5808
diff
changeset
|
1048 | * |
|
20971
b5e1eb080f33
Replace a bunch of @return markers with @constreturn markers. I believe these
Etan Reisner <deryni@pidgin.im>
parents:
20147
diff
changeset
|
1049 | * @constreturn The list of labels. |
|
5809
3550646492e0
[gaim-migrate @ 6239]
Christian Hammond <chipx86@chipx86.com>
parents:
5808
diff
changeset
|
1050 | */ |
| 15884 | 1051 | GList *purple_request_field_choice_get_labels(const PurpleRequestField *field); |
|
5809
3550646492e0
[gaim-migrate @ 6239]
Christian Hammond <chipx86@chipx86.com>
parents:
5808
diff
changeset
|
1052 | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1053 | /*@}*/ |
|
5482
6831f83bfae5
[gaim-migrate @ 5878]
Christian Hammond <chipx86@chipx86.com>
parents:
5477
diff
changeset
|
1054 | |
| 5477 | 1055 | /**************************************************************************/ |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1056 | /** @name List Field API */ |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1057 | /**************************************************************************/ |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1058 | /*@{*/ |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1059 | |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1060 | /** |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1061 | * Creates a multiple list item field. |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1062 | * |
|
7909
f2b88b6b97a7
[gaim-migrate @ 8569]
Christian Hammond <chipx86@chipx86.com>
parents:
7905
diff
changeset
|
1063 | * @param id The field ID. |
|
f2b88b6b97a7
[gaim-migrate @ 8569]
Christian Hammond <chipx86@chipx86.com>
parents:
7905
diff
changeset
|
1064 | * @param text The optional label of the field. |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1065 | * |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1066 | * @return The new field. |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1067 | */ |
| 15884 | 1068 | 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
|
1069 | |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1070 | /** |
|
7899
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
1071 | * Sets whether or not a list field allows multiple selection. |
|
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
1072 | * |
|
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
1073 | * @param field The list field. |
|
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
1074 | * @param multi_select TRUE if multiple selection is enabled, |
|
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
1075 | * or FALSE otherwise. |
|
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
1076 | */ |
| 15884 | 1077 | void purple_request_field_list_set_multi_select(PurpleRequestField *field, |
|
7899
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
1078 | gboolean multi_select); |
|
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
1079 | |
|
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
1080 | /** |
|
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
1081 | * Returns whether or not a list field allows multiple selection. |
|
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
1082 | * |
|
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
1083 | * @param field The list field. |
|
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
1084 | * |
|
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
1085 | * @return TRUE if multiple selection is enabled, or FALSE otherwise. |
|
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
1086 | */ |
| 15884 | 1087 | gboolean purple_request_field_list_get_multi_select( |
| 1088 | const PurpleRequestField *field); | |
|
7899
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
1089 | |
|
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
1090 | /** |
|
7909
f2b88b6b97a7
[gaim-migrate @ 8569]
Christian Hammond <chipx86@chipx86.com>
parents:
7905
diff
changeset
|
1091 | * Returns the data for a particular item. |
|
f2b88b6b97a7
[gaim-migrate @ 8569]
Christian Hammond <chipx86@chipx86.com>
parents:
7905
diff
changeset
|
1092 | * |
|
f2b88b6b97a7
[gaim-migrate @ 8569]
Christian Hammond <chipx86@chipx86.com>
parents:
7905
diff
changeset
|
1093 | * @param field The list field. |
| 9000 | 1094 | * @param text The item text. |
|
7909
f2b88b6b97a7
[gaim-migrate @ 8569]
Christian Hammond <chipx86@chipx86.com>
parents:
7905
diff
changeset
|
1095 | * |
|
f2b88b6b97a7
[gaim-migrate @ 8569]
Christian Hammond <chipx86@chipx86.com>
parents:
7905
diff
changeset
|
1096 | * @return The data associated with the item. |
|
f2b88b6b97a7
[gaim-migrate @ 8569]
Christian Hammond <chipx86@chipx86.com>
parents:
7905
diff
changeset
|
1097 | */ |
| 15884 | 1098 | void *purple_request_field_list_get_data(const PurpleRequestField *field, |
|
7909
f2b88b6b97a7
[gaim-migrate @ 8569]
Christian Hammond <chipx86@chipx86.com>
parents:
7905
diff
changeset
|
1099 | const char *text); |
|
f2b88b6b97a7
[gaim-migrate @ 8569]
Christian Hammond <chipx86@chipx86.com>
parents:
7905
diff
changeset
|
1100 | |
|
f2b88b6b97a7
[gaim-migrate @ 8569]
Christian Hammond <chipx86@chipx86.com>
parents:
7905
diff
changeset
|
1101 | /** |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1102 | * Adds an item to a list field. |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1103 | * |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1104 | * @param field The list field. |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1105 | * @param item The list item. |
|
24900
a19d983918c2
Deprecate purple_request_field_list_add()
Richard Laager <rlaager@pidgin.im>
parents:
24899
diff
changeset
|
1106 | * @param icon_path The path to icon file, or @c NULL for no icon. |
|
24625
4082cd694acb
This patch comes from the combined work of contributors minstrel, NightFox,
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22593
diff
changeset
|
1107 | * @param data The associated data. |
|
4082cd694acb
This patch comes from the combined work of contributors minstrel, NightFox,
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22593
diff
changeset
|
1108 | */ |
|
4082cd694acb
This patch comes from the combined work of contributors minstrel, NightFox,
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22593
diff
changeset
|
1109 | 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
|
1110 | 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
|
1111 | |
|
4082cd694acb
This patch comes from the combined work of contributors minstrel, NightFox,
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22593
diff
changeset
|
1112 | /** |
|
7902
6c04e5d38897
[gaim-migrate @ 8562]
Christian Hammond <chipx86@chipx86.com>
parents:
7901
diff
changeset
|
1113 | * Adds a selected item to the list field. |
|
6c04e5d38897
[gaim-migrate @ 8562]
Christian Hammond <chipx86@chipx86.com>
parents:
7901
diff
changeset
|
1114 | * |
|
6c04e5d38897
[gaim-migrate @ 8562]
Christian Hammond <chipx86@chipx86.com>
parents:
7901
diff
changeset
|
1115 | * @param field The field. |
|
6c04e5d38897
[gaim-migrate @ 8562]
Christian Hammond <chipx86@chipx86.com>
parents:
7901
diff
changeset
|
1116 | * @param item The item to add. |
|
6c04e5d38897
[gaim-migrate @ 8562]
Christian Hammond <chipx86@chipx86.com>
parents:
7901
diff
changeset
|
1117 | */ |
| 15884 | 1118 | void purple_request_field_list_add_selected(PurpleRequestField *field, |
|
7902
6c04e5d38897
[gaim-migrate @ 8562]
Christian Hammond <chipx86@chipx86.com>
parents:
7901
diff
changeset
|
1119 | const char *item); |
|
6c04e5d38897
[gaim-migrate @ 8562]
Christian Hammond <chipx86@chipx86.com>
parents:
7901
diff
changeset
|
1120 | |
|
6c04e5d38897
[gaim-migrate @ 8562]
Christian Hammond <chipx86@chipx86.com>
parents:
7901
diff
changeset
|
1121 | /** |
|
6c04e5d38897
[gaim-migrate @ 8562]
Christian Hammond <chipx86@chipx86.com>
parents:
7901
diff
changeset
|
1122 | * Clears the list of selected items in a list field. |
|
6c04e5d38897
[gaim-migrate @ 8562]
Christian Hammond <chipx86@chipx86.com>
parents:
7901
diff
changeset
|
1123 | * |
|
6c04e5d38897
[gaim-migrate @ 8562]
Christian Hammond <chipx86@chipx86.com>
parents:
7901
diff
changeset
|
1124 | * @param field The field. |
|
6c04e5d38897
[gaim-migrate @ 8562]
Christian Hammond <chipx86@chipx86.com>
parents:
7901
diff
changeset
|
1125 | */ |
| 15884 | 1126 | void purple_request_field_list_clear_selected(PurpleRequestField *field); |
|
7902
6c04e5d38897
[gaim-migrate @ 8562]
Christian Hammond <chipx86@chipx86.com>
parents:
7901
diff
changeset
|
1127 | |
|
6c04e5d38897
[gaim-migrate @ 8562]
Christian Hammond <chipx86@chipx86.com>
parents:
7901
diff
changeset
|
1128 | /** |
|
7901
f09d051b649d
[gaim-migrate @ 8561]
Christian Hammond <chipx86@chipx86.com>
parents:
7899
diff
changeset
|
1129 | * Sets a list of selected items in a list field. |
|
f09d051b649d
[gaim-migrate @ 8561]
Christian Hammond <chipx86@chipx86.com>
parents:
7899
diff
changeset
|
1130 | * |
|
f09d051b649d
[gaim-migrate @ 8561]
Christian Hammond <chipx86@chipx86.com>
parents:
7899
diff
changeset
|
1131 | * @param field The 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
|
1132 | * @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
|
1133 | */ |
| 15884 | 1134 | 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
|
1135 | GList *items); |
|
7901
f09d051b649d
[gaim-migrate @ 8561]
Christian Hammond <chipx86@chipx86.com>
parents:
7899
diff
changeset
|
1136 | |
|
f09d051b649d
[gaim-migrate @ 8561]
Christian Hammond <chipx86@chipx86.com>
parents:
7899
diff
changeset
|
1137 | /** |
|
7964
10d58eb8a16a
[gaim-migrate @ 8641]
Christian Hammond <chipx86@chipx86.com>
parents:
7963
diff
changeset
|
1138 | * 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
|
1139 | * |
|
10d58eb8a16a
[gaim-migrate @ 8641]
Christian Hammond <chipx86@chipx86.com>
parents:
7963
diff
changeset
|
1140 | * @param field The field. |
|
10d58eb8a16a
[gaim-migrate @ 8641]
Christian Hammond <chipx86@chipx86.com>
parents:
7963
diff
changeset
|
1141 | * @param item The item. |
|
10d58eb8a16a
[gaim-migrate @ 8641]
Christian Hammond <chipx86@chipx86.com>
parents:
7963
diff
changeset
|
1142 | * |
|
10d58eb8a16a
[gaim-migrate @ 8641]
Christian Hammond <chipx86@chipx86.com>
parents:
7963
diff
changeset
|
1143 | * @return TRUE if the item is selected. FALSE otherwise. |
|
10d58eb8a16a
[gaim-migrate @ 8641]
Christian Hammond <chipx86@chipx86.com>
parents:
7963
diff
changeset
|
1144 | */ |
| 15884 | 1145 | gboolean purple_request_field_list_is_selected(const PurpleRequestField *field, |
|
7964
10d58eb8a16a
[gaim-migrate @ 8641]
Christian Hammond <chipx86@chipx86.com>
parents:
7963
diff
changeset
|
1146 | const char *item); |
|
10d58eb8a16a
[gaim-migrate @ 8641]
Christian Hammond <chipx86@chipx86.com>
parents:
7963
diff
changeset
|
1147 | |
|
10d58eb8a16a
[gaim-migrate @ 8641]
Christian Hammond <chipx86@chipx86.com>
parents:
7963
diff
changeset
|
1148 | /** |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1149 | * Returns a list of selected items in a list field. |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1150 | * |
|
7963
f982dbac2ccf
[gaim-migrate @ 8640]
Christian Hammond <chipx86@chipx86.com>
parents:
7909
diff
changeset
|
1151 | * To retrieve the data for each item, use |
| 15884 | 1152 | * purple_request_field_list_get_data(). |
|
7963
f982dbac2ccf
[gaim-migrate @ 8640]
Christian Hammond <chipx86@chipx86.com>
parents:
7909
diff
changeset
|
1153 | * |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1154 | * @param field The field. |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1155 | * |
|
18190
bcf28ef7e8ff
Re-fix the DBus list handling code by killing const GList* / const GSList*
Richard Laager <rlaager@pidgin.im>
parents:
16743
diff
changeset
|
1156 | * @constreturn The list of selected items. |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1157 | */ |
|
18190
bcf28ef7e8ff
Re-fix the DBus list handling code by killing const GList* / const GSList*
Richard Laager <rlaager@pidgin.im>
parents:
16743
diff
changeset
|
1158 | GList *purple_request_field_list_get_selected( |
| 15884 | 1159 | const PurpleRequestField *field); |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1160 | |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1161 | /** |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1162 | * Returns a list of items in a list field. |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1163 | * |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1164 | * @param field The field. |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1165 | * |
|
18190
bcf28ef7e8ff
Re-fix the DBus list handling code by killing const GList* / const GSList*
Richard Laager <rlaager@pidgin.im>
parents:
16743
diff
changeset
|
1166 | * @constreturn The list of items. |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1167 | */ |
|
18190
bcf28ef7e8ff
Re-fix the DBus list handling code by killing const GList* / const GSList*
Richard Laager <rlaager@pidgin.im>
parents:
16743
diff
changeset
|
1168 | GList *purple_request_field_list_get_items(const PurpleRequestField *field); |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1169 | |
|
24625
4082cd694acb
This patch comes from the combined work of contributors minstrel, NightFox,
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22593
diff
changeset
|
1170 | /** |
|
4082cd694acb
This patch comes from the combined work of contributors minstrel, NightFox,
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22593
diff
changeset
|
1171 | * 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
|
1172 | * |
|
24899
54719498c900
Deprecate purple_request_field_list_add() in favor of the new
Richard Laager <rlaager@pidgin.im>
parents:
24892
diff
changeset
|
1173 | * 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
|
1174 | * |
|
24625
4082cd694acb
This patch comes from the combined work of contributors minstrel, NightFox,
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22593
diff
changeset
|
1175 | * @param field The field. |
|
4082cd694acb
This patch comes from the combined work of contributors minstrel, NightFox,
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22593
diff
changeset
|
1176 | * |
|
24899
54719498c900
Deprecate purple_request_field_list_add() in favor of the new
Richard Laager <rlaager@pidgin.im>
parents:
24892
diff
changeset
|
1177 | * @constreturn The list of icons or @c NULL (i.e. the empty GList) if no |
|
54719498c900
Deprecate purple_request_field_list_add() in favor of the new
Richard Laager <rlaager@pidgin.im>
parents:
24892
diff
changeset
|
1178 | * 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
|
1179 | */ |
|
4082cd694acb
This patch comes from the combined work of contributors minstrel, NightFox,
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22593
diff
changeset
|
1180 | 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
|
1181 | |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1182 | /*@}*/ |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1183 | |
|
7905
03db29949e5d
[gaim-migrate @ 8565]
Christian Hammond <chipx86@chipx86.com>
parents:
7904
diff
changeset
|
1184 | /**************************************************************************/ |
|
03db29949e5d
[gaim-migrate @ 8565]
Christian Hammond <chipx86@chipx86.com>
parents:
7904
diff
changeset
|
1185 | /** @name Label Field API */ |
|
03db29949e5d
[gaim-migrate @ 8565]
Christian Hammond <chipx86@chipx86.com>
parents:
7904
diff
changeset
|
1186 | /**************************************************************************/ |
|
03db29949e5d
[gaim-migrate @ 8565]
Christian Hammond <chipx86@chipx86.com>
parents:
7904
diff
changeset
|
1187 | /*@{*/ |
|
03db29949e5d
[gaim-migrate @ 8565]
Christian Hammond <chipx86@chipx86.com>
parents:
7904
diff
changeset
|
1188 | |
|
03db29949e5d
[gaim-migrate @ 8565]
Christian Hammond <chipx86@chipx86.com>
parents:
7904
diff
changeset
|
1189 | /** |
|
03db29949e5d
[gaim-migrate @ 8565]
Christian Hammond <chipx86@chipx86.com>
parents:
7904
diff
changeset
|
1190 | * Creates a label field. |
|
03db29949e5d
[gaim-migrate @ 8565]
Christian Hammond <chipx86@chipx86.com>
parents:
7904
diff
changeset
|
1191 | * |
|
03db29949e5d
[gaim-migrate @ 8565]
Christian Hammond <chipx86@chipx86.com>
parents:
7904
diff
changeset
|
1192 | * @param id The field ID. |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1193 | * @param text The label of the field. |
|
7905
03db29949e5d
[gaim-migrate @ 8565]
Christian Hammond <chipx86@chipx86.com>
parents:
7904
diff
changeset
|
1194 | * |
|
03db29949e5d
[gaim-migrate @ 8565]
Christian Hammond <chipx86@chipx86.com>
parents:
7904
diff
changeset
|
1195 | * @return The new field. |
|
03db29949e5d
[gaim-migrate @ 8565]
Christian Hammond <chipx86@chipx86.com>
parents:
7904
diff
changeset
|
1196 | */ |
| 15884 | 1197 | PurpleRequestField *purple_request_field_label_new(const char *id, |
|
7905
03db29949e5d
[gaim-migrate @ 8565]
Christian Hammond <chipx86@chipx86.com>
parents:
7904
diff
changeset
|
1198 | const char *text); |
|
03db29949e5d
[gaim-migrate @ 8565]
Christian Hammond <chipx86@chipx86.com>
parents:
7904
diff
changeset
|
1199 | |
|
03db29949e5d
[gaim-migrate @ 8565]
Christian Hammond <chipx86@chipx86.com>
parents:
7904
diff
changeset
|
1200 | /*@}*/ |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1201 | |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1202 | /**************************************************************************/ |
| 11357 | 1203 | /** @name Image Field API */ |
| 1204 | /**************************************************************************/ | |
| 1205 | /*@{*/ | |
| 1206 | ||
| 1207 | /** | |
| 1208 | * Creates an image field. | |
| 1209 | * | |
| 1210 | * @param id The field ID. | |
| 1211 | * @param text The label of the field. | |
|
11502
84bcb3fe456e
[gaim-migrate @ 13747]
Richard Laager <rlaager@pidgin.im>
parents:
11357
diff
changeset
|
1212 | * @param buf The image data. |
|
84bcb3fe456e
[gaim-migrate @ 13747]
Richard Laager <rlaager@pidgin.im>
parents:
11357
diff
changeset
|
1213 | * @param size The size of the data in @a buffer. |
| 11357 | 1214 | * |
| 1215 | * @return The new field. | |
| 1216 | */ | |
| 15884 | 1217 | PurpleRequestField *purple_request_field_image_new(const char *id, const char *text, |
| 11357 | 1218 | const char *buf, gsize size); |
| 1219 | ||
| 1220 | /** | |
|
12399
535d819a4c74
[gaim-migrate @ 14706]
Richard Laager <rlaager@pidgin.im>
parents:
11502
diff
changeset
|
1221 | * Sets the scale factors of an image field. |
|
535d819a4c74
[gaim-migrate @ 14706]
Richard Laager <rlaager@pidgin.im>
parents:
11502
diff
changeset
|
1222 | * |
|
535d819a4c74
[gaim-migrate @ 14706]
Richard Laager <rlaager@pidgin.im>
parents:
11502
diff
changeset
|
1223 | * @param field The image field. |
|
535d819a4c74
[gaim-migrate @ 14706]
Richard Laager <rlaager@pidgin.im>
parents:
11502
diff
changeset
|
1224 | * @param x The x scale factor. |
|
535d819a4c74
[gaim-migrate @ 14706]
Richard Laager <rlaager@pidgin.im>
parents:
11502
diff
changeset
|
1225 | * @param y The y scale factor. |
|
535d819a4c74
[gaim-migrate @ 14706]
Richard Laager <rlaager@pidgin.im>
parents:
11502
diff
changeset
|
1226 | */ |
| 15884 | 1227 | 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
|
1228 | |
|
535d819a4c74
[gaim-migrate @ 14706]
Richard Laager <rlaager@pidgin.im>
parents:
11502
diff
changeset
|
1229 | /** |
| 11357 | 1230 | * Returns pointer to the image. |
| 1231 | * | |
| 1232 | * @param field The image field. | |
| 1233 | * | |
| 1234 | * @return Pointer to the image. | |
| 1235 | */ | |
| 15884 | 1236 | const char *purple_request_field_image_get_buffer(PurpleRequestField *field); |
| 11357 | 1237 | |
| 1238 | /** | |
| 1239 | * Returns size (in bytes) of the image. | |
| 1240 | * | |
| 1241 | * @param field The image field. | |
| 1242 | * | |
| 1243 | * @return Size of the image. | |
| 1244 | */ | |
| 15884 | 1245 | gsize purple_request_field_image_get_size(PurpleRequestField *field); |
| 11357 | 1246 | |
| 1247 | /** | |
| 1248 | * Returns X scale coefficient of the image. | |
| 1249 | * | |
| 1250 | * @param field The image field. | |
| 1251 | * | |
| 1252 | * @return X scale coefficient of the image. | |
| 1253 | */ | |
| 15884 | 1254 | unsigned int purple_request_field_image_get_scale_x(PurpleRequestField *field); |
| 11357 | 1255 | |
| 1256 | /** | |
| 1257 | * Returns Y scale coefficient of the image. | |
| 1258 | * | |
| 1259 | * @param field The image field. | |
| 1260 | * | |
| 1261 | * @return Y scale coefficient of the image. | |
| 1262 | */ | |
| 15884 | 1263 | unsigned int purple_request_field_image_get_scale_y(PurpleRequestField *field); |
| 11357 | 1264 | |
| 1265 | /*@}*/ | |
| 1266 | ||
| 1267 | /**************************************************************************/ | |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1268 | /** @name Account Field API */ |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1269 | /**************************************************************************/ |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1270 | /*@{*/ |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1271 | |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1272 | /** |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1273 | * Creates an account field. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1274 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1275 | * By default, this field will not show offline accounts. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1276 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1277 | * @param id The field ID. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1278 | * @param text The text label of the field. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1279 | * @param account The optional default account. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1280 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1281 | * @return The new field. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1282 | */ |
| 15884 | 1283 | PurpleRequestField *purple_request_field_account_new(const char *id, |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1284 | const char *text, |
| 15884 | 1285 | PurpleAccount *account); |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1286 | |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1287 | /** |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1288 | * Sets the default account on an account field. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1289 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1290 | * @param field The account field. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1291 | * @param default_value The default account. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1292 | */ |
| 15884 | 1293 | void purple_request_field_account_set_default_value(PurpleRequestField *field, |
| 1294 | PurpleAccount *default_value); | |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1295 | |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1296 | /** |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1297 | * Sets the account in an account field. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1298 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1299 | * @param field The account field. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1300 | * @param value The account. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1301 | */ |
| 15884 | 1302 | void purple_request_field_account_set_value(PurpleRequestField *field, |
| 1303 | PurpleAccount *value); | |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1304 | |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1305 | /** |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1306 | * 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
|
1307 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1308 | * 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
|
1309 | * only online accounts will be shown. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1310 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1311 | * @param field The account field. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1312 | * @param show_all Whether or not to show all accounts. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1313 | */ |
| 15884 | 1314 | void purple_request_field_account_set_show_all(PurpleRequestField *field, |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1315 | gboolean show_all); |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1316 | |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1317 | /** |
|
8289
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1318 | * Sets the account filter function in an account field. |
|
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1319 | * |
|
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1320 | * This function will determine which accounts get displayed and which |
|
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1321 | * don't. |
|
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1322 | * |
|
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1323 | * @param field The account field. |
|
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1324 | * @param filter_func The account filter function. |
|
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1325 | */ |
| 15884 | 1326 | void purple_request_field_account_set_filter(PurpleRequestField *field, |
| 1327 | PurpleFilterAccountFunc filter_func); | |
|
8289
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1328 | |
|
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1329 | /** |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1330 | * Returns the default account in an account field. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1331 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1332 | * @param field The field. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1333 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1334 | * @return The default account. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1335 | */ |
| 15884 | 1336 | PurpleAccount *purple_request_field_account_get_default_value( |
| 1337 | const PurpleRequestField *field); | |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1338 | |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1339 | /** |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1340 | * Returns the user-entered account in an account field. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1341 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1342 | * @param field The field. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1343 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1344 | * @return The user-entered account. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1345 | */ |
| 15884 | 1346 | PurpleAccount *purple_request_field_account_get_value( |
| 1347 | const PurpleRequestField *field); | |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1348 | |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1349 | /** |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1350 | * 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
|
1351 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1352 | * 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
|
1353 | * only online accounts will be shown. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1354 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1355 | * @param field The account field. |
| 9000 | 1356 | * @return Whether or not to show all accounts. |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1357 | */ |
| 15884 | 1358 | gboolean purple_request_field_account_get_show_all( |
| 1359 | const PurpleRequestField *field); | |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1360 | |
|
8289
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1361 | /** |
|
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1362 | * Returns the account filter function in an account field. |
|
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1363 | * |
|
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1364 | * This function will determine which accounts get displayed and which |
|
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1365 | * don't. |
|
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1366 | * |
|
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1367 | * @param field The account field. |
|
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1368 | * |
|
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1369 | * @return The account filter function. |
|
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1370 | */ |
| 15884 | 1371 | PurpleFilterAccountFunc purple_request_field_account_get_filter( |
| 1372 | const PurpleRequestField *field); | |
|
8289
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1373 | |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1374 | /*@}*/ |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1375 | |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1376 | /**************************************************************************/ |
|
32886
359ad954dccc
Add PurpleCertificate request field API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
1377 | /** @name Certificate Field API */ |
|
359ad954dccc
Add PurpleCertificate request field API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
1378 | /**************************************************************************/ |
|
359ad954dccc
Add PurpleCertificate request field API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
1379 | /*@{*/ |
|
359ad954dccc
Add PurpleCertificate request field API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
1380 | |
|
359ad954dccc
Add PurpleCertificate request field API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
1381 | /** |
|
359ad954dccc
Add PurpleCertificate request field API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
1382 | * Creates a certificate field. |
|
359ad954dccc
Add PurpleCertificate request field API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
1383 | * |
|
359ad954dccc
Add PurpleCertificate request field API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
1384 | * @param id The field ID. |
|
359ad954dccc
Add PurpleCertificate request field API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
1385 | * @param text The label of the field. |
|
359ad954dccc
Add PurpleCertificate request field API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
1386 | * @param cert The certificate of the field. |
|
359ad954dccc
Add PurpleCertificate request field API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
1387 | * |
|
359ad954dccc
Add PurpleCertificate request field API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
1388 | * @return The new field. |
|
359ad954dccc
Add PurpleCertificate request field API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
1389 | */ |
|
359ad954dccc
Add PurpleCertificate request field API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
1390 | 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
|
1391 | const char *text, |
|
359ad954dccc
Add PurpleCertificate request field API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
1392 | PurpleCertificate *cert); |
|
359ad954dccc
Add PurpleCertificate request field API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
1393 | |
|
359ad954dccc
Add PurpleCertificate request field API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
1394 | /** |
|
359ad954dccc
Add PurpleCertificate request field API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
1395 | * Returns the certificate in a certificate field. |
|
359ad954dccc
Add PurpleCertificate request field API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
1396 | * |
|
359ad954dccc
Add PurpleCertificate request field API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
1397 | * @param field The field. |
|
359ad954dccc
Add PurpleCertificate request field API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
1398 | * |
|
359ad954dccc
Add PurpleCertificate request field API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
1399 | * @return The certificate. |
|
359ad954dccc
Add PurpleCertificate request field API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
1400 | */ |
|
359ad954dccc
Add PurpleCertificate request field API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
1401 | PurpleCertificate *purple_request_field_certificate_get_value( |
|
359ad954dccc
Add PurpleCertificate request field API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
1402 | const PurpleRequestField *field); |
|
359ad954dccc
Add PurpleCertificate request field API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
1403 | |
|
359ad954dccc
Add PurpleCertificate request field API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
1404 | /*@}*/ |
|
359ad954dccc
Add PurpleCertificate request field API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
1405 | |
|
359ad954dccc
Add PurpleCertificate request field API.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
1406 | /**************************************************************************/ |
|
33237
2574432da068
Validation for Request API: common validators
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33219
diff
changeset
|
1407 | /** @name Validators for request fields. */ |
|
2574432da068
Validation for Request API: common validators
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33219
diff
changeset
|
1408 | /**************************************************************************/ |
|
2574432da068
Validation for Request API: common validators
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33219
diff
changeset
|
1409 | /*@{*/ |
|
2574432da068
Validation for Request API: common validators
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33219
diff
changeset
|
1410 | |
|
2574432da068
Validation for Request API: common validators
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33219
diff
changeset
|
1411 | /** |
|
2574432da068
Validation for Request API: common validators
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33219
diff
changeset
|
1412 | * 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
|
1413 | * |
|
2574432da068
Validation for Request API: common validators
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33219
diff
changeset
|
1414 | * @see purple_request_field_set_validator |
|
2574432da068
Validation for Request API: common validators
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33219
diff
changeset
|
1415 | * |
|
2574432da068
Validation for Request API: common validators
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33219
diff
changeset
|
1416 | * @param field The field. |
|
2574432da068
Validation for Request API: common validators
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33219
diff
changeset
|
1417 | * @param errmsg (Optional) destination for error message. |
|
2574432da068
Validation for Request API: common validators
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33219
diff
changeset
|
1418 | * @param user_data Ignored. |
|
2574432da068
Validation for Request API: common validators
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33219
diff
changeset
|
1419 | * |
|
2574432da068
Validation for Request API: common validators
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33219
diff
changeset
|
1420 | * @return TRUE, if field contains valid email address. |
|
2574432da068
Validation for Request API: common validators
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33219
diff
changeset
|
1421 | */ |
|
2574432da068
Validation for Request API: common validators
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33219
diff
changeset
|
1422 | 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
|
1423 | gchar **errmsg, void *user_data); |
|
2574432da068
Validation for Request API: common validators
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33219
diff
changeset
|
1424 | |
|
2574432da068
Validation for Request API: common validators
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33219
diff
changeset
|
1425 | /** |
|
2574432da068
Validation for Request API: common validators
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33219
diff
changeset
|
1426 | * 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
|
1427 | * |
|
2574432da068
Validation for Request API: common validators
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33219
diff
changeset
|
1428 | * @see purple_request_field_set_validator |
|
2574432da068
Validation for Request API: common validators
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33219
diff
changeset
|
1429 | * |
|
2574432da068
Validation for Request API: common validators
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33219
diff
changeset
|
1430 | * @param field The field. |
|
2574432da068
Validation for Request API: common validators
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33219
diff
changeset
|
1431 | * @param errmsg (Optional) destination for error message. |
|
2574432da068
Validation for Request API: common validators
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33219
diff
changeset
|
1432 | * @param user_data (Optional) allowed character list (NULL-terminated string). |
|
2574432da068
Validation for Request API: common validators
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33219
diff
changeset
|
1433 | * |
|
2574432da068
Validation for Request API: common validators
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33219
diff
changeset
|
1434 | * @return TRUE, if field contains only alphanumeric characters. |
|
2574432da068
Validation for Request API: common validators
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33219
diff
changeset
|
1435 | */ |
|
2574432da068
Validation for Request API: common validators
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33219
diff
changeset
|
1436 | 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
|
1437 | gchar **errmsg, void *allowed_characters); |
|
2574432da068
Validation for Request API: common validators
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33219
diff
changeset
|
1438 | |
|
2574432da068
Validation for Request API: common validators
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33219
diff
changeset
|
1439 | /*@}*/ |
|
2574432da068
Validation for Request API: common validators
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33219
diff
changeset
|
1440 | |
|
2574432da068
Validation for Request API: common validators
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33219
diff
changeset
|
1441 | /**************************************************************************/ |
| 5477 | 1442 | /** @name Request API */ |
| 1443 | /**************************************************************************/ | |
| 1444 | /*@{*/ | |
| 1445 | ||
| 1446 | /** | |
| 1447 | * Prompts the user for text input. | |
| 1448 | * | |
|
11201
f8fed1f48ca3
[gaim-migrate @ 13329]
Mark Doliner <markdoliner@pidgin.im>
parents:
10791
diff
changeset
|
1449 | * @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
|
1450 | * 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
|
1451 | * handle is used to programmatically close the request |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1452 | * dialog when it is no longer needed. For PRPLs this |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1453 | * 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
|
1454 | * 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
|
1455 | * 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
|
1456 | * 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
|
1457 | * 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
|
1458 | * 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
|
1459 | * <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
|
1460 | * 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
|
1461 | * handler functions are triggered. |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1462 | * @param title The title of the message, or @c NULL if it should have |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1463 | * no title. |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1464 | * @param primary The main point of the message, or @c NULL if you're |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1465 | * feeling enigmatic. |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1466 | * @param secondary Secondary information, or @c NULL if there is none. |
| 5477 | 1467 | * @param default_value The 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
|
1468 | * @param multiline @c TRUE if the inputted text can span multiple lines. |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1469 | * @param masked @c TRUE if the inputted text should be masked in some |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1470 | * 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
|
1471 | * might be because the input is some kind of password. |
|
8699
0b894347c40d
[gaim-migrate @ 9452]
Mark Doliner <markdoliner@pidgin.im>
parents:
8697
diff
changeset
|
1472 | * @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
|
1473 | * Use "html", for example, to allow the user to enter |
|
8699
0b894347c40d
[gaim-migrate @ 9452]
Mark Doliner <markdoliner@pidgin.im>
parents:
8697
diff
changeset
|
1474 | * HTML. |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1475 | * @param ok_text The text for the @c OK button, which may not be @c NULL. |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1476 | * @param ok_cb The callback for the @c OK button, which may not be @c |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1477 | * NULL. |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1478 | * @param cancel_text The text for the @c Cancel button, which may not be @c |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1479 | * NULL. |
|
21990
8184e0101bc2
cancel_cb can be NULL here too.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21989
diff
changeset
|
1480 | * @param cancel_cb The callback for the @c Cancel button, which may be |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1481 | * @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
|
1482 | * @param cpar The #PurpleRequestCommonParameters object, which gets |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
1483 | * unref'ed after this call. |
| 5477 | 1484 | * @param user_data The data to pass to the callback. |
| 1485 | * | |
| 1486 | * @return A UI-specific handle. | |
| 1487 | */ | |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1488 | 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
|
1489 | 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
|
1490 | 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
|
1491 | 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
|
1492 | 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
|
1493 | 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
|
1494 | void *user_data); |
| 5477 | 1495 | |
| 1496 | /** | |
| 1497 | * Prompts the user for multiple-choice input. | |
| 1498 | * | |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1499 | * @param handle The plugin or connection handle. For some things this |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1500 | * 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
|
1501 | * purple_request_input(). |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1502 | * @param title The title of the message, or @c NULL if it should have |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1503 | * no title. |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1504 | * @param primary The main point of the message, or @c NULL if you're |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1505 | * feeling enigmatic. |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1506 | * @param secondary Secondary information, or @c NULL if there is none. |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1507 | * @param default_value The default choice; this should be one of the values |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1508 | * listed in the varargs. |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1509 | * @param ok_text The text for the @c OK button, which may not be @c NULL. |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1510 | * @param ok_cb The callback for the @c OK button, which may not be @c |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1511 | * NULL. |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1512 | * @param cancel_text The text for the @c Cancel button, which may not be @c |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1513 | * NULL. |
|
21988
7945c3805412
Sadrul informs me that cancel_cb may in fact be NULL.
Will Thompson <resiak@pidgin.im>
parents:
21980
diff
changeset
|
1514 | * @param cancel_cb The callback for the @c Cancel button, or @c NULL to |
|
7945c3805412
Sadrul informs me that cancel_cb may in fact be NULL.
Will Thompson <resiak@pidgin.im>
parents:
21980
diff
changeset
|
1515 | * do nothing. |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1516 | * @param account The #PurpleAccount associated with this request, or @c |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1517 | * NULL if none is. |
|
21989
7762fdedede8
I'm happy to report that my spelling is coming along in leanps and nbounds.
Will Thompson <resiak@pidgin.im>
parents:
21988
diff
changeset
|
1518 | * @param who The username of the buddy associated with this request, |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1519 | * or @c NULL if none is. |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1520 | * @param conv The #PurpleConversation associated with this request, or |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1521 | * @c NULL if none is. |
| 5477 | 1522 | * @param user_data The data to pass to the callback. |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1523 | * @param ... The choices, which should be pairs of <tt>char *</tt> |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1524 | * descriptions and <tt>int</tt> values, terminated with a |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1525 | * @c NULL parameter. |
| 5477 | 1526 | * |
| 1527 | * @return A UI-specific handle. | |
| 1528 | */ | |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1529 | void *purple_request_choice(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
|
1530 | const char *secondary, int default_value, |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1531 | 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
|
1532 | const char *cancel_text, GCallback cancel_cb, |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1533 | PurpleAccount *account, const char *who, PurpleConversation *conv, |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1534 | void *user_data, ...) G_GNUC_NULL_TERMINATED; |
| 5477 | 1535 | |
| 1536 | /** | |
|
22593
9f88ea5d40d9
Remove duplicated docs for _varg variants of request functions; correct and
Will Thompson <resiak@pidgin.im>
parents:
22263
diff
changeset
|
1537 | * <tt>va_list</tt> version of purple_request_choice(); see its documentation. |
| 5477 | 1538 | */ |
| 15884 | 1539 | void *purple_request_choice_varg(void *handle, const char *title, |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1540 | const char *primary, const char *secondary, int default_value, |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1541 | 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
|
1542 | const char *cancel_text, GCallback cancel_cb, |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1543 | PurpleAccount *account, const char *who, PurpleConversation *conv, |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1544 | void *user_data, va_list choices); |
| 5477 | 1545 | |
| 1546 | /** | |
| 1547 | * Prompts the user for an action. | |
| 1548 | * | |
| 1549 | * This is often represented as a dialog with a button for each action. | |
| 1550 | * | |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1551 | * @param handle The plugin or connection handle. For some things this |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1552 | * 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
|
1553 | * purple_request_input(). |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1554 | * @param title The title of the message, or @c NULL if it should have |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1555 | * no title. |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1556 | * @param primary The main point of the message, or @c NULL if you're |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1557 | * feeling enigmatic. |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1558 | * @param secondary Secondary information, or @c NULL if there is none. |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1559 | * @param default_action The default action, zero-indexed; if the third action |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1560 | * 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
|
1561 | * 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
|
1562 | * to select. |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1563 | * @param account The #PurpleAccount associated with this request, or @c |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1564 | * NULL if none is. |
|
21989
7762fdedede8
I'm happy to report that my spelling is coming along in leanps and nbounds.
Will Thompson <resiak@pidgin.im>
parents:
21988
diff
changeset
|
1565 | * @param who The username of the buddy associated with this request, |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1566 | * or @c NULL if none is. |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1567 | * @param conv The #PurpleConversation associated with this request, or |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1568 | * @c NULL if none is. |
| 5477 | 1569 | * @param user_data The data to pass to the callback. |
|
5496
ed995be89052
[gaim-migrate @ 5892]
Christian Hammond <chipx86@chipx86.com>
parents:
5482
diff
changeset
|
1570 | * @param action_count The number of actions. |
|
15356
a5ad506222a1
[gaim-migrate @ 18085]
Mark Doliner <markdoliner@pidgin.im>
parents:
14254
diff
changeset
|
1571 | * @param ... A list of actions. These are pairs of |
|
a5ad506222a1
[gaim-migrate @ 18085]
Mark Doliner <markdoliner@pidgin.im>
parents:
14254
diff
changeset
|
1572 | * 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
|
1573 | * <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
|
1574 | * 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
|
1575 | * 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
|
1576 | * second of each pair is the #PurpleRequestActionCb |
|
15356
a5ad506222a1
[gaim-migrate @ 18085]
Mark Doliner <markdoliner@pidgin.im>
parents:
14254
diff
changeset
|
1577 | * function to use when the button is clicked. |
| 5477 | 1578 | * |
| 1579 | * @return A UI-specific handle. | |
| 1580 | */ | |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1581 | void *purple_request_action(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
|
1582 | const char *secondary, int default_action, PurpleAccount *account, |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1583 | const char *who, PurpleConversation *conv, void *user_data, |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1584 | size_t action_count, ...); |
| 5477 | 1585 | |
| 1586 | /** | |
|
22593
9f88ea5d40d9
Remove duplicated docs for _varg variants of request functions; correct and
Will Thompson <resiak@pidgin.im>
parents:
22263
diff
changeset
|
1587 | * <tt>va_list</tt> version of purple_request_action(); see its documentation. |
| 5477 | 1588 | */ |
| 15884 | 1589 | void *purple_request_action_varg(void *handle, const char *title, |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1590 | const char *primary, const char *secondary, int default_action, |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1591 | PurpleAccount *account, const char *who, PurpleConversation *conv, |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1592 | void *user_data, size_t action_count, va_list actions); |
| 5477 | 1593 | |
| 1594 | /** | |
|
31293
169eeb43b52c
Remove trailing whitespace
Richard Laager <rlaager@pidgin.im>
parents:
30146
diff
changeset
|
1595 | * Version of purple_request_action() supplying an image for the UI to |
|
32604
8d0a34f26244
Clean the API documentation in preparation for 3.0.0 by removing all the old @since tags.
Andrew Victor <andrew.victor@mxit.com>
parents:
32554
diff
changeset
|
1596 | * optionally display as an icon in the dialog; see its documentation. |
|
27427
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
1597 | */ |
|
31293
169eeb43b52c
Remove trailing whitespace
Richard Laager <rlaager@pidgin.im>
parents:
30146
diff
changeset
|
1598 | void *purple_request_action_with_icon(void *handle, const char *title, |
|
169eeb43b52c
Remove trailing whitespace
Richard Laager <rlaager@pidgin.im>
parents:
30146
diff
changeset
|
1599 | const char *primary, const char *secondary, int default_action, |
|
169eeb43b52c
Remove trailing whitespace
Richard Laager <rlaager@pidgin.im>
parents:
30146
diff
changeset
|
1600 | PurpleAccount *account, const char *who, PurpleConversation *conv, |
|
169eeb43b52c
Remove trailing whitespace
Richard Laager <rlaager@pidgin.im>
parents:
30146
diff
changeset
|
1601 | gconstpointer icon_data, gsize icon_size, void *user_data, |
|
27427
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
1602 | size_t action_count, ...); |
|
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
1603 | |
|
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
1604 | /** |
|
31293
169eeb43b52c
Remove trailing whitespace
Richard Laager <rlaager@pidgin.im>
parents:
30146
diff
changeset
|
1605 | * <tt>va_list</tt> version of purple_request_action_with_icon(); |
|
27427
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
1606 | * see its documentation. |
|
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
1607 | */ |
|
30146
ffa4c7208d1c
It seems like the _varg should be at the end.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
30131
diff
changeset
|
1608 | void *purple_request_action_with_icon_varg(void *handle, const char *title, |
|
27427
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
1609 | const char *primary, const char *secondary, int default_action, |
|
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
1610 | PurpleAccount *account, const char *who, PurpleConversation *conv, |
|
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
1611 | gconstpointer icon_data, gsize icon_size, |
|
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
1612 | void *user_data, size_t action_count, va_list actions); |
|
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
1613 | |
|
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
1614 | |
|
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
1615 | /** |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1616 | * Displays groups of fields for the user to fill in. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1617 | * |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1618 | * @param handle The plugin or connection handle. For some things this |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1619 | * 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
|
1620 | * purple_request_input(). |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1621 | * @param title The title of the message, or @c NULL if it should have |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1622 | * no title. |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1623 | * @param primary The main point of the message, or @c NULL if you're |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1624 | * feeling enigmatic. |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1625 | * @param secondary Secondary information, or @c NULL if there is none. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1626 | * @param fields The list of fields. |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1627 | * @param ok_text The text for the @c OK button, which may not be @c NULL. |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1628 | * @param ok_cb The callback for the @c OK button, which may not be @c |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1629 | * NULL. |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1630 | * @param cancel_text The text for the @c Cancel button, which may not be @c |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1631 | * NULL. |
|
21990
8184e0101bc2
cancel_cb can be NULL here too.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21989
diff
changeset
|
1632 | * @param cancel_cb The callback for the @c Cancel button, which may be |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1633 | * @c NULL. |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1634 | * @param account The #PurpleAccount associated with this request, or @c |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1635 | * NULL if none is |
|
21989
7762fdedede8
I'm happy to report that my spelling is coming along in leanps and nbounds.
Will Thompson <resiak@pidgin.im>
parents:
21988
diff
changeset
|
1636 | * @param who The username of the buddy associated with this request, |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1637 | * or @c NULL if none is |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1638 | * @param conv The #PurpleConversation associated with this request, or |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1639 | * @c NULL if none is |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1640 | * @param user_data The data to pass to the callback. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1641 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1642 | * @return A UI-specific handle. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1643 | */ |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1644 | void *purple_request_fields(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
|
1645 | 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
|
1646 | 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
|
1647 | const char *cancel_text, GCallback cancel_cb, |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1648 | PurpleAccount *account, const char *who, PurpleConversation *conv, |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1649 | void *user_data); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1650 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1651 | /** |
| 5477 | 1652 | * Closes a request. |
| 1653 | * | |
| 1654 | * @param type The request type. | |
| 1655 | * @param uihandle The request UI handle. | |
| 1656 | */ | |
| 15884 | 1657 | void purple_request_close(PurpleRequestType type, void *uihandle); |
| 5477 | 1658 | |
| 1659 | /** | |
| 1660 | * Closes all requests registered with the specified handle. | |
| 1661 | * | |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1662 | * @param handle The handle, as supplied as the @a handle parameter to one of the |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1663 | * <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
|
1664 | * |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1665 | * @see purple_request_input(). |
| 5477 | 1666 | */ |
| 15884 | 1667 | void purple_request_close_with_handle(void *handle); |
| 5477 | 1668 | |
| 1669 | /** | |
| 15884 | 1670 | * A wrapper for purple_request_action() that uses @c Yes and @c No buttons. |
| 5477 | 1671 | */ |
|
20685
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1672 | #define purple_request_yes_no(handle, title, primary, secondary, \ |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1673 | default_action, account, who, conv, \ |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1674 | user_data, yes_cb, no_cb) \ |
| 15884 | 1675 | purple_request_action((handle), (title), (primary), (secondary), \ |
|
20685
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1676 | (default_action), account, who, conv, (user_data), 2, \ |
|
15356
a5ad506222a1
[gaim-migrate @ 18085]
Mark Doliner <markdoliner@pidgin.im>
parents:
14254
diff
changeset
|
1677 | _("_Yes"), (yes_cb), _("_No"), (no_cb)) |
| 5477 | 1678 | |
| 1679 | /** | |
| 15884 | 1680 | * A wrapper for purple_request_action() that uses @c OK and @c Cancel buttons. |
| 5477 | 1681 | */ |
|
20685
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1682 | #define purple_request_ok_cancel(handle, title, primary, secondary, \ |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1683 | default_action, account, who, conv, \ |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1684 | user_data, ok_cb, cancel_cb) \ |
| 15884 | 1685 | purple_request_action((handle), (title), (primary), (secondary), \ |
|
20685
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1686 | (default_action), account, who, conv, (user_data), 2, \ |
|
15356
a5ad506222a1
[gaim-migrate @ 18085]
Mark Doliner <markdoliner@pidgin.im>
parents:
14254
diff
changeset
|
1687 | _("_OK"), (ok_cb), _("_Cancel"), (cancel_cb)) |
|
5498
01eec144d71b
[gaim-migrate @ 5894]
Christian Hammond <chipx86@chipx86.com>
parents:
5496
diff
changeset
|
1688 | |
|
01eec144d71b
[gaim-migrate @ 5894]
Christian Hammond <chipx86@chipx86.com>
parents:
5496
diff
changeset
|
1689 | /** |
| 15884 | 1690 | * 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
|
1691 | */ |
|
20685
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1692 | #define purple_request_accept_cancel(handle, title, primary, secondary, \ |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1693 | default_action, account, who, conv, \ |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1694 | user_data, accept_cb, cancel_cb) \ |
| 15884 | 1695 | purple_request_action((handle), (title), (primary), (secondary), \ |
|
20685
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1696 | (default_action), account, who, conv, (user_data), 2, \ |
|
15356
a5ad506222a1
[gaim-migrate @ 18085]
Mark Doliner <markdoliner@pidgin.im>
parents:
14254
diff
changeset
|
1697 | _("_Accept"), (accept_cb), _("_Cancel"), (cancel_cb)) |
| 5477 | 1698 | |
|
8843
944c71cc01af
[gaim-migrate @ 9610]
Pekka Riikonen <priikone@silcnet.org>
parents:
8735
diff
changeset
|
1699 | /** |
|
31293
169eeb43b52c
Remove trailing whitespace
Richard Laager <rlaager@pidgin.im>
parents:
30146
diff
changeset
|
1700 | * A wrapper for purple_request_action_with_icon() that uses Accept and Cancel |
|
27427
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
1701 | * buttons. |
|
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
1702 | */ |
|
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
1703 | #define purple_request_accept_cancel_with_icon(handle, title, primary, secondary, \ |
|
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
1704 | default_action, account, who, conv, \ |
|
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
1705 | icon_data, icon_size, \ |
|
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
1706 | user_data, accept_cb, cancel_cb) \ |
|
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
1707 | purple_request_action_with_icon((handle), (title), (primary), (secondary), \ |
|
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
1708 | (default_action), account, who, conv, icon_data, icon_size, \ |
|
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
1709 | (user_data), 2, \ |
|
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
1710 | _("_Accept"), (accept_cb), _("_Cancel"), (cancel_cb)) |
|
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
1711 | |
|
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
1712 | /** |
|
13268
5f523813f880
[gaim-migrate @ 15633]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
12716
diff
changeset
|
1713 | * 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
|
1714 | * 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
|
1715 | * |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1716 | * @param handle The plugin or connection handle. For some things this |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1717 | * 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
|
1718 | * purple_request_input(). |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1719 | * @param title The title of the message, or @c NULL if it should have |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1720 | * no title. |
|
13268
5f523813f880
[gaim-migrate @ 15633]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
12716
diff
changeset
|
1721 | * @param filename The default filename (may be @c NULL) |
|
9502
d43f69354213
[gaim-migrate @ 10329]
Mark Doliner <markdoliner@pidgin.im>
parents:
9000
diff
changeset
|
1722 | * @param savedialog True if this dialog is being used to save a file. |
|
d43f69354213
[gaim-migrate @ 10329]
Mark Doliner <markdoliner@pidgin.im>
parents:
9000
diff
changeset
|
1723 | * False if it is being used to open a file. |
|
13268
5f523813f880
[gaim-migrate @ 15633]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
12716
diff
changeset
|
1724 | * @param ok_cb The callback for the @c OK button. |
|
21990
8184e0101bc2
cancel_cb can be NULL here too.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21989
diff
changeset
|
1725 | * @param cancel_cb The callback for the @c Cancel button, which may be @c NULL. |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1726 | * @param account The #PurpleAccount associated with this request, or @c |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1727 | * NULL if none is |
|
21989
7762fdedede8
I'm happy to report that my spelling is coming along in leanps and nbounds.
Will Thompson <resiak@pidgin.im>
parents:
21988
diff
changeset
|
1728 | * @param who The username of the buddy associated with this request, |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1729 | * or @c NULL if none is |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1730 | * @param conv The #PurpleConversation associated with this request, or |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1731 | * @c NULL if none is |
|
8843
944c71cc01af
[gaim-migrate @ 9610]
Pekka Riikonen <priikone@silcnet.org>
parents:
8735
diff
changeset
|
1732 | * @param user_data The data to pass to the callback. |
|
944c71cc01af
[gaim-migrate @ 9610]
Pekka Riikonen <priikone@silcnet.org>
parents:
8735
diff
changeset
|
1733 | * |
|
944c71cc01af
[gaim-migrate @ 9610]
Pekka Riikonen <priikone@silcnet.org>
parents:
8735
diff
changeset
|
1734 | * @return A UI-specific handle. |
|
944c71cc01af
[gaim-migrate @ 9610]
Pekka Riikonen <priikone@silcnet.org>
parents:
8735
diff
changeset
|
1735 | */ |
| 15884 | 1736 | void *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
|
1737 | gboolean savedialog, GCallback ok_cb, GCallback cancel_cb, |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1738 | PurpleAccount *account, const char *who, PurpleConversation *conv, |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1739 | void *user_data); |
|
8843
944c71cc01af
[gaim-migrate @ 9610]
Pekka Riikonen <priikone@silcnet.org>
parents:
8735
diff
changeset
|
1740 | |
|
13283
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
1741 | /** |
|
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
1742 | * Displays a folder select dialog. Returns the selected filename to |
|
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
1743 | * the callback. |
|
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
1744 | * |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1745 | * @param handle The plugin or connection handle. For some things this |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1746 | * 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
|
1747 | * purple_request_input(). |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1748 | * @param title The title of the message, or @c NULL if it should have |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1749 | * no title. |
|
13283
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
1750 | * @param dirname The default directory name (may be @c NULL) |
|
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
1751 | * @param ok_cb The callback for the @c OK button. |
|
21990
8184e0101bc2
cancel_cb can be NULL here too.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21989
diff
changeset
|
1752 | * @param cancel_cb The callback for the @c Cancel button, which may be @c NULL. |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1753 | * @param account The #PurpleAccount associated with this request, or @c |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1754 | * NULL if none is |
|
21989
7762fdedede8
I'm happy to report that my spelling is coming along in leanps and nbounds.
Will Thompson <resiak@pidgin.im>
parents:
21988
diff
changeset
|
1755 | * @param who The username of the buddy associated with this request, |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1756 | * or @c NULL if none 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 | * @param conv The #PurpleConversation associated with this request, or |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1758 | * @c NULL if none is |
|
13283
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
1759 | * @param user_data The data to pass to the callback. |
|
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
1760 | * |
|
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
1761 | * @return A UI-specific handle. |
|
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
1762 | */ |
| 15884 | 1763 | void *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
|
1764 | GCallback ok_cb, GCallback cancel_cb, |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1765 | PurpleAccount *account, const char *who, PurpleConversation *conv, |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1766 | void *user_data); |
|
13283
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
1767 | |
|
32888
3dc779e621c5
Add a function for prompting about a certificate. This is basically
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32886
diff
changeset
|
1768 | /** |
|
3dc779e621c5
Add a function for prompting about a certificate. This is basically
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32886
diff
changeset
|
1769 | * 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
|
1770 | * |
|
3dc779e621c5
Add a function for prompting about a certificate. This is basically
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32886
diff
changeset
|
1771 | * 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
|
1772 | * |
|
3dc779e621c5
Add a function for prompting about a certificate. This is basically
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32886
diff
changeset
|
1773 | * @param handle The plugin or connection handle. For some things this |
|
3dc779e621c5
Add a function for prompting about a certificate. This is basically
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32886
diff
changeset
|
1774 | * 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
|
1775 | * purple_request_input(). |
|
3dc779e621c5
Add a function for prompting about a certificate. This is basically
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32886
diff
changeset
|
1776 | * @param title The title of the message, or @c NULL if it should have |
|
3dc779e621c5
Add a function for prompting about a certificate. This is basically
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32886
diff
changeset
|
1777 | * no title. |
|
3dc779e621c5
Add a function for prompting about a certificate. This is basically
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32886
diff
changeset
|
1778 | * @param primary The main point of the message, or @c NULL if you're |
|
3dc779e621c5
Add a function for prompting about a certificate. This is basically
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32886
diff
changeset
|
1779 | * feeling enigmatic. |
|
3dc779e621c5
Add a function for prompting about a certificate. This is basically
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32886
diff
changeset
|
1780 | * @param secondary Secondary information, or @c NULL if there is none. |
|
3dc779e621c5
Add a function for prompting about a certificate. This is basically
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32886
diff
changeset
|
1781 | * @param cert The #PurpleCertificate associated with this request. |
|
3dc779e621c5
Add a function for prompting about a certificate. This is basically
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32886
diff
changeset
|
1782 | * @param ok_text The text for the @c OK button, which may not be @c NULL. |
|
3dc779e621c5
Add a function for prompting about a certificate. This is basically
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32886
diff
changeset
|
1783 | * @param ok_cb The callback for the @c OK button, which may not be |
|
3dc779e621c5
Add a function for prompting about a certificate. This is basically
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32886
diff
changeset
|
1784 | * @c NULL. |
|
3dc779e621c5
Add a function for prompting about a certificate. This is basically
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32886
diff
changeset
|
1785 | * @param cancel_text The text for the @c Cancel button, which may not be |
|
3dc779e621c5
Add a function for prompting about a certificate. This is basically
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32886
diff
changeset
|
1786 | * @c NULL. |
|
3dc779e621c5
Add a function for prompting about a certificate. This is basically
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32886
diff
changeset
|
1787 | * @param cancel_cb The callback for the @c Cancel button, which may be |
|
3dc779e621c5
Add a function for prompting about a certificate. This is basically
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32886
diff
changeset
|
1788 | * @c NULL. |
|
3dc779e621c5
Add a function for prompting about a certificate. This is basically
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32886
diff
changeset
|
1789 | * @param user_data The data to pass to the callback. |
|
3dc779e621c5
Add a function for prompting about a certificate. This is basically
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32886
diff
changeset
|
1790 | * |
|
3dc779e621c5
Add a function for prompting about a certificate. This is basically
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32886
diff
changeset
|
1791 | * @return A UI-specific handle. |
|
3dc779e621c5
Add a function for prompting about a certificate. This is basically
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32886
diff
changeset
|
1792 | */ |
|
3dc779e621c5
Add a function for prompting about a certificate. This is basically
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32886
diff
changeset
|
1793 | 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
|
1794 | 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
|
1795 | 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
|
1796 | 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
|
1797 | 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
|
1798 | |
|
9502
d43f69354213
[gaim-migrate @ 10329]
Mark Doliner <markdoliner@pidgin.im>
parents:
9000
diff
changeset
|
1799 | /*@}*/ |
|
8843
944c71cc01af
[gaim-migrate @ 9610]
Pekka Riikonen <priikone@silcnet.org>
parents:
8735
diff
changeset
|
1800 | |
| 5477 | 1801 | /**************************************************************************/ |
| 10566 | 1802 | /** @name UI Registration Functions */ |
| 5477 | 1803 | /**************************************************************************/ |
| 1804 | /*@{*/ | |
| 1805 | ||
| 1806 | /** | |
| 1807 | * Sets the UI operations structure to be used when displaying a | |
| 1808 | * request. | |
| 1809 | * | |
| 1810 | * @param ops The UI operations structure. | |
| 1811 | */ | |
| 15884 | 1812 | void purple_request_set_ui_ops(PurpleRequestUiOps *ops); |
| 5477 | 1813 | |
| 1814 | /** | |
| 1815 | * Returns the UI operations structure to be used when displaying a | |
| 1816 | * request. | |
| 1817 | * | |
|
6720
cdc5348dd848
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6035
diff
changeset
|
1818 | * @return The UI operations structure. |
| 5477 | 1819 | */ |
| 15884 | 1820 | PurpleRequestUiOps *purple_request_get_ui_ops(void); |
| 5477 | 1821 | |
| 1822 | /*@}*/ | |
| 1823 | ||
|
32787
7072f190d6ad
Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32604
diff
changeset
|
1824 | G_END_DECLS |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5809
diff
changeset
|
1825 | |
| 15884 | 1826 | #endif /* _PURPLE_REQUEST_H_ */ |