Thu, 25 Aug 2022 22:30:30 -0500
Remove the use of the removed popup-menu signal and fix the popup menu not displaying
Testing Done:
Double clicked a buddy to open a conversation and right clicked a buddy to make sure the contact menu came up.
Reviewed at https://reviews.imfreedom.org/r/1651/
|
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 | |
|
35442
84e906df98dd
Add section blocks for purple-socket.h to xmlnode.h
Ankit Vani <a@nevitus.org>
parents:
35402
diff
changeset
|
30 | /** |
|
40524
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
31 | * PURPLE_TYPE_ROOMLIST: |
|
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
32 | * |
|
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
33 | * The standard _get_type macro for #PurpleRoomlist. |
|
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
34 | */ |
|
39661
c8f98b167882
Change some libpurple object to GObject macros.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39508
diff
changeset
|
35 | #define PURPLE_TYPE_ROOMLIST (purple_roomlist_get_type()) |
| 15884 | 36 | typedef struct _PurpleRoomlist PurpleRoomlist; |
|
34931
6ea8ce77ec34
Started GObjectification of PurpleRoomlist
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
37 | |
|
40524
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
38 | /** |
|
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
39 | * PURPLE_TYPE_ROOMLIST_FIELD: |
|
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
40 | * |
|
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
41 | * The standard _get_type macro for #PurpleRoomlistField. |
|
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
42 | */ |
|
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
43 | #define PURPLE_TYPE_ROOMLIST_FIELD (purple_roomlist_field_get_type()) |
| 15884 | 44 | typedef struct _PurpleRoomlistField PurpleRoomlistField; |
|
34931
6ea8ce77ec34
Started GObjectification of PurpleRoomlist
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
45 | |
|
40524
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
46 | /** |
|
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
47 | * PURPLE_TYPE_ROOMLIST_UI_OPS: |
|
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
48 | * |
|
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
49 | * The standard _get_type macro for #PurpleRoomlistUiOps. |
|
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
50 | */ |
|
a3b1cde8d2d8
Add documentation for all PURPLE_TYPE_ functions as well as PURPLE_TUNE_ constants
Gary Kramlich <grim@reaperworld.com>
parents:
40474
diff
changeset
|
51 | #define PURPLE_TYPE_ROOMLIST_UI_OPS (purple_roomlist_ui_ops_get_type()) |
| 15884 | 52 | typedef struct _PurpleRoomlistUiOps PurpleRoomlistUiOps; |
|
9030
7b574a641391
[gaim-migrate @ 9806]
Mark Doliner <markdoliner@pidgin.im>
parents:
9000
diff
changeset
|
53 | |
|
9999
86e89e1dee10
[gaim-migrate @ 10913]
Mark Doliner <markdoliner@pidgin.im>
parents:
9030
diff
changeset
|
54 | /** |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
55 | * PurpleRoomlistFieldType: |
|
39508
e099c68ff019
Document roomlist column types
Gary Kramlich <grim@reaperworld.com>
parents:
39026
diff
changeset
|
56 | * @PURPLE_ROOMLIST_FIELD_BOOL: The field is a boolean. |
|
e099c68ff019
Document roomlist column types
Gary Kramlich <grim@reaperworld.com>
parents:
39026
diff
changeset
|
57 | * @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
|
58 | * @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
|
59 | * 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
|
60 | * |
|
9999
86e89e1dee10
[gaim-migrate @ 10913]
Mark Doliner <markdoliner@pidgin.im>
parents:
9030
diff
changeset
|
61 | * The types of fields. |
|
86e89e1dee10
[gaim-migrate @ 10913]
Mark Doliner <markdoliner@pidgin.im>
parents:
9030
diff
changeset
|
62 | */ |
|
86e89e1dee10
[gaim-migrate @ 10913]
Mark Doliner <markdoliner@pidgin.im>
parents:
9030
diff
changeset
|
63 | typedef enum |
|
86e89e1dee10
[gaim-migrate @ 10913]
Mark Doliner <markdoliner@pidgin.im>
parents:
9030
diff
changeset
|
64 | { |
| 15884 | 65 | PURPLE_ROOMLIST_FIELD_BOOL, |
| 66 | 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
|
67 | PURPLE_ROOMLIST_FIELD_STRING |
|
9999
86e89e1dee10
[gaim-migrate @ 10913]
Mark Doliner <markdoliner@pidgin.im>
parents:
9030
diff
changeset
|
68 | |
| 15884 | 69 | } PurpleRoomlistFieldType; |
|
9999
86e89e1dee10
[gaim-migrate @ 10913]
Mark Doliner <markdoliner@pidgin.im>
parents:
9030
diff
changeset
|
70 | |
|
9030
7b574a641391
[gaim-migrate @ 9806]
Mark Doliner <markdoliner@pidgin.im>
parents:
9000
diff
changeset
|
71 | #include "account.h" |
|
30374
e9df8757ff89
roomlist: "glib.h" -> <glib.h>; seems correct-er to me
Paul Aurich <darkrain42@pidgin.im>
parents:
23514
diff
changeset
|
72 | #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
|
73 | #include "purpleroomlistroom.h" |
|
9030
7b574a641391
[gaim-migrate @ 9806]
Mark Doliner <markdoliner@pidgin.im>
parents:
9000
diff
changeset
|
74 | |
| 8113 | 75 | /**************************************************************************/ |
|
39026
feb9db80ec7c
doc: Remove invalid GTK-Doc annotations
Mike Ruprecht <cmaiku@gmail.com>
parents:
38716
diff
changeset
|
76 | /* Data Structures */ |
| 8113 | 77 | /**************************************************************************/ |
| 78 | ||
| 79 | /** | |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
80 | * PurpleRoomlistUiOps: |
|
35470
8ee08a41f2f3
Convert some other doxygen-type comments
Ankit Vani <a@nevitus.org>
parents:
35466
diff
changeset
|
81 | * @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
|
82 | * @create: A new list was created. |
|
8ee08a41f2f3
Convert some other doxygen-type comments
Ankit Vani <a@nevitus.org>
parents:
35466
diff
changeset
|
83 | * @set_fields: Sets the columns. |
|
8ee08a41f2f3
Convert some other doxygen-type comments
Ankit Vani <a@nevitus.org>
parents:
35466
diff
changeset
|
84 | * @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
|
85 | * |
| 8113 | 86 | * The room list ops to be filled out by the UI. |
| 87 | */ | |
| 15884 | 88 | struct _PurpleRoomlistUiOps { |
|
35470
8ee08a41f2f3
Convert some other doxygen-type comments
Ankit Vani <a@nevitus.org>
parents:
35466
diff
changeset
|
89 | void (*show_with_account)(PurpleAccount *account); |
|
8ee08a41f2f3
Convert some other doxygen-type comments
Ankit Vani <a@nevitus.org>
parents:
35466
diff
changeset
|
90 | void (*create)(PurpleRoomlist *list); |
|
8ee08a41f2f3
Convert some other doxygen-type comments
Ankit Vani <a@nevitus.org>
parents:
35466
diff
changeset
|
91 | void (*set_fields)(PurpleRoomlist *list, GList *fields); |
|
8ee08a41f2f3
Convert some other doxygen-type comments
Ankit Vani <a@nevitus.org>
parents:
35466
diff
changeset
|
92 | 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
|
93 | |
|
35024
eb3afb7643ce
Added /*< private >*/ for padding members, clean them up and add missing ones
Ankit Vani <a@nevitus.org>
parents:
35022
diff
changeset
|
94 | /*< private >*/ |
|
16743
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15884
diff
changeset
|
95 | 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
|
96 | 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
|
97 | 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
|
98 | void (*_purple_reserved4)(void); |
| 8113 | 99 | }; |
| 100 | ||
|
34931
6ea8ce77ec34
Started GObjectification of PurpleRoomlist
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
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 | * PurpleRoomlist: |
|
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
103 | * |
|
34931
6ea8ce77ec34
Started GObjectification of PurpleRoomlist
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
104 | * 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
|
105 | */ |
|
6ea8ce77ec34
Started GObjectification of PurpleRoomlist
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
106 | struct _PurpleRoomlist { |
|
6ea8ce77ec34
Started GObjectification of PurpleRoomlist
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
107 | GObject gparent; |
|
6ea8ce77ec34
Started GObjectification of PurpleRoomlist
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
108 | }; |
|
6ea8ce77ec34
Started GObjectification of PurpleRoomlist
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
109 | |
|
32787
7072f190d6ad
Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32604
diff
changeset
|
110 | G_BEGIN_DECLS |
| 8113 | 111 | |
| 112 | /**************************************************************************/ | |
| 35472 | 113 | /* Room List API */ |
| 8113 | 114 | /**************************************************************************/ |
| 115 | ||
| 116 | /** | |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
117 | * 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
|
118 | * |
|
40584
6f198a69ac48
A bunch of documentation cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
119 | * The standard _get_type function for #PurpleRoomlist. |
|
6f198a69ac48
A bunch of documentation cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
120 | * |
|
35466
e259e75f1c6f
Fix some gtk-doc warnings till xmlnode.h
Ankit Vani <a@nevitus.org>
parents:
35442
diff
changeset
|
121 | * Returns: The #GType for the Room List object. |
|
34931
6ea8ce77ec34
Started GObjectification of PurpleRoomlist
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
122 | */ |
|
39661
c8f98b167882
Change some libpurple object to GObject macros.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39508
diff
changeset
|
123 | 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
|
124 | |
|
6ea8ce77ec34
Started GObjectification of PurpleRoomlist
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
125 | /** |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
126 | * 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
|
127 | * @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
|
128 | * |
| 8352 | 129 | * This is used to get the room list on an account, asking the UI |
| 130 | * to pop up a dialog with the specified account already selected, | |
| 131 | * and pretend the user clicked the get list button. | |
| 132 | * While we're pretending, predend I didn't say anything about dialogs | |
| 133 | * or buttons, since this is the core. | |
| 134 | */ | |
| 15884 | 135 | void purple_roomlist_show_with_account(PurpleAccount *account); |
| 8352 | 136 | |
| 137 | /** | |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
138 | * 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
|
139 | * @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
|
140 | * |
| 8113 | 141 | * Returns a newly created room list object. |
| 142 | * | |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
143 | * Returns: The new room list handle. |
| 8113 | 144 | */ |
| 15884 | 145 | PurpleRoomlist *purple_roomlist_new(PurpleAccount *account); |
| 8113 | 146 | |
| 147 | /** | |
|
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 | * purple_roomlist_get_account: |
|
38560
3007790519bf
libpurple: Add some trivial parameter documentation strings
Mike Ruprecht <cmaiku@gmail.com>
parents:
37113
diff
changeset
|
149 | * @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
|
150 | * |
|
32218
f27b05250351
Some struct hiding. What a pain.
Mark Doliner <markdoliner@pidgin.im>
parents:
30374
diff
changeset
|
151 | * 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
|
152 | * created. |
|
f27b05250351
Some struct hiding. What a pain.
Mark Doliner <markdoliner@pidgin.im>
parents:
30374
diff
changeset
|
153 | * |
|
39738
14d425a528ad
Add missing transfer annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39664
diff
changeset
|
154 | * 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
|
155 | */ |
|
f27b05250351
Some struct hiding. What a pain.
Mark Doliner <markdoliner@pidgin.im>
parents:
30374
diff
changeset
|
156 | PurpleAccount *purple_roomlist_get_account(PurpleRoomlist *list); |
|
f27b05250351
Some struct hiding. What a pain.
Mark Doliner <markdoliner@pidgin.im>
parents:
30374
diff
changeset
|
157 | |
|
f27b05250351
Some struct hiding. What a pain.
Mark Doliner <markdoliner@pidgin.im>
parents:
30374
diff
changeset
|
158 | /** |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
159 | * 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
|
160 | * @list: The room list. |
|
38716
b9bed228745a
Add many libpurple element-type annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38560
diff
changeset
|
161 | * @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
|
162 | * 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
|
163 | * |
| 8113 | 164 | * Set the different field types and their names for this protocol. |
| 165 | * | |
| 15884 | 166 | * This must be called before purple_roomlist_room_add(). |
| 8113 | 167 | */ |
| 15884 | 168 | void purple_roomlist_set_fields(PurpleRoomlist *list, GList *fields); |
| 8113 | 169 | |
| 170 | /** | |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
171 | * 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
|
172 | * @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
|
173 | * @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
|
174 | * |
| 8113 | 175 | * Set the "in progress" state of the room list. |
| 176 | * | |
|
8735
01248ea222d3
[gaim-migrate @ 9490]
Jonathan Champ <royanee@users.sourceforge.net>
parents:
8584
diff
changeset
|
177 | * The UI is encouraged to somehow hint to the user |
| 8113 | 178 | * whether or not we're busy downloading a room list or not. |
| 179 | */ | |
| 15884 | 180 | void purple_roomlist_set_in_progress(PurpleRoomlist *list, gboolean in_progress); |
| 8113 | 181 | |
| 182 | /** | |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
183 | * 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
|
184 | * @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
|
185 | * |
| 8199 | 186 | * Gets the "in progress" state of the room list. |
| 187 | * | |
|
8735
01248ea222d3
[gaim-migrate @ 9490]
Jonathan Champ <royanee@users.sourceforge.net>
parents:
8584
diff
changeset
|
188 | * The UI is encouraged to somehow hint to the user |
| 8199 | 189 | * whether or not we're busy downloading a room list or not. |
| 190 | * | |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
191 | * Returns: True if we're downloading it, or false if we're not. |
| 8199 | 192 | */ |
| 15884 | 193 | gboolean purple_roomlist_get_in_progress(PurpleRoomlist *list); |
| 8199 | 194 | |
| 195 | /** | |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
196 | * purple_roomlist_room_add: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
197 | * @list: The room list. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
198 | * @room: The room to add to the list. The GList of fields must be in the same |
| 15884 | 199 | 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
|
200 | * |
|
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
201 | * Adds a room to the list of them. |
| 8113 | 202 | */ |
| 15884 | 203 | void purple_roomlist_room_add(PurpleRoomlist *list, PurpleRoomlistRoom *room); |
| 8113 | 204 | |
| 205 | /** | |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
206 | * 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
|
207 | * @gc: The PurpleConnection to have get a list. |
| 8113 | 208 | * |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
209 | * 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
|
210 | * instructs the protocol to start fetching the list. |
| 8113 | 211 | * |
|
39738
14d425a528ad
Add missing transfer annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39664
diff
changeset
|
212 | * 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
|
213 | * support that. |
| 8113 | 214 | */ |
| 15884 | 215 | PurpleRoomlist *purple_roomlist_get_list(PurpleConnection *gc); |
| 8113 | 216 | |
| 217 | /** | |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
218 | * 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
|
219 | * @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
|
220 | * |
|
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
221 | * 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
|
222 | * 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
|
223 | * call set_in_progress with %FALSE and possibly |
| 8113 | 224 | * unref the list if it took a reference. |
| 225 | */ | |
| 15884 | 226 | void purple_roomlist_cancel_get_list(PurpleRoomlist *list); |
| 8113 | 227 | |
| 228 | /** | |
|
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
|
229 | * 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
|
230 | * @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
|
231 | * @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
|
232 | * |
|
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
|
233 | * 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
|
234 | * |
|
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
|
235 | * 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
|
236 | */ |
|
41351
a2cd8d6d9483
Fix new warnings in room list
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41349
diff
changeset
|
237 | 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
|
238 | |
| 8113 | 239 | /**************************************************************************/ |
| 35472 | 240 | /* UI Registration Functions */ |
| 8113 | 241 | /**************************************************************************/ |
| 242 | ||
| 243 | /** | |
| 35572 | 244 | * purple_roomlist_ui_ops_get_type: |
| 245 | * | |
|
40584
6f198a69ac48
A bunch of documentation cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
246 | * The standard _get_type function for #PurpleRoomlistUiOps. |
|
6f198a69ac48
A bunch of documentation cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
40524
diff
changeset
|
247 | * |
| 35572 | 248 | * Returns: The #GType for the #PurpleRoomlistUiOps boxed structure. |
| 249 | */ | |
| 250 | GType purple_roomlist_ui_ops_get_type(void); | |
| 251 | ||
| 252 | /** | |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
253 | * 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
|
254 | * @ops: The UI operations structure. |
| 8113 | 255 | * |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
256 | * Sets the UI operations structure to be used in all purple room lists. |
| 8113 | 257 | */ |
| 15884 | 258 | void purple_roomlist_set_ui_ops(PurpleRoomlistUiOps *ops); |
| 8113 | 259 | |
| 260 | /** | |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
261 | * 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
|
262 | * |
| 15884 | 263 | * Returns the purple window UI operations structure to be used in |
| 8113 | 264 | * new windows. |
| 265 | * | |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35024
diff
changeset
|
266 | * Returns: A filled-out PurpleRoomlistUiOps structure. |
| 8113 | 267 | */ |
| 15884 | 268 | PurpleRoomlistUiOps *purple_roomlist_get_ui_ops(void); |
| 8113 | 269 | |
|
32787
7072f190d6ad
Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32604
diff
changeset
|
270 | G_END_DECLS |
| 8113 | 271 | |
|
39659
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39508
diff
changeset
|
272 | #endif /* PURPLE_ROOMLIST_H */ |