Mon, 12 Sep 2022 23:18:09 -0500
Remove a bunch of documents that aren't read/displayed by gi-docgen.
Testing Done:
Compiled.
Reviewed at https://reviews.imfreedom.org/r/1753/
|
40584
6f198a69ac48
A bunch of documentation cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
1 | /* |
|
6f198a69ac48
A bunch of documentation cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
2 | * Purple - Internet Messaging Library |
|
6f198a69ac48
A bunch of documentation cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
3 | * Copyright (C) Pidgin Developers <devel@pidgin.im> |
| 8113 | 4 | * |
| 15884 | 5 | * Purple is the legal property of its developers, whose names are too numerous |
|
8146
4961c9c5fd61
[gaim-migrate @ 8854]
John Silvestri <john.silvestri@gmail.com>
parents:
8113
diff
changeset
|
6 | * to list here. Please refer to the COPYRIGHT file distributed with this |
|
4961c9c5fd61
[gaim-migrate @ 8854]
John Silvestri <john.silvestri@gmail.com>
parents:
8113
diff
changeset
|
7 | * source distribution. |
| 8113 | 8 | * |
| 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:
40524
diff
changeset
|
20 | * along with this program; if not, see <https://www.gnu.org/licenses/>. |
| 8113 | 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:
39818
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:
39818
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:
39818
diff
changeset
|
25 | #endif |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
39818
diff
changeset
|
26 | |
|
39659
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39508
diff
changeset
|
27 | #ifndef PURPLE_ROOMLIST_H |
|
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39508
diff
changeset
|
28 | #define PURPLE_ROOMLIST_H |
|
40584
6f198a69ac48
A bunch of documentation cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
29 | |
|
39661
c8f98b167882
Change some libpurple object to GObject macros.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39508
diff
changeset
|
30 | #define PURPLE_TYPE_ROOMLIST (purple_roomlist_get_type()) |
| 15884 | 31 | typedef struct _PurpleRoomlist PurpleRoomlist; |
|
34931
6ea8ce77ec34
Started GObjectification of PurpleRoomlist
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
32 | |
|
40524
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
33 | #define PURPLE_TYPE_ROOMLIST_FIELD (purple_roomlist_field_get_type()) |
| 15884 | 34 | typedef struct _PurpleRoomlistField PurpleRoomlistField; |
|
34931
6ea8ce77ec34
Started GObjectification of PurpleRoomlist
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
35 | |
|
40524
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
36 | #define PURPLE_TYPE_ROOMLIST_UI_OPS (purple_roomlist_ui_ops_get_type()) |
| 15884 | 37 | typedef struct _PurpleRoomlistUiOps PurpleRoomlistUiOps; |
|
9030
7b574a641391
[gaim-migrate @ 9806]
Mark Doliner <markdoliner@pidgin.im>
parents:
9000
diff
changeset
|
38 | |
|
9999
86e89e1dee10
[gaim-migrate @ 10913]
Mark Doliner <markdoliner@pidgin.im>
parents:
9030
diff
changeset
|
39 | /** |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
40 | * PurpleRoomlistFieldType: |
|
39508
e099c68ff019
Document roomlist column types
Gary Kramlich <grim@reaperworld.com>
parents:
39026
diff
changeset
|
41 | * @PURPLE_ROOMLIST_FIELD_BOOL: The field is a boolean. |
|
e099c68ff019
Document roomlist column types
Gary Kramlich <grim@reaperworld.com>
parents:
39026
diff
changeset
|
42 | * @PURPLE_ROOMLIST_FIELD_INT: The field is an integer. |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
43 | * @PURPLE_ROOMLIST_FIELD_STRING: We do a g_strdup on the passed value if it's |
|
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
44 | * this type. |
|
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
45 | * |
|
9999
86e89e1dee10
[gaim-migrate @ 10913]
Mark Doliner <markdoliner@pidgin.im>
parents:
9030
diff
changeset
|
46 | * The types of fields. |
|
86e89e1dee10
[gaim-migrate @ 10913]
Mark Doliner <markdoliner@pidgin.im>
parents:
9030
diff
changeset
|
47 | */ |
|
86e89e1dee10
[gaim-migrate @ 10913]
Mark Doliner <markdoliner@pidgin.im>
parents:
9030
diff
changeset
|
48 | typedef enum |
|
86e89e1dee10
[gaim-migrate @ 10913]
Mark Doliner <markdoliner@pidgin.im>
parents:
9030
diff
changeset
|
49 | { |
| 15884 | 50 | PURPLE_ROOMLIST_FIELD_BOOL, |
| 51 | PURPLE_ROOMLIST_FIELD_INT, | |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
52 | PURPLE_ROOMLIST_FIELD_STRING |
|
9999
86e89e1dee10
[gaim-migrate @ 10913]
Mark Doliner <markdoliner@pidgin.im>
parents:
9030
diff
changeset
|
53 | |
| 15884 | 54 | } PurpleRoomlistFieldType; |
|
9999
86e89e1dee10
[gaim-migrate @ 10913]
Mark Doliner <markdoliner@pidgin.im>
parents:
9030
diff
changeset
|
55 | |
|
9030
7b574a641391
[gaim-migrate @ 9806]
Mark Doliner <markdoliner@pidgin.im>
parents:
9000
diff
changeset
|
56 | #include "account.h" |
|
30374
e9df8757ff89
roomlist: "glib.h" -> <glib.h>; seems correct-er to me
Paul Aurich <darkrain42@pidgin.im>
parents:
23514
diff
changeset
|
57 | #include <glib.h> |
|
41349
15aeaa1e84ec
Rework the way roomlists work so we can more easily port them to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41199
diff
changeset
|
58 | #include "purpleroomlistroom.h" |
|
9030
7b574a641391
[gaim-migrate @ 9806]
Mark Doliner <markdoliner@pidgin.im>
parents:
9000
diff
changeset
|
59 | |
| 8113 | 60 | /**************************************************************************/ |
|
39026
feb9db80ec7c
doc: Remove invalid GTK-Doc annotations
Mike Ruprecht <cmaiku@gmail.com>
parents:
38716
diff
changeset
|
61 | /* Data Structures */ |
| 8113 | 62 | /**************************************************************************/ |
| 63 | ||
| 64 | /** | |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
65 | * PurpleRoomlistUiOps: |
|
35470
8ee08a41f2f3
Convert some other doxygen-type comments
Ankit Vani <a@nevitus.org>
parents:
35466
diff
changeset
|
66 | * @show_with_account: Force the ui to pop up a dialog and get the list. |
|
8ee08a41f2f3
Convert some other doxygen-type comments
Ankit Vani <a@nevitus.org>
parents:
35466
diff
changeset
|
67 | * @create: A new list was created. |
|
8ee08a41f2f3
Convert some other doxygen-type comments
Ankit Vani <a@nevitus.org>
parents:
35466
diff
changeset
|
68 | * @set_fields: Sets the columns. |
|
8ee08a41f2f3
Convert some other doxygen-type comments
Ankit Vani <a@nevitus.org>
parents:
35466
diff
changeset
|
69 | * @add_room: Add a room to the list. |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
70 | * |
| 8113 | 71 | * The room list ops to be filled out by the UI. |
| 72 | */ | |
| 15884 | 73 | struct _PurpleRoomlistUiOps { |
|
35470
8ee08a41f2f3
Convert some other doxygen-type comments
Ankit Vani <a@nevitus.org>
parents:
35466
diff
changeset
|
74 | void (*show_with_account)(PurpleAccount *account); |
|
8ee08a41f2f3
Convert some other doxygen-type comments
Ankit Vani <a@nevitus.org>
parents:
35466
diff
changeset
|
75 | void (*create)(PurpleRoomlist *list); |
|
8ee08a41f2f3
Convert some other doxygen-type comments
Ankit Vani <a@nevitus.org>
parents:
35466
diff
changeset
|
76 | void (*set_fields)(PurpleRoomlist *list, GList *fields); |
|
8ee08a41f2f3
Convert some other doxygen-type comments
Ankit Vani <a@nevitus.org>
parents:
35466
diff
changeset
|
77 | void (*add_room)(PurpleRoomlist *list, PurpleRoomlistRoom *room); |
|
16743
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15884
diff
changeset
|
78 | |
|
35024
eb3afb7643ce
Added /*< private >*/ for padding members, clean them up and add missing ones
Ankit Vani <a@nevitus.org>
parents:
35022
diff
changeset
|
79 | /*< private >*/ |
|
16743
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15884
diff
changeset
|
80 | void (*_purple_reserved1)(void); |
|
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15884
diff
changeset
|
81 | void (*_purple_reserved2)(void); |
|
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15884
diff
changeset
|
82 | void (*_purple_reserved3)(void); |
|
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15884
diff
changeset
|
83 | void (*_purple_reserved4)(void); |
| 8113 | 84 | }; |
| 85 | ||
|
34931
6ea8ce77ec34
Started GObjectification of PurpleRoomlist
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
86 | /** |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
87 | * PurpleRoomlist: |
|
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
88 | * |
|
34931
6ea8ce77ec34
Started GObjectification of PurpleRoomlist
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
89 | * Represents a list of rooms for a given connection on a given protocol. |
|
6ea8ce77ec34
Started GObjectification of PurpleRoomlist
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
90 | */ |
|
6ea8ce77ec34
Started GObjectification of PurpleRoomlist
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
91 | struct _PurpleRoomlist { |
|
6ea8ce77ec34
Started GObjectification of PurpleRoomlist
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
92 | GObject gparent; |
|
6ea8ce77ec34
Started GObjectification of PurpleRoomlist
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
93 | }; |
|
6ea8ce77ec34
Started GObjectification of PurpleRoomlist
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
94 | |
|
32787
7072f190d6ad
Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32604
diff
changeset
|
95 | G_BEGIN_DECLS |
| 8113 | 96 | |
| 97 | /**************************************************************************/ | |
| 35472 | 98 | /* Room List API */ |
| 8113 | 99 | /**************************************************************************/ |
| 100 | ||
| 101 | /** | |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
102 | * purple_roomlist_get_type: |
|
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
103 | * |
|
40584
6f198a69ac48
A bunch of documentation cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
104 | * The standard _get_type function for #PurpleRoomlist. |
|
6f198a69ac48
A bunch of documentation cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
105 | * |
|
35466
e259e75f1c6f
Fix some gtk-doc warnings till xmlnode.h
Ankit Vani <a@nevitus.org>
parents:
35442
diff
changeset
|
106 | * Returns: The #GType for the Room List object. |
|
34931
6ea8ce77ec34
Started GObjectification of PurpleRoomlist
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
107 | */ |
|
39661
c8f98b167882
Change some libpurple object to GObject macros.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39508
diff
changeset
|
108 | G_DECLARE_FINAL_TYPE(PurpleRoomlist, purple_roomlist, PURPLE, ROOMLIST, GObject) |
|
34931
6ea8ce77ec34
Started GObjectification of PurpleRoomlist
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
109 | |
|
6ea8ce77ec34
Started GObjectification of PurpleRoomlist
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
110 | /** |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
111 | * purple_roomlist_show_with_account: |
|
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
112 | * @account: The account to get the list on. |
|
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
113 | * |
| 8352 | 114 | * This is used to get the room list on an account, asking the UI |
| 115 | * to pop up a dialog with the specified account already selected, | |
| 116 | * and pretend the user clicked the get list button. | |
| 117 | * While we're pretending, predend I didn't say anything about dialogs | |
| 118 | * or buttons, since this is the core. | |
| 119 | */ | |
| 15884 | 120 | void purple_roomlist_show_with_account(PurpleAccount *account); |
| 8352 | 121 | |
| 122 | /** | |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
123 | * purple_roomlist_new: |
|
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
124 | * @account: The account that's listing rooms. |
|
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
125 | * |
| 8113 | 126 | * Returns a newly created room list object. |
| 127 | * | |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
128 | * Returns: The new room list handle. |
| 8113 | 129 | */ |
| 15884 | 130 | PurpleRoomlist *purple_roomlist_new(PurpleAccount *account); |
| 8113 | 131 | |
| 132 | /** | |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
133 | * purple_roomlist_get_account: |
|
38560
3007790519bf
libpurple: Add some trivial parameter documentation strings
Mike Ruprecht <cmaiku@gmail.com>
parents:
37113
diff
changeset
|
134 | * @list: The room list. |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
135 | * |
|
32218
f27b05250351
Some struct hiding. What a pain.
Mark Doliner <markdoliner@pidgin.im>
parents:
30374
diff
changeset
|
136 | * Retrieve the PurpleAccount that was given when the room list was |
|
f27b05250351
Some struct hiding. What a pain.
Mark Doliner <markdoliner@pidgin.im>
parents:
30374
diff
changeset
|
137 | * created. |
|
f27b05250351
Some struct hiding. What a pain.
Mark Doliner <markdoliner@pidgin.im>
parents:
30374
diff
changeset
|
138 | * |
|
39738
14d425a528ad
Add missing transfer annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39664
diff
changeset
|
139 | * Returns: (transfer none): The PurpleAccount tied to this room list. |
|
32218
f27b05250351
Some struct hiding. What a pain.
Mark Doliner <markdoliner@pidgin.im>
parents:
30374
diff
changeset
|
140 | */ |
|
f27b05250351
Some struct hiding. What a pain.
Mark Doliner <markdoliner@pidgin.im>
parents:
30374
diff
changeset
|
141 | PurpleAccount *purple_roomlist_get_account(PurpleRoomlist *list); |
|
f27b05250351
Some struct hiding. What a pain.
Mark Doliner <markdoliner@pidgin.im>
parents:
30374
diff
changeset
|
142 | |
|
f27b05250351
Some struct hiding. What a pain.
Mark Doliner <markdoliner@pidgin.im>
parents:
30374
diff
changeset
|
143 | /** |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
144 | * purple_roomlist_set_fields: |
|
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
145 | * @list: The room list. |
|
38716
b9bed228745a
Add many libpurple element-type annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38560
diff
changeset
|
146 | * @fields: (element-type PurpleRoomlistField) (transfer full): UI's are |
|
b9bed228745a
Add many libpurple element-type annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38560
diff
changeset
|
147 | * encouraged to default to displaying these fields in the order given. |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
148 | * |
| 8113 | 149 | * Set the different field types and their names for this protocol. |
| 150 | * | |
| 15884 | 151 | * This must be called before purple_roomlist_room_add(). |
| 8113 | 152 | */ |
| 15884 | 153 | void purple_roomlist_set_fields(PurpleRoomlist *list, GList *fields); |
| 8113 | 154 | |
| 155 | /** | |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
156 | * purple_roomlist_set_in_progress: |
|
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
157 | * @list: The room list. |
|
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
158 | * @in_progress: We're downloading it, or we're not. |
|
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
159 | * |
| 8113 | 160 | * Set the "in progress" state of the room list. |
| 161 | * | |
|
8735
01248ea222d3
[gaim-migrate @ 9490]
Jonathan Champ <royanee@users.sourceforge.net>
parents:
8584
diff
changeset
|
162 | * The UI is encouraged to somehow hint to the user |
| 8113 | 163 | * whether or not we're busy downloading a room list or not. |
| 164 | */ | |
| 15884 | 165 | void purple_roomlist_set_in_progress(PurpleRoomlist *list, gboolean in_progress); |
| 8113 | 166 | |
| 167 | /** | |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
168 | * purple_roomlist_get_in_progress: |
|
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
169 | * @list: The room list. |
|
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
170 | * |
| 8199 | 171 | * Gets the "in progress" state of the room list. |
| 172 | * | |
|
8735
01248ea222d3
[gaim-migrate @ 9490]
Jonathan Champ <royanee@users.sourceforge.net>
parents:
8584
diff
changeset
|
173 | * The UI is encouraged to somehow hint to the user |
| 8199 | 174 | * whether or not we're busy downloading a room list or not. |
| 175 | * | |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
176 | * Returns: True if we're downloading it, or false if we're not. |
| 8199 | 177 | */ |
| 15884 | 178 | gboolean purple_roomlist_get_in_progress(PurpleRoomlist *list); |
| 8199 | 179 | |
| 180 | /** | |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
181 | * purple_roomlist_room_add: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
182 | * @list: The room list. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
183 | * @room: The room to add to the list. The GList of fields must be in the same |
| 15884 | 184 | order as was given in purple_roomlist_set_fields(). |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
185 | * |
|
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
186 | * Adds a room to the list of them. |
| 8113 | 187 | */ |
| 15884 | 188 | void purple_roomlist_room_add(PurpleRoomlist *list, PurpleRoomlistRoom *room); |
| 8113 | 189 | |
| 190 | /** | |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
191 | * purple_roomlist_get_list: |
|
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
192 | * @gc: The PurpleConnection to have get a list. |
| 8113 | 193 | * |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
194 | * Returns a PurpleRoomlist structure from the protocol, and |
|
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
195 | * instructs the protocol to start fetching the list. |
| 8113 | 196 | * |
|
39738
14d425a528ad
Add missing transfer annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39664
diff
changeset
|
197 | * Returns: (transfer full): A PurpleRoomlist* or %NULL if the protocol doesn't |
|
14d425a528ad
Add missing transfer annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39664
diff
changeset
|
198 | * support that. |
| 8113 | 199 | */ |
| 15884 | 200 | PurpleRoomlist *purple_roomlist_get_list(PurpleConnection *gc); |
| 8113 | 201 | |
| 202 | /** | |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
203 | * purple_roomlist_cancel_get_list: |
|
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
204 | * @list: The room list to cancel a get_list on. |
|
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
205 | * |
|
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
206 | * Tells the protocol to stop fetching the list. |
|
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
207 | * If this is possible and done, the protocol will |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
208 | * call set_in_progress with %FALSE and possibly |
| 8113 | 209 | * unref the list if it took a reference. |
| 210 | */ | |
| 15884 | 211 | void purple_roomlist_cancel_get_list(PurpleRoomlist *list); |
| 8113 | 212 | |
| 213 | /** | |
|
41349
15aeaa1e84ec
Rework the way roomlists work so we can more easily port them to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41199
diff
changeset
|
214 | * purple_roomlist_join_room: |
|
15aeaa1e84ec
Rework the way roomlists work so we can more easily port them to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41199
diff
changeset
|
215 | * @list: The room list whose room to join. |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
216 | * @room: The room to join. |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
217 | * |
|
41349
15aeaa1e84ec
Rework the way roomlists work so we can more easily port them to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41199
diff
changeset
|
218 | * Create a new conversation for @room. |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
219 | * |
|
41349
15aeaa1e84ec
Rework the way roomlists work so we can more easily port them to GTK4
Gary Kramlich <grim@reaperworld.com>
parents:
41199
diff
changeset
|
220 | * Since: 3.0.0 |
|
22134
692ceed9d307
A list of accessor functions to the roomlist API.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
221 | */ |
|
41351
a2cd8d6d9483
Fix new warnings in room list
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41349
diff
changeset
|
222 | void purple_roomlist_join_room(PurpleRoomlist *list, PurpleRoomlistRoom *room); |
|
22134
692ceed9d307
A list of accessor functions to the roomlist API.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
223 | |
| 8113 | 224 | /**************************************************************************/ |
| 35472 | 225 | /* UI Registration Functions */ |
| 8113 | 226 | /**************************************************************************/ |
| 227 | ||
| 228 | /** | |
| 35572 | 229 | * purple_roomlist_ui_ops_get_type: |
| 230 | * | |
|
40584
6f198a69ac48
A bunch of documentation cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
231 | * The standard _get_type function for #PurpleRoomlistUiOps. |
|
6f198a69ac48
A bunch of documentation cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
232 | * |
| 35572 | 233 | * Returns: The #GType for the #PurpleRoomlistUiOps boxed structure. |
| 234 | */ | |
| 235 | GType purple_roomlist_ui_ops_get_type(void); | |
| 236 | ||
| 237 | /** | |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
238 | * purple_roomlist_set_ui_ops: |
|
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
239 | * @ops: The UI operations structure. |
| 8113 | 240 | * |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
241 | * Sets the UI operations structure to be used in all purple room lists. |
| 8113 | 242 | */ |
| 15884 | 243 | void purple_roomlist_set_ui_ops(PurpleRoomlistUiOps *ops); |
| 8113 | 244 | |
| 245 | /** | |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
246 | * purple_roomlist_get_ui_ops: |
|
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
247 | * |
| 15884 | 248 | * Returns the purple window UI operations structure to be used in |
| 8113 | 249 | * new windows. |
| 250 | * | |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
251 | * Returns: A filled-out PurpleRoomlistUiOps structure. |
| 8113 | 252 | */ |
| 15884 | 253 | PurpleRoomlistUiOps *purple_roomlist_get_ui_ops(void); |
| 8113 | 254 | |
|
32787
7072f190d6ad
Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32604
diff
changeset
|
255 | G_END_DECLS |
| 8113 | 256 | |
|
39659
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39508
diff
changeset
|
257 | #endif /* PURPLE_ROOMLIST_H */ |