Sat, 10 Nov 2007 04:52:20 +0000
propagate from branch 'im.pidgin.pidgin.next.minor' (head 2f91b326b3f073672c2475a8c30a06826da9b82f)
to branch 'im.pidgin.pidgin' (head 326d5b91950b3d78c445722f6d726cfa6b1c525d)
| 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 | ||
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
33 | #include "account.h" |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
34 | |
| 15884 | 35 | #define PURPLE_DEFAULT_ACTION_NONE -1 |
|
9948
2642975ffb85
[gaim-migrate @ 10844]
Dave West <kat@users.sourceforge.net>
parents:
9502
diff
changeset
|
36 | |
| 5477 | 37 | /** |
| 38 | * Request types. | |
| 39 | */ | |
| 40 | typedef enum | |
| 41 | { | |
| 15884 | 42 | PURPLE_REQUEST_INPUT = 0, /**< Text input request. */ |
| 43 | PURPLE_REQUEST_CHOICE, /**< Multiple-choice request. */ | |
| 44 | PURPLE_REQUEST_ACTION, /**< Action request. */ | |
| 45 | PURPLE_REQUEST_FIELDS, /**< Multiple fields request. */ | |
| 46 | PURPLE_REQUEST_FILE, /**< File open or save request. */ | |
| 47 | PURPLE_REQUEST_FOLDER /**< Folder selection request. */ | |
| 5477 | 48 | |
| 15884 | 49 | } PurpleRequestType; |
| 5477 | 50 | |
| 51 | /** | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
52 | * A type of field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
53 | */ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
54 | typedef enum |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
55 | { |
| 15884 | 56 | PURPLE_REQUEST_FIELD_NONE, |
| 57 | PURPLE_REQUEST_FIELD_STRING, | |
| 58 | PURPLE_REQUEST_FIELD_INTEGER, | |
| 59 | PURPLE_REQUEST_FIELD_BOOLEAN, | |
| 60 | PURPLE_REQUEST_FIELD_CHOICE, | |
| 61 | PURPLE_REQUEST_FIELD_LIST, | |
| 62 | PURPLE_REQUEST_FIELD_LABEL, | |
| 63 | PURPLE_REQUEST_FIELD_IMAGE, | |
|
20827
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
64 | PURPLE_REQUEST_FIELD_ACCOUNT, |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
65 | PURPLE_REQUEST_FIELD_BLIST, |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
66 | |
| 15884 | 67 | } PurpleRequestFieldType; |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
68 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
69 | /** |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
70 | * Multiple fields request data. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
71 | */ |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
72 | typedef struct |
|
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 | GList *groups; |
|
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 | GHashTable *fields; |
|
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 | GList *required_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 | void *ui_data; |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
81 | |
| 15884 | 82 | } PurpleRequestFields; |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
83 | |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
84 | /** |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
85 | * A group of fields with a title. |
|
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 | typedef struct |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
88 | { |
| 15884 | 89 | PurpleRequestFields *fields_list; |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
90 | |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
91 | char *title; |
|
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 | GList *fields; |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
94 | |
| 15884 | 95 | } PurpleRequestFieldGroup; |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
96 | |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
97 | /** |
|
20827
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
98 | * Flags that can be used for Buddylist Fields. |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
99 | */ |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
100 | typedef enum |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
101 | { |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
102 | PURPLE_REQUEST_BLIST_FLAG_BUDDY = 0x01, /**< Include buddies in the list. */ |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
103 | PURPLE_REQUEST_BLIST_FLAG_CHAT = 0x02, /**< Include chats in the list. */ |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
104 | PURPLE_REQUEST_BLIST_FLAG_GROUP = 0x04, /**< Include groups in the list. */ |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
105 | PURPLE_REQUEST_BLIST_FLAG_ALLOW_OFFLINE = 0x08, /**< Include offline buddies in the list. */ |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
106 | } PurpleRequestBlistFlags; |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
107 | |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
108 | /** |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
109 | * A request field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
110 | */ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
111 | typedef struct |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
112 | { |
| 15884 | 113 | PurpleRequestFieldType type; |
| 114 | PurpleRequestFieldGroup *group; | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
115 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
116 | char *id; |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
117 | char *label; |
|
8285
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
118 | char *type_hint; |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
119 | |
|
7904
266d6d5c68ac
[gaim-migrate @ 8564]
Christian Hammond <chipx86@chipx86.com>
parents:
7902
diff
changeset
|
120 | gboolean visible; |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
121 | gboolean required; |
|
7904
266d6d5c68ac
[gaim-migrate @ 8564]
Christian Hammond <chipx86@chipx86.com>
parents:
7902
diff
changeset
|
122 | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
123 | union |
|
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 | struct |
|
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 | gboolean multiline; |
|
7047
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
128 | gboolean masked; |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
129 | gboolean editable; |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
130 | char *default_value; |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
131 | char *value; |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
132 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
133 | } string; |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
134 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
135 | struct |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
136 | { |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
137 | int default_value; |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
138 | int value; |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
139 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
140 | } integer; |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
141 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
142 | struct |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
143 | { |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
144 | gboolean default_value; |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
145 | gboolean value; |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
146 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
147 | } boolean; |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
148 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
149 | struct |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
150 | { |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
151 | int default_value; |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
152 | int value; |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
153 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
154 | GList *labels; |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
155 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
156 | } choice; |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
157 | |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
158 | struct |
|
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 | GList *items; |
|
7909
f2b88b6b97a7
[gaim-migrate @ 8569]
Christian Hammond <chipx86@chipx86.com>
parents:
7905
diff
changeset
|
161 | GHashTable *item_data; |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
162 | GList *selected; |
|
7964
10d58eb8a16a
[gaim-migrate @ 8641]
Christian Hammond <chipx86@chipx86.com>
parents:
7963
diff
changeset
|
163 | GHashTable *selected_table; |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
164 | |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
165 | gboolean multiple_selection; |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
166 | |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
167 | } list; |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
168 | |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
169 | struct |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
170 | { |
| 15884 | 171 | PurpleAccount *default_account; |
| 172 | PurpleAccount *account; | |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
173 | gboolean show_all; |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
174 | |
| 15884 | 175 | PurpleFilterAccountFunc filter_func; |
|
8289
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
176 | |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
177 | } account; |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
178 | |
| 11357 | 179 | struct |
| 180 | { | |
| 181 | unsigned int scale_x; | |
| 182 | unsigned int scale_y; | |
| 183 | const char *buffer; | |
| 184 | gsize size; | |
| 185 | } image; | |
| 186 | ||
|
20827
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
187 | struct |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
188 | { |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
189 | GList *default_nodes; |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
190 | PurpleRequestBlistFlags flags; |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
191 | GList *selecteds; |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
192 | PurpleFilterBlistFunc filter; |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
193 | } blist; |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
194 | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
195 | } u; |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
196 | |
|
5809
3550646492e0
[gaim-migrate @ 6239]
Christian Hammond <chipx86@chipx86.com>
parents:
5808
diff
changeset
|
197 | void *ui_data; |
|
3550646492e0
[gaim-migrate @ 6239]
Christian Hammond <chipx86@chipx86.com>
parents:
5808
diff
changeset
|
198 | |
| 15884 | 199 | } PurpleRequestField; |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
200 | |
|
21231
92c0eaf32522
Document the UI hint defines and remove some bad ui_hint @param lines from
Richard Laager <rlaager@pidgin.im>
parents:
21225
diff
changeset
|
201 | /* |
|
92c0eaf32522
Document the UI hint defines and remove some bad ui_hint @param lines from
Richard Laager <rlaager@pidgin.im>
parents:
21225
diff
changeset
|
202 | * UI hints for the request functions. These are used by libpurple. |
|
92c0eaf32522
Document the UI hint defines and remove some bad ui_hint @param lines from
Richard Laager <rlaager@pidgin.im>
parents:
21225
diff
changeset
|
203 | */ |
|
92c0eaf32522
Document the UI hint defines and remove some bad ui_hint @param lines from
Richard Laager <rlaager@pidgin.im>
parents:
21225
diff
changeset
|
204 | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
205 | /** |
|
21231
92c0eaf32522
Document the UI hint defines and remove some bad ui_hint @param lines from
Richard Laager <rlaager@pidgin.im>
parents:
21225
diff
changeset
|
206 | * @since 2.3.0 |
|
21225
32d8e16cb7a9
Converted string literal UI hints to #define-ed constants and fixed two cast-warnings in gtkblist.c
Gabriel Schulhof <nix@go-nix.ca>
parents:
21223
diff
changeset
|
207 | */ |
|
21233
e75de8db4f2b
Re-namespace the #defines to all be PURPLE_REQUEST_UI_HINT_*. I see no
Richard Laager <rlaager@pidgin.im>
parents:
21231
diff
changeset
|
208 | #define PURPLE_REQUEST_UI_HINT_ACCOUNT "account" |
|
21231
92c0eaf32522
Document the UI hint defines and remove some bad ui_hint @param lines from
Richard Laager <rlaager@pidgin.im>
parents:
21225
diff
changeset
|
209 | |
|
92c0eaf32522
Document the UI hint defines and remove some bad ui_hint @param lines from
Richard Laager <rlaager@pidgin.im>
parents:
21225
diff
changeset
|
210 | /** |
|
92c0eaf32522
Document the UI hint defines and remove some bad ui_hint @param lines from
Richard Laager <rlaager@pidgin.im>
parents:
21225
diff
changeset
|
211 | * @since 2.3.0 |
|
92c0eaf32522
Document the UI hint defines and remove some bad ui_hint @param lines from
Richard Laager <rlaager@pidgin.im>
parents:
21225
diff
changeset
|
212 | */ |
|
21233
e75de8db4f2b
Re-namespace the #defines to all be PURPLE_REQUEST_UI_HINT_*. I see no
Richard Laager <rlaager@pidgin.im>
parents:
21231
diff
changeset
|
213 | #define PURPLE_REQUEST_UI_HINT_BLIST "blist" |
|
21231
92c0eaf32522
Document the UI hint defines and remove some bad ui_hint @param lines from
Richard Laager <rlaager@pidgin.im>
parents:
21225
diff
changeset
|
214 | |
|
92c0eaf32522
Document the UI hint defines and remove some bad ui_hint @param lines from
Richard Laager <rlaager@pidgin.im>
parents:
21225
diff
changeset
|
215 | /** |
|
92c0eaf32522
Document the UI hint defines and remove some bad ui_hint @param lines from
Richard Laager <rlaager@pidgin.im>
parents:
21225
diff
changeset
|
216 | * @since 2.3.0 |
|
92c0eaf32522
Document the UI hint defines and remove some bad ui_hint @param lines from
Richard Laager <rlaager@pidgin.im>
parents:
21225
diff
changeset
|
217 | */ |
|
21233
e75de8db4f2b
Re-namespace the #defines to all be PURPLE_REQUEST_UI_HINT_*. I see no
Richard Laager <rlaager@pidgin.im>
parents:
21231
diff
changeset
|
218 | #define PURPLE_REQUEST_UI_HINT_BUDDY "buddy" |
|
21231
92c0eaf32522
Document the UI hint defines and remove some bad ui_hint @param lines from
Richard Laager <rlaager@pidgin.im>
parents:
21225
diff
changeset
|
219 | |
|
92c0eaf32522
Document the UI hint defines and remove some bad ui_hint @param lines from
Richard Laager <rlaager@pidgin.im>
parents:
21225
diff
changeset
|
220 | /** |
|
92c0eaf32522
Document the UI hint defines and remove some bad ui_hint @param lines from
Richard Laager <rlaager@pidgin.im>
parents:
21225
diff
changeset
|
221 | * @since 2.3.0 |
|
92c0eaf32522
Document the UI hint defines and remove some bad ui_hint @param lines from
Richard Laager <rlaager@pidgin.im>
parents:
21225
diff
changeset
|
222 | */ |
|
21233
e75de8db4f2b
Re-namespace the #defines to all be PURPLE_REQUEST_UI_HINT_*. I see no
Richard Laager <rlaager@pidgin.im>
parents:
21231
diff
changeset
|
223 | #define PURPLE_REQUEST_UI_HINT_CONV "conversation" |
|
21231
92c0eaf32522
Document the UI hint defines and remove some bad ui_hint @param lines from
Richard Laager <rlaager@pidgin.im>
parents:
21225
diff
changeset
|
224 | |
|
92c0eaf32522
Document the UI hint defines and remove some bad ui_hint @param lines from
Richard Laager <rlaager@pidgin.im>
parents:
21225
diff
changeset
|
225 | /** |
|
92c0eaf32522
Document the UI hint defines and remove some bad ui_hint @param lines from
Richard Laager <rlaager@pidgin.im>
parents:
21225
diff
changeset
|
226 | * @since 2.3.0 |
|
92c0eaf32522
Document the UI hint defines and remove some bad ui_hint @param lines from
Richard Laager <rlaager@pidgin.im>
parents:
21225
diff
changeset
|
227 | */ |
|
21233
e75de8db4f2b
Re-namespace the #defines to all be PURPLE_REQUEST_UI_HINT_*. I see no
Richard Laager <rlaager@pidgin.im>
parents:
21231
diff
changeset
|
228 | #define PURPLE_REQUEST_UI_HINT_REGISTER "register-account" |
|
21225
32d8e16cb7a9
Converted string literal UI hints to #define-ed constants and fixed two cast-warnings in gtkblist.c
Gabriel Schulhof <nix@go-nix.ca>
parents:
21223
diff
changeset
|
229 | |
|
32d8e16cb7a9
Converted string literal UI hints to #define-ed constants and fixed two cast-warnings in gtkblist.c
Gabriel Schulhof <nix@go-nix.ca>
parents:
21223
diff
changeset
|
230 | /** |
|
21231
92c0eaf32522
Document the UI hint defines and remove some bad ui_hint @param lines from
Richard Laager <rlaager@pidgin.im>
parents:
21225
diff
changeset
|
231 | * @since 2.3.0 |
|
92c0eaf32522
Document the UI hint defines and remove some bad ui_hint @param lines from
Richard Laager <rlaager@pidgin.im>
parents:
21225
diff
changeset
|
232 | */ |
|
21233
e75de8db4f2b
Re-namespace the #defines to all be PURPLE_REQUEST_UI_HINT_*. I see no
Richard Laager <rlaager@pidgin.im>
parents:
21231
diff
changeset
|
233 | #define PURPLE_REQUEST_UI_HINT_XFER "xfer" |
|
21231
92c0eaf32522
Document the UI hint defines and remove some bad ui_hint @param lines from
Richard Laager <rlaager@pidgin.im>
parents:
21225
diff
changeset
|
234 | |
|
92c0eaf32522
Document the UI hint defines and remove some bad ui_hint @param lines from
Richard Laager <rlaager@pidgin.im>
parents:
21225
diff
changeset
|
235 | |
|
92c0eaf32522
Document the UI hint defines and remove some bad ui_hint @param lines from
Richard Laager <rlaager@pidgin.im>
parents:
21225
diff
changeset
|
236 | /* |
|
92c0eaf32522
Document the UI hint defines and remove some bad ui_hint @param lines from
Richard Laager <rlaager@pidgin.im>
parents:
21225
diff
changeset
|
237 | * UI hints for the request functions. These are common hints used by UIs. |
|
92c0eaf32522
Document the UI hint defines and remove some bad ui_hint @param lines from
Richard Laager <rlaager@pidgin.im>
parents:
21225
diff
changeset
|
238 | * UIs can still define any hints they like, but standardization is good. |
|
92c0eaf32522
Document the UI hint defines and remove some bad ui_hint @param lines from
Richard Laager <rlaager@pidgin.im>
parents:
21225
diff
changeset
|
239 | */ |
|
92c0eaf32522
Document the UI hint defines and remove some bad ui_hint @param lines from
Richard Laager <rlaager@pidgin.im>
parents:
21225
diff
changeset
|
240 | |
|
92c0eaf32522
Document the UI hint defines and remove some bad ui_hint @param lines from
Richard Laager <rlaager@pidgin.im>
parents:
21225
diff
changeset
|
241 | /** |
|
92c0eaf32522
Document the UI hint defines and remove some bad ui_hint @param lines from
Richard Laager <rlaager@pidgin.im>
parents:
21225
diff
changeset
|
242 | * @since 2.3.0 |
|
21225
32d8e16cb7a9
Converted string literal UI hints to #define-ed constants and fixed two cast-warnings in gtkblist.c
Gabriel Schulhof <nix@go-nix.ca>
parents:
21223
diff
changeset
|
243 | */ |
|
21233
e75de8db4f2b
Re-namespace the #defines to all be PURPLE_REQUEST_UI_HINT_*. I see no
Richard Laager <rlaager@pidgin.im>
parents:
21231
diff
changeset
|
244 | #define PURPLE_REQUEST_UI_HINT_ACCOUNTMGR "accountmgr" |
|
21231
92c0eaf32522
Document the UI hint defines and remove some bad ui_hint @param lines from
Richard Laager <rlaager@pidgin.im>
parents:
21225
diff
changeset
|
245 | |
|
92c0eaf32522
Document the UI hint defines and remove some bad ui_hint @param lines from
Richard Laager <rlaager@pidgin.im>
parents:
21225
diff
changeset
|
246 | /** |
|
92c0eaf32522
Document the UI hint defines and remove some bad ui_hint @param lines from
Richard Laager <rlaager@pidgin.im>
parents:
21225
diff
changeset
|
247 | * @since 2.3.0 |
|
92c0eaf32522
Document the UI hint defines and remove some bad ui_hint @param lines from
Richard Laager <rlaager@pidgin.im>
parents:
21225
diff
changeset
|
248 | */ |
|
21233
e75de8db4f2b
Re-namespace the #defines to all be PURPLE_REQUEST_UI_HINT_*. I see no
Richard Laager <rlaager@pidgin.im>
parents:
21231
diff
changeset
|
249 | #define PURPLE_REQUEST_UI_HINT_CERTMGR "certmgr" |
|
21231
92c0eaf32522
Document the UI hint defines and remove some bad ui_hint @param lines from
Richard Laager <rlaager@pidgin.im>
parents:
21225
diff
changeset
|
250 | |
|
92c0eaf32522
Document the UI hint defines and remove some bad ui_hint @param lines from
Richard Laager <rlaager@pidgin.im>
parents:
21225
diff
changeset
|
251 | /** |
|
92c0eaf32522
Document the UI hint defines and remove some bad ui_hint @param lines from
Richard Laager <rlaager@pidgin.im>
parents:
21225
diff
changeset
|
252 | * @since 2.3.0 |
|
92c0eaf32522
Document the UI hint defines and remove some bad ui_hint @param lines from
Richard Laager <rlaager@pidgin.im>
parents:
21225
diff
changeset
|
253 | */ |
|
21233
e75de8db4f2b
Re-namespace the #defines to all be PURPLE_REQUEST_UI_HINT_*. I see no
Richard Laager <rlaager@pidgin.im>
parents:
21231
diff
changeset
|
254 | #define PURPLE_REQUEST_UI_HINT_PLUGINMGR "pluginmgr" |
|
21231
92c0eaf32522
Document the UI hint defines and remove some bad ui_hint @param lines from
Richard Laager <rlaager@pidgin.im>
parents:
21225
diff
changeset
|
255 | |
|
92c0eaf32522
Document the UI hint defines and remove some bad ui_hint @param lines from
Richard Laager <rlaager@pidgin.im>
parents:
21225
diff
changeset
|
256 | /** |
|
92c0eaf32522
Document the UI hint defines and remove some bad ui_hint @param lines from
Richard Laager <rlaager@pidgin.im>
parents:
21225
diff
changeset
|
257 | * @since 2.3.0 |
|
92c0eaf32522
Document the UI hint defines and remove some bad ui_hint @param lines from
Richard Laager <rlaager@pidgin.im>
parents:
21225
diff
changeset
|
258 | */ |
|
21233
e75de8db4f2b
Re-namespace the #defines to all be PURPLE_REQUEST_UI_HINT_*. I see no
Richard Laager <rlaager@pidgin.im>
parents:
21231
diff
changeset
|
259 | #define PURPLE_REQUEST_UI_HINT_POUNCEMGR "pouncemgr" |
|
21231
92c0eaf32522
Document the UI hint defines and remove some bad ui_hint @param lines from
Richard Laager <rlaager@pidgin.im>
parents:
21225
diff
changeset
|
260 | |
|
92c0eaf32522
Document the UI hint defines and remove some bad ui_hint @param lines from
Richard Laager <rlaager@pidgin.im>
parents:
21225
diff
changeset
|
261 | /** |
|
92c0eaf32522
Document the UI hint defines and remove some bad ui_hint @param lines from
Richard Laager <rlaager@pidgin.im>
parents:
21225
diff
changeset
|
262 | * @since 2.3.0 |
|
92c0eaf32522
Document the UI hint defines and remove some bad ui_hint @param lines from
Richard Laager <rlaager@pidgin.im>
parents:
21225
diff
changeset
|
263 | */ |
|
21233
e75de8db4f2b
Re-namespace the #defines to all be PURPLE_REQUEST_UI_HINT_*. I see no
Richard Laager <rlaager@pidgin.im>
parents:
21231
diff
changeset
|
264 | #define PURPLE_REQUEST_UI_HINT_PREFSMGR "preferences" |
|
21231
92c0eaf32522
Document the UI hint defines and remove some bad ui_hint @param lines from
Richard Laager <rlaager@pidgin.im>
parents:
21225
diff
changeset
|
265 | |
|
92c0eaf32522
Document the UI hint defines and remove some bad ui_hint @param lines from
Richard Laager <rlaager@pidgin.im>
parents:
21225
diff
changeset
|
266 | /** |
|
92c0eaf32522
Document the UI hint defines and remove some bad ui_hint @param lines from
Richard Laager <rlaager@pidgin.im>
parents:
21225
diff
changeset
|
267 | * @since 2.3.0 |
|
92c0eaf32522
Document the UI hint defines and remove some bad ui_hint @param lines from
Richard Laager <rlaager@pidgin.im>
parents:
21225
diff
changeset
|
268 | */ |
|
21233
e75de8db4f2b
Re-namespace the #defines to all be PURPLE_REQUEST_UI_HINT_*. I see no
Richard Laager <rlaager@pidgin.im>
parents:
21231
diff
changeset
|
269 | #define PURPLE_REQUEST_UI_HINT_STATUSMGR "statusmgr" |
|
21225
32d8e16cb7a9
Converted string literal UI hints to #define-ed constants and fixed two cast-warnings in gtkblist.c
Gabriel Schulhof <nix@go-nix.ca>
parents:
21223
diff
changeset
|
270 | |
|
21231
92c0eaf32522
Document the UI hint defines and remove some bad ui_hint @param lines from
Richard Laager <rlaager@pidgin.im>
parents:
21225
diff
changeset
|
271 | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
272 | /** |
| 5477 | 273 | * Request UI operations. |
| 274 | */ | |
| 275 | typedef struct | |
| 276 | { | |
| 277 | void *(*request_input)(const char *title, const char *primary, | |
| 278 | const char *secondary, const char *default_value, | |
| 8697 | 279 | gboolean multiline, gboolean masked, gchar *hint, |
| 5477 | 280 | const char *ok_text, GCallback ok_cb, |
| 281 | const char *cancel_text, GCallback cancel_cb, | |
|
16490
68c22924d66b
Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evands@pidgin.im>
parents:
15884
diff
changeset
|
282 | PurpleAccount *account, const char *who, PurpleConversation *conv, |
| 19252 | 283 | const char *ui_hint, void *user_data); |
| 5477 | 284 | void *(*request_choice)(const char *title, const char *primary, |
|
19585
14b519abcc26
Fix some conversion warnings about using negative values with unsigned types. There are more, but these were easy fixes. You may think that I'm changing the API, but I'm really not - it was just wrong.
Daniel Atallah <datallah@pidgin.im>
parents:
18243
diff
changeset
|
285 | const char *secondary, int default_value, |
| 5477 | 286 | const char *ok_text, GCallback ok_cb, |
| 287 | const char *cancel_text, GCallback cancel_cb, | |
|
16490
68c22924d66b
Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evands@pidgin.im>
parents:
15884
diff
changeset
|
288 | PurpleAccount *account, const char *who, PurpleConversation *conv, |
| 19252 | 289 | const char *ui_hint, void *user_data, va_list choices); |
| 5477 | 290 | void *(*request_action)(const char *title, const char *primary, |
|
19585
14b519abcc26
Fix some conversion warnings about using negative values with unsigned types. There are more, but these were easy fixes. You may think that I'm changing the API, but I'm really not - it was just wrong.
Daniel Atallah <datallah@pidgin.im>
parents:
18243
diff
changeset
|
291 | const char *secondary, int default_action, |
|
16490
68c22924d66b
Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evands@pidgin.im>
parents:
15884
diff
changeset
|
292 | PurpleAccount *account, const char *who, PurpleConversation *conv, |
| 19252 | 293 | const char *ui_hint, void *user_data, size_t action_count, |
|
5496
ed995be89052
[gaim-migrate @ 5892]
Christian Hammond <chipx86@chipx86.com>
parents:
5482
diff
changeset
|
294 | va_list actions); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
295 | void *(*request_fields)(const char *title, const char *primary, |
| 15884 | 296 | const char *secondary, PurpleRequestFields *fields, |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
297 | const char *ok_text, GCallback ok_cb, |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
298 | const char *cancel_text, GCallback cancel_cb, |
|
16490
68c22924d66b
Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evands@pidgin.im>
parents:
15884
diff
changeset
|
299 | PurpleAccount *account, const char *who, PurpleConversation *conv, |
| 19252 | 300 | const char *ui_hint, void *user_data); |
|
8843
944c71cc01af
[gaim-migrate @ 9610]
Pekka Riikonen <priikone@silcnet.org>
parents:
8735
diff
changeset
|
301 | void *(*request_file)(const char *title, const char *filename, |
|
16490
68c22924d66b
Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evands@pidgin.im>
parents:
15884
diff
changeset
|
302 | gboolean savedialog, GCallback ok_cb, GCallback cancel_cb, |
|
68c22924d66b
Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evands@pidgin.im>
parents:
15884
diff
changeset
|
303 | PurpleAccount *account, const char *who, PurpleConversation *conv, |
| 19252 | 304 | const char *ui_hint, void *user_data); |
| 15884 | 305 | void (*close_request)(PurpleRequestType type, void *ui_handle); |
|
13283
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
306 | void *(*request_folder)(const char *title, const char *dirname, |
|
16490
68c22924d66b
Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evands@pidgin.im>
parents:
15884
diff
changeset
|
307 | GCallback ok_cb, GCallback cancel_cb, |
|
68c22924d66b
Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evands@pidgin.im>
parents:
15884
diff
changeset
|
308 | PurpleAccount *account, const char *who, PurpleConversation *conv, |
| 19252 | 309 | const char *ui_hint, 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
|
310 | |
|
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
16613
diff
changeset
|
311 | 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
|
312 | 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
|
313 | void (*_purple_reserved3)(void); |
|
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
16613
diff
changeset
|
314 | void (*_purple_reserved4)(void); |
| 15884 | 315 | } PurpleRequestUiOps; |
| 5477 | 316 | |
| 15884 | 317 | typedef void (*PurpleRequestInputCb)(void *, const char *); |
| 318 | typedef void (*PurpleRequestActionCb)(void *, int); | |
| 319 | typedef void (*PurpleRequestChoiceCb)(void *, int); | |
| 320 | typedef void (*PurpleRequestFieldsCb)(void *, PurpleRequestFields *fields); | |
| 321 | typedef void (*PurpleRequestFileCb)(void *, const char *filename); | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
322 | |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5809
diff
changeset
|
323 | #ifdef __cplusplus |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5809
diff
changeset
|
324 | extern "C" { |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5809
diff
changeset
|
325 | #endif |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5809
diff
changeset
|
326 | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
327 | /**************************************************************************/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
328 | /** @name Field List API */ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
329 | /**************************************************************************/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
330 | /*@{*/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
331 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
332 | /** |
| 15884 | 333 | * 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
|
334 | * |
| 15884 | 335 | * @return A PurpleRequestFields structure. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
336 | */ |
| 15884 | 337 | PurpleRequestFields *purple_request_fields_new(void); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
338 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
339 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
340 | * Destroys a list of fields. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
341 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
342 | * @param fields The list of fields to destroy. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
343 | */ |
| 15884 | 344 | void purple_request_fields_destroy(PurpleRequestFields *fields); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
345 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
346 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
347 | * Adds a group of fields to the list. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
348 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
349 | * @param fields The fields list. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
350 | * @param group The group to add. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
351 | */ |
| 15884 | 352 | void purple_request_fields_add_group(PurpleRequestFields *fields, |
| 353 | PurpleRequestFieldGroup *group); | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
354 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
355 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
356 | * Returns a list of all groups in a field list. |
|
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 | * @param fields The fields list. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
359 | * |
|
20971
b5e1eb080f33
Replace a bunch of @return markers with @constreturn markers. I believe these
Etan Reisner <deryni@pidgin.im>
parents:
20147
diff
changeset
|
360 | * @constreturn A list of groups. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
361 | */ |
| 15884 | 362 | GList *purple_request_fields_get_groups(const PurpleRequestFields *fields); |
|
5807
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 | /** |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
365 | * Returns whether or not the field with the specified ID exists. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
366 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
367 | * @param fields The fields list. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
368 | * @param id The ID of the field. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
369 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
370 | * @return TRUE if the field exists, or FALSE. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
371 | */ |
| 15884 | 372 | gboolean purple_request_fields_exists(const PurpleRequestFields *fields, |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
373 | const char *id); |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
374 | |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
375 | /** |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
376 | * Returns a list of all required fields. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
377 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
378 | * @param fields The fields list. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
379 | * |
|
18190
bcf28ef7e8ff
Re-fix the DBus list handling code by killing const GList* / const GSList*
Richard Laager <rlaager@pidgin.im>
parents:
16743
diff
changeset
|
380 | * @constreturn The list of required fields. |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
381 | */ |
|
18190
bcf28ef7e8ff
Re-fix the DBus list handling code by killing const GList* / const GSList*
Richard Laager <rlaager@pidgin.im>
parents:
16743
diff
changeset
|
382 | GList *purple_request_fields_get_required(const PurpleRequestFields *fields); |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
383 | |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
384 | /** |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
385 | * 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
|
386 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
387 | * @param fields The fields list. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
388 | * @param id The field ID. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
389 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
390 | * @return TRUE if the specified field is required, or FALSE. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
391 | */ |
| 15884 | 392 | gboolean purple_request_fields_is_field_required(const PurpleRequestFields *fields, |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
393 | const char *id); |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
394 | |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
395 | /** |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
396 | * Returns whether or not all required fields have values. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
397 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
398 | * @param fields The fields list. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
399 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
400 | * @return TRUE if all required fields have values, or FALSE. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
401 | */ |
| 15884 | 402 | gboolean purple_request_fields_all_required_filled( |
| 403 | const PurpleRequestFields *fields); | |
|
8286
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 | /** |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
406 | * Return the field with the specified ID. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
407 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
408 | * @param fields The fields list. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
409 | * @param id The ID of the field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
410 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
411 | * @return The field, if found. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
412 | */ |
| 15884 | 413 | PurpleRequestField *purple_request_fields_get_field( |
| 414 | const PurpleRequestFields *fields, const char *id); | |
|
5807
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 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
417 | * Returns the string value of a field with the specified ID. |
|
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 | * @param fields The fields list. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
420 | * @param id The ID of the field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
421 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
422 | * @return The string value, if found, or @c NULL otherwise. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
423 | */ |
| 15884 | 424 | const char *purple_request_fields_get_string(const PurpleRequestFields *fields, |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
425 | const char *id); |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
426 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
427 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
428 | * Returns the integer value of a field with the specified ID. |
|
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 | * @param fields The fields list. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
431 | * @param id The ID of the field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
432 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
433 | * @return The integer value, if found, or 0 otherwise. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
434 | */ |
| 15884 | 435 | int purple_request_fields_get_integer(const PurpleRequestFields *fields, |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
436 | const char *id); |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
437 | |
|
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 | * Returns the boolean value of a field with the specified ID. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
440 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
441 | * @param fields The fields list. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
442 | * @param id The ID of the field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
443 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
444 | * @return The boolean value, if found, or @c FALSE otherwise. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
445 | */ |
| 15884 | 446 | gboolean purple_request_fields_get_bool(const PurpleRequestFields *fields, |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
447 | const char *id); |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
448 | |
|
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 | * Returns the choice index of a field with the specified ID. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
451 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
452 | * @param fields The fields list. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
453 | * @param id The ID of the field. |
|
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 | * @return The choice index, if found, or -1 otherwise. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
456 | */ |
| 15884 | 457 | int purple_request_fields_get_choice(const PurpleRequestFields *fields, |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
458 | const char *id); |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
459 | |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
460 | /** |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
461 | * Returns the account of a field with the specified ID. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
462 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
463 | * @param fields The fields list. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
464 | * @param id The ID of the field. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
465 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
466 | * @return The account value, if found, or NULL otherwise. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
467 | */ |
| 15884 | 468 | PurpleAccount *purple_request_fields_get_account(const PurpleRequestFields *fields, |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
469 | const char *id); |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
470 | |
|
5807
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 | /**************************************************************************/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
474 | /** @name Fields Group API */ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
475 | /**************************************************************************/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
476 | /*@{*/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
477 | |
|
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 | * Creates a fields group with an optional title. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
480 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
481 | * @param title The optional title to give the group. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
482 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
483 | * @return A new fields group |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
484 | */ |
| 15884 | 485 | PurpleRequestFieldGroup *purple_request_field_group_new(const char *title); |
|
5807
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 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
488 | * Destroys a fields group. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
489 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
490 | * @param group The group to destroy. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
491 | */ |
| 15884 | 492 | void purple_request_field_group_destroy(PurpleRequestFieldGroup *group); |
|
5807
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 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
495 | * Adds a field to the group. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
496 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
497 | * @param group The group to add the field to. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
498 | * @param field The field to add to the group. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
499 | */ |
| 15884 | 500 | void purple_request_field_group_add_field(PurpleRequestFieldGroup *group, |
| 501 | PurpleRequestField *field); | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
502 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
503 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
504 | * Returns the title of a fields group. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
505 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
506 | * @param group The group. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
507 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
508 | * @return The title, if set. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
509 | */ |
| 15884 | 510 | const char *purple_request_field_group_get_title( |
| 511 | const PurpleRequestFieldGroup *group); | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
512 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
513 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
514 | * Returns a list of all fields in a group. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
515 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
516 | * @param group The group. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
517 | * |
|
20971
b5e1eb080f33
Replace a bunch of @return markers with @constreturn markers. I believe these
Etan Reisner <deryni@pidgin.im>
parents:
20147
diff
changeset
|
518 | * @constreturn The list of fields in the group. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
519 | */ |
| 15884 | 520 | GList *purple_request_field_group_get_fields( |
| 521 | const PurpleRequestFieldGroup *group); | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
522 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
523 | /*@}*/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
524 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
525 | /**************************************************************************/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
526 | /** @name Field API */ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
527 | /**************************************************************************/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
528 | /*@{*/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
529 | |
|
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 | * Creates a field of the specified type. |
|
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 | * @param id The field ID. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
534 | * @param text The text label of the field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
535 | * @param type The type of field. |
|
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 | * @return The new field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
538 | */ |
| 15884 | 539 | PurpleRequestField *purple_request_field_new(const char *id, const char *text, |
| 540 | PurpleRequestFieldType type); | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
541 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
542 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
543 | * Destroys a field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
544 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
545 | * @param field The field to destroy. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
546 | */ |
| 15884 | 547 | void purple_request_field_destroy(PurpleRequestField *field); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
548 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
549 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
550 | * Sets the label text of a field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
551 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
552 | * @param field The field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
553 | * @param label The text label. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
554 | */ |
| 15884 | 555 | 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
|
556 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
557 | /** |
|
7904
266d6d5c68ac
[gaim-migrate @ 8564]
Christian Hammond <chipx86@chipx86.com>
parents:
7902
diff
changeset
|
558 | * Sets whether or not a field is visible. |
|
266d6d5c68ac
[gaim-migrate @ 8564]
Christian Hammond <chipx86@chipx86.com>
parents:
7902
diff
changeset
|
559 | * |
|
8285
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
560 | * @param field The field. |
|
7904
266d6d5c68ac
[gaim-migrate @ 8564]
Christian Hammond <chipx86@chipx86.com>
parents:
7902
diff
changeset
|
561 | * @param visible TRUE if visible, or FALSE if not. |
|
266d6d5c68ac
[gaim-migrate @ 8564]
Christian Hammond <chipx86@chipx86.com>
parents:
7902
diff
changeset
|
562 | */ |
| 15884 | 563 | void purple_request_field_set_visible(PurpleRequestField *field, gboolean visible); |
|
7904
266d6d5c68ac
[gaim-migrate @ 8564]
Christian Hammond <chipx86@chipx86.com>
parents:
7902
diff
changeset
|
564 | |
|
266d6d5c68ac
[gaim-migrate @ 8564]
Christian Hammond <chipx86@chipx86.com>
parents:
7902
diff
changeset
|
565 | /** |
|
8285
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
566 | * Sets the type hint for the field. |
|
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
567 | * |
|
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
568 | * 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
|
569 | * auto-completion for type hints like "account" and "screenname". |
|
8285
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
570 | * |
|
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
571 | * @param field The field. |
|
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
572 | * @param type_hint The type hint. |
|
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
573 | */ |
| 15884 | 574 | void purple_request_field_set_type_hint(PurpleRequestField *field, |
|
8285
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
575 | const char *type_hint); |
|
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
576 | |
|
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
577 | /** |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
578 | * Sets whether or not a field is required. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
579 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
580 | * @param field The field. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
581 | * @param required TRUE if required, or FALSE. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
582 | */ |
| 15884 | 583 | void purple_request_field_set_required(PurpleRequestField *field, |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
584 | gboolean required); |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
585 | |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
586 | /** |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
587 | * Returns the type of a field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
588 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
589 | * @param field The field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
590 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
591 | * @return The field's type. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
592 | */ |
| 15884 | 593 | PurpleRequestFieldType purple_request_field_get_type(const PurpleRequestField *field); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
594 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
595 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
596 | * Returns the ID of a field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
597 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
598 | * @param field The field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
599 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
600 | * @return The ID |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
601 | */ |
| 15884 | 602 | const char *purple_request_field_get_id(const PurpleRequestField *field); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
603 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
604 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
605 | * Returns the label text of a field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
606 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
607 | * @param field The field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
608 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
609 | * @return The label text. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
610 | */ |
| 15884 | 611 | const char *purple_request_field_get_label(const PurpleRequestField *field); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
612 | |
|
7904
266d6d5c68ac
[gaim-migrate @ 8564]
Christian Hammond <chipx86@chipx86.com>
parents:
7902
diff
changeset
|
613 | /** |
|
266d6d5c68ac
[gaim-migrate @ 8564]
Christian Hammond <chipx86@chipx86.com>
parents:
7902
diff
changeset
|
614 | * Returns whether or not a field is visible. |
|
266d6d5c68ac
[gaim-migrate @ 8564]
Christian Hammond <chipx86@chipx86.com>
parents:
7902
diff
changeset
|
615 | * |
|
266d6d5c68ac
[gaim-migrate @ 8564]
Christian Hammond <chipx86@chipx86.com>
parents:
7902
diff
changeset
|
616 | * @param field The field. |
|
266d6d5c68ac
[gaim-migrate @ 8564]
Christian Hammond <chipx86@chipx86.com>
parents:
7902
diff
changeset
|
617 | * |
|
266d6d5c68ac
[gaim-migrate @ 8564]
Christian Hammond <chipx86@chipx86.com>
parents:
7902
diff
changeset
|
618 | * @return TRUE if the field is visible. FALSE otherwise. |
|
266d6d5c68ac
[gaim-migrate @ 8564]
Christian Hammond <chipx86@chipx86.com>
parents:
7902
diff
changeset
|
619 | */ |
| 15884 | 620 | gboolean purple_request_field_is_visible(const PurpleRequestField *field); |
|
7904
266d6d5c68ac
[gaim-migrate @ 8564]
Christian Hammond <chipx86@chipx86.com>
parents:
7902
diff
changeset
|
621 | |
|
8285
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
622 | /** |
|
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
623 | * Returns the field's type hint. |
|
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
624 | * |
|
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
625 | * @param field The field. |
|
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
626 | * |
|
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
627 | * @return The field's type hint. |
|
22b999a12246
[gaim-migrate @ 9009]
Christian Hammond <chipx86@chipx86.com>
parents:
8046
diff
changeset
|
628 | */ |
| 15884 | 629 | 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
|
630 | |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
631 | /** |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
632 | * Returns whether or not a field is required. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
633 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
634 | * @param field The field. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
635 | * |
|
8735
01248ea222d3
[gaim-migrate @ 9490]
Jonathan Champ <royanee@users.sourceforge.net>
parents:
8699
diff
changeset
|
636 | * @return TRUE if the field is required, or FALSE. |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
637 | */ |
| 15884 | 638 | gboolean purple_request_field_is_required(const PurpleRequestField *field); |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
639 | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
640 | /*@}*/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
641 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
642 | /**************************************************************************/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
643 | /** @name String Field API */ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
644 | /**************************************************************************/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
645 | /*@{*/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
646 | |
|
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 | * Creates a string request field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
649 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
650 | * @param id The field ID. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
651 | * @param text The text label of the field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
652 | * @param default_value The optional default value. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
653 | * @param multiline Whether or not this should be a multiline string. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
654 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
655 | * @return The new field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
656 | */ |
| 15884 | 657 | PurpleRequestField *purple_request_field_string_new(const char *id, |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
658 | const char *text, |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
659 | const char *default_value, |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
660 | gboolean multiline); |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
661 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
662 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
663 | * Sets the default value in a string field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
664 | * |
|
5808
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
665 | * @param field The field. |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
666 | * @param default_value The default value. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
667 | */ |
| 15884 | 668 | void purple_request_field_string_set_default_value(PurpleRequestField *field, |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
669 | const char *default_value); |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
670 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
671 | /** |
|
5808
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
672 | * Sets the value in a string field. |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
673 | * |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
674 | * @param field The field. |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
675 | * @param value The value. |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
676 | */ |
| 15884 | 677 | void purple_request_field_string_set_value(PurpleRequestField *field, |
|
5808
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
678 | const char *value); |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
679 | |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
680 | /** |
|
7047
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
681 | * Sets whether or not a string field is masked |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
682 | * (commonly used for password fields). |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
683 | * |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
684 | * @param field The field. |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
685 | * @param masked The masked value. |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
686 | */ |
| 15884 | 687 | void purple_request_field_string_set_masked(PurpleRequestField *field, |
|
7047
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
688 | gboolean masked); |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
689 | |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
690 | /** |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
691 | * Sets whether or not a string field is editable. |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
692 | * |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
693 | * @param field The field. |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
694 | * @param editable The editable value. |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
695 | */ |
| 15884 | 696 | void purple_request_field_string_set_editable(PurpleRequestField *field, |
|
7047
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
697 | gboolean editable); |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
698 | |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
699 | /** |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
700 | * Returns the default value in a string field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
701 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
702 | * @param field The field. |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
703 | * |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
704 | * @return The default value. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
705 | */ |
| 15884 | 706 | const char *purple_request_field_string_get_default_value( |
| 707 | const PurpleRequestField *field); | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
708 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
709 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
710 | * Returns the user-entered value in a string field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
711 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
712 | * @param field The field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
713 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
714 | * @return The value. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
715 | */ |
| 15884 | 716 | 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
|
717 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
718 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
719 | * Returns whether or not a string field is multi-line. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
720 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
721 | * @param field The field. |
|
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 | * @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
|
724 | */ |
| 15884 | 725 | gboolean purple_request_field_string_is_multiline(const PurpleRequestField *field); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
726 | |
|
7047
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
727 | /** |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
728 | * Returns whether or not a string field is masked. |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
729 | * |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
730 | * @param field The field. |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
731 | * |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
732 | * @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
|
733 | */ |
| 15884 | 734 | gboolean purple_request_field_string_is_masked(const PurpleRequestField *field); |
|
7047
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
735 | |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
736 | /** |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
737 | * Returns whether or not a string field is editable. |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
738 | * |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
739 | * @param field The field. |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
740 | * |
|
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
741 | * @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
|
742 | */ |
| 15884 | 743 | gboolean purple_request_field_string_is_editable(const PurpleRequestField *field); |
|
7047
0cefcbc12508
[gaim-migrate @ 7610]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
744 | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
745 | /*@}*/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
746 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
747 | /**************************************************************************/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
748 | /** @name Integer Field API */ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
749 | /**************************************************************************/ |
|
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 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
752 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
753 | * Creates an integer field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
754 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
755 | * @param id The field ID. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
756 | * @param text The text label of the field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
757 | * @param default_value The default value. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
758 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
759 | * @return The new field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
760 | */ |
| 15884 | 761 | PurpleRequestField *purple_request_field_int_new(const char *id, |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
762 | const char *text, |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
763 | int default_value); |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
764 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
765 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
766 | * Sets the default value in an integer field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
767 | * |
|
5808
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
768 | * @param field The field. |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
769 | * @param default_value The default value. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
770 | */ |
| 15884 | 771 | void purple_request_field_int_set_default_value(PurpleRequestField *field, |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
772 | int default_value); |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
773 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
774 | /** |
|
5808
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
775 | * Sets the value in an integer field. |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
776 | * |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
777 | * @param field The field. |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
778 | * @param value The value. |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
779 | */ |
| 15884 | 780 | 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
|
781 | |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
782 | /** |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
783 | * Returns the default value in an integer field. |
|
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 | * @param field The field. |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
786 | * |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
787 | * @return The default value. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
788 | */ |
| 15884 | 789 | 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
|
790 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
791 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
792 | * Returns the user-entered value in an integer field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
793 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
794 | * @param field The field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
795 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
796 | * @return The value. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
797 | */ |
| 15884 | 798 | int purple_request_field_int_get_value(const PurpleRequestField *field); |
|
5807
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 | /*@}*/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
801 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
802 | /**************************************************************************/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
803 | /** @name Boolean Field API */ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
804 | /**************************************************************************/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
805 | /*@{*/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
806 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
807 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
808 | * Creates a boolean field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
809 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
810 | * This is often represented as a checkbox. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
811 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
812 | * @param id The field ID. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
813 | * @param text The text label of the field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
814 | * @param default_value The default value. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
815 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
816 | * @return The new field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
817 | */ |
| 15884 | 818 | PurpleRequestField *purple_request_field_bool_new(const char *id, |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
819 | const char *text, |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
820 | gboolean default_value); |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
821 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
822 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
823 | * Sets the default value in an boolean field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
824 | * |
|
6720
cdc5348dd848
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6035
diff
changeset
|
825 | * @param field The field. |
|
cdc5348dd848
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6035
diff
changeset
|
826 | * @param default_value The default value. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
827 | */ |
| 15884 | 828 | void purple_request_field_bool_set_default_value(PurpleRequestField *field, |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
829 | gboolean default_value); |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
830 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
831 | /** |
|
5808
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
832 | * Sets the value in an boolean field. |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
833 | * |
|
6720
cdc5348dd848
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6035
diff
changeset
|
834 | * @param field The field. |
|
cdc5348dd848
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6035
diff
changeset
|
835 | * @param value The value. |
|
5808
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
836 | */ |
| 15884 | 837 | void purple_request_field_bool_set_value(PurpleRequestField *field, |
|
5808
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
838 | gboolean value); |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
839 | |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
840 | /** |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
841 | * Returns the default value in an boolean field. |
|
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 | * @param field The field. |
|
6720
cdc5348dd848
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6035
diff
changeset
|
844 | * |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
845 | * @return The default value. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
846 | */ |
| 15884 | 847 | gboolean purple_request_field_bool_get_default_value( |
| 848 | const PurpleRequestField *field); | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
849 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
850 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
851 | * Returns the user-entered value in an boolean field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
852 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
853 | * @param field The field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
854 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
855 | * @return The value. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
856 | */ |
| 15884 | 857 | gboolean purple_request_field_bool_get_value(const PurpleRequestField *field); |
|
5807
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 | /*@}*/ |
|
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 | /**************************************************************************/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
862 | /** @name Choice Field API */ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
863 | /**************************************************************************/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
864 | /*@{*/ |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
865 | |
|
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 | * Creates a multiple choice field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
868 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
869 | * This is often represented as a group of radio buttons. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
870 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
871 | * @param id The field ID. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
872 | * @param text The optional label of the field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
873 | * @param default_value The default choice. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
874 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
875 | * @return The new field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
876 | */ |
| 15884 | 877 | PurpleRequestField *purple_request_field_choice_new(const char *id, |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
878 | const char *text, |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
879 | int default_value); |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
880 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
881 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
882 | * Adds a choice to a multiple choice field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
883 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
884 | * @param field The choice field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
885 | * @param label The choice label. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
886 | */ |
| 15884 | 887 | void purple_request_field_choice_add(PurpleRequestField *field, |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
888 | const char *label); |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
889 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
890 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
891 | * Sets the default value in an choice field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
892 | * |
|
5808
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
893 | * @param field The field. |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
894 | * @param default_value The default value. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
895 | */ |
| 15884 | 896 | void purple_request_field_choice_set_default_value(PurpleRequestField *field, |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
897 | int default_value); |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
898 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
899 | /** |
|
5808
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
900 | * Sets the value in an choice field. |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
901 | * |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
902 | * @param field The field. |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
903 | * @param value The value. |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
904 | */ |
| 15884 | 905 | 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
|
906 | |
|
480370b3188c
[gaim-migrate @ 6238]
Christian Hammond <chipx86@chipx86.com>
parents:
5807
diff
changeset
|
907 | /** |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
908 | * Returns the default value in an choice field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
909 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
910 | * @param field The field. |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
911 | * |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
912 | * @return The default value. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
913 | */ |
| 15884 | 914 | 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
|
915 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
916 | /** |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
917 | * Returns the user-entered value in an choice field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
918 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
919 | * @param field The field. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
920 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
921 | * @return The value. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
922 | */ |
| 15884 | 923 | int purple_request_field_choice_get_value(const PurpleRequestField *field); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
924 | |
|
5809
3550646492e0
[gaim-migrate @ 6239]
Christian Hammond <chipx86@chipx86.com>
parents:
5808
diff
changeset
|
925 | /** |
|
3550646492e0
[gaim-migrate @ 6239]
Christian Hammond <chipx86@chipx86.com>
parents:
5808
diff
changeset
|
926 | * Returns a list of labels in a choice field. |
|
3550646492e0
[gaim-migrate @ 6239]
Christian Hammond <chipx86@chipx86.com>
parents:
5808
diff
changeset
|
927 | * |
|
3550646492e0
[gaim-migrate @ 6239]
Christian Hammond <chipx86@chipx86.com>
parents:
5808
diff
changeset
|
928 | * @param field The field. |
|
3550646492e0
[gaim-migrate @ 6239]
Christian Hammond <chipx86@chipx86.com>
parents:
5808
diff
changeset
|
929 | * |
|
20971
b5e1eb080f33
Replace a bunch of @return markers with @constreturn markers. I believe these
Etan Reisner <deryni@pidgin.im>
parents:
20147
diff
changeset
|
930 | * @constreturn The list of labels. |
|
5809
3550646492e0
[gaim-migrate @ 6239]
Christian Hammond <chipx86@chipx86.com>
parents:
5808
diff
changeset
|
931 | */ |
| 15884 | 932 | GList *purple_request_field_choice_get_labels(const PurpleRequestField *field); |
|
5809
3550646492e0
[gaim-migrate @ 6239]
Christian Hammond <chipx86@chipx86.com>
parents:
5808
diff
changeset
|
933 | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
934 | /*@}*/ |
|
5482
6831f83bfae5
[gaim-migrate @ 5878]
Christian Hammond <chipx86@chipx86.com>
parents:
5477
diff
changeset
|
935 | |
| 5477 | 936 | /**************************************************************************/ |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
937 | /** @name List Field API */ |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
938 | /**************************************************************************/ |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
939 | /*@{*/ |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
940 | |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
941 | /** |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
942 | * Creates a multiple list item field. |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
943 | * |
|
7909
f2b88b6b97a7
[gaim-migrate @ 8569]
Christian Hammond <chipx86@chipx86.com>
parents:
7905
diff
changeset
|
944 | * @param id The field ID. |
|
f2b88b6b97a7
[gaim-migrate @ 8569]
Christian Hammond <chipx86@chipx86.com>
parents:
7905
diff
changeset
|
945 | * @param text The optional label of the field. |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
946 | * |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
947 | * @return The new field. |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
948 | */ |
| 15884 | 949 | 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
|
950 | |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
951 | /** |
|
7899
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
952 | * Sets whether or not a list field allows multiple selection. |
|
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
953 | * |
|
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
954 | * @param field The list field. |
|
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
955 | * @param multi_select TRUE if multiple selection is enabled, |
|
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
956 | * or FALSE otherwise. |
|
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
957 | */ |
| 15884 | 958 | void purple_request_field_list_set_multi_select(PurpleRequestField *field, |
|
7899
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
959 | gboolean multi_select); |
|
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
960 | |
|
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
961 | /** |
|
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
962 | * Returns whether or not a list field allows multiple selection. |
|
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
963 | * |
|
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
964 | * @param field The list field. |
|
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
965 | * |
|
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
966 | * @return TRUE if multiple selection is enabled, or FALSE otherwise. |
|
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
967 | */ |
| 15884 | 968 | gboolean purple_request_field_list_get_multi_select( |
| 969 | const PurpleRequestField *field); | |
|
7899
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
970 | |
|
b908d0b9035a
[gaim-migrate @ 8559]
Christian Hammond <chipx86@chipx86.com>
parents:
7898
diff
changeset
|
971 | /** |
|
7909
f2b88b6b97a7
[gaim-migrate @ 8569]
Christian Hammond <chipx86@chipx86.com>
parents:
7905
diff
changeset
|
972 | * Returns the data for a particular item. |
|
f2b88b6b97a7
[gaim-migrate @ 8569]
Christian Hammond <chipx86@chipx86.com>
parents:
7905
diff
changeset
|
973 | * |
|
f2b88b6b97a7
[gaim-migrate @ 8569]
Christian Hammond <chipx86@chipx86.com>
parents:
7905
diff
changeset
|
974 | * @param field The list field. |
| 9000 | 975 | * @param text The item text. |
|
7909
f2b88b6b97a7
[gaim-migrate @ 8569]
Christian Hammond <chipx86@chipx86.com>
parents:
7905
diff
changeset
|
976 | * |
|
f2b88b6b97a7
[gaim-migrate @ 8569]
Christian Hammond <chipx86@chipx86.com>
parents:
7905
diff
changeset
|
977 | * @return The data associated with the item. |
|
f2b88b6b97a7
[gaim-migrate @ 8569]
Christian Hammond <chipx86@chipx86.com>
parents:
7905
diff
changeset
|
978 | */ |
| 15884 | 979 | void *purple_request_field_list_get_data(const PurpleRequestField *field, |
|
7909
f2b88b6b97a7
[gaim-migrate @ 8569]
Christian Hammond <chipx86@chipx86.com>
parents:
7905
diff
changeset
|
980 | const char *text); |
|
f2b88b6b97a7
[gaim-migrate @ 8569]
Christian Hammond <chipx86@chipx86.com>
parents:
7905
diff
changeset
|
981 | |
|
f2b88b6b97a7
[gaim-migrate @ 8569]
Christian Hammond <chipx86@chipx86.com>
parents:
7905
diff
changeset
|
982 | /** |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
983 | * Adds an item to a list field. |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
984 | * |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
985 | * @param field The list field. |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
986 | * @param item The list item. |
|
7909
f2b88b6b97a7
[gaim-migrate @ 8569]
Christian Hammond <chipx86@chipx86.com>
parents:
7905
diff
changeset
|
987 | * @param data The associated data. |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
988 | */ |
| 15884 | 989 | void purple_request_field_list_add(PurpleRequestField *field, |
|
7909
f2b88b6b97a7
[gaim-migrate @ 8569]
Christian Hammond <chipx86@chipx86.com>
parents:
7905
diff
changeset
|
990 | const char *item, void *data); |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
991 | |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
992 | /** |
|
7902
6c04e5d38897
[gaim-migrate @ 8562]
Christian Hammond <chipx86@chipx86.com>
parents:
7901
diff
changeset
|
993 | * Adds a selected item to the list field. |
|
6c04e5d38897
[gaim-migrate @ 8562]
Christian Hammond <chipx86@chipx86.com>
parents:
7901
diff
changeset
|
994 | * |
|
6c04e5d38897
[gaim-migrate @ 8562]
Christian Hammond <chipx86@chipx86.com>
parents:
7901
diff
changeset
|
995 | * @param field The field. |
|
6c04e5d38897
[gaim-migrate @ 8562]
Christian Hammond <chipx86@chipx86.com>
parents:
7901
diff
changeset
|
996 | * @param item The item to add. |
|
6c04e5d38897
[gaim-migrate @ 8562]
Christian Hammond <chipx86@chipx86.com>
parents:
7901
diff
changeset
|
997 | */ |
| 15884 | 998 | void purple_request_field_list_add_selected(PurpleRequestField *field, |
|
7902
6c04e5d38897
[gaim-migrate @ 8562]
Christian Hammond <chipx86@chipx86.com>
parents:
7901
diff
changeset
|
999 | const char *item); |
|
6c04e5d38897
[gaim-migrate @ 8562]
Christian Hammond <chipx86@chipx86.com>
parents:
7901
diff
changeset
|
1000 | |
|
6c04e5d38897
[gaim-migrate @ 8562]
Christian Hammond <chipx86@chipx86.com>
parents:
7901
diff
changeset
|
1001 | /** |
|
6c04e5d38897
[gaim-migrate @ 8562]
Christian Hammond <chipx86@chipx86.com>
parents:
7901
diff
changeset
|
1002 | * Clears the list of selected items in a list field. |
|
6c04e5d38897
[gaim-migrate @ 8562]
Christian Hammond <chipx86@chipx86.com>
parents:
7901
diff
changeset
|
1003 | * |
|
6c04e5d38897
[gaim-migrate @ 8562]
Christian Hammond <chipx86@chipx86.com>
parents:
7901
diff
changeset
|
1004 | * @param field The field. |
|
6c04e5d38897
[gaim-migrate @ 8562]
Christian Hammond <chipx86@chipx86.com>
parents:
7901
diff
changeset
|
1005 | */ |
| 15884 | 1006 | void purple_request_field_list_clear_selected(PurpleRequestField *field); |
|
7902
6c04e5d38897
[gaim-migrate @ 8562]
Christian Hammond <chipx86@chipx86.com>
parents:
7901
diff
changeset
|
1007 | |
|
6c04e5d38897
[gaim-migrate @ 8562]
Christian Hammond <chipx86@chipx86.com>
parents:
7901
diff
changeset
|
1008 | /** |
|
7901
f09d051b649d
[gaim-migrate @ 8561]
Christian Hammond <chipx86@chipx86.com>
parents:
7899
diff
changeset
|
1009 | * Sets a list of selected items in a list field. |
|
f09d051b649d
[gaim-migrate @ 8561]
Christian Hammond <chipx86@chipx86.com>
parents:
7899
diff
changeset
|
1010 | * |
|
f09d051b649d
[gaim-migrate @ 8561]
Christian Hammond <chipx86@chipx86.com>
parents:
7899
diff
changeset
|
1011 | * @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
|
1012 | * @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
|
1013 | */ |
| 15884 | 1014 | 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
|
1015 | GList *items); |
|
7901
f09d051b649d
[gaim-migrate @ 8561]
Christian Hammond <chipx86@chipx86.com>
parents:
7899
diff
changeset
|
1016 | |
|
f09d051b649d
[gaim-migrate @ 8561]
Christian Hammond <chipx86@chipx86.com>
parents:
7899
diff
changeset
|
1017 | /** |
|
7964
10d58eb8a16a
[gaim-migrate @ 8641]
Christian Hammond <chipx86@chipx86.com>
parents:
7963
diff
changeset
|
1018 | * 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
|
1019 | * |
|
10d58eb8a16a
[gaim-migrate @ 8641]
Christian Hammond <chipx86@chipx86.com>
parents:
7963
diff
changeset
|
1020 | * @param field The field. |
|
10d58eb8a16a
[gaim-migrate @ 8641]
Christian Hammond <chipx86@chipx86.com>
parents:
7963
diff
changeset
|
1021 | * @param item The item. |
|
10d58eb8a16a
[gaim-migrate @ 8641]
Christian Hammond <chipx86@chipx86.com>
parents:
7963
diff
changeset
|
1022 | * |
|
10d58eb8a16a
[gaim-migrate @ 8641]
Christian Hammond <chipx86@chipx86.com>
parents:
7963
diff
changeset
|
1023 | * @return TRUE if the item is selected. FALSE otherwise. |
|
10d58eb8a16a
[gaim-migrate @ 8641]
Christian Hammond <chipx86@chipx86.com>
parents:
7963
diff
changeset
|
1024 | */ |
| 15884 | 1025 | gboolean purple_request_field_list_is_selected(const PurpleRequestField *field, |
|
7964
10d58eb8a16a
[gaim-migrate @ 8641]
Christian Hammond <chipx86@chipx86.com>
parents:
7963
diff
changeset
|
1026 | const char *item); |
|
10d58eb8a16a
[gaim-migrate @ 8641]
Christian Hammond <chipx86@chipx86.com>
parents:
7963
diff
changeset
|
1027 | |
|
10d58eb8a16a
[gaim-migrate @ 8641]
Christian Hammond <chipx86@chipx86.com>
parents:
7963
diff
changeset
|
1028 | /** |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1029 | * Returns a list of selected items in a list field. |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1030 | * |
|
7963
f982dbac2ccf
[gaim-migrate @ 8640]
Christian Hammond <chipx86@chipx86.com>
parents:
7909
diff
changeset
|
1031 | * To retrieve the data for each item, use |
| 15884 | 1032 | * purple_request_field_list_get_data(). |
|
7963
f982dbac2ccf
[gaim-migrate @ 8640]
Christian Hammond <chipx86@chipx86.com>
parents:
7909
diff
changeset
|
1033 | * |
|
7898
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 selected 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_selected( |
| 15884 | 1039 | const PurpleRequestField *field); |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1040 | |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1041 | /** |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1042 | * Returns a list of items in a list field. |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1043 | * |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1044 | * @param field The field. |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1045 | * |
|
18190
bcf28ef7e8ff
Re-fix the DBus list handling code by killing const GList* / const GSList*
Richard Laager <rlaager@pidgin.im>
parents:
16743
diff
changeset
|
1046 | * @constreturn The list of items. |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1047 | */ |
|
18190
bcf28ef7e8ff
Re-fix the DBus list handling code by killing const GList* / const GSList*
Richard Laager <rlaager@pidgin.im>
parents:
16743
diff
changeset
|
1048 | GList *purple_request_field_list_get_items(const PurpleRequestField *field); |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1049 | |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1050 | /*@}*/ |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1051 | |
|
7905
03db29949e5d
[gaim-migrate @ 8565]
Christian Hammond <chipx86@chipx86.com>
parents:
7904
diff
changeset
|
1052 | /**************************************************************************/ |
|
03db29949e5d
[gaim-migrate @ 8565]
Christian Hammond <chipx86@chipx86.com>
parents:
7904
diff
changeset
|
1053 | /** @name Label Field API */ |
|
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 | /*@{*/ |
|
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 | * Creates a label field. |
|
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 | * @param id The field ID. |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1061 | * @param text The label of the field. |
|
7905
03db29949e5d
[gaim-migrate @ 8565]
Christian Hammond <chipx86@chipx86.com>
parents:
7904
diff
changeset
|
1062 | * |
|
03db29949e5d
[gaim-migrate @ 8565]
Christian Hammond <chipx86@chipx86.com>
parents:
7904
diff
changeset
|
1063 | * @return The new field. |
|
03db29949e5d
[gaim-migrate @ 8565]
Christian Hammond <chipx86@chipx86.com>
parents:
7904
diff
changeset
|
1064 | */ |
| 15884 | 1065 | PurpleRequestField *purple_request_field_label_new(const char *id, |
|
7905
03db29949e5d
[gaim-migrate @ 8565]
Christian Hammond <chipx86@chipx86.com>
parents:
7904
diff
changeset
|
1066 | const char *text); |
|
03db29949e5d
[gaim-migrate @ 8565]
Christian Hammond <chipx86@chipx86.com>
parents:
7904
diff
changeset
|
1067 | |
|
03db29949e5d
[gaim-migrate @ 8565]
Christian Hammond <chipx86@chipx86.com>
parents:
7904
diff
changeset
|
1068 | /*@}*/ |
|
7898
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1069 | |
|
83687727b4a3
[gaim-migrate @ 8558]
Christian Hammond <chipx86@chipx86.com>
parents:
7047
diff
changeset
|
1070 | /**************************************************************************/ |
| 11357 | 1071 | /** @name Image Field API */ |
| 1072 | /**************************************************************************/ | |
| 1073 | /*@{*/ | |
| 1074 | ||
| 1075 | /** | |
| 1076 | * Creates an image field. | |
| 1077 | * | |
| 1078 | * @param id The field ID. | |
| 1079 | * @param text The label of the field. | |
|
11502
84bcb3fe456e
[gaim-migrate @ 13747]
Richard Laager <rlaager@pidgin.im>
parents:
11357
diff
changeset
|
1080 | * @param buf The image data. |
|
84bcb3fe456e
[gaim-migrate @ 13747]
Richard Laager <rlaager@pidgin.im>
parents:
11357
diff
changeset
|
1081 | * @param size The size of the data in @a buffer. |
| 11357 | 1082 | * |
| 1083 | * @return The new field. | |
| 1084 | */ | |
| 15884 | 1085 | PurpleRequestField *purple_request_field_image_new(const char *id, const char *text, |
| 11357 | 1086 | const char *buf, gsize size); |
| 1087 | ||
| 1088 | /** | |
|
12399
535d819a4c74
[gaim-migrate @ 14706]
Richard Laager <rlaager@pidgin.im>
parents:
11502
diff
changeset
|
1089 | * Sets the scale factors of an image field. |
|
535d819a4c74
[gaim-migrate @ 14706]
Richard Laager <rlaager@pidgin.im>
parents:
11502
diff
changeset
|
1090 | * |
|
535d819a4c74
[gaim-migrate @ 14706]
Richard Laager <rlaager@pidgin.im>
parents:
11502
diff
changeset
|
1091 | * @param field The image field. |
|
535d819a4c74
[gaim-migrate @ 14706]
Richard Laager <rlaager@pidgin.im>
parents:
11502
diff
changeset
|
1092 | * @param x The x scale factor. |
|
535d819a4c74
[gaim-migrate @ 14706]
Richard Laager <rlaager@pidgin.im>
parents:
11502
diff
changeset
|
1093 | * @param y The y scale factor. |
|
535d819a4c74
[gaim-migrate @ 14706]
Richard Laager <rlaager@pidgin.im>
parents:
11502
diff
changeset
|
1094 | */ |
| 15884 | 1095 | 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
|
1096 | |
|
535d819a4c74
[gaim-migrate @ 14706]
Richard Laager <rlaager@pidgin.im>
parents:
11502
diff
changeset
|
1097 | /** |
| 11357 | 1098 | * Returns pointer to the image. |
| 1099 | * | |
| 1100 | * @param field The image field. | |
| 1101 | * | |
| 1102 | * @return Pointer to the image. | |
| 1103 | */ | |
| 15884 | 1104 | const char *purple_request_field_image_get_buffer(PurpleRequestField *field); |
| 11357 | 1105 | |
| 1106 | /** | |
| 1107 | * Returns size (in bytes) of the image. | |
| 1108 | * | |
| 1109 | * @param field The image field. | |
| 1110 | * | |
| 1111 | * @return Size of the image. | |
| 1112 | */ | |
| 15884 | 1113 | gsize purple_request_field_image_get_size(PurpleRequestField *field); |
| 11357 | 1114 | |
| 1115 | /** | |
| 1116 | * Returns X scale coefficient of the image. | |
| 1117 | * | |
| 1118 | * @param field The image field. | |
| 1119 | * | |
| 1120 | * @return X scale coefficient of the image. | |
| 1121 | */ | |
| 15884 | 1122 | unsigned int purple_request_field_image_get_scale_x(PurpleRequestField *field); |
| 11357 | 1123 | |
| 1124 | /** | |
| 1125 | * Returns Y scale coefficient of the image. | |
| 1126 | * | |
| 1127 | * @param field The image field. | |
| 1128 | * | |
| 1129 | * @return Y scale coefficient of the image. | |
| 1130 | */ | |
| 15884 | 1131 | unsigned int purple_request_field_image_get_scale_y(PurpleRequestField *field); |
| 11357 | 1132 | |
| 1133 | /*@}*/ | |
| 1134 | ||
| 1135 | /**************************************************************************/ | |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1136 | /** @name Account Field API */ |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1137 | /**************************************************************************/ |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1138 | /*@{*/ |
|
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 | * Creates an account field. |
|
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 | * By default, this field will not show offline accounts. |
|
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 | * @param id The field ID. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1146 | * @param text The text label of the field. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1147 | * @param account The optional default account. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1148 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1149 | * @return The new field. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1150 | */ |
| 15884 | 1151 | PurpleRequestField *purple_request_field_account_new(const char *id, |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1152 | const char *text, |
| 15884 | 1153 | PurpleAccount *account); |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1154 | |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1155 | /** |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1156 | * Sets the default account on an account field. |
|
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 | * @param field The account field. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1159 | * @param default_value The default account. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1160 | */ |
| 15884 | 1161 | void purple_request_field_account_set_default_value(PurpleRequestField *field, |
| 1162 | PurpleAccount *default_value); | |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1163 | |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1164 | /** |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1165 | * Sets the account in an account field. |
|
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 | * @param field The account field. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1168 | * @param value The account. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1169 | */ |
| 15884 | 1170 | void purple_request_field_account_set_value(PurpleRequestField *field, |
| 1171 | PurpleAccount *value); | |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1172 | |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1173 | /** |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1174 | * 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
|
1175 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1176 | * 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
|
1177 | * only online accounts will be shown. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1178 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1179 | * @param field The account field. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1180 | * @param show_all Whether or not to show all accounts. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1181 | */ |
| 15884 | 1182 | void purple_request_field_account_set_show_all(PurpleRequestField *field, |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1183 | gboolean show_all); |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1184 | |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1185 | /** |
|
8289
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1186 | * Sets the account filter function in an account field. |
|
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1187 | * |
|
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1188 | * This function will determine which accounts get displayed and which |
|
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1189 | * don't. |
|
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1190 | * |
|
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1191 | * @param field The account field. |
|
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1192 | * @param filter_func The account filter function. |
|
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1193 | */ |
| 15884 | 1194 | void purple_request_field_account_set_filter(PurpleRequestField *field, |
| 1195 | PurpleFilterAccountFunc filter_func); | |
|
8289
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1196 | |
|
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1197 | /** |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1198 | * Returns the default account in an account field. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1199 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1200 | * @param field The 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 | * @return The default account. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1203 | */ |
| 15884 | 1204 | PurpleAccount *purple_request_field_account_get_default_value( |
| 1205 | const PurpleRequestField *field); | |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1206 | |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1207 | /** |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1208 | * Returns the user-entered account in an account field. |
|
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 | * @param field The 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 | * @return The user-entered account. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1213 | */ |
| 15884 | 1214 | PurpleAccount *purple_request_field_account_get_value( |
| 1215 | const PurpleRequestField *field); | |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1216 | |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1217 | /** |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1218 | * 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
|
1219 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1220 | * 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
|
1221 | * only online accounts will be shown. |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1222 | * |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1223 | * @param field The account field. |
| 9000 | 1224 | * @return Whether or not to show all accounts. |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1225 | */ |
| 15884 | 1226 | gboolean purple_request_field_account_get_show_all( |
| 1227 | const PurpleRequestField *field); | |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1228 | |
|
8289
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1229 | /** |
|
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1230 | * Returns the account filter function in an account field. |
|
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 | * This function will determine which accounts get displayed and which |
|
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1233 | * don't. |
|
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1234 | * |
|
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1235 | * @param field The account field. |
|
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 | * @return The account filter function. |
|
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1238 | */ |
| 15884 | 1239 | PurpleFilterAccountFunc purple_request_field_account_get_filter( |
| 1240 | const PurpleRequestField *field); | |
|
8289
234429bac6b5
[gaim-migrate @ 9013]
Christian Hammond <chipx86@chipx86.com>
parents:
8286
diff
changeset
|
1241 | |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1242 | /*@}*/ |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1243 | |
|
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
1244 | /**************************************************************************/ |
|
20827
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1245 | /** @name Buddylist Field API */ |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1246 | /**************************************************************************/ |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1247 | /*@{*/ |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1248 | |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1249 | /** |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1250 | * Creates a buddylist field. |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1251 | * |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1252 | * @param id The field ID. |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1253 | * @param text The label for the field. |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1254 | * @param flag Flags dictating what kind of blist nodes should be |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1255 | * included in the request field. |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1256 | * @param selected A list of PurpleBlistNode's to select by default, or @c NULL. |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1257 | * |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1258 | * @return The new field. |
|
21205
af0ebfad2b43
Changelog some of the stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20827
diff
changeset
|
1259 | * |
|
af0ebfad2b43
Changelog some of the stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20827
diff
changeset
|
1260 | * @since 2.3.0 |
|
20827
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1261 | */ |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1262 | PurpleRequestField *purple_request_field_blist_nodes_new(const char *id, const char *text, |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1263 | PurpleRequestBlistFlags flag, GList *selected); |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1264 | |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1265 | /** |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1266 | * Set a filter for the request field. |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1267 | * |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1268 | * @param field The request field. |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1269 | * @param filter The filter function. |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1270 | * |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1271 | * @return The old filter function, or @c NULL if there was none. |
|
21205
af0ebfad2b43
Changelog some of the stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20827
diff
changeset
|
1272 | * |
|
af0ebfad2b43
Changelog some of the stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20827
diff
changeset
|
1273 | * @since 2.3.0 |
|
20827
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1274 | */ |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1275 | PurpleFilterBlistFunc purple_request_field_blist_set_filter(PurpleRequestField *field, PurpleFilterBlistFunc filter); |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1276 | |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1277 | /** |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1278 | * Get the filter function for the request field. |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1279 | * |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1280 | * @param field The request field. |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1281 | * |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1282 | * @return The filter function, or @c NULL if there isn't any. |
|
21205
af0ebfad2b43
Changelog some of the stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20827
diff
changeset
|
1283 | * |
|
af0ebfad2b43
Changelog some of the stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20827
diff
changeset
|
1284 | * @since 2.3.0 |
|
20827
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1285 | */ |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1286 | PurpleFilterBlistFunc purple_request_field_blist_get_filter(const PurpleRequestField *field); |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1287 | |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1288 | /** |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1289 | * Add a PurpleBlistNode to the selected list. |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1290 | * |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1291 | * @param field The request field. |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1292 | * @param node The buddylist node to add to the list. |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1293 | * |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1294 | * @return @c TRUE if the node is added to the list, @c FALSE if it was already in the list. |
|
21205
af0ebfad2b43
Changelog some of the stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20827
diff
changeset
|
1295 | * |
|
af0ebfad2b43
Changelog some of the stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20827
diff
changeset
|
1296 | * @since 2.3.0 |
|
20827
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1297 | */ |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1298 | gboolean purple_request_field_blist_add(PurpleRequestField *field, PurpleBlistNode *node); |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1299 | |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1300 | /** |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1301 | * Remove a PurpleBlistNode from the selected list. |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1302 | * |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1303 | * @param field The request field. |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1304 | * @param node The buddylist node to remove from the list. |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1305 | * |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1306 | * @return @c TRUE if the node is removed from the list, @c FALSE if the node is not in the list. |
|
21205
af0ebfad2b43
Changelog some of the stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20827
diff
changeset
|
1307 | * |
|
af0ebfad2b43
Changelog some of the stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20827
diff
changeset
|
1308 | * @since 2.3.0 |
|
20827
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1309 | */ |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1310 | gboolean purple_request_field_blist_remove(PurpleRequestField *field, PurpleBlistNode *node); |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1311 | |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1312 | /** |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1313 | * Set the list of selected nodes in the request field. |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1314 | * |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1315 | * @param field The request field. |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1316 | * @param selecteds The list of selected PurpleBlistNode's. Note that the request field |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1317 | * becomes the owner of the list, and so the caller should not modify it. |
|
21205
af0ebfad2b43
Changelog some of the stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20827
diff
changeset
|
1318 | * |
|
af0ebfad2b43
Changelog some of the stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20827
diff
changeset
|
1319 | * @since 2.3.0 |
|
20827
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1320 | */ |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1321 | void purple_request_field_blist_set_selection_list(PurpleRequestField *field, GList *selecteds); |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1322 | |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1323 | /** |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1324 | * Get a list of the selected buddylist nodes. |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1325 | * |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1326 | * @param field The request field. |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1327 | * |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1328 | * @return A GList of PurpleBlistNode's. |
|
21205
af0ebfad2b43
Changelog some of the stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20827
diff
changeset
|
1329 | * |
|
af0ebfad2b43
Changelog some of the stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20827
diff
changeset
|
1330 | * @since 2.3.0 |
|
20827
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1331 | */ |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1332 | GList *purple_request_field_blist_get_selection_list(const PurpleRequestField *field); |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1333 | |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1334 | /*@}*/ |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1335 | |
|
1c90c7de8688
Missing buddylist request field stuff.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
1336 | /**************************************************************************/ |
| 5477 | 1337 | /** @name Request API */ |
| 1338 | /**************************************************************************/ | |
| 1339 | /*@{*/ | |
| 1340 | ||
| 1341 | /** | |
| 1342 | * Prompts the user for text input. | |
| 1343 | * | |
|
11201
f8fed1f48ca3
[gaim-migrate @ 13329]
Mark Doliner <markdoliner@pidgin.im>
parents:
10791
diff
changeset
|
1344 | * @param handle The plugin or connection handle. For some |
|
f8fed1f48ca3
[gaim-migrate @ 13329]
Mark Doliner <markdoliner@pidgin.im>
parents:
10791
diff
changeset
|
1345 | * things this is EXTREMELY important. The |
|
f8fed1f48ca3
[gaim-migrate @ 13329]
Mark Doliner <markdoliner@pidgin.im>
parents:
10791
diff
changeset
|
1346 | * handle is used to programmatically close |
|
f8fed1f48ca3
[gaim-migrate @ 13329]
Mark Doliner <markdoliner@pidgin.im>
parents:
10791
diff
changeset
|
1347 | * the request dialog when it is no longer |
|
f8fed1f48ca3
[gaim-migrate @ 13329]
Mark Doliner <markdoliner@pidgin.im>
parents:
10791
diff
changeset
|
1348 | * needed. For PRPLs this is often a pointer |
| 15884 | 1349 | * to the PurpleConnection instance. For plugins |
|
11201
f8fed1f48ca3
[gaim-migrate @ 13329]
Mark Doliner <markdoliner@pidgin.im>
parents:
10791
diff
changeset
|
1350 | * this should be a similar, unique memory |
|
f8fed1f48ca3
[gaim-migrate @ 13329]
Mark Doliner <markdoliner@pidgin.im>
parents:
10791
diff
changeset
|
1351 | * location. This value is important because |
|
f8fed1f48ca3
[gaim-migrate @ 13329]
Mark Doliner <markdoliner@pidgin.im>
parents:
10791
diff
changeset
|
1352 | * it allows a request to be closed, say, when |
|
f8fed1f48ca3
[gaim-migrate @ 13329]
Mark Doliner <markdoliner@pidgin.im>
parents:
10791
diff
changeset
|
1353 | * you sign offline. If the request is NOT |
|
f8fed1f48ca3
[gaim-migrate @ 13329]
Mark Doliner <markdoliner@pidgin.im>
parents:
10791
diff
changeset
|
1354 | * closed it is VERY likely to cause a crash |
|
f8fed1f48ca3
[gaim-migrate @ 13329]
Mark Doliner <markdoliner@pidgin.im>
parents:
10791
diff
changeset
|
1355 | * whenever the callback handler functions are |
|
f8fed1f48ca3
[gaim-migrate @ 13329]
Mark Doliner <markdoliner@pidgin.im>
parents:
10791
diff
changeset
|
1356 | * triggered. |
| 5477 | 1357 | * @param title The title of the message. |
| 1358 | * @param primary The main point of the message. | |
| 1359 | * @param secondary The secondary information. | |
| 1360 | * @param default_value The default value. | |
|
5482
6831f83bfae5
[gaim-migrate @ 5878]
Christian Hammond <chipx86@chipx86.com>
parents:
5477
diff
changeset
|
1361 | * @param multiline TRUE if the inputted text can span multiple lines. |
|
6035
b245be9cbe3b
[gaim-migrate @ 6485]
Christian Hammond <chipx86@chipx86.com>
parents:
5944
diff
changeset
|
1362 | * @param masked TRUE if the inputted text should be masked in some way. |
|
8699
0b894347c40d
[gaim-migrate @ 9452]
Mark Doliner <markdoliner@pidgin.im>
parents:
8697
diff
changeset
|
1363 | * @param hint Optionally suggest how the input box should appear. |
|
0b894347c40d
[gaim-migrate @ 9452]
Mark Doliner <markdoliner@pidgin.im>
parents:
8697
diff
changeset
|
1364 | * Use "html," for example, to allow the user to enter |
|
0b894347c40d
[gaim-migrate @ 9452]
Mark Doliner <markdoliner@pidgin.im>
parents:
8697
diff
changeset
|
1365 | * HTML. |
|
13268
5f523813f880
[gaim-migrate @ 15633]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
12716
diff
changeset
|
1366 | * @param ok_text The text for the @c OK button. |
|
5f523813f880
[gaim-migrate @ 15633]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
12716
diff
changeset
|
1367 | * @param ok_cb The callback for the @c OK button. |
|
5f523813f880
[gaim-migrate @ 15633]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
12716
diff
changeset
|
1368 | * @param cancel_text The text for the @c Cancel button. |
|
5f523813f880
[gaim-migrate @ 15633]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
12716
diff
changeset
|
1369 | * @param cancel_cb The callback for the @c Cancel button. |
|
16490
68c22924d66b
Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evands@pidgin.im>
parents:
15884
diff
changeset
|
1370 | * @param account The PurpleAccount associated with this request, or NULL if none is |
|
68c22924d66b
Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evands@pidgin.im>
parents:
15884
diff
changeset
|
1371 | * @param who The username of the buddy assocaited with this request, or NULL if none is |
|
68c22924d66b
Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evands@pidgin.im>
parents:
15884
diff
changeset
|
1372 | * @param conv The PurpleConversation associated with this request, or NULL if none is |
|
19999
857111632b11
Fixing usernick.c and, for some strange reason, request.h
Gabriel Schulhof <nix@go-nix.ca>
parents:
19997
diff
changeset
|
1373 | * @param ui_hint UI hint |
| 5477 | 1374 | * @param user_data The data to pass to the callback. |
| 1375 | * | |
| 1376 | * @return A UI-specific handle. | |
|
21221
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1377 | * |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1378 | * @since 2.3.0 |
| 5477 | 1379 | */ |
|
20685
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1380 | void *purple_request_input_with_hint(void *handle, const char *title, |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1381 | const char *primary, const char *secondary, |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1382 | const char *default_value, |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1383 | gboolean multiline, gboolean masked, gchar *hint, |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1384 | const char *ok_text, GCallback ok_cb, |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1385 | const char *cancel_text, GCallback cancel_cb, |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1386 | PurpleAccount *account, const char *who, PurpleConversation *conv, |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1387 | const char *ui_hint, void *user_data); |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1388 | |
|
21223
6517e0eda8bc
Wrap the newly deprecated functions with #ifndef PURPLE_DISABLE_DEPRECATED.
Richard Laager <rlaager@pidgin.im>
parents:
21221
diff
changeset
|
1389 | #ifndef PURPLE_DISABLE_DEPRECATED |
|
20685
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1390 | /** |
|
21221
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1391 | * Prompts the user for text input. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1392 | * |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1393 | * @param handle The plugin or connection handle. For some |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1394 | * things this is EXTREMELY important. The |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1395 | * handle is used to programmatically close |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1396 | * the request dialog when it is no longer |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1397 | * needed. For PRPLs this is often a pointer |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1398 | * to the PurpleConnection instance. For plugins |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1399 | * this should be a similar, unique memory |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1400 | * location. This value is important because |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1401 | * it allows a request to be closed, say, when |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1402 | * you sign offline. If the request is NOT |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1403 | * closed it is VERY likely to cause a crash |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1404 | * whenever the callback handler functions are |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1405 | * triggered. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1406 | * @param title The title of the message. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1407 | * @param primary The main point of the message. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1408 | * @param secondary The secondary information. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1409 | * @param default_value The default value. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1410 | * @param multiline TRUE if the inputted text can span multiple lines. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1411 | * @param masked TRUE if the inputted text should be masked in some way. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1412 | * @param hint Optionally suggest how the input box should appear. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1413 | * Use "html," for example, to allow the user to enter |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1414 | * HTML. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1415 | * @param ok_text The text for the @c OK button. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1416 | * @param ok_cb The callback for the @c OK button. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1417 | * @param cancel_text The text for the @c Cancel button. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1418 | * @param cancel_cb The callback for the @c Cancel button. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1419 | * @param account The PurpleAccount associated with this request, or NULL if none is |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1420 | * @param who The username of the buddy assocaited with this request, or NULL if none is |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1421 | * @param conv The PurpleConversation associated with this request, or NULL if none is |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1422 | * @param user_data The data to pass to the callback. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1423 | * |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1424 | * @return A UI-specific handle. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1425 | * |
|
20685
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1426 | * @deprecated Please use purple_request_input_with_hint() instead. |
| 5477 | 1427 | */ |
| 15884 | 1428 | void *purple_request_input(void *handle, const char *title, |
| 5477 | 1429 | const char *primary, const char *secondary, |
|
6035
b245be9cbe3b
[gaim-migrate @ 6485]
Christian Hammond <chipx86@chipx86.com>
parents:
5944
diff
changeset
|
1430 | const char *default_value, |
| 8697 | 1431 | gboolean multiline, gboolean masked, gchar *hint, |
| 5477 | 1432 | const char *ok_text, GCallback ok_cb, |
| 1433 | const char *cancel_text, GCallback cancel_cb, | |
|
16490
68c22924d66b
Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evands@pidgin.im>
parents:
15884
diff
changeset
|
1434 | PurpleAccount *account, const char *who, PurpleConversation *conv, |
| 5477 | 1435 | void *user_data); |
|
21223
6517e0eda8bc
Wrap the newly deprecated functions with #ifndef PURPLE_DISABLE_DEPRECATED.
Richard Laager <rlaager@pidgin.im>
parents:
21221
diff
changeset
|
1436 | #endif |
| 5477 | 1437 | |
| 1438 | /** | |
| 1439 | * Prompts the user for multiple-choice input. | |
| 1440 | * | |
|
11201
f8fed1f48ca3
[gaim-migrate @ 13329]
Mark Doliner <markdoliner@pidgin.im>
parents:
10791
diff
changeset
|
1441 | * @param handle The plugin or connection handle. For some |
|
f8fed1f48ca3
[gaim-migrate @ 13329]
Mark Doliner <markdoliner@pidgin.im>
parents:
10791
diff
changeset
|
1442 | * things this is EXTREMELY important. See |
| 15884 | 1443 | * the comments on purple_request_input. |
| 5477 | 1444 | * @param title The title of the message. |
| 1445 | * @param primary The main point of the message. | |
| 1446 | * @param secondary The secondary information. | |
| 1447 | * @param default_value The default value. | |
|
13268
5f523813f880
[gaim-migrate @ 15633]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
12716
diff
changeset
|
1448 | * @param ok_text The text for the @c OK button. |
|
5f523813f880
[gaim-migrate @ 15633]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
12716
diff
changeset
|
1449 | * @param ok_cb The callback for the @c OK button. |
|
5f523813f880
[gaim-migrate @ 15633]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
12716
diff
changeset
|
1450 | * @param cancel_text The text for the @c Cancel button. |
|
5f523813f880
[gaim-migrate @ 15633]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
12716
diff
changeset
|
1451 | * @param cancel_cb The callback for the @c Cancel button. |
|
16490
68c22924d66b
Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evands@pidgin.im>
parents:
15884
diff
changeset
|
1452 | * @param account The PurpleAccount associated with this request, or NULL if none is |
|
68c22924d66b
Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evands@pidgin.im>
parents:
15884
diff
changeset
|
1453 | * @param who The username of the buddy assocaited with this request, or NULL if none is |
|
19585
14b519abcc26
Fix some conversion warnings about using negative values with unsigned types. There are more, but these were easy fixes. You may think that I'm changing the API, but I'm really not - it was just wrong.
Daniel Atallah <datallah@pidgin.im>
parents:
18243
diff
changeset
|
1454 | * @param conv The PurpleConversation associated with this request, or NULL if none is |
| 19252 | 1455 | * @param ui_hint UI hint |
| 5477 | 1456 | * @param user_data The data to pass to the callback. |
|
10233
7b542749ccb6
[gaim-migrate @ 11368]
Mark Doliner <markdoliner@pidgin.im>
parents:
10229
diff
changeset
|
1457 | * @param ... The choices. This argument list should be |
|
7b542749ccb6
[gaim-migrate @ 11368]
Mark Doliner <markdoliner@pidgin.im>
parents:
10229
diff
changeset
|
1458 | * terminated with a NULL parameter. |
| 5477 | 1459 | * |
| 1460 | * @return A UI-specific handle. | |
|
21221
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1461 | * |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1462 | * @since 2.3.0 |
| 5477 | 1463 | */ |
|
20685
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1464 | void *purple_request_choice_with_hint(void *handle, const char *title, |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1465 | const char *primary, const char *secondary, |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1466 | int default_value, |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1467 | const char *ok_text, GCallback ok_cb, |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1468 | const char *cancel_text, GCallback cancel_cb, |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1469 | PurpleAccount *account, const char *who, PurpleConversation *conv, |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1470 | const char *ui_hint, void *user_data, ...) G_GNUC_NULL_TERMINATED; |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1471 | |
|
21223
6517e0eda8bc
Wrap the newly deprecated functions with #ifndef PURPLE_DISABLE_DEPRECATED.
Richard Laager <rlaager@pidgin.im>
parents:
21221
diff
changeset
|
1472 | #ifndef PURPLE_DISABLE_DEPRECATED |
|
20685
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1473 | /** |
|
21221
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1474 | * Prompts the user for multiple-choice input. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1475 | * |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1476 | * @param handle The plugin or connection handle. For some |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1477 | * things this is EXTREMELY important. See |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1478 | * the comments on purple_request_input. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1479 | * @param title The title of the message. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1480 | * @param primary The main point of the message. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1481 | * @param secondary The secondary information. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1482 | * @param default_value The default value. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1483 | * @param ok_text The text for the @c OK button. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1484 | * @param ok_cb The callback for the @c OK button. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1485 | * @param cancel_text The text for the @c Cancel button. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1486 | * @param cancel_cb The callback for the @c Cancel button. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1487 | * @param account The PurpleAccount associated with this request, or NULL if none is |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1488 | * @param who The username of the buddy assocaited with this request, or NULL if none is |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1489 | * @param conv The PurpleConversation associated with this request, or NULL if none is |
| 5477 | 1490 | * @param user_data The data to pass to the callback. |
|
10233
7b542749ccb6
[gaim-migrate @ 11368]
Mark Doliner <markdoliner@pidgin.im>
parents:
10229
diff
changeset
|
1491 | * @param ... The choices. This argument list should be |
|
7b542749ccb6
[gaim-migrate @ 11368]
Mark Doliner <markdoliner@pidgin.im>
parents:
10229
diff
changeset
|
1492 | * terminated with a NULL parameter. |
| 5477 | 1493 | * |
| 1494 | * @return A UI-specific handle. | |
|
21221
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1495 | * |
|
20685
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1496 | * @deprecated Please use purple_request_choice_with_hint() instead. |
| 5477 | 1497 | */ |
| 15884 | 1498 | void *purple_request_choice(void *handle, const char *title, |
| 5477 | 1499 | const char *primary, const char *secondary, |
|
19585
14b519abcc26
Fix some conversion warnings about using negative values with unsigned types. There are more, but these were easy fixes. You may think that I'm changing the API, but I'm really not - it was just wrong.
Daniel Atallah <datallah@pidgin.im>
parents:
18243
diff
changeset
|
1500 | int default_value, |
| 5477 | 1501 | const char *ok_text, GCallback ok_cb, |
| 1502 | const char *cancel_text, GCallback cancel_cb, | |
|
16490
68c22924d66b
Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evands@pidgin.im>
parents:
15884
diff
changeset
|
1503 | PurpleAccount *account, const char *who, PurpleConversation *conv, |
|
18243
c68ce32c3449
Add G_GNUC_NULL_TERMINATED to a few functions that expect a NULL terminated
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18190
diff
changeset
|
1504 | void *user_data, ...) G_GNUC_NULL_TERMINATED; |
|
21223
6517e0eda8bc
Wrap the newly deprecated functions with #ifndef PURPLE_DISABLE_DEPRECATED.
Richard Laager <rlaager@pidgin.im>
parents:
21221
diff
changeset
|
1505 | #endif |
| 5477 | 1506 | |
| 1507 | /** | |
| 1508 | * Prompts the user for multiple-choice input. | |
| 1509 | * | |
|
11201
f8fed1f48ca3
[gaim-migrate @ 13329]
Mark Doliner <markdoliner@pidgin.im>
parents:
10791
diff
changeset
|
1510 | * @param handle The plugin or connection handle. For some |
|
f8fed1f48ca3
[gaim-migrate @ 13329]
Mark Doliner <markdoliner@pidgin.im>
parents:
10791
diff
changeset
|
1511 | * things this is EXTREMELY important. See |
| 15884 | 1512 | * the comments on purple_request_input. |
| 5477 | 1513 | * @param title The title of the message. |
| 1514 | * @param primary The main point of the message. | |
| 1515 | * @param secondary The secondary information. | |
| 1516 | * @param default_value The default value. | |
|
13268
5f523813f880
[gaim-migrate @ 15633]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
12716
diff
changeset
|
1517 | * @param ok_text The text for the @c OK button. |
|
5f523813f880
[gaim-migrate @ 15633]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
12716
diff
changeset
|
1518 | * @param ok_cb The callback for the @c OK button. |
|
5f523813f880
[gaim-migrate @ 15633]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
12716
diff
changeset
|
1519 | * @param cancel_text The text for the @c Cancel button. |
|
5f523813f880
[gaim-migrate @ 15633]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
12716
diff
changeset
|
1520 | * @param cancel_cb The callback for the @c Cancel button. |
|
16490
68c22924d66b
Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evands@pidgin.im>
parents:
15884
diff
changeset
|
1521 | * @param account The PurpleAccount associated with this request, or NULL if none is |
|
68c22924d66b
Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evands@pidgin.im>
parents:
15884
diff
changeset
|
1522 | * @param who The username of the buddy assocaited with this request, or NULL if none is |
|
19585
14b519abcc26
Fix some conversion warnings about using negative values with unsigned types. There are more, but these were easy fixes. You may think that I'm changing the API, but I'm really not - it was just wrong.
Daniel Atallah <datallah@pidgin.im>
parents:
18243
diff
changeset
|
1523 | * @param conv The PurpleConversation associated with this request, or NULL if none is |
| 19252 | 1524 | * @param ui_hint UI hint |
| 5477 | 1525 | * @param user_data The data to pass to the callback. |
|
10233
7b542749ccb6
[gaim-migrate @ 11368]
Mark Doliner <markdoliner@pidgin.im>
parents:
10229
diff
changeset
|
1526 | * @param choices The choices. This argument list should be |
|
13268
5f523813f880
[gaim-migrate @ 15633]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
12716
diff
changeset
|
1527 | * terminated with a @c NULL parameter. |
| 5477 | 1528 | * |
| 1529 | * @return A UI-specific handle. | |
|
21221
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1530 | * |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1531 | * @since 2.3.0 |
| 5477 | 1532 | */ |
|
20685
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1533 | void *purple_request_choice_varg_with_hint(void *handle, const char *title, |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1534 | const char *primary, const char *secondary, |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1535 | int default_value, |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1536 | const char *ok_text, GCallback ok_cb, |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1537 | const char *cancel_text, GCallback cancel_cb, |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1538 | PurpleAccount *account, const char *who, PurpleConversation *conv, |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1539 | const char *ui_hint, void *user_data, va_list choices); |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1540 | |
|
21223
6517e0eda8bc
Wrap the newly deprecated functions with #ifndef PURPLE_DISABLE_DEPRECATED.
Richard Laager <rlaager@pidgin.im>
parents:
21221
diff
changeset
|
1541 | #ifndef PURPLE_DISABLE_DEPRECATED |
|
20685
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1542 | /** |
|
21221
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1543 | * Prompts the user for multiple-choice input. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1544 | * |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1545 | * @param handle The plugin or connection handle. For some |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1546 | * things this is EXTREMELY important. See |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1547 | * the comments on purple_request_input. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1548 | * @param title The title of the message. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1549 | * @param primary The main point of the message. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1550 | * @param secondary The secondary information. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1551 | * @param default_value The default value. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1552 | * @param ok_text The text for the @c OK button. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1553 | * @param ok_cb The callback for the @c OK button. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1554 | * @param cancel_text The text for the @c Cancel button. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1555 | * @param cancel_cb The callback for the @c Cancel button. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1556 | * @param account The PurpleAccount associated with this request, or NULL if none is |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1557 | * @param who The username of the buddy assocaited with this request, or NULL if none is |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1558 | * @param conv The PurpleConversation associated with this request, or NULL if none is |
| 5477 | 1559 | * @param user_data The data to pass to the callback. |
|
10233
7b542749ccb6
[gaim-migrate @ 11368]
Mark Doliner <markdoliner@pidgin.im>
parents:
10229
diff
changeset
|
1560 | * @param choices The choices. This argument list should be |
|
13268
5f523813f880
[gaim-migrate @ 15633]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
12716
diff
changeset
|
1561 | * terminated with a @c NULL parameter. |
| 5477 | 1562 | * |
| 1563 | * @return A UI-specific handle. | |
|
21221
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1564 | * |
|
20685
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1565 | * @deprecated Please use purple_request_choice_varg_with_hint() instead. |
| 5477 | 1566 | */ |
| 15884 | 1567 | void *purple_request_choice_varg(void *handle, const char *title, |
| 5477 | 1568 | const char *primary, const char *secondary, |
|
19585
14b519abcc26
Fix some conversion warnings about using negative values with unsigned types. There are more, but these were easy fixes. You may think that I'm changing the API, but I'm really not - it was just wrong.
Daniel Atallah <datallah@pidgin.im>
parents:
18243
diff
changeset
|
1569 | int default_value, |
| 5477 | 1570 | const char *ok_text, GCallback ok_cb, |
| 1571 | const char *cancel_text, GCallback cancel_cb, | |
|
16490
68c22924d66b
Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evands@pidgin.im>
parents:
15884
diff
changeset
|
1572 | PurpleAccount *account, const char *who, PurpleConversation *conv, |
|
10229
39ffee70c286
[gaim-migrate @ 11364]
Alceste Scalas <alceste.scalas@gmx.net>
parents:
9948
diff
changeset
|
1573 | void *user_data, va_list choices); |
|
21223
6517e0eda8bc
Wrap the newly deprecated functions with #ifndef PURPLE_DISABLE_DEPRECATED.
Richard Laager <rlaager@pidgin.im>
parents:
21221
diff
changeset
|
1574 | #endif |
| 5477 | 1575 | |
| 1576 | /** | |
| 1577 | * Prompts the user for an action. | |
| 1578 | * | |
| 1579 | * This is often represented as a dialog with a button for each action. | |
| 1580 | * | |
|
11201
f8fed1f48ca3
[gaim-migrate @ 13329]
Mark Doliner <markdoliner@pidgin.im>
parents:
10791
diff
changeset
|
1581 | * @param handle The plugin or connection handle. For some |
|
f8fed1f48ca3
[gaim-migrate @ 13329]
Mark Doliner <markdoliner@pidgin.im>
parents:
10791
diff
changeset
|
1582 | * things this is EXTREMELY important. See |
| 15884 | 1583 | * the comments on purple_request_input. |
| 5477 | 1584 | * @param title The title of the message. |
| 1585 | * @param primary The main point of the message. | |
| 1586 | * @param secondary The secondary information. | |
| 1587 | * @param default_action The default value. | |
|
16490
68c22924d66b
Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evands@pidgin.im>
parents:
15884
diff
changeset
|
1588 | * @param account The PurpleAccount associated with this request, or NULL if none is |
|
68c22924d66b
Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evands@pidgin.im>
parents:
15884
diff
changeset
|
1589 | * @param who The username of the buddy assocaited with this request, or NULL if none is |
|
19585
14b519abcc26
Fix some conversion warnings about using negative values with unsigned types. There are more, but these were easy fixes. You may think that I'm changing the API, but I'm really not - it was just wrong.
Daniel Atallah <datallah@pidgin.im>
parents:
18243
diff
changeset
|
1590 | * @param conv The PurpleConversation associated with this request, or NULL if none is |
| 19252 | 1591 | * @param ui_hint UI hint |
| 5477 | 1592 | * @param user_data The data to pass to the callback. |
|
5496
ed995be89052
[gaim-migrate @ 5892]
Christian Hammond <chipx86@chipx86.com>
parents:
5482
diff
changeset
|
1593 | * @param action_count The number of actions. |
|
15356
a5ad506222a1
[gaim-migrate @ 18085]
Mark Doliner <markdoliner@pidgin.im>
parents:
14254
diff
changeset
|
1594 | * @param ... A list of actions. These are pairs of |
|
a5ad506222a1
[gaim-migrate @ 18085]
Mark Doliner <markdoliner@pidgin.im>
parents:
14254
diff
changeset
|
1595 | * arguments. The first of each pair is the |
|
a5ad506222a1
[gaim-migrate @ 18085]
Mark Doliner <markdoliner@pidgin.im>
parents:
14254
diff
changeset
|
1596 | * string that appears on the button. It should |
|
a5ad506222a1
[gaim-migrate @ 18085]
Mark Doliner <markdoliner@pidgin.im>
parents:
14254
diff
changeset
|
1597 | * have an underscore before the letter you want |
|
a5ad506222a1
[gaim-migrate @ 18085]
Mark Doliner <markdoliner@pidgin.im>
parents:
14254
diff
changeset
|
1598 | * to use as the accelerator key for the button. |
|
a5ad506222a1
[gaim-migrate @ 18085]
Mark Doliner <markdoliner@pidgin.im>
parents:
14254
diff
changeset
|
1599 | * The second of each pair is the callback |
|
a5ad506222a1
[gaim-migrate @ 18085]
Mark Doliner <markdoliner@pidgin.im>
parents:
14254
diff
changeset
|
1600 | * function to use when the button is clicked. |
| 5477 | 1601 | * |
| 1602 | * @return A UI-specific handle. | |
|
21221
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1603 | * |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1604 | * @since 2.3.0 |
| 5477 | 1605 | */ |
|
20685
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1606 | void *purple_request_action_with_hint(void *handle, const char *title, |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1607 | const char *primary, const char *secondary, |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1608 | int default_action, |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1609 | PurpleAccount *account, const char *who, PurpleConversation *conv, |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1610 | const char *ui_hint, void *user_data, size_t action_count, ...); |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1611 | |
|
21223
6517e0eda8bc
Wrap the newly deprecated functions with #ifndef PURPLE_DISABLE_DEPRECATED.
Richard Laager <rlaager@pidgin.im>
parents:
21221
diff
changeset
|
1612 | #ifndef PURPLE_DISABLE_DEPRECATED |
|
20685
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1613 | /** |
|
21221
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1614 | * Prompts the user for an action. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1615 | * |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1616 | * This is often represented as a dialog with a button for each action. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1617 | * |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1618 | * @param handle The plugin or connection handle. For some |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1619 | * things this is EXTREMELY important. See |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1620 | * the comments on purple_request_input. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1621 | * @param title The title of the message. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1622 | * @param primary The main point of the message. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1623 | * @param secondary The secondary information. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1624 | * @param default_action The default value. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1625 | * @param account The PurpleAccount associated with this request, or NULL if none is |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1626 | * @param who The username of the buddy assocaited with this request, or NULL if none is |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1627 | * @param conv The PurpleConversation associated with this request, or NULL if none is |
| 5477 | 1628 | * @param user_data The data to pass to the callback. |
|
5496
ed995be89052
[gaim-migrate @ 5892]
Christian Hammond <chipx86@chipx86.com>
parents:
5482
diff
changeset
|
1629 | * @param action_count The number of actions. |
|
15356
a5ad506222a1
[gaim-migrate @ 18085]
Mark Doliner <markdoliner@pidgin.im>
parents:
14254
diff
changeset
|
1630 | * @param ... A list of actions. These are pairs of |
|
a5ad506222a1
[gaim-migrate @ 18085]
Mark Doliner <markdoliner@pidgin.im>
parents:
14254
diff
changeset
|
1631 | * arguments. The first of each pair is the |
|
a5ad506222a1
[gaim-migrate @ 18085]
Mark Doliner <markdoliner@pidgin.im>
parents:
14254
diff
changeset
|
1632 | * string that appears on the button. It should |
|
a5ad506222a1
[gaim-migrate @ 18085]
Mark Doliner <markdoliner@pidgin.im>
parents:
14254
diff
changeset
|
1633 | * have an underscore before the letter you want |
|
a5ad506222a1
[gaim-migrate @ 18085]
Mark Doliner <markdoliner@pidgin.im>
parents:
14254
diff
changeset
|
1634 | * to use as the accelerator key for the button. |
|
a5ad506222a1
[gaim-migrate @ 18085]
Mark Doliner <markdoliner@pidgin.im>
parents:
14254
diff
changeset
|
1635 | * The second of each pair is the callback |
|
a5ad506222a1
[gaim-migrate @ 18085]
Mark Doliner <markdoliner@pidgin.im>
parents:
14254
diff
changeset
|
1636 | * function to use when the button is clicked. |
| 5477 | 1637 | * |
| 1638 | * @return A UI-specific handle. | |
|
21221
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1639 | * |
|
20685
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1640 | * @deprecated Please use purple_request_action_with_hint() instead. |
| 5477 | 1641 | */ |
| 15884 | 1642 | void *purple_request_action(void *handle, const char *title, |
| 5477 | 1643 | const char *primary, const char *secondary, |
|
19585
14b519abcc26
Fix some conversion warnings about using negative values with unsigned types. There are more, but these were easy fixes. You may think that I'm changing the API, but I'm really not - it was just wrong.
Daniel Atallah <datallah@pidgin.im>
parents:
18243
diff
changeset
|
1644 | int default_action, |
|
16490
68c22924d66b
Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evands@pidgin.im>
parents:
15884
diff
changeset
|
1645 | PurpleAccount *account, const char *who, PurpleConversation *conv, |
|
5496
ed995be89052
[gaim-migrate @ 5892]
Christian Hammond <chipx86@chipx86.com>
parents:
5482
diff
changeset
|
1646 | void *user_data, size_t action_count, ...); |
|
21223
6517e0eda8bc
Wrap the newly deprecated functions with #ifndef PURPLE_DISABLE_DEPRECATED.
Richard Laager <rlaager@pidgin.im>
parents:
21221
diff
changeset
|
1647 | #endif |
| 5477 | 1648 | |
| 1649 | /** | |
| 1650 | * Prompts the user for an action. | |
| 1651 | * | |
| 1652 | * This is often represented as a dialog with a button for each action. | |
| 1653 | * | |
|
11201
f8fed1f48ca3
[gaim-migrate @ 13329]
Mark Doliner <markdoliner@pidgin.im>
parents:
10791
diff
changeset
|
1654 | * @param handle The plugin or connection handle. For some |
|
f8fed1f48ca3
[gaim-migrate @ 13329]
Mark Doliner <markdoliner@pidgin.im>
parents:
10791
diff
changeset
|
1655 | * things this is EXTREMELY important. See |
| 15884 | 1656 | * the comments on purple_request_input. |
| 5477 | 1657 | * @param title The title of the message. |
| 1658 | * @param primary The main point of the message. | |
| 1659 | * @param secondary The secondary information. | |
| 1660 | * @param default_action The default value. | |
|
16490
68c22924d66b
Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evands@pidgin.im>
parents:
15884
diff
changeset
|
1661 | * @param account The PurpleAccount associated with this request, or NULL if none is |
|
68c22924d66b
Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evands@pidgin.im>
parents:
15884
diff
changeset
|
1662 | * @param who The username of the buddy assocaited with this request, or NULL if none is |
|
19585
14b519abcc26
Fix some conversion warnings about using negative values with unsigned types. There are more, but these were easy fixes. You may think that I'm changing the API, but I'm really not - it was just wrong.
Daniel Atallah <datallah@pidgin.im>
parents:
18243
diff
changeset
|
1663 | * @param conv The PurpleConversation associated with this request, or NULL if none is |
| 19252 | 1664 | * @param ui_hint UI hint |
| 5477 | 1665 | * @param user_data The data to pass to the callback. |
|
5496
ed995be89052
[gaim-migrate @ 5892]
Christian Hammond <chipx86@chipx86.com>
parents:
5482
diff
changeset
|
1666 | * @param action_count The number of actions. |
| 5477 | 1667 | * @param actions A list of actions and callbacks. |
| 1668 | * | |
| 1669 | * @return A UI-specific handle. | |
|
21221
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1670 | * |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1671 | * @since 2.3.0 |
| 5477 | 1672 | */ |
|
20685
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1673 | void *purple_request_action_varg_with_hint(void *handle, const char *title, |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1674 | const char *primary, const char *secondary, |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1675 | int default_action, |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1676 | PurpleAccount *account, const char *who, PurpleConversation *conv, |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1677 | const char *ui_hint, void *user_data, size_t action_count, |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1678 | va_list actions); |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1679 | |
|
21223
6517e0eda8bc
Wrap the newly deprecated functions with #ifndef PURPLE_DISABLE_DEPRECATED.
Richard Laager <rlaager@pidgin.im>
parents:
21221
diff
changeset
|
1680 | #ifndef PURPLE_DISABLE_DEPRECATED |
|
20685
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1681 | /** |
|
21221
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1682 | * Prompts the user for an action. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1683 | * |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1684 | * This is often represented as a dialog with a button for each action. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1685 | * |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1686 | * @param handle The plugin or connection handle. For some |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1687 | * things this is EXTREMELY important. See |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1688 | * the comments on purple_request_input. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1689 | * @param title The title of the message. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1690 | * @param primary The main point of the message. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1691 | * @param secondary The secondary information. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1692 | * @param default_action The default value. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1693 | * @param account The PurpleAccount associated with this request, or NULL if none is |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1694 | * @param who The username of the buddy assocaited with this request, or NULL if none is |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1695 | * @param conv The PurpleConversation associated with this request, or NULL if none is |
| 5477 | 1696 | * @param user_data The data to pass to the callback. |
|
5496
ed995be89052
[gaim-migrate @ 5892]
Christian Hammond <chipx86@chipx86.com>
parents:
5482
diff
changeset
|
1697 | * @param action_count The number of actions. |
| 5477 | 1698 | * @param actions A list of actions and callbacks. |
| 1699 | * | |
| 1700 | * @return A UI-specific handle. | |
|
21221
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1701 | * |
|
20685
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1702 | * @deprecated Please use purple_request_action_varg_with_hint() instead. |
| 5477 | 1703 | */ |
| 15884 | 1704 | void *purple_request_action_varg(void *handle, const char *title, |
| 5477 | 1705 | const char *primary, const char *secondary, |
|
19585
14b519abcc26
Fix some conversion warnings about using negative values with unsigned types. There are more, but these were easy fixes. You may think that I'm changing the API, but I'm really not - it was just wrong.
Daniel Atallah <datallah@pidgin.im>
parents:
18243
diff
changeset
|
1706 | int default_action, |
|
16490
68c22924d66b
Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evands@pidgin.im>
parents:
15884
diff
changeset
|
1707 | PurpleAccount *account, const char *who, PurpleConversation *conv, |
|
5496
ed995be89052
[gaim-migrate @ 5892]
Christian Hammond <chipx86@chipx86.com>
parents:
5482
diff
changeset
|
1708 | void *user_data, size_t action_count, |
|
ed995be89052
[gaim-migrate @ 5892]
Christian Hammond <chipx86@chipx86.com>
parents:
5482
diff
changeset
|
1709 | va_list actions); |
|
21223
6517e0eda8bc
Wrap the newly deprecated functions with #ifndef PURPLE_DISABLE_DEPRECATED.
Richard Laager <rlaager@pidgin.im>
parents:
21221
diff
changeset
|
1710 | #endif |
| 5477 | 1711 | |
| 1712 | /** | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1713 | * Displays groups of fields for the user to fill in. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1714 | * |
|
11201
f8fed1f48ca3
[gaim-migrate @ 13329]
Mark Doliner <markdoliner@pidgin.im>
parents:
10791
diff
changeset
|
1715 | * @param handle The plugin or connection handle. For some |
|
f8fed1f48ca3
[gaim-migrate @ 13329]
Mark Doliner <markdoliner@pidgin.im>
parents:
10791
diff
changeset
|
1716 | * things this is EXTREMELY important. See |
| 15884 | 1717 | * the comments on purple_request_input. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1718 | * @param title The title of the message. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1719 | * @param primary The main point of the message. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1720 | * @param secondary The secondary information. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1721 | * @param fields The list of fields. |
|
13268
5f523813f880
[gaim-migrate @ 15633]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
12716
diff
changeset
|
1722 | * @param ok_text The text for the @c OK button. |
|
5f523813f880
[gaim-migrate @ 15633]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
12716
diff
changeset
|
1723 | * @param ok_cb The callback for the @c OK button. |
|
5f523813f880
[gaim-migrate @ 15633]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
12716
diff
changeset
|
1724 | * @param cancel_text The text for the @c Cancel button. |
|
5f523813f880
[gaim-migrate @ 15633]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
12716
diff
changeset
|
1725 | * @param cancel_cb The callback for the @c Cancel button. |
|
16490
68c22924d66b
Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evands@pidgin.im>
parents:
15884
diff
changeset
|
1726 | * @param account The PurpleAccount associated with this request, or NULL if none is |
|
16613
7b99431fd17b
Typo fix in documentation.
Richard Laager <rlaager@pidgin.im>
parents:
16490
diff
changeset
|
1727 | * @param who The username of the buddy associated with this request, or NULL if none is |
|
19585
14b519abcc26
Fix some conversion warnings about using negative values with unsigned types. There are more, but these were easy fixes. You may think that I'm changing the API, but I'm really not - it was just wrong.
Daniel Atallah <datallah@pidgin.im>
parents:
18243
diff
changeset
|
1728 | * @param conv The PurpleConversation associated with this request, or NULL if none is |
| 19252 | 1729 | * @param ui_hint UI hint |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1730 | * @param user_data The data to pass to the callback. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1731 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1732 | * @return A UI-specific handle. |
|
21221
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1733 | * |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1734 | * @since 2.3.0 |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1735 | */ |
|
20685
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1736 | void *purple_request_fields_with_hint(void *handle, const char *title, |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1737 | const char *primary, const char *secondary, |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1738 | PurpleRequestFields *fields, |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1739 | const char *ok_text, GCallback ok_cb, |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1740 | const char *cancel_text, GCallback cancel_cb, |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1741 | PurpleAccount *account, const char *who, PurpleConversation *conv, |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1742 | const char *ui_hint, void *user_data); |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1743 | |
|
21223
6517e0eda8bc
Wrap the newly deprecated functions with #ifndef PURPLE_DISABLE_DEPRECATED.
Richard Laager <rlaager@pidgin.im>
parents:
21221
diff
changeset
|
1744 | #ifndef PURPLE_DISABLE_DEPRECATED |
|
20685
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1745 | /** |
|
21221
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1746 | * Displays groups of fields for the user to fill in. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1747 | * |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1748 | * @param handle The plugin or connection handle. For some |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1749 | * things this is EXTREMELY important. See |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1750 | * the comments on purple_request_input. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1751 | * @param title The title of the message. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1752 | * @param primary The main point of the message. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1753 | * @param secondary The secondary information. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1754 | * @param fields The list of fields. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1755 | * @param ok_text The text for the @c OK button. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1756 | * @param ok_cb The callback for the @c OK button. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1757 | * @param cancel_text The text for the @c Cancel button. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1758 | * @param cancel_cb The callback for the @c Cancel button. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1759 | * @param account The PurpleAccount associated with this request, or NULL if none is |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1760 | * @param who The username of the buddy associated with this request, or NULL if none is |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1761 | * @param conv The PurpleConversation associated with this request, or NULL if none is |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1762 | * @param user_data The data to pass to the callback. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1763 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1764 | * @return A UI-specific handle. |
|
21221
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1765 | * |
|
20685
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1766 | * @deprecated Please use purple_request_fields_with_hint() instead. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1767 | */ |
| 15884 | 1768 | void *purple_request_fields(void *handle, const char *title, |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1769 | const char *primary, const char *secondary, |
| 15884 | 1770 | PurpleRequestFields *fields, |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1771 | const char *ok_text, GCallback ok_cb, |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1772 | const char *cancel_text, GCallback cancel_cb, |
|
16490
68c22924d66b
Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evands@pidgin.im>
parents:
15884
diff
changeset
|
1773 | PurpleAccount *account, const char *who, PurpleConversation *conv, |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1774 | void *user_data); |
|
21223
6517e0eda8bc
Wrap the newly deprecated functions with #ifndef PURPLE_DISABLE_DEPRECATED.
Richard Laager <rlaager@pidgin.im>
parents:
21221
diff
changeset
|
1775 | #endif |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1776 | |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
1777 | /** |
| 5477 | 1778 | * Closes a request. |
| 1779 | * | |
| 1780 | * @param type The request type. | |
| 1781 | * @param uihandle The request UI handle. | |
| 1782 | */ | |
| 15884 | 1783 | void purple_request_close(PurpleRequestType type, void *uihandle); |
| 5477 | 1784 | |
| 1785 | /** | |
| 1786 | * Closes all requests registered with the specified handle. | |
| 1787 | * | |
| 1788 | * @param handle The handle. | |
| 1789 | */ | |
| 15884 | 1790 | void purple_request_close_with_handle(void *handle); |
| 5477 | 1791 | |
| 1792 | /** | |
| 15884 | 1793 | * A wrapper for purple_request_action() that uses @c Yes and @c No buttons. |
|
21221
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1794 | * |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1795 | * @since 2.3.0 |
| 5477 | 1796 | */ |
|
20685
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1797 | #define purple_request_yes_no_with_hint(handle, title, primary, secondary, \ |
|
16490
68c22924d66b
Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evands@pidgin.im>
parents:
15884
diff
changeset
|
1798 | default_action, account, who, conv, \ |
| 19252 | 1799 | ui_hint, user_data, yes_cb, no_cb) \ |
|
20685
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1800 | purple_request_action_with_hint((handle), (title), (primary), (secondary), \ |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1801 | (default_action), account, who, conv, (ui_hint), (user_data), 2, \ |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1802 | _("_Yes"), (yes_cb), _("_No"), (no_cb)) |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1803 | |
|
21223
6517e0eda8bc
Wrap the newly deprecated functions with #ifndef PURPLE_DISABLE_DEPRECATED.
Richard Laager <rlaager@pidgin.im>
parents:
21221
diff
changeset
|
1804 | #ifndef PURPLE_DISABLE_DEPRECATED |
|
20685
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1805 | /** |
|
21221
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1806 | * A wrapper for purple_request_action() that uses @c Yes and @c No buttons. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1807 | * |
|
20685
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1808 | * @deprecated Please use purple_request_yes_no_with_hint instead. |
| 5477 | 1809 | */ |
| 15884 | 1810 | #define purple_request_yes_no(handle, title, primary, secondary, \ |
|
16490
68c22924d66b
Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evands@pidgin.im>
parents:
15884
diff
changeset
|
1811 | default_action, account, who, conv, \ |
|
68c22924d66b
Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evands@pidgin.im>
parents:
15884
diff
changeset
|
1812 | user_data, yes_cb, no_cb) \ |
| 15884 | 1813 | purple_request_action((handle), (title), (primary), (secondary), \ |
|
16490
68c22924d66b
Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evands@pidgin.im>
parents:
15884
diff
changeset
|
1814 | (default_action), account, who, conv, (user_data), 2, \ |
|
15356
a5ad506222a1
[gaim-migrate @ 18085]
Mark Doliner <markdoliner@pidgin.im>
parents:
14254
diff
changeset
|
1815 | _("_Yes"), (yes_cb), _("_No"), (no_cb)) |
|
21223
6517e0eda8bc
Wrap the newly deprecated functions with #ifndef PURPLE_DISABLE_DEPRECATED.
Richard Laager <rlaager@pidgin.im>
parents:
21221
diff
changeset
|
1816 | #endif |
| 5477 | 1817 | |
| 1818 | /** | |
| 15884 | 1819 | * A wrapper for purple_request_action() that uses @c OK and @c Cancel buttons. |
|
21221
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1820 | * |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1821 | * @since 2.3.0 |
| 5477 | 1822 | */ |
|
20685
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1823 | #define purple_request_ok_cancel_with_hint(handle, title, primary, secondary, \ |
|
16490
68c22924d66b
Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evands@pidgin.im>
parents:
15884
diff
changeset
|
1824 | default_action, account, who, conv, \ |
| 19252 | 1825 | ui_hint, user_data, ok_cb, cancel_cb) \ |
|
20685
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1826 | purple_request_action_with_hint((handle), (title), (primary), (secondary), \ |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1827 | (default_action), account, who, conv, (ui_hint), (user_data), 2, \ |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1828 | _("_OK"), (ok_cb), _("_Cancel"), (cancel_cb)) |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1829 | |
|
21223
6517e0eda8bc
Wrap the newly deprecated functions with #ifndef PURPLE_DISABLE_DEPRECATED.
Richard Laager <rlaager@pidgin.im>
parents:
21221
diff
changeset
|
1830 | #ifndef PURPLE_DISABLE_DEPRECATED |
|
20685
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1831 | /** |
|
21221
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1832 | * A wrapper for purple_request_action() that uses @c OK and @c Cancel buttons. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1833 | * |
|
20685
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1834 | * @deprecated Please use purple_request_ok_cancel_with_hint instead. |
| 5477 | 1835 | */ |
| 15884 | 1836 | #define purple_request_ok_cancel(handle, title, primary, secondary, \ |
|
16490
68c22924d66b
Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evands@pidgin.im>
parents:
15884
diff
changeset
|
1837 | default_action, account, who, conv, \ |
|
68c22924d66b
Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evands@pidgin.im>
parents:
15884
diff
changeset
|
1838 | user_data, ok_cb, cancel_cb) \ |
| 15884 | 1839 | purple_request_action((handle), (title), (primary), (secondary), \ |
|
16490
68c22924d66b
Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evands@pidgin.im>
parents:
15884
diff
changeset
|
1840 | (default_action), account, who, conv, (user_data), 2, \ |
|
15356
a5ad506222a1
[gaim-migrate @ 18085]
Mark Doliner <markdoliner@pidgin.im>
parents:
14254
diff
changeset
|
1841 | _("_OK"), (ok_cb), _("_Cancel"), (cancel_cb)) |
|
21223
6517e0eda8bc
Wrap the newly deprecated functions with #ifndef PURPLE_DISABLE_DEPRECATED.
Richard Laager <rlaager@pidgin.im>
parents:
21221
diff
changeset
|
1842 | #endif |
|
5498
01eec144d71b
[gaim-migrate @ 5894]
Christian Hammond <chipx86@chipx86.com>
parents:
5496
diff
changeset
|
1843 | |
|
01eec144d71b
[gaim-migrate @ 5894]
Christian Hammond <chipx86@chipx86.com>
parents:
5496
diff
changeset
|
1844 | /** |
| 15884 | 1845 | * A wrapper for purple_request_action() that uses Accept and Cancel buttons. |
|
21221
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1846 | * |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1847 | * @since 2.3.0 |
|
5498
01eec144d71b
[gaim-migrate @ 5894]
Christian Hammond <chipx86@chipx86.com>
parents:
5496
diff
changeset
|
1848 | */ |
|
20685
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1849 | #define purple_request_accept_cancel_with_hint(handle, title, primary, secondary, \ |
|
16490
68c22924d66b
Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evands@pidgin.im>
parents:
15884
diff
changeset
|
1850 | default_action, account, who, conv, \ |
| 19252 | 1851 | ui_hint, user_data, accept_cb, cancel_cb) \ |
|
20685
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1852 | purple_request_action_with_hint((handle), (title), (primary), (secondary), \ |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1853 | (default_action), account, who, conv, (ui_hint), (user_data), 2, \ |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1854 | _("_Accept"), (accept_cb), _("_Cancel"), (cancel_cb)) |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1855 | |
|
21223
6517e0eda8bc
Wrap the newly deprecated functions with #ifndef PURPLE_DISABLE_DEPRECATED.
Richard Laager <rlaager@pidgin.im>
parents:
21221
diff
changeset
|
1856 | #ifndef PURPLE_DISABLE_DEPRECATED |
|
20685
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1857 | /** |
|
21221
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1858 | * A wrapper for purple_request_action() that uses Accept and Cancel buttons. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1859 | * |
|
20685
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1860 | * @deprecated Please use purple_request_accept_cancel_with_hint instead. |
|
5498
01eec144d71b
[gaim-migrate @ 5894]
Christian Hammond <chipx86@chipx86.com>
parents:
5496
diff
changeset
|
1861 | */ |
| 15884 | 1862 | #define purple_request_accept_cancel(handle, title, primary, secondary, \ |
|
16490
68c22924d66b
Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evands@pidgin.im>
parents:
15884
diff
changeset
|
1863 | default_action, account, who, conv, \ |
|
68c22924d66b
Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evands@pidgin.im>
parents:
15884
diff
changeset
|
1864 | user_data, accept_cb, cancel_cb) \ |
| 15884 | 1865 | purple_request_action((handle), (title), (primary), (secondary), \ |
|
16490
68c22924d66b
Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evands@pidgin.im>
parents:
15884
diff
changeset
|
1866 | (default_action), account, who, conv, (user_data), 2, \ |
|
15356
a5ad506222a1
[gaim-migrate @ 18085]
Mark Doliner <markdoliner@pidgin.im>
parents:
14254
diff
changeset
|
1867 | _("_Accept"), (accept_cb), _("_Cancel"), (cancel_cb)) |
|
21223
6517e0eda8bc
Wrap the newly deprecated functions with #ifndef PURPLE_DISABLE_DEPRECATED.
Richard Laager <rlaager@pidgin.im>
parents:
21221
diff
changeset
|
1868 | #endif |
| 5477 | 1869 | |
|
8843
944c71cc01af
[gaim-migrate @ 9610]
Pekka Riikonen <priikone@silcnet.org>
parents:
8735
diff
changeset
|
1870 | /** |
|
13268
5f523813f880
[gaim-migrate @ 15633]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
12716
diff
changeset
|
1871 | * 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
|
1872 | * 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
|
1873 | * |
|
11201
f8fed1f48ca3
[gaim-migrate @ 13329]
Mark Doliner <markdoliner@pidgin.im>
parents:
10791
diff
changeset
|
1874 | * @param handle The plugin or connection handle. For some |
|
f8fed1f48ca3
[gaim-migrate @ 13329]
Mark Doliner <markdoliner@pidgin.im>
parents:
10791
diff
changeset
|
1875 | * things this is EXTREMELY important. See |
| 15884 | 1876 | * the comments on purple_request_input. |
|
13268
5f523813f880
[gaim-migrate @ 15633]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
12716
diff
changeset
|
1877 | * @param title The title for the dialog (may be @c NULL) |
|
5f523813f880
[gaim-migrate @ 15633]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
12716
diff
changeset
|
1878 | * @param filename The default filename (may be @c NULL) |
|
9502
d43f69354213
[gaim-migrate @ 10329]
Mark Doliner <markdoliner@pidgin.im>
parents:
9000
diff
changeset
|
1879 | * @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
|
1880 | * 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
|
1881 | * @param ok_cb The callback for the @c OK button. |
|
5f523813f880
[gaim-migrate @ 15633]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
12716
diff
changeset
|
1882 | * @param cancel_cb The callback for the @c Cancel button. |
|
16490
68c22924d66b
Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evands@pidgin.im>
parents:
15884
diff
changeset
|
1883 | * @param account The PurpleAccount associated with this request, or NULL if none is |
|
68c22924d66b
Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evands@pidgin.im>
parents:
15884
diff
changeset
|
1884 | * @param who The username of the buddy assocaited with this request, or NULL if none is |
|
19585
14b519abcc26
Fix some conversion warnings about using negative values with unsigned types. There are more, but these were easy fixes. You may think that I'm changing the API, but I'm really not - it was just wrong.
Daniel Atallah <datallah@pidgin.im>
parents:
18243
diff
changeset
|
1885 | * @param conv The PurpleConversation associated with this request, or NULL if none is |
| 19252 | 1886 | * @param ui_hint UI hint |
|
8843
944c71cc01af
[gaim-migrate @ 9610]
Pekka Riikonen <priikone@silcnet.org>
parents:
8735
diff
changeset
|
1887 | * @param user_data The data to pass to the callback. |
|
944c71cc01af
[gaim-migrate @ 9610]
Pekka Riikonen <priikone@silcnet.org>
parents:
8735
diff
changeset
|
1888 | * |
|
944c71cc01af
[gaim-migrate @ 9610]
Pekka Riikonen <priikone@silcnet.org>
parents:
8735
diff
changeset
|
1889 | * @return A UI-specific handle. |
|
21221
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1890 | * |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1891 | * @since 2.3.0 |
|
8843
944c71cc01af
[gaim-migrate @ 9610]
Pekka Riikonen <priikone@silcnet.org>
parents:
8735
diff
changeset
|
1892 | */ |
|
20685
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1893 | void *purple_request_file_with_hint(void *handle, const char *title, const char *filename, |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1894 | gboolean savedialog, |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1895 | GCallback ok_cb, GCallback cancel_cb, |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1896 | PurpleAccount *account, const char *who, PurpleConversation *conv, |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1897 | const char *ui_hint, void *user_data); |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1898 | |
|
21223
6517e0eda8bc
Wrap the newly deprecated functions with #ifndef PURPLE_DISABLE_DEPRECATED.
Richard Laager <rlaager@pidgin.im>
parents:
21221
diff
changeset
|
1899 | #ifndef PURPLE_DISABLE_DEPRECATED |
|
20685
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1900 | /** |
|
21221
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1901 | * Displays a file selector request dialog. Returns the selected filename to |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1902 | * the callback. Can be used for either opening a file or saving a file. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1903 | * |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1904 | * @param handle The plugin or connection handle. For some |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1905 | * things this is EXTREMELY important. See |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1906 | * the comments on purple_request_input. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1907 | * @param title The title for the dialog (may be @c NULL) |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1908 | * @param filename The default filename (may be @c NULL) |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1909 | * @param savedialog True if this dialog is being used to save a file. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1910 | * False if it is being used to open a file. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1911 | * @param ok_cb The callback for the @c OK button. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1912 | * @param cancel_cb The callback for the @c Cancel button. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1913 | * @param account The PurpleAccount associated with this request, or NULL if none is |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1914 | * @param who The username of the buddy assocaited with this request, or NULL if none is |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1915 | * @param conv The PurpleConversation associated with this request, or NULL if none is |
|
8843
944c71cc01af
[gaim-migrate @ 9610]
Pekka Riikonen <priikone@silcnet.org>
parents:
8735
diff
changeset
|
1916 | * @param user_data The data to pass to the callback. |
|
944c71cc01af
[gaim-migrate @ 9610]
Pekka Riikonen <priikone@silcnet.org>
parents:
8735
diff
changeset
|
1917 | * |
|
944c71cc01af
[gaim-migrate @ 9610]
Pekka Riikonen <priikone@silcnet.org>
parents:
8735
diff
changeset
|
1918 | * @return A UI-specific handle. |
|
21221
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1919 | * |
|
20685
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1920 | * @deprecated Please use purple_request_file_with_hint() instead. |
|
8843
944c71cc01af
[gaim-migrate @ 9610]
Pekka Riikonen <priikone@silcnet.org>
parents:
8735
diff
changeset
|
1921 | */ |
| 15884 | 1922 | void *purple_request_file(void *handle, const char *title, const char *filename, |
|
9502
d43f69354213
[gaim-migrate @ 10329]
Mark Doliner <markdoliner@pidgin.im>
parents:
9000
diff
changeset
|
1923 | gboolean savedialog, |
|
d43f69354213
[gaim-migrate @ 10329]
Mark Doliner <markdoliner@pidgin.im>
parents:
9000
diff
changeset
|
1924 | GCallback ok_cb, GCallback cancel_cb, |
|
16490
68c22924d66b
Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evands@pidgin.im>
parents:
15884
diff
changeset
|
1925 | PurpleAccount *account, const char *who, PurpleConversation *conv, |
|
9502
d43f69354213
[gaim-migrate @ 10329]
Mark Doliner <markdoliner@pidgin.im>
parents:
9000
diff
changeset
|
1926 | void *user_data); |
|
21223
6517e0eda8bc
Wrap the newly deprecated functions with #ifndef PURPLE_DISABLE_DEPRECATED.
Richard Laager <rlaager@pidgin.im>
parents:
21221
diff
changeset
|
1927 | #endif |
|
8843
944c71cc01af
[gaim-migrate @ 9610]
Pekka Riikonen <priikone@silcnet.org>
parents:
8735
diff
changeset
|
1928 | |
|
13283
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
1929 | /** |
|
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
1930 | * Displays a folder select dialog. Returns the selected filename to |
|
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
1931 | * the callback. |
|
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
1932 | * |
|
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
1933 | * @param handle The plugin or connection handle. For some |
|
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
1934 | * things this is EXTREMELY important. See |
| 15884 | 1935 | * the comments on purple_request_input. |
|
13283
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
1936 | * @param title The title for the dialog (may be @c NULL) |
|
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
1937 | * @param dirname The default directory name (may be @c NULL) |
|
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
1938 | * @param ok_cb The callback for the @c OK button. |
|
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
1939 | * @param cancel_cb The callback for the @c Cancel button. |
|
16490
68c22924d66b
Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evands@pidgin.im>
parents:
15884
diff
changeset
|
1940 | * @param account The PurpleAccount associated with this request, or NULL if none is |
|
68c22924d66b
Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evands@pidgin.im>
parents:
15884
diff
changeset
|
1941 | * @param who The username of the buddy assocaited with this request, or NULL if none is |
|
19585
14b519abcc26
Fix some conversion warnings about using negative values with unsigned types. There are more, but these were easy fixes. You may think that I'm changing the API, but I'm really not - it was just wrong.
Daniel Atallah <datallah@pidgin.im>
parents:
18243
diff
changeset
|
1942 | * @param conv The PurpleConversation associated with this request, or NULL if none is |
| 19252 | 1943 | * @param ui_hint UI hint |
|
13283
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
1944 | * @param user_data The data to pass to the callback. |
|
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
1945 | * |
|
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
1946 | * @return A UI-specific handle. |
|
21221
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1947 | * |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1948 | * @since 2.3.0 |
|
13283
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
1949 | */ |
|
20685
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1950 | void *purple_request_folder_with_hint(void *handle, const char *title, const char *dirname, |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1951 | GCallback ok_cb, GCallback cancel_cb, |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1952 | PurpleAccount *account, const char *who, PurpleConversation *conv, |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1953 | const char *ui_hint, void *user_data); |
|
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1954 | |
|
21223
6517e0eda8bc
Wrap the newly deprecated functions with #ifndef PURPLE_DISABLE_DEPRECATED.
Richard Laager <rlaager@pidgin.im>
parents:
21221
diff
changeset
|
1955 | #ifndef PURPLE_DISABLE_DEPRECATED |
|
20685
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1956 | /** |
|
21221
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1957 | * Displays a folder select dialog. Returns the selected filename to |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1958 | * the callback. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1959 | * |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1960 | * @param handle The plugin or connection handle. For some |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1961 | * things this is EXTREMELY important. See |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1962 | * the comments on purple_request_input. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1963 | * @param title The title for the dialog (may be @c NULL) |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1964 | * @param dirname The default directory name (may be @c NULL) |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1965 | * @param ok_cb The callback for the @c OK button. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1966 | * @param cancel_cb The callback for the @c Cancel button. |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1967 | * @param account The PurpleAccount associated with this request, or NULL if none is |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1968 | * @param who The username of the buddy assocaited with this request, or NULL if none is |
|
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1969 | * @param conv The PurpleConversation associated with this request, or NULL if none is |
|
13283
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
1970 | * @param user_data The data to pass to the callback. |
|
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
1971 | * |
|
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
1972 | * @return A UI-specific handle. |
|
21221
e28334aad05a
Document the with_hint API changes.
Richard Laager <rlaager@pidgin.im>
parents:
21220
diff
changeset
|
1973 | * |
|
20685
039aef89faf6
Updated hinting to be less invasive
Gabriel Schulhof <nix@go-nix.ca>
parents:
20684
diff
changeset
|
1974 | * @deprecated Please use purple_request_folder_with_hint() instead. |
|
13283
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
1975 | */ |
| 15884 | 1976 | void *purple_request_folder(void *handle, const char *title, const char *dirname, |
|
13283
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
1977 | GCallback ok_cb, GCallback cancel_cb, |
|
16490
68c22924d66b
Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
Evan Schoenberg <evands@pidgin.im>
parents:
15884
diff
changeset
|
1978 | PurpleAccount *account, const char *who, PurpleConversation *conv, |
|
13283
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
1979 | void *user_data); |
|
21223
6517e0eda8bc
Wrap the newly deprecated functions with #ifndef PURPLE_DISABLE_DEPRECATED.
Richard Laager <rlaager@pidgin.im>
parents:
21221
diff
changeset
|
1980 | #endif |
|
13283
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
1981 | |
|
9502
d43f69354213
[gaim-migrate @ 10329]
Mark Doliner <markdoliner@pidgin.im>
parents:
9000
diff
changeset
|
1982 | /*@}*/ |
|
8843
944c71cc01af
[gaim-migrate @ 9610]
Pekka Riikonen <priikone@silcnet.org>
parents:
8735
diff
changeset
|
1983 | |
| 5477 | 1984 | /**************************************************************************/ |
| 10566 | 1985 | /** @name UI Registration Functions */ |
| 5477 | 1986 | /**************************************************************************/ |
| 1987 | /*@{*/ | |
| 1988 | ||
| 1989 | /** | |
| 1990 | * Sets the UI operations structure to be used when displaying a | |
| 1991 | * request. | |
| 1992 | * | |
| 1993 | * @param ops The UI operations structure. | |
| 1994 | */ | |
| 15884 | 1995 | void purple_request_set_ui_ops(PurpleRequestUiOps *ops); |
| 5477 | 1996 | |
| 1997 | /** | |
| 1998 | * Returns the UI operations structure to be used when displaying a | |
| 1999 | * request. | |
| 2000 | * | |
|
6720
cdc5348dd848
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6035
diff
changeset
|
2001 | * @return The UI operations structure. |
| 5477 | 2002 | */ |
| 15884 | 2003 | PurpleRequestUiOps *purple_request_get_ui_ops(void); |
| 5477 | 2004 | |
| 2005 | /*@}*/ | |
| 2006 | ||
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5809
diff
changeset
|
2007 | #ifdef __cplusplus |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5809
diff
changeset
|
2008 | } |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5809
diff
changeset
|
2009 | #endif |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5809
diff
changeset
|
2010 | |
| 15884 | 2011 | #endif /* _PURPLE_REQUEST_H_ */ |