Tue, 19 Sep 2023 01:53:51 -0500
Move PurpleRequest{Field,Group,Page} into request dir
Also add the other files to `POTFILES.in`, though most have no translated strings.
Testing Done:
Compiled only.
Reviewed at https://reviews.imfreedom.org/r/2621/
|
40584
6f198a69ac48
A bunch of documentation cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
1 | /* |
|
6f198a69ac48
A bunch of documentation cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
2 | * Purple - Internet Messaging Library |
|
6f198a69ac48
A bunch of documentation cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
3 | * Copyright (C) Pidgin Developers <devel@pidgin.im> |
| 5477 | 4 | * |
| 15884 | 5 | * Purple is the legal property of its developers, whose names are too numerous |
| 8046 | 6 | * to list here. Please refer to the COPYRIGHT file distributed with this |
| 7 | * source distribution. | |
|
7035
76bca80cd91d
[gaim-migrate @ 7598]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
8 | * |
| 5477 | 9 | * This program is free software; you can redistribute it and/or modify |
| 10 | * it under the terms of the GNU General Public License as published by | |
| 11 | * the Free Software Foundation; either version 2 of the License, or | |
| 12 | * (at your option) any later version. | |
| 13 | * | |
| 14 | * This program is distributed in the hope that it will be useful, | |
| 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 17 | * GNU General Public License for more details. | |
| 18 | * | |
| 19 | * You should have received a copy of the GNU General Public License | |
|
40584
6f198a69ac48
A bunch of documentation cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
20 | * along with this program; if not, see <https://www.gnu.org/licenses/>. |
| 5477 | 21 | */ |
|
35487
494f09f7f331
Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents:
35486
diff
changeset
|
22 | |
|
40474
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40439
diff
changeset
|
23 | #if !defined(PURPLE_GLOBAL_HEADER_INSIDE) && !defined(PURPLE_COMPILATION) |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40439
diff
changeset
|
24 | # error "only <purple.h> may be included directly" |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40439
diff
changeset
|
25 | #endif |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40439
diff
changeset
|
26 | |
|
39659
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39512
diff
changeset
|
27 | #ifndef PURPLE_REQUEST_H |
|
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39512
diff
changeset
|
28 | #define PURPLE_REQUEST_H |
|
40584
6f198a69ac48
A bunch of documentation cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
29 | |
| 5477 | 30 | #include <stdlib.h> |
|
40439
e9838d634d5e
Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
40330
diff
changeset
|
31 | |
|
e9838d634d5e
Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
40330
diff
changeset
|
32 | #include <glib.h> |
| 5477 | 33 | #include <glib-object.h> |
| 34 | ||
| 35572 | 35 | #define PURPLE_TYPE_REQUEST_UI_OPS (purple_request_ui_ops_get_type()) |
| 36 | ||
|
32554
0d844fac6679
Fix a bunch of tiny problems generating our doxygen documentation
Mark Doliner <markdoliner@pidgin.im>
parents:
32531
diff
changeset
|
37 | /** |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
38 | * PurpleRequestCommonParameters: |
|
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
39 | * |
|
34329
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
40 | * Common parameters for UI operations. |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
41 | */ |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
42 | typedef struct _PurpleRequestCommonParameters PurpleRequestCommonParameters; |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
43 | |
|
35466
e259e75f1c6f
Fix some gtk-doc warnings till xmlnode.h
Ankit Vani <a@nevitus.org>
parents:
35442
diff
changeset
|
44 | typedef struct _PurpleRequestUiOps PurpleRequestUiOps; |
|
e259e75f1c6f
Fix some gtk-doc warnings till xmlnode.h
Ankit Vani <a@nevitus.org>
parents:
35442
diff
changeset
|
45 | |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
46 | #include "account.h" |
|
41917
b3eda1d781c6
Fix some include loops
Gary Kramlich <grim@reaperworld.com>
parents:
41745
diff
changeset
|
47 | #include "purpleconversation.h" |
|
42327
739171ebe9fe
Move PurpleRequest{Field,Group,Page} into request dir
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42128
diff
changeset
|
48 | #include "request/purplerequestpage.h" |
|
739171ebe9fe
Move PurpleRequest{Field,Group,Page} into request dir
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42128
diff
changeset
|
49 | #include "request/purplerequestgroup.h" |
|
739171ebe9fe
Move PurpleRequest{Field,Group,Page} into request dir
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42128
diff
changeset
|
50 | #include "request/purplerequestfield.h" |
|
41917
b3eda1d781c6
Fix some include loops
Gary Kramlich <grim@reaperworld.com>
parents:
41745
diff
changeset
|
51 | #include "request-datasheet.h" |
|
8286
7a4c038d1ecd
[gaim-migrate @ 9010]
Christian Hammond <chipx86@chipx86.com>
parents:
8285
diff
changeset
|
52 | |
| 15884 | 53 | #define PURPLE_DEFAULT_ACTION_NONE -1 |
|
9948
2642975ffb85
[gaim-migrate @ 10844]
Dave West <kat@users.sourceforge.net>
parents:
9502
diff
changeset
|
54 | |
| 5477 | 55 | /** |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
56 | * PurpleRequestType: |
|
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
57 | * @PURPLE_REQUEST_INPUT: Text input request. |
|
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
58 | * @PURPLE_REQUEST_CHOICE: Multiple-choice request. |
|
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
59 | * @PURPLE_REQUEST_ACTION: Action request. |
|
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
60 | * @PURPLE_REQUEST_WAIT: Please wait dialog. |
|
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
61 | * @PURPLE_REQUEST_FIELDS: Multiple fields request. |
|
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
62 | * @PURPLE_REQUEST_FILE: File open or save request. |
|
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
63 | * @PURPLE_REQUEST_FOLDER: Folder selection request. |
|
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
64 | * |
| 5477 | 65 | * Request types. |
| 66 | */ | |
| 67 | typedef enum | |
| 68 | { | |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
69 | PURPLE_REQUEST_INPUT = 0, |
|
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
70 | PURPLE_REQUEST_CHOICE, |
|
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
71 | PURPLE_REQUEST_ACTION, |
|
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
72 | PURPLE_REQUEST_WAIT, |
|
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
73 | PURPLE_REQUEST_FIELDS, |
|
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
74 | PURPLE_REQUEST_FILE, |
|
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
75 | PURPLE_REQUEST_FOLDER |
| 5477 | 76 | |
| 15884 | 77 | } PurpleRequestType; |
| 5477 | 78 | |
| 79 | /** | |
|
39506
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
80 | * PurpleRequestFeature: |
|
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
81 | * @PURPLE_REQUEST_FEATURE_HTML: Specifies that HTML should be supported. |
|
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
82 | * |
|
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
83 | * Feature flags for the request api. |
|
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
84 | */ |
|
34335
2496c53cd401
Request API: HTML feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34334
diff
changeset
|
85 | typedef enum |
|
2496c53cd401
Request API: HTML feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34334
diff
changeset
|
86 | { |
|
2496c53cd401
Request API: HTML feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34334
diff
changeset
|
87 | PURPLE_REQUEST_FEATURE_HTML = 0x00000001 |
|
2496c53cd401
Request API: HTML feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34334
diff
changeset
|
88 | } PurpleRequestFeature; |
|
2496c53cd401
Request API: HTML feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34334
diff
changeset
|
89 | |
|
39506
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
90 | /** |
|
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
91 | * PurpleRequestIconType: |
|
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
92 | * @PURPLE_REQUEST_ICON_DEFAULT: The default icon. |
|
39512
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
93 | * @PURPLE_REQUEST_ICON_REQUEST: Use a question icon. |
|
39506
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
94 | * @PURPLE_REQUEST_ICON_DIALOG: Use a dialog icon. |
|
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
95 | * @PURPLE_REQUEST_ICON_WAIT: Use a wait icon. |
|
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
96 | * @PURPLE_REQUEST_ICON_INFO: Use an info icon. |
|
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
97 | * @PURPLE_REQUEST_ICON_WARNING: Use a warning icon. |
|
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
98 | * @PURPLE_REQUEST_ICON_ERROR: Use an error icon. |
|
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
99 | * |
|
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
100 | * Constants to define which kind of icon should be displayed. |
|
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
101 | */ |
|
34336
5f3ec29a886b
Request API: the ability to set stock icons
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34335
diff
changeset
|
102 | typedef enum |
|
5f3ec29a886b
Request API: the ability to set stock icons
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34335
diff
changeset
|
103 | { |
|
34443
b7926ff76ed6
Request API: implement purple_request_wait
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34341
diff
changeset
|
104 | PURPLE_REQUEST_ICON_DEFAULT = 0, |
|
b7926ff76ed6
Request API: implement purple_request_wait
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34341
diff
changeset
|
105 | PURPLE_REQUEST_ICON_REQUEST, |
|
34336
5f3ec29a886b
Request API: the ability to set stock icons
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34335
diff
changeset
|
106 | PURPLE_REQUEST_ICON_DIALOG, |
|
34443
b7926ff76ed6
Request API: implement purple_request_wait
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34341
diff
changeset
|
107 | PURPLE_REQUEST_ICON_WAIT, |
|
34336
5f3ec29a886b
Request API: the ability to set stock icons
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34335
diff
changeset
|
108 | PURPLE_REQUEST_ICON_INFO, |
|
5f3ec29a886b
Request API: the ability to set stock icons
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34335
diff
changeset
|
109 | PURPLE_REQUEST_ICON_WARNING, |
|
5f3ec29a886b
Request API: the ability to set stock icons
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34335
diff
changeset
|
110 | PURPLE_REQUEST_ICON_ERROR |
|
5f3ec29a886b
Request API: the ability to set stock icons
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34335
diff
changeset
|
111 | } PurpleRequestIconType; |
|
5f3ec29a886b
Request API: the ability to set stock icons
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34335
diff
changeset
|
112 | |
|
39506
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
113 | /** |
|
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
114 | * PurpleRequestCancelCb: |
|
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
115 | * @data: user-data. |
|
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
116 | * |
|
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
117 | * A callback that's used to handle cancel actions. |
|
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
118 | */ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
38716
diff
changeset
|
119 | typedef void (*PurpleRequestCancelCb)(gpointer data); |
|
34448
e15d91a77cb3
Request API: PURPLE_REQUEST_WAIT with progress bar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34444
diff
changeset
|
120 | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
121 | /** |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
122 | * PurpleRequestUiOps: |
|
39512
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
123 | * @features: A bitwise or of #PurpleRequestFeature's. |
|
35466
e259e75f1c6f
Fix some gtk-doc warnings till xmlnode.h
Ankit Vani <a@nevitus.org>
parents:
35442
diff
changeset
|
124 | * @request_input: See purple_request_input(). |
|
e259e75f1c6f
Fix some gtk-doc warnings till xmlnode.h
Ankit Vani <a@nevitus.org>
parents:
35442
diff
changeset
|
125 | * @request_choice: See purple_request_choice_varg(). |
|
e259e75f1c6f
Fix some gtk-doc warnings till xmlnode.h
Ankit Vani <a@nevitus.org>
parents:
35442
diff
changeset
|
126 | * @request_action: See purple_request_action_varg(). |
|
e259e75f1c6f
Fix some gtk-doc warnings till xmlnode.h
Ankit Vani <a@nevitus.org>
parents:
35442
diff
changeset
|
127 | * @request_wait: See purple_request_wait(). |
|
e259e75f1c6f
Fix some gtk-doc warnings till xmlnode.h
Ankit Vani <a@nevitus.org>
parents:
35442
diff
changeset
|
128 | * @request_wait_update: See purple_request_wait_pulse(), |
|
39512
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
129 | * purple_request_wait_progress(). |
|
35466
e259e75f1c6f
Fix some gtk-doc warnings till xmlnode.h
Ankit Vani <a@nevitus.org>
parents:
35442
diff
changeset
|
130 | * @request_fields: See purple_request_fields(). |
|
e259e75f1c6f
Fix some gtk-doc warnings till xmlnode.h
Ankit Vani <a@nevitus.org>
parents:
35442
diff
changeset
|
131 | * @request_file: See purple_request_file(). |
|
e259e75f1c6f
Fix some gtk-doc warnings till xmlnode.h
Ankit Vani <a@nevitus.org>
parents:
35442
diff
changeset
|
132 | * @request_folder: See purple_request_folder(). |
|
39506
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
133 | * @close_request: See purple_request_close(). |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
134 | * |
| 5477 | 135 | * Request UI operations. |
| 136 | */ | |
|
35466
e259e75f1c6f
Fix some gtk-doc warnings till xmlnode.h
Ankit Vani <a@nevitus.org>
parents:
35442
diff
changeset
|
137 | struct _PurpleRequestUiOps |
| 5477 | 138 | { |
|
34335
2496c53cd401
Request API: HTML feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34334
diff
changeset
|
139 | PurpleRequestFeature features; |
|
2496c53cd401
Request API: HTML feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34334
diff
changeset
|
140 | |
| 5477 | 141 | void *(*request_input)(const char *title, const char *primary, |
|
34333
b92698241603
Request API refactoring: switch purple_request_file to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34332
diff
changeset
|
142 | const char *secondary, const char *default_value, |
|
b92698241603
Request API refactoring: switch purple_request_file to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34332
diff
changeset
|
143 | gboolean multiline, gboolean masked, gchar *hint, |
|
b92698241603
Request API refactoring: switch purple_request_file to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34332
diff
changeset
|
144 | const char *ok_text, GCallback ok_cb, |
|
b92698241603
Request API refactoring: switch purple_request_file to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34332
diff
changeset
|
145 | const char *cancel_text, GCallback cancel_cb, |
|
b92698241603
Request API refactoring: switch purple_request_file to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34332
diff
changeset
|
146 | PurpleRequestCommonParameters *cpar, void *user_data); |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
147 | |
| 5477 | 148 | void *(*request_choice)(const char *title, const char *primary, |
|
34338
c652670afac5
Request API refactoring: custom PURPLE_REQUEST_CHOICE values, instead of indexes
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34337
diff
changeset
|
149 | const char *secondary, gpointer default_value, |
|
c652670afac5
Request API refactoring: custom PURPLE_REQUEST_CHOICE values, instead of indexes
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34337
diff
changeset
|
150 | const char *ok_text, GCallback ok_cb, const char *cancel_text, |
|
c652670afac5
Request API refactoring: custom PURPLE_REQUEST_CHOICE values, instead of indexes
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34337
diff
changeset
|
151 | GCallback cancel_cb, PurpleRequestCommonParameters *cpar, |
|
c652670afac5
Request API refactoring: custom PURPLE_REQUEST_CHOICE values, instead of indexes
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34337
diff
changeset
|
152 | void *user_data, va_list choices); |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
153 | |
| 5477 | 154 | void *(*request_action)(const char *title, const char *primary, |
|
34333
b92698241603
Request API refactoring: switch purple_request_file to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34332
diff
changeset
|
155 | const char *secondary, int default_action, |
|
b92698241603
Request API refactoring: switch purple_request_file to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34332
diff
changeset
|
156 | PurpleRequestCommonParameters *cpar, void *user_data, |
|
b92698241603
Request API refactoring: switch purple_request_file to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34332
diff
changeset
|
157 | size_t action_count, va_list actions); |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
158 | |
|
34443
b7926ff76ed6
Request API: implement purple_request_wait
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34341
diff
changeset
|
159 | void *(*request_wait)(const char *title, const char *primary, |
|
34448
e15d91a77cb3
Request API: PURPLE_REQUEST_WAIT with progress bar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34444
diff
changeset
|
160 | const char *secondary, gboolean with_progress, |
|
e15d91a77cb3
Request API: PURPLE_REQUEST_WAIT with progress bar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34444
diff
changeset
|
161 | PurpleRequestCancelCb cancel_cb, |
|
34443
b7926ff76ed6
Request API: implement purple_request_wait
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34341
diff
changeset
|
162 | PurpleRequestCommonParameters *cpar, void *user_data); |
|
b7926ff76ed6
Request API: implement purple_request_wait
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34341
diff
changeset
|
163 | |
|
40721
909e3433f935
Register Finch enums in the GObject type system.
Gary Kramlich <grim@reaperworld.com>
parents:
40584
diff
changeset
|
164 | void (*request_wait_update)(void *ui_handle, gboolean animate, |
|
34448
e15d91a77cb3
Request API: PURPLE_REQUEST_WAIT with progress bar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34444
diff
changeset
|
165 | gfloat fraction); |
|
e15d91a77cb3
Request API: PURPLE_REQUEST_WAIT with progress bar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34444
diff
changeset
|
166 | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
167 | void *(*request_fields)(const char *title, const char *primary, |
|
42128
118067ca0367
Convert PurpleRequestPage into a GObject
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42122
diff
changeset
|
168 | const char *secondary, PurpleRequestPage *page, |
|
34333
b92698241603
Request API refactoring: switch purple_request_file to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34332
diff
changeset
|
169 | const char *ok_text, GCallback ok_cb, |
|
b92698241603
Request API refactoring: switch purple_request_file to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34332
diff
changeset
|
170 | const char *cancel_text, GCallback cancel_cb, |
|
b92698241603
Request API refactoring: switch purple_request_file to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34332
diff
changeset
|
171 | PurpleRequestCommonParameters *cpar, void *user_data); |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
172 | |
|
8843
944c71cc01af
[gaim-migrate @ 9610]
Pekka Riikonen <priikone@silcnet.org>
parents:
8735
diff
changeset
|
173 | void *(*request_file)(const char *title, const char *filename, |
|
34333
b92698241603
Request API refactoring: switch purple_request_file to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34332
diff
changeset
|
174 | gboolean savedialog, GCallback ok_cb, GCallback cancel_cb, |
|
b92698241603
Request API refactoring: switch purple_request_file to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34332
diff
changeset
|
175 | PurpleRequestCommonParameters *cpar, void *user_data); |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
176 | |
|
13283
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
177 | void *(*request_folder)(const char *title, const char *dirname, |
|
34334
f5f3a9945a6d
Request API refactoring: switch purple_request_folder to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34333
diff
changeset
|
178 | GCallback ok_cb, GCallback cancel_cb, |
|
f5f3a9945a6d
Request API refactoring: switch purple_request_folder to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34333
diff
changeset
|
179 | PurpleRequestCommonParameters *cpar, void *user_data); |
|
16743
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
16613
diff
changeset
|
180 | |
|
34443
b7926ff76ed6
Request API: implement purple_request_wait
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34341
diff
changeset
|
181 | void (*close_request)(PurpleRequestType type, void *ui_handle); |
|
b7926ff76ed6
Request API: implement purple_request_wait
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34341
diff
changeset
|
182 | |
|
35024
eb3afb7643ce
Added /*< private >*/ for padding members, clean them up and add missing ones
Ankit Vani <a@nevitus.org>
parents:
34451
diff
changeset
|
183 | /*< private >*/ |
|
16743
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
16613
diff
changeset
|
184 | 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
|
185 | 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
|
186 | void (*_purple_reserved3)(void); |
|
34331
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
187 | void (*_purple_reserved4)(void); |
|
35466
e259e75f1c6f
Fix some gtk-doc warnings till xmlnode.h
Ankit Vani <a@nevitus.org>
parents:
35442
diff
changeset
|
188 | }; |
| 5477 | 189 | |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
38716
diff
changeset
|
190 | typedef void (*PurpleRequestInputCb)(void *data, const char *value); |
|
22593
9f88ea5d40d9
Remove duplicated docs for _varg variants of request functions; correct and
Will Thompson <resiak@pidgin.im>
parents:
22263
diff
changeset
|
191 | |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
192 | /** |
|
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
193 | * PurpleRequestActionCb: |
|
39512
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
194 | * @data: user-data |
|
39506
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
195 | * @action: The action that was chosen. |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
196 | * |
|
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
197 | * The type of callbacks passed to purple_request_action(). The first |
| 35419 | 198 | * argument is the <literal>user_data</literal> parameter; the second is the |
| 199 | * index in the list of actions of the one chosen. | |
|
22593
9f88ea5d40d9
Remove duplicated docs for _varg variants of request functions; correct and
Will Thompson <resiak@pidgin.im>
parents:
22263
diff
changeset
|
200 | */ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
38716
diff
changeset
|
201 | typedef void (*PurpleRequestActionCb)(void *data, int action); |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
202 | |
|
39506
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
203 | /** |
|
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
204 | * PurpleRequestChoiceCb: |
|
39512
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
205 | * @data: user-data |
|
39506
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
206 | * @value: The choice that was made. |
|
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
207 | * |
|
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
208 | * The type of callbacks passed to purple_request_choice(). The first |
|
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
209 | * argument is the <literal>user_data</literal> parameter; the second is the |
|
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
210 | * values of those choice. |
|
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
211 | */ |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
38716
diff
changeset
|
212 | typedef void (*PurpleRequestChoiceCb)(void *data, gpointer value); |
|
42128
118067ca0367
Convert PurpleRequestPage into a GObject
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42122
diff
changeset
|
213 | typedef void (*PurpleRequestFieldsCb)(void *data, PurpleRequestPage *page); |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
38716
diff
changeset
|
214 | typedef void (*PurpleRequestFileCb)(void *data, const char *filename); |
|
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
38716
diff
changeset
|
215 | typedef void (*PurpleRequestHelpCb)(gpointer data); |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
216 | |
|
32787
7072f190d6ad
Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32604
diff
changeset
|
217 | G_BEGIN_DECLS |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5809
diff
changeset
|
218 | |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
219 | /**************************************************************************/ |
| 35472 | 220 | /* Common parameters API */ |
|
34329
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
221 | /**************************************************************************/ |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
222 | |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
223 | /** |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
224 | * purple_request_cpar_new: |
|
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
225 | * |
|
34329
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
226 | * Creates new parameters set for the request, which may or may not be used by |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
227 | * the UI to display the request. |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
228 | * |
| 40188 | 229 | * Returns: (transfer full): The new parameters set. |
|
34329
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
230 | */ |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
231 | PurpleRequestCommonParameters * |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
232 | purple_request_cpar_new(void); |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
233 | |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
234 | /** |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
235 | * purple_request_cpar_from_connection: |
|
39506
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
236 | * @gc: The #PurpleConnection. |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
237 | * |
|
34329
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
238 | * Creates new parameters set initially bound with the #PurpleConnection. |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
239 | * |
| 40188 | 240 | * Returns: (transfer full): The new parameters set. |
|
34329
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
241 | */ |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
242 | PurpleRequestCommonParameters * |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
243 | purple_request_cpar_from_connection(PurpleConnection *gc); |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
244 | |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
245 | /** |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
246 | * purple_request_cpar_from_account: |
|
39506
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
247 | * @account: The #PurpleAccount. |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
248 | * |
|
34329
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
249 | * Creates new parameters set initially bound with the #PurpleAccount. |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
250 | * |
| 40188 | 251 | * Returns: (transfer full): The new parameters set. |
|
34329
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
252 | */ |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
253 | PurpleRequestCommonParameters * |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
254 | purple_request_cpar_from_account(PurpleAccount *account); |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
255 | |
|
34331
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
256 | /** |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
257 | * purple_request_cpar_from_conversation: |
|
39506
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
258 | * @conv: The #PurpleConversation. |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
259 | * |
|
34331
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
260 | * Creates new parameters set initially bound with the #PurpleConversation. |
|
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
261 | * |
| 40188 | 262 | * Returns: (transfer full): The new parameters set. |
|
34331
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
263 | */ |
|
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
264 | PurpleRequestCommonParameters * |
|
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
265 | purple_request_cpar_from_conversation(PurpleConversation *conv); |
|
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
266 | |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
267 | /** |
|
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
268 | * purple_request_cpar_ref: |
|
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
269 | * @cpar: The object to ref. |
|
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
270 | * |
|
34329
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
271 | * Increases the reference count on the parameters set. |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
272 | */ |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
273 | void |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
274 | purple_request_cpar_ref(PurpleRequestCommonParameters *cpar); |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
275 | |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
276 | /** |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
277 | * purple_request_cpar_unref: |
|
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
278 | * @cpar: The parameters set object to unref and possibly destroy. |
|
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
279 | * |
|
34329
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
280 | * Decreases the reference count on the parameters set. |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
281 | * |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
282 | * The object will be destroyed when this reaches 0. |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
283 | */ |
|
42112
86e0a26348a1
Use RcBox for PurpleRequestCommonParameters
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41917
diff
changeset
|
284 | void |
|
34329
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
285 | purple_request_cpar_unref(PurpleRequestCommonParameters *cpar); |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
286 | |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
287 | /** |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
288 | * purple_request_cpar_set_account: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
289 | * @cpar: The parameters set. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
290 | * @account: The #PurpleAccount to associate. |
|
34329
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
291 | * |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
292 | * Sets the #PurpleAccount associated with the request, or %NULL, if none is. |
|
34329
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
293 | */ |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
294 | void |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
295 | purple_request_cpar_set_account(PurpleRequestCommonParameters *cpar, |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
296 | PurpleAccount *account); |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
297 | |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
298 | /** |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
299 | * purple_request_cpar_get_account: |
|
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
300 | * @cpar: The parameters set (may be %NULL). |
|
34329
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
301 | * |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
302 | * Gets the #PurpleAccount associated with the request. |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
303 | * |
|
39738
14d425a528ad
Add missing transfer annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39659
diff
changeset
|
304 | * Returns: (transfer none): The associated #PurpleAccount, or %NULL if none is |
|
14d425a528ad
Add missing transfer annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39659
diff
changeset
|
305 | * set. |
|
34329
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
306 | */ |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
307 | PurpleAccount * |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
308 | purple_request_cpar_get_account(PurpleRequestCommonParameters *cpar); |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
309 | |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
310 | /** |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
311 | * purple_request_cpar_set_conversation: |
|
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
312 | * @cpar: The parameters set. |
|
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
313 | * @conv: The #PurpleConversation to associate. |
|
34329
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
314 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
315 | * Sets the #PurpleConversation associated with the request, or %NULL, if |
|
34329
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
316 | * none is. |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
317 | */ |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
318 | void |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
319 | purple_request_cpar_set_conversation(PurpleRequestCommonParameters *cpar, |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
320 | PurpleConversation *conv); |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
321 | |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
322 | /** |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
323 | * purple_request_cpar_get_conversation: |
|
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
324 | * @cpar: The parameters set (may be %NULL). |
|
34329
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
325 | * |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
326 | * Gets the #PurpleConversation associated with the request. |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
327 | * |
|
39738
14d425a528ad
Add missing transfer annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39659
diff
changeset
|
328 | * Returns: (transfer none): The associated #PurpleConversation, or %NULL if |
|
14d425a528ad
Add missing transfer annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39659
diff
changeset
|
329 | * none is set. |
|
34329
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
330 | */ |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
331 | PurpleConversation * |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
332 | purple_request_cpar_get_conversation(PurpleRequestCommonParameters *cpar); |
|
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
333 | |
|
34331
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
334 | /** |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
335 | * purple_request_cpar_set_icon: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
336 | * @cpar: The parameters set. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
337 | * @icon_type: The icon type. |
|
34336
5f3ec29a886b
Request API: the ability to set stock icons
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34335
diff
changeset
|
338 | * |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
339 | * Sets the icon associated with the request. |
|
34336
5f3ec29a886b
Request API: the ability to set stock icons
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34335
diff
changeset
|
340 | */ |
|
5f3ec29a886b
Request API: the ability to set stock icons
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34335
diff
changeset
|
341 | void |
|
5f3ec29a886b
Request API: the ability to set stock icons
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34335
diff
changeset
|
342 | purple_request_cpar_set_icon(PurpleRequestCommonParameters *cpar, |
|
5f3ec29a886b
Request API: the ability to set stock icons
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34335
diff
changeset
|
343 | PurpleRequestIconType icon_type); |
|
5f3ec29a886b
Request API: the ability to set stock icons
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34335
diff
changeset
|
344 | |
|
5f3ec29a886b
Request API: the ability to set stock icons
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34335
diff
changeset
|
345 | /** |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
346 | * purple_request_cpar_get_icon: |
|
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
347 | * @cpar: The parameters set. |
|
34336
5f3ec29a886b
Request API: the ability to set stock icons
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34335
diff
changeset
|
348 | * |
|
5f3ec29a886b
Request API: the ability to set stock icons
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34335
diff
changeset
|
349 | * Gets the icon associated with the request. |
|
5f3ec29a886b
Request API: the ability to set stock icons
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34335
diff
changeset
|
350 | * |
| 35395 | 351 | * Returns: icon_type The icon type. |
|
34336
5f3ec29a886b
Request API: the ability to set stock icons
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34335
diff
changeset
|
352 | */ |
|
5f3ec29a886b
Request API: the ability to set stock icons
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34335
diff
changeset
|
353 | PurpleRequestIconType |
|
5f3ec29a886b
Request API: the ability to set stock icons
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34335
diff
changeset
|
354 | purple_request_cpar_get_icon(PurpleRequestCommonParameters *cpar); |
|
5f3ec29a886b
Request API: the ability to set stock icons
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34335
diff
changeset
|
355 | |
|
5f3ec29a886b
Request API: the ability to set stock icons
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34335
diff
changeset
|
356 | /** |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
357 | * purple_request_cpar_set_custom_icon: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
358 | * @cpar: The parameters set. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
359 | * @icon_data: The icon image contents (%NULL to reset). |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
360 | * @icon_size: The icon image size. |
|
34331
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
361 | * |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
362 | * Sets the custom icon associated with the request. |
|
34331
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
363 | */ |
|
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
364 | void |
|
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
365 | purple_request_cpar_set_custom_icon(PurpleRequestCommonParameters *cpar, |
|
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
366 | gconstpointer icon_data, gsize icon_size); |
|
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
367 | |
|
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
368 | /** |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
369 | * purple_request_cpar_get_custom_icon: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
370 | * @cpar: The parameters set (may be %NULL). |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
371 | * @icon_size: The pointer to variable, where icon size should be stored |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
372 | * (may be %NULL). |
|
34331
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
373 | * |
|
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
374 | * Gets the custom icon associated with the request. |
|
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
375 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
376 | * Returns: The icon image contents. |
|
34331
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
377 | */ |
|
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
378 | gconstpointer |
|
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
379 | purple_request_cpar_get_custom_icon(PurpleRequestCommonParameters *cpar, |
|
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
380 | gsize *icon_size); |
|
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
381 | |
|
34335
2496c53cd401
Request API: HTML feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34334
diff
changeset
|
382 | /** |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
383 | * purple_request_cpar_set_html: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
384 | * @cpar: The parameters set. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
385 | * @enabled: 1, if the text passed with the request contains HTML, |
|
34335
2496c53cd401
Request API: HTML feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34334
diff
changeset
|
386 | * 0 otherwise. Don't use any other values, as they may be |
|
2496c53cd401
Request API: HTML feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34334
diff
changeset
|
387 | * redefined in the future. |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
388 | * |
|
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
389 | * Switches the request text to be HTML or not. |
|
34335
2496c53cd401
Request API: HTML feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34334
diff
changeset
|
390 | */ |
|
2496c53cd401
Request API: HTML feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34334
diff
changeset
|
391 | void |
|
2496c53cd401
Request API: HTML feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34334
diff
changeset
|
392 | purple_request_cpar_set_html(PurpleRequestCommonParameters *cpar, |
|
2496c53cd401
Request API: HTML feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34334
diff
changeset
|
393 | gboolean enabled); |
|
2496c53cd401
Request API: HTML feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34334
diff
changeset
|
394 | |
|
2496c53cd401
Request API: HTML feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34334
diff
changeset
|
395 | /** |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
396 | * purple_request_cpar_is_html: |
|
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
397 | * @cpar: The parameters set (may be %NULL). |
|
34335
2496c53cd401
Request API: HTML feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34334
diff
changeset
|
398 | * |
|
2496c53cd401
Request API: HTML feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34334
diff
changeset
|
399 | * Checks, if the text passed to the request is HTML. |
|
2496c53cd401
Request API: HTML feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34334
diff
changeset
|
400 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
401 | * Returns: %TRUE, if the text is HTML, %FALSE otherwise. |
|
34335
2496c53cd401
Request API: HTML feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34334
diff
changeset
|
402 | */ |
|
2496c53cd401
Request API: HTML feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34334
diff
changeset
|
403 | gboolean |
|
2496c53cd401
Request API: HTML feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34334
diff
changeset
|
404 | purple_request_cpar_is_html(PurpleRequestCommonParameters *cpar); |
|
2496c53cd401
Request API: HTML feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34334
diff
changeset
|
405 | |
|
34339
3579cb14f8f2
Request API: compact layout feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34338
diff
changeset
|
406 | /** |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
407 | * purple_request_cpar_set_compact: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
408 | * @cpar: The parameters set. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
409 | * @compact: TRUE for compact, FALSE otherwise. |
|
34339
3579cb14f8f2
Request API: compact layout feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34338
diff
changeset
|
410 | * |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
411 | * Sets dialog display mode to compact or default. |
|
34339
3579cb14f8f2
Request API: compact layout feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34338
diff
changeset
|
412 | */ |
|
3579cb14f8f2
Request API: compact layout feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34338
diff
changeset
|
413 | void |
|
3579cb14f8f2
Request API: compact layout feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34338
diff
changeset
|
414 | purple_request_cpar_set_compact(PurpleRequestCommonParameters *cpar, |
|
3579cb14f8f2
Request API: compact layout feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34338
diff
changeset
|
415 | gboolean compact); |
|
3579cb14f8f2
Request API: compact layout feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34338
diff
changeset
|
416 | |
|
3579cb14f8f2
Request API: compact layout feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34338
diff
changeset
|
417 | /** |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
418 | * purple_request_cpar_is_compact: |
|
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
419 | * @cpar: The parameters set (may be %NULL). |
|
34339
3579cb14f8f2
Request API: compact layout feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34338
diff
changeset
|
420 | * |
|
3579cb14f8f2
Request API: compact layout feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34338
diff
changeset
|
421 | * Gets dialog display mode. |
|
3579cb14f8f2
Request API: compact layout feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34338
diff
changeset
|
422 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
423 | * Returns: TRUE for compact, FALSE for default. |
|
34339
3579cb14f8f2
Request API: compact layout feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34338
diff
changeset
|
424 | */ |
|
3579cb14f8f2
Request API: compact layout feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34338
diff
changeset
|
425 | gboolean |
|
3579cb14f8f2
Request API: compact layout feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34338
diff
changeset
|
426 | purple_request_cpar_is_compact(PurpleRequestCommonParameters *cpar); |
|
3579cb14f8f2
Request API: compact layout feature
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34338
diff
changeset
|
427 | |
|
34341
b23d9c0b64d5
Request API: help button support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34339
diff
changeset
|
428 | /** |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
429 | * purple_request_cpar_set_help_cb: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
430 | * @cpar: The parameters set. |
| 40186 | 431 | * @cb: (scope notified): The callback. |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
432 | * @user_data: The data to be passed to the callback. |
|
34341
b23d9c0b64d5
Request API: help button support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34339
diff
changeset
|
433 | * |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
434 | * Sets the callback for the Help button. |
|
34341
b23d9c0b64d5
Request API: help button support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34339
diff
changeset
|
435 | */ |
|
b23d9c0b64d5
Request API: help button support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34339
diff
changeset
|
436 | void |
|
b23d9c0b64d5
Request API: help button support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34339
diff
changeset
|
437 | purple_request_cpar_set_help_cb(PurpleRequestCommonParameters *cpar, |
|
b23d9c0b64d5
Request API: help button support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34339
diff
changeset
|
438 | PurpleRequestHelpCb cb, gpointer user_data); |
|
b23d9c0b64d5
Request API: help button support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34339
diff
changeset
|
439 | |
|
b23d9c0b64d5
Request API: help button support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34339
diff
changeset
|
440 | /** |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
441 | * purple_request_cpar_get_help_cb: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
442 | * @cpar: The parameters set (may be %NULL). |
|
39512
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
443 | * @user_data: The pointer to the variable, where user data (to be passed to |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
444 | * callback function) should be stored. |
|
34444
4fe0e2422d82
Request API: extra actions for fields request
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34443
diff
changeset
|
445 | * |
|
34341
b23d9c0b64d5
Request API: help button support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34339
diff
changeset
|
446 | * Gets the callback for the Help button. |
|
b23d9c0b64d5
Request API: help button support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34339
diff
changeset
|
447 | * |
| 40188 | 448 | * Returns: (transfer none): The callback. |
|
34341
b23d9c0b64d5
Request API: help button support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34339
diff
changeset
|
449 | */ |
|
b23d9c0b64d5
Request API: help button support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34339
diff
changeset
|
450 | PurpleRequestHelpCb |
|
b23d9c0b64d5
Request API: help button support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34339
diff
changeset
|
451 | purple_request_cpar_get_help_cb(PurpleRequestCommonParameters *cpar, |
|
b23d9c0b64d5
Request API: help button support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34339
diff
changeset
|
452 | gpointer *user_data); |
|
b23d9c0b64d5
Request API: help button support
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34339
diff
changeset
|
453 | |
|
34444
4fe0e2422d82
Request API: extra actions for fields request
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34443
diff
changeset
|
454 | /** |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
455 | * purple_request_cpar_set_extra_actions: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
456 | * @cpar: The parameters set. |
|
39512
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
457 | * @...: A list of actions. These are pairs of arguments. The first of each |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
458 | * pair is the <type>char *</type> label that appears on the button. It |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
459 | * should have an underscore before the letter you want to use as the |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
460 | * accelerator key for the button. The second of each pair is the |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
461 | * #PurpleRequestFieldsCb function to use when the button is clicked. |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
462 | * Should be terminated with the NULL label. |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
463 | * |
|
42128
118067ca0367
Convert PurpleRequestPage into a GObject
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42122
diff
changeset
|
464 | * Sets extra actions for the PurpleRequestPage dialog. |
|
34444
4fe0e2422d82
Request API: extra actions for fields request
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34443
diff
changeset
|
465 | */ |
|
4fe0e2422d82
Request API: extra actions for fields request
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34443
diff
changeset
|
466 | void |
|
4fe0e2422d82
Request API: extra actions for fields request
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34443
diff
changeset
|
467 | purple_request_cpar_set_extra_actions(PurpleRequestCommonParameters *cpar, ...); |
|
4fe0e2422d82
Request API: extra actions for fields request
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34443
diff
changeset
|
468 | |
|
4fe0e2422d82
Request API: extra actions for fields request
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34443
diff
changeset
|
469 | /** |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
470 | * purple_request_cpar_get_extra_actions: |
|
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
471 | * @cpar: The parameters set (may be %NULL). |
|
34444
4fe0e2422d82
Request API: extra actions for fields request
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34443
diff
changeset
|
472 | * |
|
42128
118067ca0367
Convert PurpleRequestPage into a GObject
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42122
diff
changeset
|
473 | * Gets extra actions for the PurpleRequestPage dialog. |
|
34444
4fe0e2422d82
Request API: extra actions for fields request
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34443
diff
changeset
|
474 | * |
|
40330
5311cf2ae115
Replace PurpleNamedValue with PurpleKeyValuePair in GTK-Doc comments
qarkai <qarkai@gmail.com>
parents:
40326
diff
changeset
|
475 | * Returns: (element-type PurpleKeyValuePair) (transfer none): A list of actions (pairs of arguments, as in |
|
39738
14d425a528ad
Add missing transfer annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39659
diff
changeset
|
476 | * setter). |
|
34444
4fe0e2422d82
Request API: extra actions for fields request
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34443
diff
changeset
|
477 | */ |
|
4fe0e2422d82
Request API: extra actions for fields request
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34443
diff
changeset
|
478 | GSList * |
|
4fe0e2422d82
Request API: extra actions for fields request
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34443
diff
changeset
|
479 | purple_request_cpar_get_extra_actions(PurpleRequestCommonParameters *cpar); |
|
4fe0e2422d82
Request API: extra actions for fields request
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34443
diff
changeset
|
480 | |
|
34451
b7165d4e1d73
Implement purple_*_is_valid_ui_handle, purple_request_cpar_*et_parent_from, pidgin_request_get_dialog_window
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34448
diff
changeset
|
481 | /** |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
482 | * purple_request_cpar_set_parent_from: |
|
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
483 | * @cpar: The parameters set. |
|
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
484 | * @ui_handle: The UI handle. |
|
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
485 | * |
|
34451
b7165d4e1d73
Implement purple_*_is_valid_ui_handle, purple_request_cpar_*et_parent_from, pidgin_request_get_dialog_window
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34448
diff
changeset
|
486 | * Sets the same parent window for this dialog, as the parent of specified |
|
b7165d4e1d73
Implement purple_*_is_valid_ui_handle, purple_request_cpar_*et_parent_from, pidgin_request_get_dialog_window
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34448
diff
changeset
|
487 | * Notify API or Request API dialog UI handle. |
|
b7165d4e1d73
Implement purple_*_is_valid_ui_handle, purple_request_cpar_*et_parent_from, pidgin_request_get_dialog_window
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34448
diff
changeset
|
488 | */ |
|
b7165d4e1d73
Implement purple_*_is_valid_ui_handle, purple_request_cpar_*et_parent_from, pidgin_request_get_dialog_window
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34448
diff
changeset
|
489 | void |
|
b7165d4e1d73
Implement purple_*_is_valid_ui_handle, purple_request_cpar_*et_parent_from, pidgin_request_get_dialog_window
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34448
diff
changeset
|
490 | purple_request_cpar_set_parent_from(PurpleRequestCommonParameters *cpar, |
|
b7165d4e1d73
Implement purple_*_is_valid_ui_handle, purple_request_cpar_*et_parent_from, pidgin_request_get_dialog_window
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34448
diff
changeset
|
491 | gpointer ui_handle); |
|
b7165d4e1d73
Implement purple_*_is_valid_ui_handle, purple_request_cpar_*et_parent_from, pidgin_request_get_dialog_window
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34448
diff
changeset
|
492 | |
|
b7165d4e1d73
Implement purple_*_is_valid_ui_handle, purple_request_cpar_*et_parent_from, pidgin_request_get_dialog_window
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34448
diff
changeset
|
493 | /** |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
494 | * purple_request_cpar_get_parent_from: |
|
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
495 | * @cpar: The parameters set (may be %NULL). |
|
34451
b7165d4e1d73
Implement purple_*_is_valid_ui_handle, purple_request_cpar_*et_parent_from, pidgin_request_get_dialog_window
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34448
diff
changeset
|
496 | * |
|
b7165d4e1d73
Implement purple_*_is_valid_ui_handle, purple_request_cpar_*et_parent_from, pidgin_request_get_dialog_window
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34448
diff
changeset
|
497 | * Gets the parent "donor" for this dialog. |
|
b7165d4e1d73
Implement purple_*_is_valid_ui_handle, purple_request_cpar_*et_parent_from, pidgin_request_get_dialog_window
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34448
diff
changeset
|
498 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
499 | * Returns: The donors UI handle. |
|
34451
b7165d4e1d73
Implement purple_*_is_valid_ui_handle, purple_request_cpar_*et_parent_from, pidgin_request_get_dialog_window
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34448
diff
changeset
|
500 | */ |
|
b7165d4e1d73
Implement purple_*_is_valid_ui_handle, purple_request_cpar_*et_parent_from, pidgin_request_get_dialog_window
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34448
diff
changeset
|
501 | gpointer |
|
b7165d4e1d73
Implement purple_*_is_valid_ui_handle, purple_request_cpar_*et_parent_from, pidgin_request_get_dialog_window
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34448
diff
changeset
|
502 | purple_request_cpar_get_parent_from(PurpleRequestCommonParameters *cpar); |
|
b7165d4e1d73
Implement purple_*_is_valid_ui_handle, purple_request_cpar_*et_parent_from, pidgin_request_get_dialog_window
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34448
diff
changeset
|
503 | |
|
34329
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
504 | /**************************************************************************/ |
| 35472 | 505 | /* Request API */ |
| 5477 | 506 | /**************************************************************************/ |
| 507 | ||
| 508 | /** | |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
509 | * purple_request_input: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
510 | * @handle: The plugin or connection handle. For some |
| 35420 | 511 | * things this is <emphasis>extremely</emphasis> important. The |
| 35419 | 512 | * handle is used to programmatically close the request |
| 513 | * dialog when it is no longer needed. For protocols this | |
| 514 | * is often a pointer to the #PurpleConnection | |
| 515 | * instance. For plugins this should be a similar, | |
| 516 | * unique memory location. This value is important | |
| 517 | * because it allows a request to be closed with | |
| 518 | * purple_request_close_with_handle() when, for | |
| 519 | * example, you sign offline. If the request is | |
|
35468
65e7b4566de4
Fix HTML generation warnings by using DocBook tags
Ankit Vani <a@nevitus.org>
parents:
35466
diff
changeset
|
520 | * <emphasis>not</emphasis> closed it is |
|
65e7b4566de4
Fix HTML generation warnings by using DocBook tags
Ankit Vani <a@nevitus.org>
parents:
35466
diff
changeset
|
521 | * <emphasis>very</emphasis> likely to cause a crash whenever |
|
65e7b4566de4
Fix HTML generation warnings by using DocBook tags
Ankit Vani <a@nevitus.org>
parents:
35466
diff
changeset
|
522 | * the callback handler functions are triggered. |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
523 | * @title: The title of the message, or %NULL if it should have |
| 35419 | 524 | * no title. |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
525 | * @primary: The main point of the message, or %NULL if you're |
| 35419 | 526 | * feeling enigmatic. |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
527 | * @secondary: Secondary information, or %NULL if there is none. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
528 | * @default_value: The default value. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
529 | * @multiline: %TRUE if the inputted text can span multiple lines. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
530 | * @masked: %TRUE if the inputted text should be masked in some |
| 35419 | 531 | * way (such as by displaying characters as stars). This |
| 532 | * might be because the input is some kind of password. | |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
533 | * @hint: Optionally suggest how the input box should appear. |
| 35419 | 534 | * Use "html", for example, to allow the user to enter HTML. |
| 535 | * @ok_text: The text for the <literal>OK</literal> button, which may not | |
| 536 | * be %NULL. | |
| 40186 | 537 | * @ok_cb: (scope notified): The callback for the <literal>OK</literal> button, which may |
| 35419 | 538 | * not be %NULL. |
| 539 | * @cancel_text: The text for the <literal>Cancel</literal> button, which may | |
| 540 | * not be %NULL. | |
| 40186 | 541 | * @cancel_cb: (scope notified): The callback for the <literal>Cancel</literal> button, which |
| 35419 | 542 | * may be %NULL. |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
543 | * @cpar: The #PurpleRequestCommonParameters object, which gets |
| 35419 | 544 | * unref'ed after this call. |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
545 | * @user_data: The data to pass to the callback. |
| 5477 | 546 | * |
| 547 | * Prompts the user for text input. | |
| 548 | * | |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
549 | * Returns: A UI-specific handle. |
| 5477 | 550 | */ |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
551 | void *purple_request_input(void *handle, const char *title, const char *primary, |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
552 | const char *secondary, const char *default_value, gboolean multiline, |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
553 | gboolean masked, gchar *hint, |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
554 | const char *ok_text, GCallback ok_cb, |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
555 | const char *cancel_text, GCallback cancel_cb, |
|
34329
ddbc1337332c
Request API refactoring: introduce PurpleRequestCommonParameters and switch purple_request_input to it
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34193
diff
changeset
|
556 | PurpleRequestCommonParameters *cpar, |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
557 | void *user_data); |
| 5477 | 558 | |
| 559 | /** | |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
560 | * purple_request_choice: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
561 | * @handle: The plugin or connection handle. For some things this |
| 35420 | 562 | * is <emphasis>extremely</emphasis> important. See the comments on |
| 35419 | 563 | * purple_request_input(). |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
564 | * @title: The title of the message, or %NULL if it should have |
| 35419 | 565 | * no title. |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
566 | * @primary: The main point of the message, or %NULL if you're |
| 35419 | 567 | * feeling enigmatic. |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
568 | * @secondary: Secondary information, or %NULL if there is none. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
569 | * @default_value: The default choice; this should be one of the values |
| 35419 | 570 | * listed in the varargs. |
| 571 | * @ok_text: The text for the <literal>OK</literal> button, which may not | |
| 572 | * be %NULL. | |
| 40186 | 573 | * @ok_cb: (scope notified): The callback for the <literal>OK</literal> button, which may |
| 35419 | 574 | * not be %NULL. |
| 575 | * @cancel_text: The text for the <literal>Cancel</literal> button, which may | |
| 576 | * not be %NULL. | |
| 40186 | 577 | * @cancel_cb: (scope notified): The callback for the <literal>Cancel</literal> button, or |
| 35419 | 578 | * %NULL to do nothing. |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
579 | * @cpar: The #PurpleRequestCommonParameters object, which gets |
| 35419 | 580 | * unref'ed after this call. |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
581 | * @user_data: The data to pass to the callback. |
| 35419 | 582 | * @...: The choices, which should be pairs of <type>char *</type> |
| 583 | * descriptions and <type>int</type> values, terminated with a | |
| 584 | * %NULL parameter. | |
| 5477 | 585 | * |
| 586 | * Prompts the user for multiple-choice input. | |
| 587 | * | |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
588 | * Returns: A UI-specific handle. |
| 5477 | 589 | */ |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
590 | void *purple_request_choice(void *handle, const char *title, const char *primary, |
|
34338
c652670afac5
Request API refactoring: custom PURPLE_REQUEST_CHOICE values, instead of indexes
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34337
diff
changeset
|
591 | const char *secondary, gpointer default_value, |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
592 | const char *ok_text, GCallback ok_cb, |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
593 | const char *cancel_text, GCallback cancel_cb, |
|
34330
35d5e8fcc07b
Request API refactoring: switch purple_request_choice to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34329
diff
changeset
|
594 | PurpleRequestCommonParameters *cpar, |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
595 | void *user_data, ...) G_GNUC_NULL_TERMINATED; |
| 5477 | 596 | |
| 597 | /** | |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
598 | * purple_request_choice_varg: |
|
39506
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
599 | * @handle: The plugin or connection handle. For some things this |
|
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
600 | * is <emphasis>extremely</emphasis> important. See the comments on |
|
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
601 | * purple_request_input(). |
|
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
602 | * @title: The title of the message, or %NULL if it should have |
|
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
603 | * no title. |
|
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
604 | * @primary: The main point of the message, or %NULL if you're |
|
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
605 | * feeling enigmatic. |
|
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
606 | * @secondary: Secondary information, or %NULL if there is none. |
|
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
607 | * @default_value: The default choice; this should be one of the values |
|
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
608 | * listed in the varargs. |
|
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
609 | * @ok_text: The text for the <literal>OK</literal> button, which may not |
|
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
610 | * be %NULL. |
| 40186 | 611 | * @ok_cb: (scope notified): The callback for the <literal>OK</literal> button, which may |
|
39506
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
612 | * not be %NULL. |
|
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
613 | * @cancel_text: The text for the <literal>Cancel</literal> button, which may |
|
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
614 | * not be %NULL. |
| 40186 | 615 | * @cancel_cb: (scope notified): The callback for the <literal>Cancel</literal> button, or |
|
39506
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
616 | * %NULL to do nothing. |
|
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
617 | * @cpar: The #PurpleRequestCommonParameters object, which gets |
|
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
618 | * unref'ed after this call. |
|
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
619 | * @user_data: The data to pass to the callback. |
|
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
620 | * @choices: The choices, which should be pairs of <type>char *</type> |
|
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
621 | * descriptions and <type>int</type> values, terminated with a |
|
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
622 | * %NULL parameter. |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
623 | * |
| 35419 | 624 | * <literal>va_list</literal> version of purple_request_choice(); see its |
| 625 | * documentation. | |
| 5477 | 626 | */ |
| 15884 | 627 | void *purple_request_choice_varg(void *handle, const char *title, |
|
34338
c652670afac5
Request API refactoring: custom PURPLE_REQUEST_CHOICE values, instead of indexes
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34337
diff
changeset
|
628 | const char *primary, const char *secondary, gpointer default_value, |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
629 | const char *ok_text, GCallback ok_cb, |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
630 | const char *cancel_text, GCallback cancel_cb, |
|
34330
35d5e8fcc07b
Request API refactoring: switch purple_request_choice to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34329
diff
changeset
|
631 | PurpleRequestCommonParameters *cpar, |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
632 | void *user_data, va_list choices); |
| 5477 | 633 | |
| 634 | /** | |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
635 | * purple_request_action: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
636 | * @handle: The plugin or connection handle. For some things this |
|
39512
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
637 | * is <emphasis>extremely</emphasis> important. See the comments on |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
638 | * purple_request_input(). |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
639 | * @title: The title of the message, or %NULL if it should have |
|
39512
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
640 | * no title. |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
641 | * @primary: The main point of the message, or %NULL if you're |
|
39512
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
642 | * feeling enigmatic. |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
643 | * @secondary: Secondary information, or %NULL if there is none. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
644 | * @default_action: The default action, zero-indexed; if the third action |
|
39512
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
645 | * supplied should be the default, supply |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
646 | * <literal>2</literal>. This should be the action that |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
647 | * users are most likely to select. |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
648 | * @cpar: The #PurpleRequestCommonParameters object, which gets |
|
39512
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
649 | * unref'ed after this call. |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
650 | * @user_data: The data to pass to the callback. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
651 | * @action_count: The number of actions. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
652 | * @...: A list of actions. These are pairs of |
|
39512
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
653 | * arguments. The first of each pair is the |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
654 | * <type>char *</type> label that appears on the button. |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
655 | * It should have an underscore before the letter you want |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
656 | * to use as the accelerator key for the button. The |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
657 | * second of each pair is the #PurpleRequestActionCb |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
658 | * function to use when the button is clicked. |
| 5477 | 659 | * |
| 660 | * Prompts the user for an action. | |
| 661 | * | |
| 662 | * This is often represented as a dialog with a button for each action. | |
| 663 | * | |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
664 | * Returns: A UI-specific handle. |
| 5477 | 665 | */ |
|
34331
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
666 | void * |
|
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
667 | purple_request_action(void *handle, const char *title, const char *primary, |
|
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
668 | const char *secondary, int default_action, |
|
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
669 | PurpleRequestCommonParameters *cpar, void *user_data, |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
670 | size_t action_count, ...); |
| 5477 | 671 | |
| 672 | /** | |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
673 | * purple_request_action_varg: |
|
39506
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
674 | * @handle: The plugin or connection handle. For some things this |
|
39512
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
675 | * is <emphasis>extremely</emphasis> important. See the comments on |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
676 | * purple_request_input(). |
|
39506
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
677 | * @title: The title of the message, or %NULL if it should have |
|
39512
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
678 | * no title. |
|
39506
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
679 | * @primary: The main point of the message, or %NULL if you're |
|
39512
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
680 | * feeling enigmatic. |
|
39506
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
681 | * @secondary: Secondary information, or %NULL if there is none. |
|
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
682 | * @default_action: The default action, zero-indexed; if the third action |
|
39512
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
683 | * supplied should be the default, supply |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
684 | * <literal>2</literal>. This should be the action that |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
685 | * users are most likely to select. |
|
39506
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
686 | * @cpar: The #PurpleRequestCommonParameters object, which gets |
|
39512
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
687 | * unref'ed after this call. |
|
39506
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
688 | * @user_data: The data to pass to the callback. |
|
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
689 | * @action_count: The number of actions. |
|
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
690 | * @actions: A list of actions. These are pairs of |
|
39512
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
691 | * arguments. The first of each pair is the |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
692 | * <type>char *</type> label that appears on the button. |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
693 | * It should have an underscore before the letter you want |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
694 | * to use as the accelerator key for the button. The |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
695 | * second of each pair is the #PurpleRequestActionCb |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
696 | * function to use when the button is clicked. |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
697 | * |
| 35419 | 698 | * <literal>va_list</literal> version of purple_request_action(); see its |
| 699 | * documentation. | |
| 5477 | 700 | */ |
|
34331
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
701 | void * |
|
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
702 | purple_request_action_varg(void *handle, const char *title, const char *primary, |
|
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
703 | const char *secondary, int default_action, |
|
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
704 | PurpleRequestCommonParameters *cpar, void *user_data, |
|
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
705 | size_t action_count, va_list actions); |
|
27427
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
706 | |
|
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
707 | /** |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
708 | * purple_request_wait: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
709 | * @handle: The plugin or connection handle. For some things this |
| 35420 | 710 | * is <emphasis>extremely</emphasis> important. See the comments on |
| 35419 | 711 | * purple_request_input(). |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
712 | * @title: The title of the message, or %NULL if it should have |
| 35419 | 713 | * default title. |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
714 | * @primary: The main point of the message, or %NULL if you're |
| 35419 | 715 | * feeling enigmatic. |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
716 | * @secondary: Secondary information, or %NULL if there is none. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
717 | * @with_progress: %TRUE, if we want to display progress bar, %FALSE |
| 35419 | 718 | * otherwise |
|
40187
299c65ce09e2
Fix purple_request_wait gir warning
qarkai <qarkai@gmail.com>
parents:
40186
diff
changeset
|
719 | * @cancel_cb: (scope notified): The callback for the <literal>Cancel</literal> button, which |
| 35419 | 720 | * may be %NULL. |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
721 | * @cpar: The #PurpleRequestCommonParameters object, which gets |
| 35419 | 722 | * unref'ed after this call. |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
723 | * @user_data: The data to pass to the callback. |
|
34443
b7926ff76ed6
Request API: implement purple_request_wait
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34341
diff
changeset
|
724 | * |
|
b7926ff76ed6
Request API: implement purple_request_wait
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34341
diff
changeset
|
725 | * Displays a "please wait" dialog. |
|
b7926ff76ed6
Request API: implement purple_request_wait
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34341
diff
changeset
|
726 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
727 | * Returns: A UI-specific handle. |
|
34443
b7926ff76ed6
Request API: implement purple_request_wait
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34341
diff
changeset
|
728 | */ |
|
b7926ff76ed6
Request API: implement purple_request_wait
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34341
diff
changeset
|
729 | void * |
|
b7926ff76ed6
Request API: implement purple_request_wait
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34341
diff
changeset
|
730 | purple_request_wait(void *handle, const char *title, const char *primary, |
|
34448
e15d91a77cb3
Request API: PURPLE_REQUEST_WAIT with progress bar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34444
diff
changeset
|
731 | const char *secondary, gboolean with_progress, |
|
e15d91a77cb3
Request API: PURPLE_REQUEST_WAIT with progress bar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34444
diff
changeset
|
732 | PurpleRequestCancelCb cancel_cb, PurpleRequestCommonParameters *cpar, |
|
e15d91a77cb3
Request API: PURPLE_REQUEST_WAIT with progress bar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34444
diff
changeset
|
733 | void *user_data); |
|
e15d91a77cb3
Request API: PURPLE_REQUEST_WAIT with progress bar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34444
diff
changeset
|
734 | |
|
e15d91a77cb3
Request API: PURPLE_REQUEST_WAIT with progress bar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34444
diff
changeset
|
735 | /** |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
736 | * purple_request_wait_pulse: |
|
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
737 | * @ui_handle: The request UI handle. |
|
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
738 | * |
|
34448
e15d91a77cb3
Request API: PURPLE_REQUEST_WAIT with progress bar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34444
diff
changeset
|
739 | * Notifies the "please wait" dialog that some progress has been made, but you |
|
e15d91a77cb3
Request API: PURPLE_REQUEST_WAIT with progress bar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34444
diff
changeset
|
740 | * don't know how much. |
|
e15d91a77cb3
Request API: PURPLE_REQUEST_WAIT with progress bar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34444
diff
changeset
|
741 | */ |
|
e15d91a77cb3
Request API: PURPLE_REQUEST_WAIT with progress bar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34444
diff
changeset
|
742 | void |
|
e15d91a77cb3
Request API: PURPLE_REQUEST_WAIT with progress bar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34444
diff
changeset
|
743 | purple_request_wait_pulse(void *ui_handle); |
|
e15d91a77cb3
Request API: PURPLE_REQUEST_WAIT with progress bar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34444
diff
changeset
|
744 | |
|
e15d91a77cb3
Request API: PURPLE_REQUEST_WAIT with progress bar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34444
diff
changeset
|
745 | /** |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
746 | * purple_request_wait_progress: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
747 | * @ui_handle: The request UI handle. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
748 | * @fraction: The part of task that is done (between 0.0 and 1.0, |
|
34448
e15d91a77cb3
Request API: PURPLE_REQUEST_WAIT with progress bar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34444
diff
changeset
|
749 | * inclusive). |
|
e15d91a77cb3
Request API: PURPLE_REQUEST_WAIT with progress bar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34444
diff
changeset
|
750 | * |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
751 | * Notifies the "please wait" dialog about progress has been made. |
|
34448
e15d91a77cb3
Request API: PURPLE_REQUEST_WAIT with progress bar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34444
diff
changeset
|
752 | */ |
|
e15d91a77cb3
Request API: PURPLE_REQUEST_WAIT with progress bar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34444
diff
changeset
|
753 | void |
|
e15d91a77cb3
Request API: PURPLE_REQUEST_WAIT with progress bar
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34444
diff
changeset
|
754 | purple_request_wait_progress(void *ui_handle, gfloat fraction); |
|
34443
b7926ff76ed6
Request API: implement purple_request_wait
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34341
diff
changeset
|
755 | |
|
b7926ff76ed6
Request API: implement purple_request_wait
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34341
diff
changeset
|
756 | /** |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
757 | * purple_request_fields: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
758 | * @handle: The plugin or connection handle. For some things this |
| 35420 | 759 | * is <emphasis>extremely</emphasis> important. See the comments on |
| 35419 | 760 | * purple_request_input(). |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
761 | * @title: The title of the message, or %NULL if it should have |
| 35419 | 762 | * no title. |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
763 | * @primary: The main point of the message, or %NULL if you're |
| 35419 | 764 | * feeling enigmatic. |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
765 | * @secondary: Secondary information, or %NULL if there is none. |
|
42128
118067ca0367
Convert PurpleRequestPage into a GObject
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42122
diff
changeset
|
766 | * @page: The page of fields. |
| 35419 | 767 | * @ok_text: The text for the <literal>OK</literal> button, which may not be |
| 768 | * %NULL. | |
| 40186 | 769 | * @ok_cb: (scope notified): The callback for the <literal>OK</literal> button, which may |
| 35419 | 770 | * not be |
| 771 | * %NULL. | |
| 772 | * @cancel_text: The text for the <literal>Cancel</literal> button, which may | |
| 773 | * not be %NULL. | |
| 40186 | 774 | * @cancel_cb: (scope notified): The callback for the <literal>Cancel</literal> button, which |
| 35419 | 775 | * may be %NULL. |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
776 | * @cpar: The #PurpleRequestCommonParameters object, which gets |
| 35419 | 777 | * unref'ed after this call. |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
778 | * @user_data: The data to pass to the callback. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
779 | * |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
780 | * Displays groups of fields for the user to fill in. |
|
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
781 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
782 | * Returns: A UI-specific handle. |
|
5807
7e0d857c4c93
[gaim-migrate @ 6237]
Christian Hammond <chipx86@chipx86.com>
parents:
5498
diff
changeset
|
783 | */ |
|
34332
876483829700
Request API refactoring: switch purple_request_fields to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34331
diff
changeset
|
784 | void * |
|
876483829700
Request API refactoring: switch purple_request_fields to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34331
diff
changeset
|
785 | purple_request_fields(void *handle, const char *title, const char *primary, |
|
42128
118067ca0367
Convert PurpleRequestPage into a GObject
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42122
diff
changeset
|
786 | const char *secondary, PurpleRequestPage *page, |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
787 | const char *ok_text, GCallback ok_cb, |
|
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
788 | const char *cancel_text, GCallback cancel_cb, |
|
34332
876483829700
Request API refactoring: switch purple_request_fields to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34331
diff
changeset
|
789 | PurpleRequestCommonParameters *cpar, |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
790 | void *user_data); |
|
5807
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 | /** |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
793 | * purple_request_is_valid_ui_handle: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
794 | * @ui_handle: The UI handle. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
795 | * @type: The pointer to variable, where request type may be stored |
|
39512
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
796 | * (may be %NULL). |
|
34451
b7165d4e1d73
Implement purple_*_is_valid_ui_handle, purple_request_cpar_*et_parent_from, pidgin_request_get_dialog_window
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34448
diff
changeset
|
797 | * |
|
b7165d4e1d73
Implement purple_*_is_valid_ui_handle, purple_request_cpar_*et_parent_from, pidgin_request_get_dialog_window
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34448
diff
changeset
|
798 | * Checks, if passed UI handle is valid. |
|
b7165d4e1d73
Implement purple_*_is_valid_ui_handle, purple_request_cpar_*et_parent_from, pidgin_request_get_dialog_window
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34448
diff
changeset
|
799 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
800 | * Returns: TRUE, if handle is valid, FALSE otherwise. |
|
34451
b7165d4e1d73
Implement purple_*_is_valid_ui_handle, purple_request_cpar_*et_parent_from, pidgin_request_get_dialog_window
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34448
diff
changeset
|
801 | */ |
|
b7165d4e1d73
Implement purple_*_is_valid_ui_handle, purple_request_cpar_*et_parent_from, pidgin_request_get_dialog_window
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34448
diff
changeset
|
802 | gboolean |
|
b7165d4e1d73
Implement purple_*_is_valid_ui_handle, purple_request_cpar_*et_parent_from, pidgin_request_get_dialog_window
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34448
diff
changeset
|
803 | purple_request_is_valid_ui_handle(void *ui_handle, PurpleRequestType *type); |
|
b7165d4e1d73
Implement purple_*_is_valid_ui_handle, purple_request_cpar_*et_parent_from, pidgin_request_get_dialog_window
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34448
diff
changeset
|
804 | |
|
b7165d4e1d73
Implement purple_*_is_valid_ui_handle, purple_request_cpar_*et_parent_from, pidgin_request_get_dialog_window
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34448
diff
changeset
|
805 | /** |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
806 | * purple_request_add_close_notify: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
807 | * @ui_handle: The UI handle. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
808 | * @notify: The function to be called. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
809 | * @notify_data: The data to be passed to the callback function. |
|
34478
be28ca093028
Add close notification for Request API dialogs
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34451
diff
changeset
|
810 | * |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
811 | * Adds a function called when notification dialog is closed. |
|
34478
be28ca093028
Add close notification for Request API dialogs
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34451
diff
changeset
|
812 | */ |
|
be28ca093028
Add close notification for Request API dialogs
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34451
diff
changeset
|
813 | void |
|
be28ca093028
Add close notification for Request API dialogs
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34451
diff
changeset
|
814 | purple_request_add_close_notify(void *ui_handle, GDestroyNotify notify, |
|
be28ca093028
Add close notification for Request API dialogs
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34451
diff
changeset
|
815 | gpointer notify_data); |
|
be28ca093028
Add close notification for Request API dialogs
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34451
diff
changeset
|
816 | |
|
be28ca093028
Add close notification for Request API dialogs
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34451
diff
changeset
|
817 | /** |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
818 | * purple_request_close: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
819 | * @type: The request type. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
820 | * @uihandle: The request UI handle. |
| 5477 | 821 | * |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
822 | * Closes a request. |
| 5477 | 823 | */ |
| 15884 | 824 | void purple_request_close(PurpleRequestType type, void *uihandle); |
| 5477 | 825 | |
| 826 | /** | |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
827 | * purple_request_close_with_handle: |
|
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
828 | * @handle: The handle, as supplied as the @handle parameter to one of the |
|
39512
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
829 | * <literal>purple_request_*</literal> functions. |
| 5477 | 830 | * |
| 831 | * Closes all requests registered with the specified handle. | |
| 832 | * | |
| 35471 | 833 | * See purple_request_input(). |
| 5477 | 834 | */ |
| 15884 | 835 | void purple_request_close_with_handle(void *handle); |
| 5477 | 836 | |
| 837 | /** | |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
838 | * purple_request_yes_no: |
|
39512
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
839 | * @handle: The handle, as supplied as the @handle parameter to one of the |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
840 | * <literal>purple_request_*</literal> functions. |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
841 | * @title: The title of the message, or %NULL if it should have |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
842 | * no title. |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
843 | * @primary: The main point of the message, or %NULL if you're |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
844 | * feeling enigmatic. |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
845 | * @secondary: Secondary information, or %NULL if there is none. |
|
39506
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
846 | * @default_action: The default action, zero-indexed; if the third action |
|
39512
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
847 | * supplied should be the default, supply |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
848 | * <literal>2</literal>. This should be the action that |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
849 | * users are most likely to select. |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
850 | * @cpar: The #PurpleRequestCommonParameters object, which gets |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
851 | * unref'ed after this call. |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
852 | * @user_data: The data to pass to the callback. |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
853 | * @yes_cb: A #PurpleRequestActionCb to call when yes is selected. |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
854 | * @no_cb: A #PurpleRequestActionCb to call when no is selected. |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
855 | * |
| 35419 | 856 | * A wrapper for purple_request_action() that uses <literal>Yes</literal> and |
| 857 | * <literal>No</literal> buttons. | |
| 5477 | 858 | */ |
|
39506
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
859 | #define purple_request_yes_no(handle, title, primary, secondary, default_action, cpar, user_data, yes_cb, no_cb) \ |
| 15884 | 860 | purple_request_action((handle), (title), (primary), (secondary), \ |
|
34331
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
861 | (default_action), (cpar), (user_data), 2, _("_Yes"), (yes_cb), \ |
|
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
862 | _("_No"), (no_cb)) |
| 5477 | 863 | |
| 864 | /** | |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
865 | * purple_request_ok_cancel: |
|
39512
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
866 | * @handle: The handle, as supplied as the @handle parameter to one of |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
867 | * the <literal>purple_request_*</literal> functions. |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
868 | * @title: The title of the message, or %NULL if it should have |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
869 | * no title. |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
870 | * @primary: The main point of the message, or %NULL if you're |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
871 | * feeling enigmatic. |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
872 | * @secondary: Secondary information, or %NULL if there is none. |
|
39506
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
873 | * @default_action: The default action, zero-indexed; if the third action |
|
39512
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
874 | * supplied should be the default, supply |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
875 | * <literal>2</literal>. This should be the action that |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
876 | * users are most likely to select. |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
877 | * @cpar: The #PurpleRequestCommonParameters object, which gets |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
878 | * unref'ed after this call. |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
879 | * @user_data: The data to pass to the callback. |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
880 | * @ok_cb: A #PurpleRequestActionCb to call when ok is selected. |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
881 | * @cancel_cb: A #PurpleRequestActionCb to call when cancel is selected. |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
882 | * |
| 35419 | 883 | * A wrapper for purple_request_action() that uses <literal>OK</literal> and |
| 884 | * <literal>Cancel</literal> buttons. | |
| 5477 | 885 | */ |
|
39506
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
886 | #define purple_request_ok_cancel(handle, title, primary, secondary, default_action, cpar, user_data, ok_cb, cancel_cb) \ |
| 15884 | 887 | purple_request_action((handle), (title), (primary), (secondary), \ |
|
34331
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
888 | (default_action), (cpar), (user_data), 2, _("_OK"), (ok_cb), \ |
|
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
889 | _("_Cancel"), (cancel_cb)) |
|
5498
01eec144d71b
[gaim-migrate @ 5894]
Christian Hammond <chipx86@chipx86.com>
parents:
5496
diff
changeset
|
890 | |
|
01eec144d71b
[gaim-migrate @ 5894]
Christian Hammond <chipx86@chipx86.com>
parents:
5496
diff
changeset
|
891 | /** |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
892 | * purple_request_accept_cancel: |
|
39512
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
893 | * @handle: The handle, as supplied as the @handle parameter to one of |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
894 | * the <literal>purple_request_*</literal> functions. |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
895 | * @title: The title of the message, or %NULL if it should have |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
896 | * no title. |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
897 | * @primary: The main point of the message, or %NULL if you're |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
898 | * feeling enigmatic. |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
899 | * @secondary: Secondary information, or %NULL if there is none. |
|
39506
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
900 | * @default_action: The default action, zero-indexed; if the third action |
|
39512
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
901 | * supplied should be the default, supply |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
902 | * <literal>2</literal>. This should be the action that |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
903 | * users are most likely to select. |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
904 | * @cpar: The #PurpleRequestCommonParameters object, which gets |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
905 | * unref'ed after this call. |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
906 | * @user_data: The data to pass to the callback. |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
907 | * @accept_cb: A #PurpleRequestActionCb to call when accepted is selected. |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
908 | * @cancel_cb: A #PurpleRequestActionCb to call when cancel is selected. |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
909 | * |
| 15884 | 910 | * A wrapper for purple_request_action() that uses Accept and Cancel buttons. |
|
5498
01eec144d71b
[gaim-migrate @ 5894]
Christian Hammond <chipx86@chipx86.com>
parents:
5496
diff
changeset
|
911 | */ |
|
39506
cdf3bfca0734
Fix all current missing docs for request.h
Gary Kramlich <grim@reaperworld.com>
parents:
39315
diff
changeset
|
912 | #define purple_request_accept_cancel(handle, title, primary, secondary, default_action, cpar, user_data, accept_cb, cancel_cb) \ |
| 15884 | 913 | purple_request_action((handle), (title), (primary), (secondary), \ |
|
34331
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
914 | (default_action), (cpar), (user_data), 2, _("_Accept"), \ |
|
c8486462bb63
Request API refactoring: switch purple_request_action to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34330
diff
changeset
|
915 | (accept_cb), _("_Cancel"), (cancel_cb)) |
|
27427
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
916 | |
|
00f91afbd4d9
Show thumbnail in ft request dialog
Marcus Lundblad <malu@pidgin.im>
parents:
25885
diff
changeset
|
917 | /** |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
918 | * purple_request_file: |
|
39512
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
919 | * @handle: The plugin or connection handle. For some things this |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
920 | * is <emphasis>extremely</emphasis> important. See the comments |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
921 | * on purple_request_input(). |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
922 | * @title: The title of the message, or %NULL if it should have no title. |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
923 | * @filename: The default filename (may be %NULL) |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
924 | * @savedialog: True if this dialog is being used to save a file. False if |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
925 | * it is being used to open a file. |
| 40186 | 926 | * @ok_cb: (scope notified): The callback for the <literal>OK</literal> button. |
| 927 | * @cancel_cb: (scope notified): The callback for the <literal>Cancel</literal> button, which | |
|
39512
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
928 | * may be %NULL. |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
929 | * @cpar: The #PurpleRequestCommonParameters object, which gets unref'ed |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
930 | * after this call. |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
931 | * @user_data: The data to pass to the callback. |
|
8843
944c71cc01af
[gaim-migrate @ 9610]
Pekka Riikonen <priikone@silcnet.org>
parents:
8735
diff
changeset
|
932 | * |
|
13268
5f523813f880
[gaim-migrate @ 15633]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
12716
diff
changeset
|
933 | * 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
|
934 | * 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
|
935 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
936 | * Returns: A UI-specific handle. |
|
8843
944c71cc01af
[gaim-migrate @ 9610]
Pekka Riikonen <priikone@silcnet.org>
parents:
8735
diff
changeset
|
937 | */ |
|
34333
b92698241603
Request API refactoring: switch purple_request_file to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34332
diff
changeset
|
938 | void * |
|
b92698241603
Request API refactoring: switch purple_request_file to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34332
diff
changeset
|
939 | purple_request_file(void *handle, const char *title, const char *filename, |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
940 | gboolean savedialog, GCallback ok_cb, GCallback cancel_cb, |
|
34333
b92698241603
Request API refactoring: switch purple_request_file to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34332
diff
changeset
|
941 | PurpleRequestCommonParameters *cpar, void *user_data); |
|
8843
944c71cc01af
[gaim-migrate @ 9610]
Pekka Riikonen <priikone@silcnet.org>
parents:
8735
diff
changeset
|
942 | |
|
13283
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
943 | /** |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
944 | * purple_request_folder: |
|
39512
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
945 | * @handle: The plugin or connection handle. For some things this is |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
946 | * <emphasis>extremely</emphasis> important. See the comments on |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
947 | * purple_request_input(). |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
948 | * @title: The title of the message, or %NULL if it should have no title. |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
949 | * @dirname: The default directory name (may be %NULL) |
| 40186 | 950 | * @ok_cb: (scope notified): The callback for the <literal>OK</literal> button. |
| 951 | * @cancel_cb: (scope notified): The callback for the <literal>Cancel</literal> button, which | |
|
39512
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
952 | * may be %NULL. |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
953 | * @cpar: The #PurpleRequestCommonParameters object, which gets unref'ed |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
954 | * after this call. |
|
447b408b53c1
Clean up a lot of alignment issues in doc comments
Gary Kramlich <grim@reaperworld.com>
parents:
39506
diff
changeset
|
955 | * @user_data: The data to pass to the callback. |
|
13283
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
956 | * |
|
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
957 | * Displays a folder select dialog. Returns the selected filename to |
|
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
958 | * the callback. |
|
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
959 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
960 | * Returns: A UI-specific handle. |
|
13283
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
961 | */ |
|
34334
f5f3a9945a6d
Request API refactoring: switch purple_request_folder to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34333
diff
changeset
|
962 | void * |
|
f5f3a9945a6d
Request API refactoring: switch purple_request_folder to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34333
diff
changeset
|
963 | purple_request_folder(void *handle, const char *title, const char *dirname, |
|
21980
3d855e66dc9e
Documentation tweaks and more g_return_if_fail checks for NULL parameters which
Will Thompson <resiak@pidgin.im>
parents:
21650
diff
changeset
|
964 | GCallback ok_cb, GCallback cancel_cb, |
|
34334
f5f3a9945a6d
Request API refactoring: switch purple_request_folder to PurpleRequestCommonParameters
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34333
diff
changeset
|
965 | PurpleRequestCommonParameters *cpar, void *user_data); |
|
13283
89a0621d5d6a
[gaim-migrate @ 15648]
Dennis Nezic <dennisn@dennisn.dyndns.org>
parents:
13270
diff
changeset
|
966 | |
| 5477 | 967 | /**************************************************************************/ |
| 35472 | 968 | /* UI Registration Functions */ |
| 5477 | 969 | /**************************************************************************/ |
| 970 | ||
| 971 | /** | |
| 35572 | 972 | * purple_request_ui_ops_get_type: |
| 973 | * | |
|
40584
6f198a69ac48
A bunch of documentation cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
974 | * The standard _get_type function for #PurpleRequestUiOps. |
|
6f198a69ac48
A bunch of documentation cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
975 | * |
| 35572 | 976 | * Returns: The #GType for the #PurpleRequestUiOps boxed structure. |
| 977 | */ | |
| 978 | GType purple_request_ui_ops_get_type(void); | |
| 979 | ||
| 980 | /** | |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
981 | * purple_request_set_ui_ops: |
|
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
982 | * @ops: The UI operations structure. |
|
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
983 | * |
| 5477 | 984 | * Sets the UI operations structure to be used when displaying a |
| 985 | * request. | |
| 986 | */ | |
| 15884 | 987 | void purple_request_set_ui_ops(PurpleRequestUiOps *ops); |
| 5477 | 988 | |
| 989 | /** | |
|
35400
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
990 | * purple_request_get_ui_ops: |
|
a22531410e3f
Convert docs from doxygen to gtk-doc format for request.h and util.h
Ankit Vani <a@nevitus.org>
parents:
35395
diff
changeset
|
991 | * |
| 5477 | 992 | * Returns the UI operations structure to be used when displaying a |
| 993 | * request. | |
| 994 | * | |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35050
diff
changeset
|
995 | * Returns: The UI operations structure. |
| 5477 | 996 | */ |
| 15884 | 997 | PurpleRequestUiOps *purple_request_get_ui_ops(void); |
| 5477 | 998 | |
|
32787
7072f190d6ad
Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32604
diff
changeset
|
999 | G_END_DECLS |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5809
diff
changeset
|
1000 | |
|
39659
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39512
diff
changeset
|
1001 | #endif /* PURPLE_REQUEST_H */ |