pidgin/pidgincontactlistwindow.h

Fri, 03 Nov 2023 00:50:51 -0500

author
Gary Kramlich <grim@reaperworld.com>
date
Fri, 03 Nov 2023 00:50:51 -0500
changeset 42475
ce06ca18db9b
parent 42466
ca3374c1cdba
permissions
-rw-r--r--

Integrate PurplePresenceManager with the core and uis

The original implemenation was just the API and wasn't yet tied into the core
or ui. This fixes that.

Testing Done:
Temporarily added code to add a saved status in the `PurpleUi->get_presence_manager` implementation and verified it was saved to the correct file.

Reviewed at https://reviews.imfreedom.org/r/2771/

40600
46d10c72c137 Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
1 /*
46d10c72c137 Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
2 * Pidgin - Internet Messenger
46d10c72c137 Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
3 * Copyright (C) Pidgin Developers <devel@pidgin.im>
46d10c72c137 Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
4 *
46d10c72c137 Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
5 * Pidgin is the legal property of its developers, whose names are too numerous
46d10c72c137 Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
6 * to list here. Please refer to the COPYRIGHT file distributed with this
46d10c72c137 Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
7 * source distribution.
46d10c72c137 Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
8 *
46d10c72c137 Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
9 * This program is free software; you can redistribute it and/or modify
46d10c72c137 Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
10 * it under the terms of the GNU General Public License as published by
46d10c72c137 Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
11 * the Free Software Foundation; either version 2 of the License, or
46d10c72c137 Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
12 * (at your option) any later version.
46d10c72c137 Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
13 *
46d10c72c137 Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
14 * This program is distributed in the hope that it will be useful,
46d10c72c137 Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
46d10c72c137 Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
46d10c72c137 Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
17 * GNU General Public License for more details.
46d10c72c137 Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
18 *
46d10c72c137 Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
19 * You should have received a copy of the GNU General Public License
46d10c72c137 Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
20 * along with this program; if not, see <https://www.gnu.org/licenses/>.
46d10c72c137 Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
21 */
46d10c72c137 Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
22
46d10c72c137 Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
23 #if !defined(PIDGIN_GLOBAL_HEADER_INSIDE) && !defined(PIDGIN_COMPILATION)
46d10c72c137 Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
24 # error "only <pidgin.h> may be included directly"
46d10c72c137 Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
25 #endif
46d10c72c137 Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
26
41431
d0deb0cc4082 Rename PidginContactList to PidginContactListWindow.
Gary Kramlich <grim@reaperworld.com>
parents: 41124
diff changeset
27 #ifndef PIDGIN_CONTACT_LIST_WINDOW_H
d0deb0cc4082 Rename PidginContactList to PidginContactListWindow.
Gary Kramlich <grim@reaperworld.com>
parents: 41124
diff changeset
28 #define PIDGIN_CONTACT_LIST_WINDOW_H
40600
46d10c72c137 Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
29
46d10c72c137 Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
30 #include <glib.h>
46d10c72c137 Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
31
46d10c72c137 Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
32 #include <gtk/gtk.h>
46d10c72c137 Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
33
42465
b7d530551c1b Tag declared Pidgin types with symbol visibility
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42463
diff changeset
34 #include "pidginversion.h"
b7d530551c1b Tag declared Pidgin types with symbol visibility
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42463
diff changeset
35
40600
46d10c72c137 Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
36 G_BEGIN_DECLS
46d10c72c137 Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
37
40728
2dbfbaeefe40 Merge PidginBuddyListMenu with PidginContactList which fixes all of the accelerators as well.
Gary Kramlich <grim@reaperworld.com>
parents: 40600
diff changeset
38
2dbfbaeefe40 Merge PidginBuddyListMenu with PidginContactList which fixes all of the accelerators as well.
Gary Kramlich <grim@reaperworld.com>
parents: 40600
diff changeset
39 /**
41431
d0deb0cc4082 Rename PidginContactList to PidginContactListWindow.
Gary Kramlich <grim@reaperworld.com>
parents: 41124
diff changeset
40 * PidginContactListWindow:
40728
2dbfbaeefe40 Merge PidginBuddyListMenu with PidginContactList which fixes all of the accelerators as well.
Gary Kramlich <grim@reaperworld.com>
parents: 40600
diff changeset
41 *
41431
d0deb0cc4082 Rename PidginContactList to PidginContactListWindow.
Gary Kramlich <grim@reaperworld.com>
parents: 41124
diff changeset
42 * #PidginContactListWindow is a transitional widget as we slowly migrate it
d0deb0cc4082 Rename PidginContactList to PidginContactListWindow.
Gary Kramlich <grim@reaperworld.com>
parents: 41124
diff changeset
43 * into the conversation window to make a single window application.
40728
2dbfbaeefe40 Merge PidginBuddyListMenu with PidginContactList which fixes all of the accelerators as well.
Gary Kramlich <grim@reaperworld.com>
parents: 40600
diff changeset
44 *
2dbfbaeefe40 Merge PidginBuddyListMenu with PidginContactList which fixes all of the accelerators as well.
Gary Kramlich <grim@reaperworld.com>
parents: 40600
diff changeset
45 * Since: 3.0.0
2dbfbaeefe40 Merge PidginBuddyListMenu with PidginContactList which fixes all of the accelerators as well.
Gary Kramlich <grim@reaperworld.com>
parents: 40600
diff changeset
46 */
2dbfbaeefe40 Merge PidginBuddyListMenu with PidginContactList which fixes all of the accelerators as well.
Gary Kramlich <grim@reaperworld.com>
parents: 40600
diff changeset
47
41431
d0deb0cc4082 Rename PidginContactList to PidginContactListWindow.
Gary Kramlich <grim@reaperworld.com>
parents: 41124
diff changeset
48 #define PIDGIN_TYPE_CONTACT_LIST_WINDOW (pidgin_contact_list_window_get_type())
42465
b7d530551c1b Tag declared Pidgin types with symbol visibility
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42463
diff changeset
49
b7d530551c1b Tag declared Pidgin types with symbol visibility
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42463
diff changeset
50 PIDGIN_AVAILABLE_IN_3_0
41431
d0deb0cc4082 Rename PidginContactList to PidginContactListWindow.
Gary Kramlich <grim@reaperworld.com>
parents: 41124
diff changeset
51 G_DECLARE_FINAL_TYPE(PidginContactListWindow, pidgin_contact_list_window,
d0deb0cc4082 Rename PidginContactList to PidginContactListWindow.
Gary Kramlich <grim@reaperworld.com>
parents: 41124
diff changeset
52 PIDGIN, CONTACT_LIST_WINDOW, GtkApplicationWindow)
40600
46d10c72c137 Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
53
46d10c72c137 Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
54 /**
41431
d0deb0cc4082 Rename PidginContactList to PidginContactListWindow.
Gary Kramlich <grim@reaperworld.com>
parents: 41124
diff changeset
55 * pidgin_contact_list_window_new:
40600
46d10c72c137 Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
56 *
41431
d0deb0cc4082 Rename PidginContactList to PidginContactListWindow.
Gary Kramlich <grim@reaperworld.com>
parents: 41124
diff changeset
57 * Creates a new #PidginContactListWindow instance.
40600
46d10c72c137 Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
58 *
41431
d0deb0cc4082 Rename PidginContactList to PidginContactListWindow.
Gary Kramlich <grim@reaperworld.com>
parents: 41124
diff changeset
59 * Returns: (transfer full): The new #PidginContactListWindow instance.
40728
2dbfbaeefe40 Merge PidginBuddyListMenu with PidginContactList which fixes all of the accelerators as well.
Gary Kramlich <grim@reaperworld.com>
parents: 40600
diff changeset
60 *
2dbfbaeefe40 Merge PidginBuddyListMenu with PidginContactList which fixes all of the accelerators as well.
Gary Kramlich <grim@reaperworld.com>
parents: 40600
diff changeset
61 * Since: 3.0.0
40600
46d10c72c137 Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
62 */
42466
ca3374c1cdba Add visibility to all Pidgin symbols tagged with Since 3.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42465
diff changeset
63 PIDGIN_AVAILABLE_IN_3_0
41431
d0deb0cc4082 Rename PidginContactList to PidginContactListWindow.
Gary Kramlich <grim@reaperworld.com>
parents: 41124
diff changeset
64 GtkWidget *pidgin_contact_list_window_new(void);
40600
46d10c72c137 Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
65
46d10c72c137 Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
66 /**
41431
d0deb0cc4082 Rename PidginContactList to PidginContactListWindow.
Gary Kramlich <grim@reaperworld.com>
parents: 41124
diff changeset
67 * pidgin_contact_list_window_get_vbox:
d0deb0cc4082 Rename PidginContactList to PidginContactListWindow.
Gary Kramlich <grim@reaperworld.com>
parents: 41124
diff changeset
68 * @window: The #PidginContactListWindow instance.
40600
46d10c72c137 Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
69 *
46d10c72c137 Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
70 * Gets the main vbox for @contact_list.
46d10c72c137 Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
71 *
41431
d0deb0cc4082 Rename PidginContactList to PidginContactListWindow.
Gary Kramlich <grim@reaperworld.com>
parents: 41124
diff changeset
72 * Returns: (transfer none): The main vbox of @window.
40728
2dbfbaeefe40 Merge PidginBuddyListMenu with PidginContactList which fixes all of the accelerators as well.
Gary Kramlich <grim@reaperworld.com>
parents: 40600
diff changeset
73 *
2dbfbaeefe40 Merge PidginBuddyListMenu with PidginContactList which fixes all of the accelerators as well.
Gary Kramlich <grim@reaperworld.com>
parents: 40600
diff changeset
74 * Since: 3.0.0
40600
46d10c72c137 Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
75 */
42466
ca3374c1cdba Add visibility to all Pidgin symbols tagged with Since 3.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42465
diff changeset
76 PIDGIN_AVAILABLE_IN_3_0
41431
d0deb0cc4082 Rename PidginContactList to PidginContactListWindow.
Gary Kramlich <grim@reaperworld.com>
parents: 41124
diff changeset
77 GtkWidget *pidgin_contact_list_window_get_vbox(PidginContactListWindow *window);
40600
46d10c72c137 Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
78
46d10c72c137 Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
79 G_END_DECLS
46d10c72c137 Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
80
41431
d0deb0cc4082 Rename PidginContactList to PidginContactListWindow.
Gary Kramlich <grim@reaperworld.com>
parents: 41124
diff changeset
81 #endif /* PIDGIN_CONTACT_LIST_WINDOW_H */

mercurial