libpurple/purpleui.h

Tue, 23 Jul 2024 01:03:57 -0500

author
Gary Kramlich <grim@reaperworld.com>
date
Tue, 23 Jul 2024 01:03:57 -0500
changeset 42817
2973a9b3d225
parent 42777
8b4f02641aa9
permissions
-rw-r--r--

Add an async open_uri to Purple.Ui

Also mark purple_notify_uri as deprecated

Testing Done:
Ran the turtles.

I was going to add unit tests, but we don't have anything existing to test Purple.Ui as the test ui is an implementation of Purple.Ui for tests that require a Ui.

Bugs closed: PIDGIN-17866

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

41867
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
1 /*
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
2 * Purple - Internet Messaging Library
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
3 * Copyright (C) Pidgin Developers <devel@pidgin.im>
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
4 *
42594
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42475
diff changeset
5 * Purple is the legal property of its developers, whose names are too numerous
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42475
diff changeset
6 * to list here. Please refer to the COPYRIGHT file distributed with this
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42475
diff changeset
7 * source distribution.
41867
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
8 *
42594
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42475
diff changeset
9 * This library is free software; you can redistribute it and/or modify it
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42475
diff changeset
10 * under the terms of the GNU General Public License as published by the Free
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42475
diff changeset
11 * Software Foundation; either version 2 of the License, or (at your option)
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42475
diff changeset
12 * any later version.
41867
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
13 *
42594
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42475
diff changeset
14 * This library is distributed in the hope that it will be useful, but WITHOUT
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42475
diff changeset
15 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42475
diff changeset
16 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42475
diff changeset
17 * more details.
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42475
diff changeset
18 *
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42475
diff changeset
19 * You should have received a copy of the GNU General Public License along with
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42475
diff changeset
20 * this library; if not, see <https://www.gnu.org/licenses/>.
41867
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
21 */
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
22
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
23 #if !defined(PURPLE_GLOBAL_HEADER_INSIDE) && !defined(PURPLE_COMPILATION)
42628
b069ea54b906 Fix the libpurple include warnings that were suggesting pidgin.h be included
Gary Kramlich <grim@reaperworld.com>
parents: 42616
diff changeset
24 # error "only <purple.h> may be included directly"
41867
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
25 #endif
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
26
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
27 #ifndef PURPLE_UI_H
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
28 #define PURPLE_UI_H
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
29
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
30 #include <glib.h>
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
31 #include <glib-object.h>
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
32
42777
8b4f02641aa9 The first steps of making the conversation manager persistent
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
33 #include "purpleconversationmanager.h"
42435
ecf0fdfc8363 Add a get_history_adapter method to PurpleUi and implement in Pidgin and Finch
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
34 #include "purplehistoryadapter.h"
42475
ce06ca18db9b Integrate PurplePresenceManager with the core and uis
Gary Kramlich <grim@reaperworld.com>
parents: 42435
diff changeset
35 #include "purplepresencemanager.h"
42387
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41881
diff changeset
36 #include "purpleversion.h"
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41881
diff changeset
37
41867
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
38 G_BEGIN_DECLS
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
39
42817
2973a9b3d225 Add an async open_uri to Purple.Ui
Gary Kramlich <grim@reaperworld.com>
parents: 42777
diff changeset
40 /**
2973a9b3d225 Add an async open_uri to Purple.Ui
Gary Kramlich <grim@reaperworld.com>
parents: 42777
diff changeset
41 * PURPLE_UI_ERROR:
2973a9b3d225 Add an async open_uri to Purple.Ui
Gary Kramlich <grim@reaperworld.com>
parents: 42777
diff changeset
42 *
2973a9b3d225 Add an async open_uri to Purple.Ui
Gary Kramlich <grim@reaperworld.com>
parents: 42777
diff changeset
43 * A GError domain for PurpleUi errors.
2973a9b3d225 Add an async open_uri to Purple.Ui
Gary Kramlich <grim@reaperworld.com>
parents: 42777
diff changeset
44 *
2973a9b3d225 Add an async open_uri to Purple.Ui
Gary Kramlich <grim@reaperworld.com>
parents: 42777
diff changeset
45 * Since: 3.0
2973a9b3d225 Add an async open_uri to Purple.Ui
Gary Kramlich <grim@reaperworld.com>
parents: 42777
diff changeset
46 */
2973a9b3d225 Add an async open_uri to Purple.Ui
Gary Kramlich <grim@reaperworld.com>
parents: 42777
diff changeset
47 #define PURPLE_UI_ERROR (g_quark_from_static_string("purple-ui"))
2973a9b3d225 Add an async open_uri to Purple.Ui
Gary Kramlich <grim@reaperworld.com>
parents: 42777
diff changeset
48
41867
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
49 #define PURPLE_TYPE_UI (purple_ui_get_type())
42387
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41881
diff changeset
50
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41881
diff changeset
51 PURPLE_AVAILABLE_IN_3_0
41867
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
52 G_DECLARE_DERIVABLE_TYPE(PurpleUi, purple_ui, PURPLE, UI, GObject)
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
53
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
54 /**
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
55 * PurpleUi:
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
56 *
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
57 * An abstract class representing a user interface. All user interfaces must
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
58 * create a subclass of this and pass it to [func@Purple.Core.init].
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
59 *
42616
a7144db5570a Remove the micro version from since tags for libpurple part 5
Gary Kramlich <grim@reaperworld.com>
parents: 42594
diff changeset
60 * Since: 3.0
41867
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
61 */
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
62
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
63 /**
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
64 * PurpleUiClass:
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
65 * @prefs_init: This function is called to initialize the ui's preferences.
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
66 * This is slowly being phased out for @get_settings_backend, but
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
67 * is still required.
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
68 * @start: Called when libpurple is done with its initialization when the user
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
69 * interface should start telling libpurple about the rest of the user
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
70 * interface's interfaces.
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
71 * @stop: Called after most of libpurple has been uninitialized.
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
72 * @get_settings_backend: Called to get the [class@Gio.SettingsBackend] that
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
73 * the UI is using.
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
74 *
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
75 * The base class for all user interfaces which is used to identify themselves
41875
83ade55715e2 purple_core_init gets renamed to Purple.Core.init in gobject introspection
Gary Kramlich <grim@reaperworld.com>
parents: 41873
diff changeset
76 * to libpurple when calling [func@Purple.Core.init].
41867
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
77 *
42616
a7144db5570a Remove the micro version from since tags for libpurple part 5
Gary Kramlich <grim@reaperworld.com>
parents: 42594
diff changeset
78 * Since: 3.0
41867
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
79 */
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
80 struct _PurpleUiClass {
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
81 /*< private >*/
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
82 GObjectClass parent;
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
83
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
84 /*< public >*/
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
85 void (*prefs_init)(PurpleUi *ui);
41873
98c20aec9aba Make PurpleUi.start return a gboolean and GError
Gary Kramlich <grim@reaperworld.com>
parents: 41867
diff changeset
86 gboolean (*start)(PurpleUi *ui, GError **error);
41867
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
87 void (*stop)(PurpleUi *ui);
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
88
42777
8b4f02641aa9 The first steps of making the conversation manager persistent
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
89 PurpleConversationManager *(*get_conversation_manager)(PurpleUi *ui);
42435
ecf0fdfc8363 Add a get_history_adapter method to PurpleUi and implement in Pidgin and Finch
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
90 PurpleHistoryAdapter *(*get_history_adapter)(PurpleUi *ui);
42475
ce06ca18db9b Integrate PurplePresenceManager with the core and uis
Gary Kramlich <grim@reaperworld.com>
parents: 42435
diff changeset
91 PurplePresenceManager *(*get_presence_manager)(PurpleUi *ui);
42777
8b4f02641aa9 The first steps of making the conversation manager persistent
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
92 gpointer (*get_settings_backend)(PurpleUi *ui);
41867
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
93
42817
2973a9b3d225 Add an async open_uri to Purple.Ui
Gary Kramlich <grim@reaperworld.com>
parents: 42777
diff changeset
94 void (*open_uri)(PurpleUi *ui, const char *uri, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer data);
2973a9b3d225 Add an async open_uri to Purple.Ui
Gary Kramlich <grim@reaperworld.com>
parents: 42777
diff changeset
95 gboolean (*open_uri_finish)(PurpleUi *ui, GAsyncResult *result, GError **error);
2973a9b3d225 Add an async open_uri to Purple.Ui
Gary Kramlich <grim@reaperworld.com>
parents: 42777
diff changeset
96
41867
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
97 /*< private >*/
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
98 gpointer reserved[4];
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
99 };
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
100
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
101 /**
42777
8b4f02641aa9 The first steps of making the conversation manager persistent
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
102 * purple_ui_get_conversation_manager:
8b4f02641aa9 The first steps of making the conversation manager persistent
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
103 * @ui: The instance.
8b4f02641aa9 The first steps of making the conversation manager persistent
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
104 *
8b4f02641aa9 The first steps of making the conversation manager persistent
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
105 * Gets the default conversation manager manage from @ui.
8b4f02641aa9 The first steps of making the conversation manager persistent
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
106 *
8b4f02641aa9 The first steps of making the conversation manager persistent
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
107 * Note: This should only be called by libpurple which will manage it's life
8b4f02641aa9 The first steps of making the conversation manager persistent
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
108 * cycle.
8b4f02641aa9 The first steps of making the conversation manager persistent
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
109 *
8b4f02641aa9 The first steps of making the conversation manager persistent
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
110 * Returns: (transfer full): The conversation manager for @ui.
8b4f02641aa9 The first steps of making the conversation manager persistent
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
111 *
8b4f02641aa9 The first steps of making the conversation manager persistent
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
112 * Since: 3.0
8b4f02641aa9 The first steps of making the conversation manager persistent
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
113 */
8b4f02641aa9 The first steps of making the conversation manager persistent
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
114 PURPLE_AVAILABLE_IN_3_0
8b4f02641aa9 The first steps of making the conversation manager persistent
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
115 PurpleConversationManager *purple_ui_get_conversation_manager(PurpleUi *ui);
8b4f02641aa9 The first steps of making the conversation manager persistent
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
116
8b4f02641aa9 The first steps of making the conversation manager persistent
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
117 /**
41867
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
118 * purple_ui_get_id:
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
119 * @ui: The instance.
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
120 *
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
121 * Gets the id for the user interface.
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
122 *
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
123 * Returns: id of the user interface.
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
124 *
42616
a7144db5570a Remove the micro version from since tags for libpurple part 5
Gary Kramlich <grim@reaperworld.com>
parents: 42594
diff changeset
125 * Since: 3.0
41867
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
126 */
42387
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41881
diff changeset
127 PURPLE_AVAILABLE_IN_3_0
41867
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
128 const char *purple_ui_get_id(PurpleUi *ui);
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
129
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
130 /**
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
131 * purple_ui_get_name:
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
132 * @ui: The instance.
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
133 *
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
134 * Gets the name of @ui. This should be translated.
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
135 *
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
136 * Returns: The name of the user interface.
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
137 *
42616
a7144db5570a Remove the micro version from since tags for libpurple part 5
Gary Kramlich <grim@reaperworld.com>
parents: 42594
diff changeset
138 * Since: 3.0
41867
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
139 */
42387
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41881
diff changeset
140 PURPLE_AVAILABLE_IN_3_0
41867
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
141 const char *purple_ui_get_name(PurpleUi *ui);
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
142
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
143 /**
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
144 * purple_ui_get_version:
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
145 * @ui: The instance.
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
146 *
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
147 * Gets the version of @ui.
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
148 *
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
149 * Returns: The version of the user interface.
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
150 *
42616
a7144db5570a Remove the micro version from since tags for libpurple part 5
Gary Kramlich <grim@reaperworld.com>
parents: 42594
diff changeset
151 * Since: 3.0
41867
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
152 */
42387
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41881
diff changeset
153 PURPLE_AVAILABLE_IN_3_0
41867
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
154 const char *purple_ui_get_version(PurpleUi *ui);
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
155
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
156 /**
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
157 * purple_ui_get_website:
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
158 * @ui: The instance.
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
159 *
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
160 * Gets the website from @ui.
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
161 *
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
162 * Returns: (nullable): The website URI of the user interface or %NULL.
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
163 *
42616
a7144db5570a Remove the micro version from since tags for libpurple part 5
Gary Kramlich <grim@reaperworld.com>
parents: 42594
diff changeset
164 * Since: 3.0
41867
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
165 */
42387
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41881
diff changeset
166 PURPLE_AVAILABLE_IN_3_0
41867
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
167 const char *purple_ui_get_website(PurpleUi *ui);
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
168
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
169 /**
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
170 * purple_ui_get_support_website:
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
171 * @ui: The instance.
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
172 *
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
173 * Gets the support website from @ui.
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
174 *
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
175 * Returns: (nullable): The support website URI of the user interface or %NULL.
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
176 *
42616
a7144db5570a Remove the micro version from since tags for libpurple part 5
Gary Kramlich <grim@reaperworld.com>
parents: 42594
diff changeset
177 * Since: 3.0
41867
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
178 */
42387
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41881
diff changeset
179 PURPLE_AVAILABLE_IN_3_0
41867
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
180 const char *purple_ui_get_support_website(PurpleUi *ui);
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
181
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
182 /**
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
183 * purple_ui_get_client_type:
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
184 * @ui: The instance.
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
185 *
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
186 * Gets the client type from @ui.
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
187 *
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
188 * Returns: (transfer none): The client type of the user interface.
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
189 *
42616
a7144db5570a Remove the micro version from since tags for libpurple part 5
Gary Kramlich <grim@reaperworld.com>
parents: 42594
diff changeset
190 * Since: 3.0
41867
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
191 */
42387
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41881
diff changeset
192 PURPLE_AVAILABLE_IN_3_0
41867
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
193 const char *purple_ui_get_client_type(PurpleUi *ui);
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
194
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
195 /**
42817
2973a9b3d225 Add an async open_uri to Purple.Ui
Gary Kramlich <grim@reaperworld.com>
parents: 42777
diff changeset
196 * purple_ui_open_uri:
2973a9b3d225 Add an async open_uri to Purple.Ui
Gary Kramlich <grim@reaperworld.com>
parents: 42777
diff changeset
197 * @ui: The instance.
2973a9b3d225 Add an async open_uri to Purple.Ui
Gary Kramlich <grim@reaperworld.com>
parents: 42777
diff changeset
198 * @uri: The uri to open.
2973a9b3d225 Add an async open_uri to Purple.Ui
Gary Kramlich <grim@reaperworld.com>
parents: 42777
diff changeset
199 * @cancellable: (nullable): An optional cancellable.
2973a9b3d225 Add an async open_uri to Purple.Ui
Gary Kramlich <grim@reaperworld.com>
parents: 42777
diff changeset
200 * @callback: (nullable) (scope async): A callback to call with the results.
2973a9b3d225 Add an async open_uri to Purple.Ui
Gary Kramlich <grim@reaperworld.com>
parents: 42777
diff changeset
201 * @data: User data to pass to @callback.
2973a9b3d225 Add an async open_uri to Purple.Ui
Gary Kramlich <grim@reaperworld.com>
parents: 42777
diff changeset
202 *
2973a9b3d225 Add an async open_uri to Purple.Ui
Gary Kramlich <grim@reaperworld.com>
parents: 42777
diff changeset
203 * Attempts to open @uri and calls @callback with the result.
2973a9b3d225 Add an async open_uri to Purple.Ui
Gary Kramlich <grim@reaperworld.com>
parents: 42777
diff changeset
204 *
2973a9b3d225 Add an async open_uri to Purple.Ui
Gary Kramlich <grim@reaperworld.com>
parents: 42777
diff changeset
205 * Since: 3.0
2973a9b3d225 Add an async open_uri to Purple.Ui
Gary Kramlich <grim@reaperworld.com>
parents: 42777
diff changeset
206 */
2973a9b3d225 Add an async open_uri to Purple.Ui
Gary Kramlich <grim@reaperworld.com>
parents: 42777
diff changeset
207 PURPLE_AVAILABLE_IN_3_0
2973a9b3d225 Add an async open_uri to Purple.Ui
Gary Kramlich <grim@reaperworld.com>
parents: 42777
diff changeset
208 void purple_ui_open_uri(PurpleUi *ui, const char *uri, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer data);
2973a9b3d225 Add an async open_uri to Purple.Ui
Gary Kramlich <grim@reaperworld.com>
parents: 42777
diff changeset
209
2973a9b3d225 Add an async open_uri to Purple.Ui
Gary Kramlich <grim@reaperworld.com>
parents: 42777
diff changeset
210 /**
2973a9b3d225 Add an async open_uri to Purple.Ui
Gary Kramlich <grim@reaperworld.com>
parents: 42777
diff changeset
211 * purple_ui_open_uri_finish:
2973a9b3d225 Add an async open_uri to Purple.Ui
Gary Kramlich <grim@reaperworld.com>
parents: 42777
diff changeset
212 * @ui: The instance.
2973a9b3d225 Add an async open_uri to Purple.Ui
Gary Kramlich <grim@reaperworld.com>
parents: 42777
diff changeset
213 * @result: The result from the previous [method@Ui.open_uri] call.
2973a9b3d225 Add an async open_uri to Purple.Ui
Gary Kramlich <grim@reaperworld.com>
parents: 42777
diff changeset
214 * @error: Return address for a #GError, or %NULL.
2973a9b3d225 Add an async open_uri to Purple.Ui
Gary Kramlich <grim@reaperworld.com>
parents: 42777
diff changeset
215 *
2973a9b3d225 Add an async open_uri to Purple.Ui
Gary Kramlich <grim@reaperworld.com>
parents: 42777
diff changeset
216 * Finishes a previous call to [method@Ui.open_uri] and gets the result.
2973a9b3d225 Add an async open_uri to Purple.Ui
Gary Kramlich <grim@reaperworld.com>
parents: 42777
diff changeset
217 *
2973a9b3d225 Add an async open_uri to Purple.Ui
Gary Kramlich <grim@reaperworld.com>
parents: 42777
diff changeset
218 * Returns: %TRUE if the URI was opened successfully, otherwise %FALSE with
2973a9b3d225 Add an async open_uri to Purple.Ui
Gary Kramlich <grim@reaperworld.com>
parents: 42777
diff changeset
219 * @error potentially set.
2973a9b3d225 Add an async open_uri to Purple.Ui
Gary Kramlich <grim@reaperworld.com>
parents: 42777
diff changeset
220 *
2973a9b3d225 Add an async open_uri to Purple.Ui
Gary Kramlich <grim@reaperworld.com>
parents: 42777
diff changeset
221 * Since: 3.0
2973a9b3d225 Add an async open_uri to Purple.Ui
Gary Kramlich <grim@reaperworld.com>
parents: 42777
diff changeset
222 */
2973a9b3d225 Add an async open_uri to Purple.Ui
Gary Kramlich <grim@reaperworld.com>
parents: 42777
diff changeset
223 PURPLE_AVAILABLE_IN_3_0
2973a9b3d225 Add an async open_uri to Purple.Ui
Gary Kramlich <grim@reaperworld.com>
parents: 42777
diff changeset
224 gboolean purple_ui_open_uri_finish(PurpleUi *ui, GAsyncResult *result, GError **error);
2973a9b3d225 Add an async open_uri to Purple.Ui
Gary Kramlich <grim@reaperworld.com>
parents: 42777
diff changeset
225
2973a9b3d225 Add an async open_uri to Purple.Ui
Gary Kramlich <grim@reaperworld.com>
parents: 42777
diff changeset
226 /**
41867
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
227 * purple_ui_prefs_init:
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
228 * @ui: The instance.
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
229 *
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
230 * Tells @ui that it should be initializing its preferences.
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
231 *
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
232 * Note: This should only be called by libpurple.
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
233 *
42616
a7144db5570a Remove the micro version from since tags for libpurple part 5
Gary Kramlich <grim@reaperworld.com>
parents: 42594
diff changeset
234 * Since: 3.0
41867
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
235 */
42387
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41881
diff changeset
236 PURPLE_AVAILABLE_IN_3_0
41867
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
237 void purple_ui_prefs_init(PurpleUi *ui);
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
238
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
239 /**
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
240 * purple_ui_start:
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
241 * @ui: The instance.
41881
7e1dd7e9efbb Fix error parameter annotations
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41875
diff changeset
242 * @error: Return address for a #GError, or %NULL.
41867
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
243 *
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
244 * Tells @ui that libpurple is done initializing and that @ui should continue
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
245 * its initialization.
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
246 *
41873
98c20aec9aba Make PurpleUi.start return a gboolean and GError
Gary Kramlich <grim@reaperworld.com>
parents: 41867
diff changeset
247 * The user interface can return errors here which will be propagated by
41875
83ade55715e2 purple_core_init gets renamed to Purple.Core.init in gobject introspection
Gary Kramlich <grim@reaperworld.com>
parents: 41873
diff changeset
248 * [func@Purple.Core.init] which calls this function.
41873
98c20aec9aba Make PurpleUi.start return a gboolean and GError
Gary Kramlich <grim@reaperworld.com>
parents: 41867
diff changeset
249 *
41867
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
250 * Note: This should only be called by libpurple.
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
251 *
41873
98c20aec9aba Make PurpleUi.start return a gboolean and GError
Gary Kramlich <grim@reaperworld.com>
parents: 41867
diff changeset
252 * Returns: %TRUE if successful, otherwise %FALSE with @error optionally set.
98c20aec9aba Make PurpleUi.start return a gboolean and GError
Gary Kramlich <grim@reaperworld.com>
parents: 41867
diff changeset
253 *
42616
a7144db5570a Remove the micro version from since tags for libpurple part 5
Gary Kramlich <grim@reaperworld.com>
parents: 42594
diff changeset
254 * Since: 3.0
41867
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
255 */
42387
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41881
diff changeset
256 PURPLE_AVAILABLE_IN_3_0
41873
98c20aec9aba Make PurpleUi.start return a gboolean and GError
Gary Kramlich <grim@reaperworld.com>
parents: 41867
diff changeset
257 gboolean purple_ui_start(PurpleUi *ui, GError **error);
41867
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
258
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
259 /**
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
260 * purple_ui_stop:
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
261 * @ui: The instance.
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
262 *
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
263 * Tells @ui that libpurple is done shutting down.
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
264 *
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
265 * Note: This should only be called by libpurple.
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
266 *
42616
a7144db5570a Remove the micro version from since tags for libpurple part 5
Gary Kramlich <grim@reaperworld.com>
parents: 42594
diff changeset
267 * Since: 3.0
41867
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
268 */
42387
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41881
diff changeset
269 PURPLE_AVAILABLE_IN_3_0
41867
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
270 void purple_ui_stop(PurpleUi *ui);
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
271
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
272 /**
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
273 * purple_ui_get_settings_backend:
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
274 * @ui: The instance:
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
275 *
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
276 * Get the [class@Gio.SettingsBackend] that @ui is using for its settings.
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
277 *
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
278 * Note: This should only be called by libpurple.
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
279 *
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
280 * Returns: (transfer full): The settings that @ui is using.
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
281 *
42616
a7144db5570a Remove the micro version from since tags for libpurple part 5
Gary Kramlich <grim@reaperworld.com>
parents: 42594
diff changeset
282 * Since: 3.0
41867
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
283 */
42387
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41881
diff changeset
284 PURPLE_AVAILABLE_IN_3_0
41867
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
285 gpointer purple_ui_get_settings_backend(PurpleUi *ui);
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
286
42435
ecf0fdfc8363 Add a get_history_adapter method to PurpleUi and implement in Pidgin and Finch
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
287 /**
ecf0fdfc8363 Add a get_history_adapter method to PurpleUi and implement in Pidgin and Finch
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
288 * purple_ui_get_history_adapter:
ecf0fdfc8363 Add a get_history_adapter method to PurpleUi and implement in Pidgin and Finch
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
289 * @ui: The instance:
ecf0fdfc8363 Add a get_history_adapter method to PurpleUi and implement in Pidgin and Finch
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
290 *
ecf0fdfc8363 Add a get_history_adapter method to PurpleUi and implement in Pidgin and Finch
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
291 * Gets the history adapter that the user interface wants to use.
ecf0fdfc8363 Add a get_history_adapter method to PurpleUi and implement in Pidgin and Finch
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
292 *
ecf0fdfc8363 Add a get_history_adapter method to PurpleUi and implement in Pidgin and Finch
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
293 * > Note: This should typically only be called by libpurple. If this returns
ecf0fdfc8363 Add a get_history_adapter method to PurpleUi and implement in Pidgin and Finch
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
294 * %NULL, then libpurple will use an in-memory history adapter instead.
ecf0fdfc8363 Add a get_history_adapter method to PurpleUi and implement in Pidgin and Finch
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
295 *
ecf0fdfc8363 Add a get_history_adapter method to PurpleUi and implement in Pidgin and Finch
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
296 * Returns: (transfer full) (nullable): The [class@HistoryAdapter] to use or
ecf0fdfc8363 Add a get_history_adapter method to PurpleUi and implement in Pidgin and Finch
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
297 * %NULL.
ecf0fdfc8363 Add a get_history_adapter method to PurpleUi and implement in Pidgin and Finch
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
298 *
42616
a7144db5570a Remove the micro version from since tags for libpurple part 5
Gary Kramlich <grim@reaperworld.com>
parents: 42594
diff changeset
299 * Since: 3.0
42435
ecf0fdfc8363 Add a get_history_adapter method to PurpleUi and implement in Pidgin and Finch
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
300 */
ecf0fdfc8363 Add a get_history_adapter method to PurpleUi and implement in Pidgin and Finch
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
301 PURPLE_AVAILABLE_IN_3_0
ecf0fdfc8363 Add a get_history_adapter method to PurpleUi and implement in Pidgin and Finch
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
302 PurpleHistoryAdapter *purple_ui_get_history_adapter(PurpleUi *ui);
41867
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
303
42475
ce06ca18db9b Integrate PurplePresenceManager with the core and uis
Gary Kramlich <grim@reaperworld.com>
parents: 42435
diff changeset
304 /**
ce06ca18db9b Integrate PurplePresenceManager with the core and uis
Gary Kramlich <grim@reaperworld.com>
parents: 42435
diff changeset
305 * purple_ui_get_presence_manager:
ce06ca18db9b Integrate PurplePresenceManager with the core and uis
Gary Kramlich <grim@reaperworld.com>
parents: 42435
diff changeset
306 * @ui: The instance:
ce06ca18db9b Integrate PurplePresenceManager with the core and uis
Gary Kramlich <grim@reaperworld.com>
parents: 42435
diff changeset
307 *
ce06ca18db9b Integrate PurplePresenceManager with the core and uis
Gary Kramlich <grim@reaperworld.com>
parents: 42435
diff changeset
308 * Gets the [class@PresenceManager] that the user interface wants to use.
ce06ca18db9b Integrate PurplePresenceManager with the core and uis
Gary Kramlich <grim@reaperworld.com>
parents: 42435
diff changeset
309 *
ce06ca18db9b Integrate PurplePresenceManager with the core and uis
Gary Kramlich <grim@reaperworld.com>
parents: 42435
diff changeset
310 * > Note: This should typically only be called by libpurple. If this returns
ce06ca18db9b Integrate PurplePresenceManager with the core and uis
Gary Kramlich <grim@reaperworld.com>
parents: 42435
diff changeset
311 * %NULL, then libpurple will not be able to manage saved presences.
ce06ca18db9b Integrate PurplePresenceManager with the core and uis
Gary Kramlich <grim@reaperworld.com>
parents: 42435
diff changeset
312 *
ce06ca18db9b Integrate PurplePresenceManager with the core and uis
Gary Kramlich <grim@reaperworld.com>
parents: 42435
diff changeset
313 * Returns: (transfer full) (nullable): The new presence manager or %NULL.
ce06ca18db9b Integrate PurplePresenceManager with the core and uis
Gary Kramlich <grim@reaperworld.com>
parents: 42435
diff changeset
314 *
42616
a7144db5570a Remove the micro version from since tags for libpurple part 5
Gary Kramlich <grim@reaperworld.com>
parents: 42594
diff changeset
315 * Since: 3.0
42475
ce06ca18db9b Integrate PurplePresenceManager with the core and uis
Gary Kramlich <grim@reaperworld.com>
parents: 42435
diff changeset
316 */
ce06ca18db9b Integrate PurplePresenceManager with the core and uis
Gary Kramlich <grim@reaperworld.com>
parents: 42435
diff changeset
317 PURPLE_AVAILABLE_IN_3_0
ce06ca18db9b Integrate PurplePresenceManager with the core and uis
Gary Kramlich <grim@reaperworld.com>
parents: 42435
diff changeset
318 PurplePresenceManager *purple_ui_get_presence_manager(PurpleUi *ui);
ce06ca18db9b Integrate PurplePresenceManager with the core and uis
Gary Kramlich <grim@reaperworld.com>
parents: 42435
diff changeset
319
41867
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
320 G_END_DECLS
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
321
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
322 #endif /* PURPLE_UI_H */

mercurial