Sun, 25 Apr 2010 20:58:00 +0000
Whitespace trim.
| 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 | ||
|
24984
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
33 | /** @copydoc _PurpleRequestField */ |
|
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
34 | 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
|
35 | |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
36 | #include "account.h" |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
37 | |
| 15884 | 38 | #define PURPLE_DEFAULT_ACTION_NONE -1 |
|
9948
2642975ffb85
[gaim-migrate @ 10844]
Dave West <kat@users.sourceforge.net>
parents:
9502
diff
changeset
|
39 | |
| 5477 | 40 | /** |
| 41 | * Request types. | |
| 42 | */ | |
| 43 | typedef enum | |
| 44 | { | |
| 15884 | 45 | PURPLE_REQUEST_INPUT = 0, /**< Text input request. */ |
| 46 | PURPLE_REQUEST_CHOICE, /**< Multiple-choice request. */ | |
| 47 | PURPLE_REQUEST_ACTION, /**< Action request. */ | |
| 48 | PURPLE_REQUEST_FIELDS, /**< Multiple fields request. */ | |
| 49 | PURPLE_REQUEST_FILE, /**< File open or save request. */ | |
| 50 | PURPLE_REQUEST_FOLDER /**< Folder selection request. */ | |
| 5477 | 51 | |
| 15884 | 52 | } PurpleRequestType; |
| 5477 | 53 | |
| 54 | /** | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
55 | * A type of field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
56 | */ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
57 | typedef enum |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
58 | { |
| 15884 | 59 | PURPLE_REQUEST_FIELD_NONE, |
| 60 | PURPLE_REQUEST_FIELD_STRING, | |
| 61 | PURPLE_REQUEST_FIELD_INTEGER, | |
| 62 | PURPLE_REQUEST_FIELD_BOOLEAN, | |
| 63 | PURPLE_REQUEST_FIELD_CHOICE, | |
| 64 | PURPLE_REQUEST_FIELD_LIST, | |
| 65 | PURPLE_REQUEST_FIELD_LABEL, | |
| 66 | PURPLE_REQUEST_FIELD_IMAGE, | |
|
20828
27e2c4d9fd4b
disapproval of revision '1c90c7de868806272bde7e95f1792ee28bb531c2'
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20827
diff
changeset
|
67 | PURPLE_REQUEST_FIELD_ACCOUNT |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
68 | |
| 15884 | 69 | } PurpleRequestFieldType; |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
70 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
71 | /** |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
72 | * Multiple fields request data. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
73 | */ |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
74 | typedef struct |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
75 | { |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
76 | GList *groups; |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
77 | |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
78 | GHashTable *fields; |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
79 | |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
80 | GList *required_fields; |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
81 | |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
82 | void *ui_data; |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
83 | |
| 15884 | 84 | } PurpleRequestFields; |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
85 | |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
86 | /** |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
87 | * A group of fields with a title. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
88 | */ |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
89 | typedef struct |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
90 | { |
| 15884 | 91 | PurpleRequestFields *fields_list; |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
92 | |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
93 | char *title; |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
94 | |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
95 | GList *fields; |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
96 | |
| 15884 | 97 | } PurpleRequestFieldGroup; |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
98 | |
|
24984
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
99 | #if !(defined PURPLE_DISABLE_DEPRECATED) || (defined _PURPLE_REQUEST_C_) |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
100 | /** |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
101 | * A request field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
102 | */ |
|
24984
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
103 | struct _PurpleRequestField |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
104 | { |
| 15884 | 105 | PurpleRequestFieldType type; |
| 106 | PurpleRequestFieldGroup *group; | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
107 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
108 | char *id; |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
109 | char *label; |
|
8285
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
110 | char *type_hint; |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
111 | |
|
7904
266d6d5c68ac
[gaim-migrate @ 8564]
Christian Hammond <chipx86@chipx86.com>
parents:
7902
diff
changeset
|
112 | gboolean visible; |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
113 | gboolean required; |
|
7904
266d6d5c68ac
[gaim-migrate @ 8564]
Christian Hammond <chipx86@chipx86.com>
parents:
7902
diff
changeset
|
114 | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
115 | union |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
116 | { |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
117 | struct |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
118 | { |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
119 | gboolean multiline; |
|
7047
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
120 | gboolean masked; |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
121 | gboolean editable; |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
122 | char *default_value; |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
123 | char *value; |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
124 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
125 | } string; |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
126 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
127 | struct |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
128 | { |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
129 | int default_value; |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
130 | int value; |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
131 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
132 | } integer; |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
133 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
134 | struct |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
135 | { |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
136 | gboolean default_value; |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
137 | gboolean value; |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
138 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
139 | } boolean; |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
140 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
141 | struct |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
142 | { |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
143 | int default_value; |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
144 | int value; |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
145 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
146 | GList *labels; |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
147 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
148 | } choice; |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
149 | |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
150 | struct |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
151 | { |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
152 | GList *items; |
|
24899
54719498c900
Deprecate purple_request_field_list_add() in favor of the new
Richard Laager <rlaager@pidgin.im>
parents:
24892
diff
changeset
|
153 | GList *icons; |
|
7909
f2b88b6b97a7
[gaim-migrate @ 8569]
Christian Hammond <chipx86@chipx86.com>
parents:
7905
diff
changeset
|
154 | GHashTable *item_data; |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
155 | GList *selected; |
|
7964
10d58eb8a16a
[gaim-migrate @ 8641]
Christian Hammond <chipx86@chipx86.com>
parents:
7963
diff
changeset
|
156 | GHashTable *selected_table; |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
157 | |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
158 | gboolean multiple_selection; |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
159 | |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
160 | } list; |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
161 | |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
162 | struct |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
163 | { |
| 15884 | 164 | PurpleAccount *default_account; |
| 165 | PurpleAccount *account; | |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
166 | gboolean show_all; |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
167 | |
| 15884 | 168 | PurpleFilterAccountFunc filter_func; |
|
8289
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
169 | |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
170 | } account; |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
171 | |
| 11357 | 172 | struct |
| 173 | { | |
| 174 | unsigned int scale_x; | |
| 175 | unsigned int scale_y; | |
| 176 | const char *buffer; | |
| 177 | gsize size; | |
| 178 | } image; | |
| 179 | ||
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
180 | } u; |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
181 | |
|
5809
3550646492e0
[gaim-migrate @ 6239]
Christian Hammond <chipx86@chipx86.com>
parents:
5808
diff
changeset
|
182 | void *ui_data; |
|
3550646492e0
[gaim-migrate @ 6239]
Christian Hammond <chipx86@chipx86.com>
parents:
5808
diff
changeset
|
183 | |
|
24984
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
184 | }; |
|
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
185 | #endif |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
186 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
187 | /** |
| 5477 | 188 | * Request UI operations. |
| 189 | */ | |
| 190 | typedef struct | |
| 191 | { | |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
192 | /** @see purple_request_input(). */ |
| 5477 | 193 | 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
|
194 | 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
|
195 | 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
|
196 | 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
|
197 | 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
|
198 | 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
|
199 | 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
|
200 | |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
201 | /** @see purple_request_choice_varg(). */ |
| 5477 | 202 | 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
|
203 | 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
|
204 | 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
|
205 | 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
|
206 | 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
|
207 | 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
|
208 | 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
|
209 | |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
210 | /** @see purple_request_action_varg(). */ |
| 5477 | 211 | 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
|
212 | 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
|
213 | 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
|
214 | 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
|
215 | 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
|
216 | |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
217 | /** @see purple_request_fields(). */ |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
218 | 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
|
219 | 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
|
220 | 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
|
221 | 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
|
222 | 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
|
223 | 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
|
224 | |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
225 | /** @see purple_request_file(). */ |
|
8843
944c71cc01af
[gaim-migrate @ 9610]
Pekka Riikonen <priikone@silcnet.org>
parents:
8735
diff
changeset
|
226 | 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
|
227 | 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
|
228 | 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
|
229 | 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
|
230 | 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
|
231 | |
| 15884 | 232 | 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
|
233 | |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
234 | /** @see purple_request_folder(). */ |
|
13283
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
235 | 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
|
236 | 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
|
237 | 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
|
238 | 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
|
239 | |
|
27427
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
240 | /** @see purple_request_action_varg_with_icon(). */ |
|
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
241 | 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
|
242 | const char *secondary, int default_action, |
|
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
243 | PurpleAccount *account, const char *who, |
|
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
244 | PurpleConversation *conv, |
|
30125
e28699c46311
Whitespace trim.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29775
diff
changeset
|
245 | gconstpointer icon_data, gsize icon_size, |
|
e28699c46311
Whitespace trim.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29775
diff
changeset
|
246 | void *user_data, |
|
27427
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
247 | size_t action_count, va_list actions); |
|
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
248 | |
|
16743
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
16613
diff
changeset
|
249 | 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
|
250 | 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
|
251 | void (*_purple_reserved3)(void); |
| 15884 | 252 | } PurpleRequestUiOps; |
| 5477 | 253 | |
| 15884 | 254 | 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
|
255 | |
|
9f88ea5d40d9
Remove duplicated docs for _varg variants of request functions; correct and
Will Thompson <resiak@pidgin.im>
parents:
22263
diff
changeset
|
256 | /** 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
|
257 | * 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
|
258 | * 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
|
259 | */ |
| 15884 | 260 | typedef void (*PurpleRequestActionCb)(void *, int); |
| 261 | typedef void (*PurpleRequestChoiceCb)(void *, int); | |
| 262 | typedef void (*PurpleRequestFieldsCb)(void *, PurpleRequestFields *fields); | |
| 263 | typedef void (*PurpleRequestFileCb)(void *, const char *filename); | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
264 | |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5809
diff
changeset
|
265 | #ifdef __cplusplus |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5809
diff
changeset
|
266 | extern "C" { |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5809
diff
changeset
|
267 | #endif |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5809
diff
changeset
|
268 | |
|
5807
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 | /** @name Field List API */ |
|
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 | /*@{*/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
273 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
274 | /** |
| 15884 | 275 | * 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
|
276 | * |
| 15884 | 277 | * @return A PurpleRequestFields structure. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
278 | */ |
| 15884 | 279 | PurpleRequestFields *purple_request_fields_new(void); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
280 | |
|
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 | * Destroys a list of fields. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
283 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
284 | * @param fields The list of fields to destroy. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
285 | */ |
| 15884 | 286 | void purple_request_fields_destroy(PurpleRequestFields *fields); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
287 | |
|
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 | * Adds a group of fields to the list. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
290 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
291 | * @param fields The fields list. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
292 | * @param group The group to add. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
293 | */ |
| 15884 | 294 | void purple_request_fields_add_group(PurpleRequestFields *fields, |
| 295 | PurpleRequestFieldGroup *group); | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
296 | |
|
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 | * Returns a list of all groups in a field list. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
299 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
300 | * @param fields The fields list. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
301 | * |
|
20971
b5e1eb080f33
Replace a bunch of @return markers with @constreturn markers. I believe these
Etan Reisner <deryni@pidgin.im>
parents:
20147
diff
changeset
|
302 | * @constreturn A list of groups. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
303 | */ |
| 15884 | 304 | GList *purple_request_fields_get_groups(const PurpleRequestFields *fields); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
305 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
306 | /** |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
307 | * Returns whether or not the field with the specified ID exists. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
308 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
309 | * @param fields The fields list. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
310 | * @param id The ID of the field. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
311 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
312 | * @return TRUE if the field exists, or FALSE. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
313 | */ |
| 15884 | 314 | gboolean purple_request_fields_exists(const PurpleRequestFields *fields, |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
315 | const char *id); |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
316 | |
|
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 | * Returns a list of all required fields. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
319 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
320 | * @param fields The fields list. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
321 | * |
|
18190
bcf28ef7e8ff
Re-fix the DBus list handling code by killing const GList* / const GSList*
Richard Laager <rlaager@pidgin.im>
parents:
16743
diff
changeset
|
322 | * @constreturn The list of required fields. |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
323 | */ |
|
18190
bcf28ef7e8ff
Re-fix the DBus list handling code by killing const GList* / const GSList*
Richard Laager <rlaager@pidgin.im>
parents:
16743
diff
changeset
|
324 | GList *purple_request_fields_get_required(const PurpleRequestFields *fields); |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
325 | |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
326 | /** |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
327 | * 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
|
328 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
329 | * @param fields The fields list. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
330 | * @param id The field ID. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
331 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
332 | * @return TRUE if the specified field is required, or FALSE. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
333 | */ |
| 15884 | 334 | gboolean purple_request_fields_is_field_required(const PurpleRequestFields *fields, |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
335 | const char *id); |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
336 | |
|
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 | * Returns whether or not all required fields have values. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
339 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
340 | * @param fields The fields list. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
341 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
342 | * @return TRUE if all required fields have values, or FALSE. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
343 | */ |
| 15884 | 344 | gboolean purple_request_fields_all_required_filled( |
| 345 | const PurpleRequestFields *fields); | |
|
8286
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 | /** |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
348 | * Return the field with the specified ID. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
349 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
350 | * @param fields The fields list. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
351 | * @param id The ID of the field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
352 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
353 | * @return The field, if found. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
354 | */ |
| 15884 | 355 | PurpleRequestField *purple_request_fields_get_field( |
| 356 | const PurpleRequestFields *fields, const char *id); | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
357 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
358 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
359 | * Returns the string value of a field with the specified ID. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
360 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
361 | * @param fields The fields list. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
362 | * @param id The ID of the field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
363 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
364 | * @return The string value, if found, or @c NULL otherwise. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
365 | */ |
| 15884 | 366 | const char *purple_request_fields_get_string(const PurpleRequestFields *fields, |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
367 | const char *id); |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
368 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
369 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
370 | * Returns the integer value of a field with the specified ID. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
371 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
372 | * @param fields The fields list. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
373 | * @param id The ID of the field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
374 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
375 | * @return The integer value, if found, or 0 otherwise. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
376 | */ |
| 15884 | 377 | int purple_request_fields_get_integer(const PurpleRequestFields *fields, |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
378 | const char *id); |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
379 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
380 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
381 | * Returns the boolean value of a field with the specified ID. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
382 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
383 | * @param fields The fields list. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
384 | * @param id The ID of the field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
385 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
386 | * @return The boolean value, if found, or @c FALSE otherwise. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
387 | */ |
| 15884 | 388 | gboolean purple_request_fields_get_bool(const PurpleRequestFields *fields, |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
389 | const char *id); |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
390 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
391 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
392 | * Returns the choice index of a field with the specified ID. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
393 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
394 | * @param fields The fields list. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
395 | * @param id The ID of the field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
396 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
397 | * @return The choice index, if found, or -1 otherwise. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
398 | */ |
| 15884 | 399 | int purple_request_fields_get_choice(const PurpleRequestFields *fields, |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
400 | const char *id); |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
401 | |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
402 | /** |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
403 | * Returns the account of a field with the specified ID. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
404 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
405 | * @param fields The fields list. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
406 | * @param id The ID of the field. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
407 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
408 | * @return The account value, if found, or NULL otherwise. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
409 | */ |
| 15884 | 410 | PurpleAccount *purple_request_fields_get_account(const PurpleRequestFields *fields, |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
411 | const char *id); |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
412 | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
413 | /*@}*/ |
|
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 | /**************************************************************************/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
416 | /** @name Fields Group API */ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
417 | /**************************************************************************/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
418 | /*@{*/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
419 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
420 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
421 | * Creates a fields group with an optional title. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
422 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
423 | * @param title The optional title to give the group. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
424 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
425 | * @return A new fields group |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
426 | */ |
| 15884 | 427 | PurpleRequestFieldGroup *purple_request_field_group_new(const char *title); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
428 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
429 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
430 | * Destroys a fields group. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
431 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
432 | * @param group The group to destroy. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
433 | */ |
| 15884 | 434 | void purple_request_field_group_destroy(PurpleRequestFieldGroup *group); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
435 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
436 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
437 | * Adds a field to the group. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
438 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
439 | * @param group The group to add the field to. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
440 | * @param field The field to add to the group. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
441 | */ |
| 15884 | 442 | void purple_request_field_group_add_field(PurpleRequestFieldGroup *group, |
| 443 | PurpleRequestField *field); | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
444 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
445 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
446 | * Returns the title of a fields group. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
447 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
448 | * @param group The group. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
449 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
450 | * @return The title, if set. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
451 | */ |
| 15884 | 452 | const char *purple_request_field_group_get_title( |
| 453 | const PurpleRequestFieldGroup *group); | |
|
5807
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 | * Returns a list of all fields in a group. |
|
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 | * @param group The group. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
459 | * |
|
20971
b5e1eb080f33
Replace a bunch of @return markers with @constreturn markers. I believe these
Etan Reisner <deryni@pidgin.im>
parents:
20147
diff
changeset
|
460 | * @constreturn The list of fields in the group. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
461 | */ |
| 15884 | 462 | GList *purple_request_field_group_get_fields( |
| 463 | const PurpleRequestFieldGroup *group); | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
464 | |
|
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 | /**************************************************************************/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
468 | /** @name Field API */ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
469 | /**************************************************************************/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
470 | /*@{*/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
471 | |
|
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 | * Creates a field of the specified type. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
474 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
475 | * @param id The field ID. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
476 | * @param text The text label of the field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
477 | * @param type The type of field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
478 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
479 | * @return The new field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
480 | */ |
| 15884 | 481 | PurpleRequestField *purple_request_field_new(const char *id, const char *text, |
| 482 | PurpleRequestFieldType type); | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
483 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
484 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
485 | * Destroys a field. |
|
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 | * @param field The field to destroy. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
488 | */ |
| 15884 | 489 | void purple_request_field_destroy(PurpleRequestField *field); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
490 | |
|
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 | * Sets the label text of a field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
493 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
494 | * @param field The field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
495 | * @param label The text label. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
496 | */ |
| 15884 | 497 | 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
|
498 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
499 | /** |
|
7904
266d6d5c68ac
[gaim-migrate @ 8564]
Christian Hammond <chipx86@chipx86.com>
parents:
7902
diff
changeset
|
500 | * Sets whether or not a field is visible. |
|
266d6d5c68ac
[gaim-migrate @ 8564]
Christian Hammond <chipx86@chipx86.com>
parents:
7902
diff
changeset
|
501 | * |
|
8285
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
502 | * @param field The field. |
|
7904
266d6d5c68ac
[gaim-migrate @ 8564]
Christian Hammond <chipx86@chipx86.com>
parents:
7902
diff
changeset
|
503 | * @param visible TRUE if visible, or FALSE if not. |
|
266d6d5c68ac
[gaim-migrate @ 8564]
Christian Hammond <chipx86@chipx86.com>
parents:
7902
diff
changeset
|
504 | */ |
| 15884 | 505 | void purple_request_field_set_visible(PurpleRequestField *field, gboolean visible); |
|
7904
266d6d5c68ac
[gaim-migrate @ 8564]
Christian Hammond <chipx86@chipx86.com>
parents:
7902
diff
changeset
|
506 | |
|
266d6d5c68ac
[gaim-migrate @ 8564]
Christian Hammond <chipx86@chipx86.com>
parents:
7902
diff
changeset
|
507 | /** |
|
8285
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
508 | * Sets the type hint for the field. |
|
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
509 | * |
|
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
510 | * 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
|
511 | * auto-completion for type hints like "account" and "screenname". |
|
8285
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
512 | * |
|
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
513 | * @param field The field. |
|
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
514 | * @param type_hint The type hint. |
|
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
515 | */ |
| 15884 | 516 | void purple_request_field_set_type_hint(PurpleRequestField *field, |
|
8285
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
517 | const char *type_hint); |
|
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
518 | |
|
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
519 | /** |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
520 | * Sets whether or not a field is required. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
521 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
522 | * @param field The field. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
523 | * @param required TRUE if required, or FALSE. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
524 | */ |
| 15884 | 525 | void purple_request_field_set_required(PurpleRequestField *field, |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
526 | gboolean required); |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
527 | |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
528 | /** |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
529 | * Returns the type of a field. |
|
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 | * @param field The field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
532 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
533 | * @return The field's type. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
534 | */ |
| 15884 | 535 | PurpleRequestFieldType purple_request_field_get_type(const PurpleRequestField *field); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
536 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
537 | /** |
|
24984
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
538 | * 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
|
539 | * |
|
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
540 | * @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
|
541 | * |
|
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
542 | * @return The UI data. |
|
25885
5b5e2ca316b2
Add @since 2.6.0 doxygen comments to some of our new functions, and
Mark Doliner <markdoliner@pidgin.im>
parents:
24984
diff
changeset
|
543 | * |
|
24984
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
544 | * @since 2.6.0 |
|
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
545 | */ |
|
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
546 | 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
|
547 | |
|
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
548 | /** |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
549 | * Returns the ID of a field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
550 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
551 | * @param field The field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
552 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
553 | * @return The ID |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
554 | */ |
| 15884 | 555 | const char *purple_request_field_get_id(const PurpleRequestField *field); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
556 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
557 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
558 | * Returns the label text of a field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
559 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
560 | * @param field The field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
561 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
562 | * @return The label text. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
563 | */ |
| 15884 | 564 | const char *purple_request_field_get_label(const PurpleRequestField *field); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
565 | |
|
7904
266d6d5c68ac
[gaim-migrate @ 8564]
Christian Hammond <chipx86@chipx86.com>
parents:
7902
diff
changeset
|
566 | /** |
|
266d6d5c68ac
[gaim-migrate @ 8564]
Christian Hammond <chipx86@chipx86.com>
parents:
7902
diff
changeset
|
567 | * Returns whether or not a field is visible. |
|
266d6d5c68ac
[gaim-migrate @ 8564]
Christian Hammond <chipx86@chipx86.com>
parents:
7902
diff
changeset
|
568 | * |
|
266d6d5c68ac
[gaim-migrate @ 8564]
Christian Hammond <chipx86@chipx86.com>
parents:
7902
diff
changeset
|
569 | * @param field The field. |
|
266d6d5c68ac
[gaim-migrate @ 8564]
Christian Hammond <chipx86@chipx86.com>
parents:
7902
diff
changeset
|
570 | * |
|
266d6d5c68ac
[gaim-migrate @ 8564]
Christian Hammond <chipx86@chipx86.com>
parents:
7902
diff
changeset
|
571 | * @return TRUE if the field is visible. FALSE otherwise. |
|
266d6d5c68ac
[gaim-migrate @ 8564]
Christian Hammond <chipx86@chipx86.com>
parents:
7902
diff
changeset
|
572 | */ |
| 15884 | 573 | gboolean purple_request_field_is_visible(const PurpleRequestField *field); |
|
7904
266d6d5c68ac
[gaim-migrate @ 8564]
Christian Hammond <chipx86@chipx86.com>
parents:
7902
diff
changeset
|
574 | |
|
8285
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
575 | /** |
|
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
576 | * Returns the field's type hint. |
|
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
577 | * |
|
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
578 | * @param field The field. |
|
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
579 | * |
|
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
580 | * @return The field's type hint. |
|
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
581 | */ |
| 15884 | 582 | 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
|
583 | |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
584 | /** |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
585 | * Returns whether or not a field is 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 | * @param field The field. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
588 | * |
|
8735
01248ea222d3
[gaim-migrate @ 9490]
Jonathan Champ <royanee@users.sourceforge.net>
parents:
8699
diff
changeset
|
589 | * @return TRUE if the field is required, or FALSE. |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
590 | */ |
| 15884 | 591 | gboolean purple_request_field_is_required(const PurpleRequestField *field); |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
592 | |
|
24984
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
593 | /** |
|
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
594 | * 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
|
595 | * |
|
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
596 | * @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
|
597 | * |
|
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
598 | * @return The UI data. |
|
25885
5b5e2ca316b2
Add @since 2.6.0 doxygen comments to some of our new functions, and
Mark Doliner <markdoliner@pidgin.im>
parents:
24984
diff
changeset
|
599 | * |
|
24984
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
600 | * @since 2.6.0 |
|
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
601 | */ |
|
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
602 | 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
|
603 | |
|
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 | * 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
|
606 | * |
|
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
607 | * @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
|
608 | * @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
|
609 | * |
|
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
610 | * @return The UI data. |
|
25885
5b5e2ca316b2
Add @since 2.6.0 doxygen comments to some of our new functions, and
Mark Doliner <markdoliner@pidgin.im>
parents:
24984
diff
changeset
|
611 | * |
|
24984
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
612 | * @since 2.6.0 |
|
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
613 | */ |
|
64b88867fbdf
Hide the PurpleRequestField struct. I figured this one would be easy and
Richard Laager <rlaager@pidgin.im>
parents:
22593
diff
changeset
|
614 | 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
|
615 | 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
|
616 | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
617 | /*@}*/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
618 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
619 | /**************************************************************************/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
620 | /** @name String Field API */ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
621 | /**************************************************************************/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
622 | /*@{*/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
623 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
624 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
625 | * Creates a string request field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
626 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
627 | * @param id The field ID. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
628 | * @param text The text label of the field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
629 | * @param default_value The optional default value. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
630 | * @param multiline Whether or not this should be a multiline string. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
631 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
632 | * @return The new field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
633 | */ |
| 15884 | 634 | PurpleRequestField *purple_request_field_string_new(const char *id, |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
635 | const char *text, |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
636 | const char *default_value, |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
637 | gboolean multiline); |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
638 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
639 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
640 | * Sets the default value in a string field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
641 | * |
|
5808
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
642 | * @param field The field. |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
643 | * @param default_value The default value. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
644 | */ |
| 15884 | 645 | void purple_request_field_string_set_default_value(PurpleRequestField *field, |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
646 | const char *default_value); |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
647 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
648 | /** |
|
5808
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
649 | * Sets the value in a string field. |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
650 | * |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
651 | * @param field The field. |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
652 | * @param value The value. |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
653 | */ |
| 15884 | 654 | void purple_request_field_string_set_value(PurpleRequestField *field, |
|
5808
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
655 | const char *value); |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
656 | |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
657 | /** |
|
7047
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
658 | * Sets whether or not a string field is masked |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
659 | * (commonly used for password fields). |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
660 | * |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
661 | * @param field The field. |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
662 | * @param masked The masked value. |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
663 | */ |
| 15884 | 664 | void purple_request_field_string_set_masked(PurpleRequestField *field, |
|
7047
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
665 | gboolean masked); |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
666 | |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
667 | /** |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
668 | * Sets whether or not a string field is editable. |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
669 | * |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
670 | * @param field The field. |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
671 | * @param editable The editable value. |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
672 | */ |
| 15884 | 673 | void purple_request_field_string_set_editable(PurpleRequestField *field, |
|
7047
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
674 | gboolean editable); |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
675 | |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
676 | /** |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
677 | * Returns the default value in a string field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
678 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
679 | * @param field The field. |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
680 | * |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
681 | * @return The default value. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
682 | */ |
| 15884 | 683 | const char *purple_request_field_string_get_default_value( |
| 684 | const PurpleRequestField *field); | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
685 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
686 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
687 | * Returns the user-entered value in a string field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
688 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
689 | * @param field The field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
690 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
691 | * @return The value. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
692 | */ |
| 15884 | 693 | 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
|
694 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
695 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
696 | * Returns whether or not a string field is multi-line. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
697 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
698 | * @param field The field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
699 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
700 | * @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
|
701 | */ |
| 15884 | 702 | gboolean purple_request_field_string_is_multiline(const PurpleRequestField *field); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
703 | |
|
7047
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
704 | /** |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
705 | * Returns whether or not a string field is masked. |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
706 | * |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
707 | * @param field The field. |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
708 | * |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
709 | * @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
|
710 | */ |
| 15884 | 711 | gboolean purple_request_field_string_is_masked(const PurpleRequestField *field); |
|
7047
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
712 | |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
713 | /** |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
714 | * Returns whether or not a string field is editable. |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
715 | * |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
716 | * @param field The field. |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
717 | * |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
718 | * @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
|
719 | */ |
| 15884 | 720 | gboolean purple_request_field_string_is_editable(const PurpleRequestField *field); |
|
7047
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
721 | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
722 | /*@}*/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
723 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
724 | /**************************************************************************/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
725 | /** @name Integer Field API */ |
|
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 | /*@{*/ |
|
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 | * Creates an integer field. |
|
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 | * @param id The field ID. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
733 | * @param text The text label of the field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
734 | * @param default_value The default value. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
735 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
736 | * @return The new field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
737 | */ |
| 15884 | 738 | PurpleRequestField *purple_request_field_int_new(const char *id, |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
739 | const char *text, |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
740 | int default_value); |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
741 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
742 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
743 | * Sets the default value in an integer field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
744 | * |
|
5808
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
745 | * @param field The field. |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
746 | * @param default_value The default value. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
747 | */ |
| 15884 | 748 | void purple_request_field_int_set_default_value(PurpleRequestField *field, |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
749 | int default_value); |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
750 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
751 | /** |
|
5808
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
752 | * Sets the value in an integer field. |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
753 | * |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
754 | * @param field The field. |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
755 | * @param value The value. |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
756 | */ |
| 15884 | 757 | 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
|
758 | |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
759 | /** |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
760 | * Returns the default value in an integer field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
761 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
762 | * @param field The field. |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
763 | * |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
764 | * @return The default value. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
765 | */ |
| 15884 | 766 | 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
|
767 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
768 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
769 | * Returns the user-entered value in an integer field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
770 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
771 | * @param field The field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
772 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
773 | * @return The value. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
774 | */ |
| 15884 | 775 | int purple_request_field_int_get_value(const PurpleRequestField *field); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
776 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
777 | /*@}*/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
778 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
779 | /**************************************************************************/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
780 | /** @name Boolean Field API */ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
781 | /**************************************************************************/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
782 | /*@{*/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
783 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
784 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
785 | * Creates a boolean field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
786 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
787 | * This is often represented as a checkbox. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
788 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
789 | * @param id The field ID. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
790 | * @param text The text label of the field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
791 | * @param default_value The default value. |
|
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 | * @return The new field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
794 | */ |
| 15884 | 795 | PurpleRequestField *purple_request_field_bool_new(const char *id, |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
796 | const char *text, |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
797 | gboolean default_value); |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
798 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
799 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
800 | * Sets the default value in an boolean field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
801 | * |
|
6720
cdc5348dd848
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6035
diff
changeset
|
802 | * @param field The field. |
|
cdc5348dd848
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6035
diff
changeset
|
803 | * @param default_value The default value. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
804 | */ |
| 15884 | 805 | void purple_request_field_bool_set_default_value(PurpleRequestField *field, |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
806 | gboolean default_value); |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
807 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
808 | /** |
|
5808
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
809 | * Sets the value in an boolean field. |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
810 | * |
|
6720
cdc5348dd848
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6035
diff
changeset
|
811 | * @param field The field. |
|
cdc5348dd848
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6035
diff
changeset
|
812 | * @param value The value. |
|
5808
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
813 | */ |
| 15884 | 814 | void purple_request_field_bool_set_value(PurpleRequestField *field, |
|
5808
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
815 | gboolean value); |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
816 | |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
817 | /** |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
818 | * Returns the default value in an boolean field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
819 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
820 | * @param field The field. |
|
6720
cdc5348dd848
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6035
diff
changeset
|
821 | * |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
822 | * @return The default value. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
823 | */ |
| 15884 | 824 | gboolean purple_request_field_bool_get_default_value( |
| 825 | const PurpleRequestField *field); | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
826 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
827 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
828 | * Returns the user-entered value in an boolean field. |
|
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 | * @param field The field. |
|
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 | * @return The value. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
833 | */ |
| 15884 | 834 | gboolean purple_request_field_bool_get_value(const PurpleRequestField *field); |
|
5807
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 | |
|
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 | /** @name Choice Field API */ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
840 | /**************************************************************************/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
841 | /*@{*/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
842 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
843 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
844 | * Creates a multiple choice field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
845 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
846 | * This is often represented as a group of radio buttons. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
847 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
848 | * @param id The field ID. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
849 | * @param text The optional label of the field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
850 | * @param default_value The default choice. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
851 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
852 | * @return The new field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
853 | */ |
| 15884 | 854 | PurpleRequestField *purple_request_field_choice_new(const char *id, |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
855 | const char *text, |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
856 | int default_value); |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
857 | |
|
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 | * Adds a choice to a multiple choice field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
860 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
861 | * @param field The choice field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
862 | * @param label The choice label. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
863 | */ |
| 15884 | 864 | void purple_request_field_choice_add(PurpleRequestField *field, |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
865 | const char *label); |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
866 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
867 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
868 | * Sets the default value in an choice field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
869 | * |
|
5808
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
870 | * @param field The field. |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
871 | * @param default_value The default value. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
872 | */ |
| 15884 | 873 | void purple_request_field_choice_set_default_value(PurpleRequestField *field, |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
874 | int default_value); |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
875 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
876 | /** |
|
5808
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
877 | * Sets the value in an choice field. |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
878 | * |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
879 | * @param field The field. |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
880 | * @param value The value. |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
881 | */ |
| 15884 | 882 | 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
|
883 | |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
884 | /** |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
885 | * Returns the default value in an choice field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
886 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
887 | * @param field The field. |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
888 | * |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
889 | * @return The default value. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
890 | */ |
| 15884 | 891 | 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
|
892 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
893 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
894 | * Returns the user-entered value in an choice field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
895 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
896 | * @param field The field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
897 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
898 | * @return The value. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
899 | */ |
| 15884 | 900 | int purple_request_field_choice_get_value(const PurpleRequestField *field); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
901 | |
|
5809
3550646492e0
[gaim-migrate @ 6239]
Christian Hammond <chipx86@chipx86.com>
parents:
5808
diff
changeset
|
902 | /** |
|
3550646492e0
[gaim-migrate @ 6239]
Christian Hammond <chipx86@chipx86.com>
parents:
5808
diff
changeset
|
903 | * Returns a list of labels in a choice field. |
|
3550646492e0
[gaim-migrate @ 6239]
Christian Hammond <chipx86@chipx86.com>
parents:
5808
diff
changeset
|
904 | * |
|
3550646492e0
[gaim-migrate @ 6239]
Christian Hammond <chipx86@chipx86.com>
parents:
5808
diff
changeset
|
905 | * @param field The field. |
|
3550646492e0
[gaim-migrate @ 6239]
Christian Hammond <chipx86@chipx86.com>
parents:
5808
diff
changeset
|
906 | * |
|
20971
b5e1eb080f33
Replace a bunch of @return markers with @constreturn markers. I believe these
Etan Reisner <deryni@pidgin.im>
parents:
20147
diff
changeset
|
907 | * @constreturn The list of labels. |
|
5809
3550646492e0
[gaim-migrate @ 6239]
Christian Hammond <chipx86@chipx86.com>
parents:
5808
diff
changeset
|
908 | */ |
| 15884 | 909 | GList *purple_request_field_choice_get_labels(const PurpleRequestField *field); |
|
5809
3550646492e0
[gaim-migrate @ 6239]
Christian Hammond <chipx86@chipx86.com>
parents:
5808
diff
changeset
|
910 | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
911 | /*@}*/ |
|
5482
6831f83bfae5
[gaim-migrate @ 5878]
Christian Hammond <chipx86@chipx86.com>
parents:
5477
diff
changeset
|
912 | |
| 5477 | 913 | /**************************************************************************/ |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
914 | /** @name List Field API */ |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
915 | /**************************************************************************/ |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
916 | /*@{*/ |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
917 | |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
918 | /** |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
919 | * Creates a multiple list item field. |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
920 | * |
|
7909
f2b88b6b97a7
[gaim-migrate @ 8569]
Christian Hammond <chipx86@chipx86.com>
parents:
7905
diff
changeset
|
921 | * @param id The field ID. |
|
f2b88b6b97a7
[gaim-migrate @ 8569]
Christian Hammond <chipx86@chipx86.com>
parents:
7905
diff
changeset
|
922 | * @param text The optional label of the field. |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
923 | * |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
924 | * @return The new field. |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
925 | */ |
| 15884 | 926 | 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
|
927 | |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
928 | /** |
|
7899
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
929 | * Sets whether or not a list field allows multiple selection. |
|
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
930 | * |
|
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
931 | * @param field The list field. |
|
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
932 | * @param multi_select TRUE if multiple selection is enabled, |
|
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
933 | * or FALSE otherwise. |
|
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
934 | */ |
| 15884 | 935 | void purple_request_field_list_set_multi_select(PurpleRequestField *field, |
|
7899
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
936 | gboolean multi_select); |
|
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
937 | |
|
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
938 | /** |
|
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
939 | * Returns whether or not a list field allows multiple selection. |
|
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
940 | * |
|
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
941 | * @param field The list field. |
|
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
942 | * |
|
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
943 | * @return TRUE if multiple selection is enabled, or FALSE otherwise. |
|
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
944 | */ |
| 15884 | 945 | gboolean purple_request_field_list_get_multi_select( |
| 946 | const PurpleRequestField *field); | |
|
7899
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
947 | |
|
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
948 | /** |
|
7909
f2b88b6b97a7
[gaim-migrate @ 8569]
Christian Hammond <chipx86@chipx86.com>
parents:
7905
diff
changeset
|
949 | * Returns the data for a particular item. |
|
f2b88b6b97a7
[gaim-migrate @ 8569]
Christian Hammond <chipx86@chipx86.com>
parents:
7905
diff
changeset
|
950 | * |
|
f2b88b6b97a7
[gaim-migrate @ 8569]
Christian Hammond <chipx86@chipx86.com>
parents:
7905
diff
changeset
|
951 | * @param field The list field. |
| 9000 | 952 | * @param text The item text. |
|
7909
f2b88b6b97a7
[gaim-migrate @ 8569]
Christian Hammond <chipx86@chipx86.com>
parents:
7905
diff
changeset
|
953 | * |
|
f2b88b6b97a7
[gaim-migrate @ 8569]
Christian Hammond <chipx86@chipx86.com>
parents:
7905
diff
changeset
|
954 | * @return The data associated with the item. |
|
f2b88b6b97a7
[gaim-migrate @ 8569]
Christian Hammond <chipx86@chipx86.com>
parents:
7905
diff
changeset
|
955 | */ |
| 15884 | 956 | void *purple_request_field_list_get_data(const PurpleRequestField *field, |
|
7909
f2b88b6b97a7
[gaim-migrate @ 8569]
Christian Hammond <chipx86@chipx86.com>
parents:
7905
diff
changeset
|
957 | const char *text); |
|
f2b88b6b97a7
[gaim-migrate @ 8569]
Christian Hammond <chipx86@chipx86.com>
parents:
7905
diff
changeset
|
958 | |
|
f2b88b6b97a7
[gaim-migrate @ 8569]
Christian Hammond <chipx86@chipx86.com>
parents:
7905
diff
changeset
|
959 | /** |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
960 | * Adds an item to a list field. |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
961 | * |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
962 | * @param field The list field. |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
963 | * @param item The list item. |
|
7909
f2b88b6b97a7
[gaim-migrate @ 8569]
Christian Hammond <chipx86@chipx86.com>
parents:
7905
diff
changeset
|
964 | * @param data The associated data. |
|
24899
54719498c900
Deprecate purple_request_field_list_add() in favor of the new
Richard Laager <rlaager@pidgin.im>
parents:
24892
diff
changeset
|
965 | * |
|
54719498c900
Deprecate purple_request_field_list_add() in favor of the new
Richard Laager <rlaager@pidgin.im>
parents:
24892
diff
changeset
|
966 | * @deprecated Use purple_request_field_list_add_icon() instead. |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
967 | */ |
| 15884 | 968 | void purple_request_field_list_add(PurpleRequestField *field, |
|
7909
f2b88b6b97a7
[gaim-migrate @ 8569]
Christian Hammond <chipx86@chipx86.com>
parents:
7905
diff
changeset
|
969 | const char *item, void *data); |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
970 | |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
971 | /** |
|
24900
a19d983918c2
Deprecate purple_request_field_list_add()
Richard Laager <rlaager@pidgin.im>
parents:
24899
diff
changeset
|
972 | * Adds an item to a list field. |
|
24625
4082cd694acb
This patch comes from the combined work of contributors minstrel, NightFox,
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22593
diff
changeset
|
973 | * |
|
4082cd694acb
This patch comes from the combined work of contributors minstrel, NightFox,
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22593
diff
changeset
|
974 | * @param field The list field. |
|
4082cd694acb
This patch comes from the combined work of contributors minstrel, NightFox,
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22593
diff
changeset
|
975 | * @param item The list item. |
|
24900
a19d983918c2
Deprecate purple_request_field_list_add()
Richard Laager <rlaager@pidgin.im>
parents:
24899
diff
changeset
|
976 | * @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
|
977 | * @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
|
978 | */ |
|
4082cd694acb
This patch comes from the combined work of contributors minstrel, NightFox,
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22593
diff
changeset
|
979 | 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
|
980 | 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
|
981 | |
|
4082cd694acb
This patch comes from the combined work of contributors minstrel, NightFox,
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22593
diff
changeset
|
982 | /** |
|
7902
6c04e5d38897
[gaim-migrate @ 8562]
Christian Hammond <chipx86@chipx86.com>
parents:
7901
diff
changeset
|
983 | * Adds a selected item to the list field. |
|
6c04e5d38897
[gaim-migrate @ 8562]
Christian Hammond <chipx86@chipx86.com>
parents:
7901
diff
changeset
|
984 | * |
|
6c04e5d38897
[gaim-migrate @ 8562]
Christian Hammond <chipx86@chipx86.com>
parents:
7901
diff
changeset
|
985 | * @param field The field. |
|
6c04e5d38897
[gaim-migrate @ 8562]
Christian Hammond <chipx86@chipx86.com>
parents:
7901
diff
changeset
|
986 | * @param item The item to add. |
|
6c04e5d38897
[gaim-migrate @ 8562]
Christian Hammond <chipx86@chipx86.com>
parents:
7901
diff
changeset
|
987 | */ |
| 15884 | 988 | void purple_request_field_list_add_selected(PurpleRequestField *field, |
|
7902
6c04e5d38897
[gaim-migrate @ 8562]
Christian Hammond <chipx86@chipx86.com>
parents:
7901
diff
changeset
|
989 | const char *item); |
|
6c04e5d38897
[gaim-migrate @ 8562]
Christian Hammond <chipx86@chipx86.com>
parents:
7901
diff
changeset
|
990 | |
|
6c04e5d38897
[gaim-migrate @ 8562]
Christian Hammond <chipx86@chipx86.com>
parents:
7901
diff
changeset
|
991 | /** |
|
6c04e5d38897
[gaim-migrate @ 8562]
Christian Hammond <chipx86@chipx86.com>
parents:
7901
diff
changeset
|
992 | * Clears the list of selected items in a list field. |
|
6c04e5d38897
[gaim-migrate @ 8562]
Christian Hammond <chipx86@chipx86.com>
parents:
7901
diff
changeset
|
993 | * |
|
6c04e5d38897
[gaim-migrate @ 8562]
Christian Hammond <chipx86@chipx86.com>
parents:
7901
diff
changeset
|
994 | * @param field The field. |
|
6c04e5d38897
[gaim-migrate @ 8562]
Christian Hammond <chipx86@chipx86.com>
parents:
7901
diff
changeset
|
995 | */ |
| 15884 | 996 | void purple_request_field_list_clear_selected(PurpleRequestField *field); |
|
7902
6c04e5d38897
[gaim-migrate @ 8562]
Christian Hammond <chipx86@chipx86.com>
parents:
7901
diff
changeset
|
997 | |
|
6c04e5d38897
[gaim-migrate @ 8562]
Christian Hammond <chipx86@chipx86.com>
parents:
7901
diff
changeset
|
998 | /** |
|
7901
f09d051b649d
[gaim-migrate @ 8561]
Christian Hammond <chipx86@chipx86.com>
parents:
7899
diff
changeset
|
999 | * Sets a list of selected items in a list field. |
|
f09d051b649d
[gaim-migrate @ 8561]
Christian Hammond <chipx86@chipx86.com>
parents:
7899
diff
changeset
|
1000 | * |
|
f09d051b649d
[gaim-migrate @ 8561]
Christian Hammond <chipx86@chipx86.com>
parents:
7899
diff
changeset
|
1001 | * @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
|
1002 | * @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
|
1003 | */ |
| 15884 | 1004 | 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
|
1005 | GList *items); |
|
7901
f09d051b649d
[gaim-migrate @ 8561]
Christian Hammond <chipx86@chipx86.com>
parents:
7899
diff
changeset
|
1006 | |
|
f09d051b649d
[gaim-migrate @ 8561]
Christian Hammond <chipx86@chipx86.com>
parents:
7899
diff
changeset
|
1007 | /** |
|
7964
10d58eb8a16a
[gaim-migrate @ 8641]
Christian Hammond <chipx86@chipx86.com>
parents:
7963
diff
changeset
|
1008 | * 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
|
1009 | * |
|
10d58eb8a16a
[gaim-migrate @ 8641]
Christian Hammond <chipx86@chipx86.com>
parents:
7963
diff
changeset
|
1010 | * @param field The field. |
|
10d58eb8a16a
[gaim-migrate @ 8641]
Christian Hammond <chipx86@chipx86.com>
parents:
7963
diff
changeset
|
1011 | * @param item The item. |
|
10d58eb8a16a
[gaim-migrate @ 8641]
Christian Hammond <chipx86@chipx86.com>
parents:
7963
diff
changeset
|
1012 | * |
|
10d58eb8a16a
[gaim-migrate @ 8641]
Christian Hammond <chipx86@chipx86.com>
parents:
7963
diff
changeset
|
1013 | * @return TRUE if the item is selected. FALSE otherwise. |
|
10d58eb8a16a
[gaim-migrate @ 8641]
Christian Hammond <chipx86@chipx86.com>
parents:
7963
diff
changeset
|
1014 | */ |
| 15884 | 1015 | gboolean purple_request_field_list_is_selected(const PurpleRequestField *field, |
|
7964
10d58eb8a16a
[gaim-migrate @ 8641]
Christian Hammond <chipx86@chipx86.com>
parents:
7963
diff
changeset
|
1016 | const char *item); |
|
10d58eb8a16a
[gaim-migrate @ 8641]
Christian Hammond <chipx86@chipx86.com>
parents:
7963
diff
changeset
|
1017 | |
|
10d58eb8a16a
[gaim-migrate @ 8641]
Christian Hammond <chipx86@chipx86.com>
parents:
7963
diff
changeset
|
1018 | /** |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1019 | * Returns a list of selected items in a list field. |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1020 | * |
|
7963
f982dbac2ccf
[gaim-migrate @ 8640]
Christian Hammond <chipx86@chipx86.com>
parents:
7909
diff
changeset
|
1021 | * To retrieve the data for each item, use |
| 15884 | 1022 | * purple_request_field_list_get_data(). |
|
7963
f982dbac2ccf
[gaim-migrate @ 8640]
Christian Hammond <chipx86@chipx86.com>
parents:
7909
diff
changeset
|
1023 | * |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1024 | * @param field The field. |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1025 | * |
|
18190
bcf28ef7e8ff
Re-fix the DBus list handling code by killing const GList* / const GSList*
Richard Laager <rlaager@pidgin.im>
parents:
16743
diff
changeset
|
1026 | * @constreturn The list of selected items. |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1027 | */ |
|
18190
bcf28ef7e8ff
Re-fix the DBus list handling code by killing const GList* / const GSList*
Richard Laager <rlaager@pidgin.im>
parents:
16743
diff
changeset
|
1028 | GList *purple_request_field_list_get_selected( |
| 15884 | 1029 | const PurpleRequestField *field); |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1030 | |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1031 | /** |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1032 | * Returns a list of items in a list field. |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1033 | * |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1034 | * @param field The field. |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1035 | * |
|
18190
bcf28ef7e8ff
Re-fix the DBus list handling code by killing const GList* / const GSList*
Richard Laager <rlaager@pidgin.im>
parents:
16743
diff
changeset
|
1036 | * @constreturn The list of items. |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1037 | */ |
|
18190
bcf28ef7e8ff
Re-fix the DBus list handling code by killing const GList* / const GSList*
Richard Laager <rlaager@pidgin.im>
parents:
16743
diff
changeset
|
1038 | GList *purple_request_field_list_get_items(const PurpleRequestField *field); |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1039 | |
|
24625
4082cd694acb
This patch comes from the combined work of contributors minstrel, NightFox,
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22593
diff
changeset
|
1040 | /** |
|
4082cd694acb
This patch comes from the combined work of contributors minstrel, NightFox,
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22593
diff
changeset
|
1041 | * 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
|
1042 | * |
|
24899
54719498c900
Deprecate purple_request_field_list_add() in favor of the new
Richard Laager <rlaager@pidgin.im>
parents:
24892
diff
changeset
|
1043 | * 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
|
1044 | * |
|
24625
4082cd694acb
This patch comes from the combined work of contributors minstrel, NightFox,
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22593
diff
changeset
|
1045 | * @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
|
1046 | * |
|
24899
54719498c900
Deprecate purple_request_field_list_add() in favor of the new
Richard Laager <rlaager@pidgin.im>
parents:
24892
diff
changeset
|
1047 | * @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
|
1048 | * 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
|
1049 | */ |
|
4082cd694acb
This patch comes from the combined work of contributors minstrel, NightFox,
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
22593
diff
changeset
|
1050 | 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
|
1051 | |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1052 | /*@}*/ |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1053 | |
|
7905
03db29949e5d
[gaim-migrate @ 8565]
Christian Hammond <chipx86@chipx86.com>
parents:
7904
diff
changeset
|
1054 | /**************************************************************************/ |
|
03db29949e5d
[gaim-migrate @ 8565]
Christian Hammond <chipx86@chipx86.com>
parents:
7904
diff
changeset
|
1055 | /** @name Label Field API */ |
|
03db29949e5d
[gaim-migrate @ 8565]
Christian Hammond <chipx86@chipx86.com>
parents:
7904
diff
changeset
|
1056 | /**************************************************************************/ |
|
03db29949e5d
[gaim-migrate @ 8565]
Christian Hammond <chipx86@chipx86.com>
parents:
7904
diff
changeset
|
1057 | /*@{*/ |
|
03db29949e5d
[gaim-migrate @ 8565]
Christian Hammond <chipx86@chipx86.com>
parents:
7904
diff
changeset
|
1058 | |
|
03db29949e5d
[gaim-migrate @ 8565]
Christian Hammond <chipx86@chipx86.com>
parents:
7904
diff
changeset
|
1059 | /** |
|
03db29949e5d
[gaim-migrate @ 8565]
Christian Hammond <chipx86@chipx86.com>
parents:
7904
diff
changeset
|
1060 | * Creates a label field. |
|
03db29949e5d
[gaim-migrate @ 8565]
Christian Hammond <chipx86@chipx86.com>
parents:
7904
diff
changeset
|
1061 | * |
|
03db29949e5d
[gaim-migrate @ 8565]
Christian Hammond <chipx86@chipx86.com>
parents:
7904
diff
changeset
|
1062 | * @param id The field ID. |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1063 | * @param text The label of the field. |
|
7905
03db29949e5d
[gaim-migrate @ 8565]
Christian Hammond <chipx86@chipx86.com>
parents:
7904
diff
changeset
|
1064 | * |
|
03db29949e5d
[gaim-migrate @ 8565]
Christian Hammond <chipx86@chipx86.com>
parents:
7904
diff
changeset
|
1065 | * @return The new field. |
|
03db29949e5d
[gaim-migrate @ 8565]
Christian Hammond <chipx86@chipx86.com>
parents:
7904
diff
changeset
|
1066 | */ |
| 15884 | 1067 | PurpleRequestField *purple_request_field_label_new(const char *id, |
|
7905
03db29949e5d
[gaim-migrate @ 8565]
Christian Hammond <chipx86@chipx86.com>
parents:
7904
diff
changeset
|
1068 | const char *text); |
|
03db29949e5d
[gaim-migrate @ 8565]
Christian Hammond <chipx86@chipx86.com>
parents:
7904
diff
changeset
|
1069 | |
|
03db29949e5d
[gaim-migrate @ 8565]
Christian Hammond <chipx86@chipx86.com>
parents:
7904
diff
changeset
|
1070 | /*@}*/ |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1071 | |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1072 | /**************************************************************************/ |
| 11357 | 1073 | /** @name Image Field API */ |
| 1074 | /**************************************************************************/ | |
| 1075 | /*@{*/ | |
| 1076 | ||
| 1077 | /** | |
| 1078 | * Creates an image field. | |
| 1079 | * | |
| 1080 | * @param id The field ID. | |
| 1081 | * @param text The label of the field. | |
|
11502
84bcb3fe456e
[gaim-migrate @ 13747]
Richard Laager <rlaager@pidgin.im>
parents:
11357
diff
changeset
|
1082 | * @param buf The image data. |
|
84bcb3fe456e
[gaim-migrate @ 13747]
Richard Laager <rlaager@pidgin.im>
parents:
11357
diff
changeset
|
1083 | * @param size The size of the data in @a buffer. |
| 11357 | 1084 | * |
| 1085 | * @return The new field. | |
| 1086 | */ | |
| 15884 | 1087 | PurpleRequestField *purple_request_field_image_new(const char *id, const char *text, |
| 11357 | 1088 | const char *buf, gsize size); |
| 1089 | ||
| 1090 | /** | |
|
12399
535d819a4c74
[gaim-migrate @ 14706]
Richard Laager <rlaager@pidgin.im>
parents:
11502
diff
changeset
|
1091 | * Sets the scale factors of an image field. |
|
535d819a4c74
[gaim-migrate @ 14706]
Richard Laager <rlaager@pidgin.im>
parents:
11502
diff
changeset
|
1092 | * |
|
535d819a4c74
[gaim-migrate @ 14706]
Richard Laager <rlaager@pidgin.im>
parents:
11502
diff
changeset
|
1093 | * @param field The image field. |
|
535d819a4c74
[gaim-migrate @ 14706]
Richard Laager <rlaager@pidgin.im>
parents:
11502
diff
changeset
|
1094 | * @param x The x scale factor. |
|
535d819a4c74
[gaim-migrate @ 14706]
Richard Laager <rlaager@pidgin.im>
parents:
11502
diff
changeset
|
1095 | * @param y The y scale factor. |
|
535d819a4c74
[gaim-migrate @ 14706]
Richard Laager <rlaager@pidgin.im>
parents:
11502
diff
changeset
|
1096 | */ |
| 15884 | 1097 | 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
|
1098 | |
|
535d819a4c74
[gaim-migrate @ 14706]
Richard Laager <rlaager@pidgin.im>
parents:
11502
diff
changeset
|
1099 | /** |
| 11357 | 1100 | * Returns pointer to the image. |
| 1101 | * | |
| 1102 | * @param field The image field. | |
| 1103 | * | |
| 1104 | * @return Pointer to the image. | |
| 1105 | */ | |
| 15884 | 1106 | const char *purple_request_field_image_get_buffer(PurpleRequestField *field); |
| 11357 | 1107 | |
| 1108 | /** | |
| 1109 | * Returns size (in bytes) of the image. | |
| 1110 | * | |
| 1111 | * @param field The image field. | |
| 1112 | * | |
| 1113 | * @return Size of the image. | |
| 1114 | */ | |
| 15884 | 1115 | gsize purple_request_field_image_get_size(PurpleRequestField *field); |
| 11357 | 1116 | |
| 1117 | /** | |
| 1118 | * Returns X scale coefficient of the image. | |
| 1119 | * | |
| 1120 | * @param field The image field. | |
| 1121 | * | |
| 1122 | * @return X scale coefficient of the image. | |
| 1123 | */ | |
| 15884 | 1124 | unsigned int purple_request_field_image_get_scale_x(PurpleRequestField *field); |
| 11357 | 1125 | |
| 1126 | /** | |
| 1127 | * Returns Y scale coefficient of the image. | |
| 1128 | * | |
| 1129 | * @param field The image field. | |
| 1130 | * | |
| 1131 | * @return Y scale coefficient of the image. | |
| 1132 | */ | |
| 15884 | 1133 | unsigned int purple_request_field_image_get_scale_y(PurpleRequestField *field); |
| 11357 | 1134 | |
| 1135 | /*@}*/ | |
| 1136 | ||
| 1137 | /**************************************************************************/ | |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1138 | /** @name Account Field API */ |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1139 | /**************************************************************************/ |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1140 | /*@{*/ |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1141 | |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1142 | /** |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1143 | * Creates an account field. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1144 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1145 | * By default, this field will not show offline accounts. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1146 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1147 | * @param id The field ID. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1148 | * @param text The text label of the field. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1149 | * @param account The optional default account. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1150 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1151 | * @return The new field. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1152 | */ |
| 15884 | 1153 | PurpleRequestField *purple_request_field_account_new(const char *id, |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1154 | const char *text, |
| 15884 | 1155 | PurpleAccount *account); |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1156 | |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1157 | /** |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1158 | * Sets the default account on an account field. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1159 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1160 | * @param field The account field. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1161 | * @param default_value The default account. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1162 | */ |
| 15884 | 1163 | void purple_request_field_account_set_default_value(PurpleRequestField *field, |
| 1164 | PurpleAccount *default_value); | |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1165 | |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1166 | /** |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1167 | * Sets the account in an account field. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1168 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1169 | * @param field The account field. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1170 | * @param value The account. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1171 | */ |
| 15884 | 1172 | void purple_request_field_account_set_value(PurpleRequestField *field, |
| 1173 | PurpleAccount *value); | |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1174 | |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1175 | /** |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1176 | * 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
|
1177 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1178 | * 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
|
1179 | * only online accounts will be shown. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1180 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1181 | * @param field The account field. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1182 | * @param show_all Whether or not to show all accounts. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1183 | */ |
| 15884 | 1184 | void purple_request_field_account_set_show_all(PurpleRequestField *field, |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1185 | gboolean show_all); |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1186 | |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1187 | /** |
|
8289
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1188 | * Sets the account filter function in an account field. |
|
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1189 | * |
|
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1190 | * This function will determine which accounts get displayed and which |
|
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1191 | * don't. |
|
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1192 | * |
|
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1193 | * @param field The account field. |
|
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1194 | * @param filter_func The account filter function. |
|
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1195 | */ |
| 15884 | 1196 | void purple_request_field_account_set_filter(PurpleRequestField *field, |
| 1197 | PurpleFilterAccountFunc filter_func); | |
|
8289
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1198 | |
|
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1199 | /** |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1200 | * Returns the default account in an account field. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1201 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1202 | * @param field The field. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1203 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1204 | * @return The default account. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1205 | */ |
| 15884 | 1206 | PurpleAccount *purple_request_field_account_get_default_value( |
| 1207 | const PurpleRequestField *field); | |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1208 | |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1209 | /** |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1210 | * Returns the user-entered account in an account field. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1211 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1212 | * @param field The field. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1213 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1214 | * @return The user-entered account. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1215 | */ |
| 15884 | 1216 | PurpleAccount *purple_request_field_account_get_value( |
| 1217 | const PurpleRequestField *field); | |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1218 | |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1219 | /** |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1220 | * 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
|
1221 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1222 | * 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
|
1223 | * only online accounts will be shown. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1224 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1225 | * @param field The account field. |
| 9000 | 1226 | * @return Whether or not to show all accounts. |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1227 | */ |
| 15884 | 1228 | gboolean purple_request_field_account_get_show_all( |
| 1229 | const PurpleRequestField *field); | |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1230 | |
|
8289
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1231 | /** |
|
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1232 | * Returns the account filter function in an account field. |
|
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1233 | * |
|
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1234 | * This function will determine which accounts get displayed and which |
|
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1235 | * don't. |
|
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1236 | * |
|
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1237 | * @param field The account field. |
|
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1238 | * |
|
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1239 | * @return The account filter function. |
|
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1240 | */ |
| 15884 | 1241 | PurpleFilterAccountFunc purple_request_field_account_get_filter( |
| 1242 | const PurpleRequestField *field); | |
|
8289
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1243 | |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1244 | /*@}*/ |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1245 | |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1246 | /**************************************************************************/ |
| 5477 | 1247 | /** @name Request API */ |
| 1248 | /**************************************************************************/ | |
| 1249 | /*@{*/ | |
| 1250 | ||
| 1251 | /** | |
| 1252 | * Prompts the user for text input. | |
| 1253 | * | |
|
11201
f8fed1f48ca3
[gaim-migrate @ 13329]
Mark Doliner <markdoliner@pidgin.im>
parents:
10791
diff
changeset
|
1254 | * @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
|
1255 | * 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
|
1256 | * 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
|
1257 | * 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
|
1258 | * 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
|
1259 | * 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
|
1260 | * 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
|
1261 | * 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
|
1262 | * 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
|
1263 | * 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
|
1264 | * <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
|
1265 | * 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
|
1266 | * 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
|
1267 | * @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
|
1268 | * 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
|
1269 | * @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
|
1270 | * 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
|
1271 | * @param secondary Secondary information, or @c NULL if there is none. |
| 5477 | 1272 | * @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
|
1273 | * @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
|
1274 | * @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
|
1275 | * 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
|
1276 | * might be because the input is some kind of password. |
|
8699
0b894347c40d
[gaim-migrate @ 9452]
Mark Doliner <markdoliner@pidgin.im>
parents:
8697
diff
changeset
|
1277 | * @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
|
1278 | * Use "html", for example, to allow the user to enter |
|
8699
0b894347c40d
[gaim-migrate @ 9452]
Mark Doliner <markdoliner@pidgin.im>
parents:
8697
diff
changeset
|
1279 | * 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
|
1280 | * @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
|
1281 | * @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
|
1282 | * NULL. |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1283 | * @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
|
1284 | * NULL. |
|
21990
8184e0101bc2
cancel_cb can be NULL here too.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21989
diff
changeset
|
1285 | * @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
|
1286 | * @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
|
1287 | * @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
|
1288 | * 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
|
1289 | * @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
|
1290 | * 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
|
1291 | * @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
|
1292 | * @c NULL if none is. |
| 5477 | 1293 | * @param user_data The data to pass to the callback. |
| 1294 | * | |
| 1295 | * @return A UI-specific handle. | |
| 1296 | */ | |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1297 | 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
|
1298 | 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
|
1299 | 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
|
1300 | 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
|
1301 | 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
|
1302 | 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
|
1303 | void *user_data); |
| 5477 | 1304 | |
| 1305 | /** | |
| 1306 | * Prompts the user for multiple-choice input. | |
| 1307 | * | |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1308 | * @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
|
1309 | * 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
|
1310 | * 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
|
1311 | * @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
|
1312 | * 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
|
1313 | * @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
|
1314 | * 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
|
1315 | * @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
|
1316 | * @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
|
1317 | * 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
|
1318 | * @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
|
1319 | * @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
|
1320 | * NULL. |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1321 | * @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
|
1322 | * NULL. |
|
21988
7945c3805412
Sadrul informs me that cancel_cb may in fact be NULL.
Will Thompson <resiak@pidgin.im>
parents:
21980
diff
changeset
|
1323 | * @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
|
1324 | * 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
|
1325 | * @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
|
1326 | * 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
|
1327 | * @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
|
1328 | * 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
|
1329 | * @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
|
1330 | * @c NULL if none is. |
| 5477 | 1331 | * @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
|
1332 | * @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
|
1333 | * 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
|
1334 | * @c NULL parameter. |
| 5477 | 1335 | * |
| 1336 | * @return A UI-specific handle. | |
| 1337 | */ | |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1338 | 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
|
1339 | 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
|
1340 | 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
|
1341 | 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
|
1342 | 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
|
1343 | void *user_data, ...) G_GNUC_NULL_TERMINATED; |
| 5477 | 1344 | |
| 1345 | /** | |
|
22593
9f88ea5d40d9
Remove duplicated docs for _varg variants of request functions; correct and
Will Thompson <resiak@pidgin.im>
parents:
22263
diff
changeset
|
1346 | * <tt>va_list</tt> version of purple_request_choice(); see its documentation. |
| 5477 | 1347 | */ |
| 15884 | 1348 | 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
|
1349 | 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
|
1350 | 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
|
1351 | 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
|
1352 | 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
|
1353 | void *user_data, va_list choices); |
| 5477 | 1354 | |
| 1355 | /** | |
| 1356 | * Prompts the user for an action. | |
| 1357 | * | |
| 1358 | * This is often represented as a dialog with a button for each action. | |
| 1359 | * | |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1360 | * @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
|
1361 | * 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
|
1362 | * 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
|
1363 | * @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
|
1364 | * 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
|
1365 | * @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
|
1366 | * 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
|
1367 | * @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
|
1368 | * @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
|
1369 | * 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
|
1370 | * 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
|
1371 | * 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
|
1372 | * @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
|
1373 | * 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
|
1374 | * @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
|
1375 | * 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
|
1376 | * @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
|
1377 | * @c NULL if none is. |
| 5477 | 1378 | * @param user_data The data to pass to the callback. |
|
5496
ed995be89052
[gaim-migrate @ 5892]
Christian Hammond <chipx86@chipx86.com>
parents:
5482
diff
changeset
|
1379 | * @param action_count The number of actions. |
|
15356
a5ad506222a1
[gaim-migrate @ 18085]
Mark Doliner <markdoliner@pidgin.im>
parents:
14254
diff
changeset
|
1380 | * @param ... A list of actions. These are pairs of |
|
a5ad506222a1
[gaim-migrate @ 18085]
Mark Doliner <markdoliner@pidgin.im>
parents:
14254
diff
changeset
|
1381 | * 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
|
1382 | * <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
|
1383 | * 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
|
1384 | * 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
|
1385 | * second of each pair is the #PurpleRequestActionCb |
|
15356
a5ad506222a1
[gaim-migrate @ 18085]
Mark Doliner <markdoliner@pidgin.im>
parents:
14254
diff
changeset
|
1386 | * function to use when the button is clicked. |
| 5477 | 1387 | * |
| 1388 | * @return A UI-specific handle. | |
| 1389 | */ | |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1390 | 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
|
1391 | 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
|
1392 | 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
|
1393 | size_t action_count, ...); |
| 5477 | 1394 | |
| 1395 | /** | |
|
22593
9f88ea5d40d9
Remove duplicated docs for _varg variants of request functions; correct and
Will Thompson <resiak@pidgin.im>
parents:
22263
diff
changeset
|
1396 | * <tt>va_list</tt> version of purple_request_action(); see its documentation. |
| 5477 | 1397 | */ |
| 15884 | 1398 | 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
|
1399 | 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
|
1400 | 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
|
1401 | void *user_data, size_t action_count, va_list actions); |
| 5477 | 1402 | |
| 1403 | /** | |
|
27427
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
1404 | * Version of purple_request_action() supplying an image for the UI to |
|
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
1405 | * optionally display as an icon in the dialog; see its documentation |
|
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
1406 | */ |
|
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
1407 | void *purple_request_action_with_icon(void *handle, const char *title, |
|
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
1408 | 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
|
1409 | PurpleAccount *account, const char *who, PurpleConversation *conv, |
|
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
1410 | gconstpointer icon_data, gsize icon_size, void *user_data, |
|
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
1411 | size_t action_count, ...); |
|
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
1412 | |
|
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
1413 | /** |
|
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
1414 | * <tt>va_list</tt> version of purple_request_action_with_icon(); |
|
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
1415 | * see its documentation. |
|
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
1416 | */ |
|
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
1417 | void *purple_request_action_varg_with_icon(void *handle, const char *title, |
|
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
1418 | 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
|
1419 | PurpleAccount *account, const char *who, PurpleConversation *conv, |
|
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
1420 | gconstpointer icon_data, gsize icon_size, |
|
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
1421 | 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
|
1422 | |
|
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
1423 | |
|
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
1424 | /** |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1425 | * Displays groups of fields for the user to fill in. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1426 | * |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1427 | * @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
|
1428 | * 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
|
1429 | * 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
|
1430 | * @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
|
1431 | * 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
|
1432 | * @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
|
1433 | * 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
|
1434 | * @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
|
1435 | * @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
|
1436 | * @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
|
1437 | * @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
|
1438 | * NULL. |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1439 | * @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
|
1440 | * NULL. |
|
21990
8184e0101bc2
cancel_cb can be NULL here too.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21989
diff
changeset
|
1441 | * @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
|
1442 | * @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
|
1443 | * @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
|
1444 | * 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
|
1445 | * @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
|
1446 | * 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
|
1447 | * @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
|
1448 | * @c NULL if none is |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1449 | * @param user_data The data to pass to the callback. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1450 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1451 | * @return A UI-specific handle. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1452 | */ |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1453 | 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
|
1454 | 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
|
1455 | 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
|
1456 | 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
|
1457 | 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
|
1458 | void *user_data); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1459 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1460 | /** |
| 5477 | 1461 | * Closes a request. |
| 1462 | * | |
| 1463 | * @param type The request type. | |
| 1464 | * @param uihandle The request UI handle. | |
| 1465 | */ | |
| 15884 | 1466 | void purple_request_close(PurpleRequestType type, void *uihandle); |
| 5477 | 1467 | |
| 1468 | /** | |
| 1469 | * Closes all requests registered with the specified handle. | |
| 1470 | * | |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1471 | * @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
|
1472 | * <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
|
1473 | * |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1474 | * @see purple_request_input(). |
| 5477 | 1475 | */ |
| 15884 | 1476 | void purple_request_close_with_handle(void *handle); |
| 5477 | 1477 | |
| 1478 | /** | |
| 15884 | 1479 | * A wrapper for purple_request_action() that uses @c Yes and @c No buttons. |
| 5477 | 1480 | */ |
|
20685
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1481 | #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
|
1482 | default_action, account, who, conv, \ |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1483 | user_data, yes_cb, no_cb) \ |
| 15884 | 1484 | 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
|
1485 | (default_action), account, who, conv, (user_data), 2, \ |
|
15356
a5ad506222a1
[gaim-migrate @ 18085]
Mark Doliner <markdoliner@pidgin.im>
parents:
14254
diff
changeset
|
1486 | _("_Yes"), (yes_cb), _("_No"), (no_cb)) |
| 5477 | 1487 | |
| 1488 | /** | |
| 15884 | 1489 | * A wrapper for purple_request_action() that uses @c OK and @c Cancel buttons. |
| 5477 | 1490 | */ |
|
20685
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1491 | #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
|
1492 | default_action, account, who, conv, \ |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1493 | user_data, ok_cb, cancel_cb) \ |
| 15884 | 1494 | 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
|
1495 | (default_action), account, who, conv, (user_data), 2, \ |
|
15356
a5ad506222a1
[gaim-migrate @ 18085]
Mark Doliner <markdoliner@pidgin.im>
parents:
14254
diff
changeset
|
1496 | _("_OK"), (ok_cb), _("_Cancel"), (cancel_cb)) |
|
5498
01eec144d71b
[gaim-migrate @ 5894]
Christian Hammond <chipx86@chipx86.com>
parents:
5496
diff
changeset
|
1497 | |
|
01eec144d71b
[gaim-migrate @ 5894]
Christian Hammond <chipx86@chipx86.com>
parents:
5496
diff
changeset
|
1498 | /** |
| 15884 | 1499 | * 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
|
1500 | */ |
|
20685
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1501 | #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
|
1502 | default_action, account, who, conv, \ |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1503 | user_data, accept_cb, cancel_cb) \ |
| 15884 | 1504 | 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
|
1505 | (default_action), account, who, conv, (user_data), 2, \ |
|
15356
a5ad506222a1
[gaim-migrate @ 18085]
Mark Doliner <markdoliner@pidgin.im>
parents:
14254
diff
changeset
|
1506 | _("_Accept"), (accept_cb), _("_Cancel"), (cancel_cb)) |
| 5477 | 1507 | |
|
8843
944c71cc01af
[gaim-migrate @ 9610]
Pekka Riikonen <priikone@silcnet.org>
parents:
8735
diff
changeset
|
1508 | /** |
|
27427
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
1509 | * A wrapper for purple_request_action_with_icon() that uses Accept and Cancel |
|
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
1510 | * buttons. |
|
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
1511 | */ |
|
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
1512 | #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
|
1513 | default_action, account, who, conv, \ |
|
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
1514 | icon_data, icon_size, \ |
|
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
1515 | user_data, accept_cb, cancel_cb) \ |
|
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
1516 | 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
|
1517 | (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
|
1518 | (user_data), 2, \ |
|
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
1519 | _("_Accept"), (accept_cb), _("_Cancel"), (cancel_cb)) |
|
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
1520 | |
|
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
1521 | /** |
|
13268
5f523813f880
[gaim-migrate @ 15633]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
12716
diff
changeset
|
1522 | * 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
|
1523 | * 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
|
1524 | * |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
1525 | * @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
|
1526 | * 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
|
1527 | * 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
|
1528 | * @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
|
1529 | * no title. |
|
13268
5f523813f880
[gaim-migrate @ 15633]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
12716
diff
changeset
|
1530 | * @param filename The default filename (may be @c NULL) |
|
9502
d43f69354213
[gaim-migrate @ 10329]
Mark Doliner <markdoliner@pidgin.im>
parents:
9000
diff
changeset
|
1531 | * @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
|
1532 | * 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
|
1533 | * @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
|
1534 | * @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
|
1535 | * @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
|
1536 | * 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
|
1537 | * @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
|
1538 | * 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
|
1539 | * @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
|
1540 | * @c NULL if none is |
|
8843
944c71cc01af
[gaim-migrate @ 9610]
Pekka Riikonen <priikone@silcnet.org>
parents:
8735
diff
changeset
|
1541 | * @param user_data The data to pass to the callback. |
|
944c71cc01af
[gaim-migrate @ 9610]
Pekka Riikonen <priikone@silcnet.org>
parents:
8735
diff
changeset
|
1542 | * |
|
944c71cc01af
[gaim-migrate @ 9610]
Pekka Riikonen <priikone@silcnet.org>
parents:
8735
diff
changeset
|
1543 | * @return A UI-specific handle. |
|
944c71cc01af
[gaim-migrate @ 9610]
Pekka Riikonen <priikone@silcnet.org>
parents:
8735
diff
changeset
|
1544 | */ |
| 15884 | 1545 | 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
|
1546 | 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
|
1547 | 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
|
1548 | void *user_data); |
|
8843
944c71cc01af
[gaim-migrate @ 9610]
Pekka Riikonen <priikone@silcnet.org>
parents:
8735
diff
changeset
|
1549 | |
|
13283
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
1550 | /** |
|
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
1551 | * Displays a folder select dialog. Returns the selected filename to |
|
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
1552 | * the callback. |
|
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
1553 | * |
|
21980
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 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
|
1555 | * 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
|
1556 | * 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
|
1557 | * @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
|
1558 | * no title. |
|
13283
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
1559 | * @param dirname The default directory name (may be @c NULL) |
|
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
1560 | * @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
|
1561 | * @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
|
1562 | * @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
|
1563 | * 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
|
1564 | * @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
|
1565 | * 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
|
1566 | * @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
|
1567 | * @c NULL if none is |
|
13283
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
1568 | * @param user_data The data to pass to the callback. |
|
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
1569 | * |
|
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
1570 | * @return A UI-specific handle. |
|
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
1571 | */ |
| 15884 | 1572 | 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
|
1573 | 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
|
1574 | 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
|
1575 | void *user_data); |
|
13283
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
1576 | |
|
9502
d43f69354213
[gaim-migrate @ 10329]
Mark Doliner <markdoliner@pidgin.im>
parents:
9000
diff
changeset
|
1577 | /*@}*/ |
|
8843
944c71cc01af
[gaim-migrate @ 9610]
Pekka Riikonen <priikone@silcnet.org>
parents:
8735
diff
changeset
|
1578 | |
| 5477 | 1579 | /**************************************************************************/ |
| 10566 | 1580 | /** @name UI Registration Functions */ |
| 5477 | 1581 | /**************************************************************************/ |
| 1582 | /*@{*/ | |
| 1583 | ||
| 1584 | /** | |
| 1585 | * Sets the UI operations structure to be used when displaying a | |
| 1586 | * request. | |
| 1587 | * | |
| 1588 | * @param ops The UI operations structure. | |
| 1589 | */ | |
| 15884 | 1590 | void purple_request_set_ui_ops(PurpleRequestUiOps *ops); |
| 5477 | 1591 | |
| 1592 | /** | |
| 1593 | * Returns the UI operations structure to be used when displaying a | |
| 1594 | * request. | |
| 1595 | * | |
|
6720
cdc5348dd848
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6035
diff
changeset
|
1596 | * @return The UI operations structure. |
| 5477 | 1597 | */ |
| 15884 | 1598 | PurpleRequestUiOps *purple_request_get_ui_ops(void); |
| 5477 | 1599 | |
| 1600 | /*@}*/ | |
| 1601 | ||
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5809
diff
changeset
|
1602 | #ifdef __cplusplus |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5809
diff
changeset
|
1603 | } |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5809
diff
changeset
|
1604 | #endif |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5809
diff
changeset
|
1605 | |
| 15884 | 1606 | #endif /* _PURPLE_REQUEST_H_ */ |