pidgin/pidginaccountdisplay.h

Thu, 16 Nov 2023 23:44:39 -0600

author
Gary Kramlich <grim@reaperworld.com>
date
Thu, 16 Nov 2023 23:44:39 -0600
changeset 42504
02c38caf387b
parent 42466
ca3374c1cdba
child 42620
72178a341eb8
permissions
-rw-r--r--

Depend on GPlugin 0.42.1

Testing Done:
Ran `ninja turtles` without issues and noted that the ircv3 introspection was successful.

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

42165
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
1 /*
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
2 * Pidgin - Internet Messenger
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
3 * Copyright (C) Pidgin Developers <devel@pidgin.im>
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
4 *
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
5 * Pidgin is the legal property of its developers, whose names are too numerous
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
6 * to list here. Please refer to the COPYRIGHT file distributed with this
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
7 * source distribution.
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
8 *
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
9 * This program is free software; you can redistribute it and/or modify
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
10 * it under the terms of the GNU General Public License as published by
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
11 * the Free Software Foundation; either version 2 of the License, or
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
12 * (at your option) any later version.
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
13 *
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
14 * This program is distributed in the hope that it will be useful,
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
17 * GNU General Public License for more details.
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
18 *
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
19 * You should have received a copy of the GNU General Public License
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
20 * along with this program; if not, see <https://www.gnu.org/licenses/>.
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
21 */
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
22
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
23 #if !defined(PIDGIN_GLOBAL_HEADER_INSIDE) && !defined(PIDGIN_COMPILATION)
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
24 # error "only <pidgin.h> may be included directly"
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
25 #endif
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
26
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
27 #ifndef PIDGIN_ACCOUNT_DISPLAY_H
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
28 #define PIDGIN_ACCOUNT_DISPLAY_H
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
29
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
30 #include <gtk/gtk.h>
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
31
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
32 #include <purple.h>
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
33
42465
b7d530551c1b Tag declared Pidgin types with symbol visibility
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42165
diff changeset
34 #include "pidginversion.h"
b7d530551c1b Tag declared Pidgin types with symbol visibility
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42165
diff changeset
35
42165
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
36 G_BEGIN_DECLS
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
37
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
38 #define PIDGIN_TYPE_ACCOUNT_DISPLAY (pidgin_account_display_get_type())
42465
b7d530551c1b Tag declared Pidgin types with symbol visibility
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42165
diff changeset
39
b7d530551c1b Tag declared Pidgin types with symbol visibility
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42165
diff changeset
40 PIDGIN_AVAILABLE_IN_3_0
42165
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
41 G_DECLARE_FINAL_TYPE(PidginAccountDisplay, pidgin_account_display, PIDGIN,
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
42 ACCOUNT_DISPLAY, GtkBox)
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
43
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
44 /**
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
45 * pidgin_account_display_new:
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
46 * @account: The account to display.
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
47 *
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
48 * Creates a display for an account.
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
49 *
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
50 * Returns: (transfer full): The account display.
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
51 *
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
52 * Since: 3.0.0
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
53 */
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
54 PIDGIN_AVAILABLE_IN_3_0
42165
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
55 GtkWidget *pidgin_account_display_new(PurpleAccount *account);
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
56
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
57 /**
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
58 * pidgin_account_display_get_account:
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
59 * @display: The display.
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
60 *
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
61 * Gets the currently displayed account.
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
62 *
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
63 * Returns: (transfer none): Returns the [type@Purple.Account] that is
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
64 * currently displayed.
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
65 *
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
66 * Since: 3.0.0
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
67 */
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
68 PIDGIN_AVAILABLE_IN_3_0
42165
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
69 PurpleAccount *pidgin_account_display_get_account(PidginAccountDisplay *display);
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
70
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
71 /**
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
72 * pidgin_account_display_set_account:
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
73 * @display: The display.
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
74 * @account: The account to display.
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
75 *
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
76 * Sets the currently displayed account.
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
77 *
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
78 * Since: 3.0.0
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
79 */
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
80 PIDGIN_AVAILABLE_IN_3_0
42165
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
81 void pidgin_account_display_set_account(PidginAccountDisplay *display, PurpleAccount *account);
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
82
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
83 G_END_DECLS
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
84
3c481d9cc840 Split account display from chooser into its own widget
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
diff changeset
85 #endif /* PIDGIN_ACCOUNT_DISPLAY_H */

mercurial