libpurple/purpleprotocolcontacts.h

Tue, 05 Dec 2023 17:53:57 -0600

author
Gary Kramlich <grim@reaperworld.com>
date
Tue, 05 Dec 2023 17:53:57 -0600
changeset 42545
26ae6ffab6d0
parent 42538
d6b14c011e68
child 42594
eddde70cedd8
permissions
-rw-r--r--

Fix a misnamed parameter in the docs

Testing Done:
Built the gir and docs and verified the warning was gone.

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

42293
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
1 /*
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
2 * Purple - Internet Messaging Library
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
3 * Copyright (C) Pidgin Developers <devel@pidgin.im>
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
4 *
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
5 * Purple is the legal property of its developers, whose names are too numerous
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
6 * to list here. Please refer to the COPYRIGHT file distributed with this
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
7 * source distribution.
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
8 *
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
9 * This program is free software; you can redistribute it and/or modify
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
10 * it under the terms of the GNU General Public License as published by
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
11 * the Free Software Foundation; either version 2 of the License, or
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
12 * (at your option) any later version.
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
13 *
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
14 * This program is distributed in the hope that it will be useful,
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
17 * GNU General Public License for more details.
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
18 *
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
19 * You should have received a copy of the GNU General Public License
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
20 * along with this program; if not, see <https://www.gnu.org/licenses/>.
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
21 */
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
22
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
23 #if !defined(PURPLE_GLOBAL_HEADER_INSIDE) && !defined(PURPLE_COMPILATION)
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
24 # error "only <purple.h> may be included directly"
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
25 #endif
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
26
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
27 #ifndef PURPLE_PROTOCOL_CONTACTS_H
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
28 #define PURPLE_PROTOCOL_CONTACTS_H
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
29
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
30 #include <glib.h>
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
31 #include <glib-object.h>
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
32
42338
2548eb61acc9 Make sure all internal includes use double quotes
Gary Kramlich <grim@reaperworld.com>
parents: 42317
diff changeset
33 #include "purpleprotocol.h"
42387
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42338
diff changeset
34 #include "purpleversion.h"
42293
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
35
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
36 #define PURPLE_TYPE_PROTOCOL_CONTACTS (purple_protocol_contacts_get_type())
42387
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42338
diff changeset
37
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42338
diff changeset
38 PURPLE_AVAILABLE_IN_3_0
42293
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
39 G_DECLARE_INTERFACE(PurpleProtocolContacts,
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
40 purple_protocol_contacts, PURPLE,
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
41 PROTOCOL_CONTACTS, PurpleProtocol)
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
42
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
43 /**
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
44 * PurpleProtocolContacts:
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
45 *
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
46 * #PurpleProtocolContacts provides methods for interacting with remote
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
47 * contacts.
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
48 *
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
49 * Since: 3.0.0
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
50 */
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
51
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
52 /**
42538
d6b14c011e68 Merge PurpleProtocolContactsSearch into PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
53 * PURPLE_PROTOCOL_CONTACTS_DOMAIN:
d6b14c011e68 Merge PurpleProtocolContactsSearch into PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
54 *
d6b14c011e68 Merge PurpleProtocolContactsSearch into PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
55 * A domain for errors from the [class@ProtocolContacts] API.
d6b14c011e68 Merge PurpleProtocolContactsSearch into PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
56 *
d6b14c011e68 Merge PurpleProtocolContactsSearch into PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
57 * Since: 3.0.0
d6b14c011e68 Merge PurpleProtocolContactsSearch into PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
58 */
d6b14c011e68 Merge PurpleProtocolContactsSearch into PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
59 #define PURPLE_PROTOCOL_CONTACTS_DOMAIN \
d6b14c011e68 Merge PurpleProtocolContactsSearch into PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
60 g_quark_from_static_string("purple-protocol-contacts") \
d6b14c011e68 Merge PurpleProtocolContactsSearch into PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
61 PURPLE_AVAILABLE_MACRO_IN_3_0
d6b14c011e68 Merge PurpleProtocolContactsSearch into PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
62
d6b14c011e68 Merge PurpleProtocolContactsSearch into PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
63 /**
42293
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
64 * PurpleProtocolContactsInterface:
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
65 *
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
66 * This interface defines the behavior for interacting with contacts at the
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
67 * protocol layer. These methods will primarily be called by the user
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
68 * interface.
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
69 *
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
70 * Since: 3.0.0
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
71 */
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
72 struct _PurpleProtocolContactsInterface {
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
73 /*< private >*/
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
74 GTypeInterface parent;
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
75
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
76 /*< public >*/
42538
d6b14c011e68 Merge PurpleProtocolContactsSearch into PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
77 void (*search_async)(PurpleProtocolContacts *protocol_contacts, PurpleAccount *account, const char *text, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer data);
d6b14c011e68 Merge PurpleProtocolContactsSearch into PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
78 GListModel *(*search_finish)(PurpleProtocolContacts *protocol_contacts, GAsyncResult *result, GError **error);
d6b14c011e68 Merge PurpleProtocolContactsSearch into PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
79
42293
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
80 void (*get_profile_async)(PurpleProtocolContacts *protocol_contacts, PurpleContactInfo *info, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer data);
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
81 char *(*get_profile_finish)(PurpleProtocolContacts *protocol_contacts, GAsyncResult *result, GError **error);
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
82
42297
392bb692c505 Add virtual functions for actions and menu to PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42293
diff changeset
83 GActionGroup *(*get_actions)(PurpleProtocolContacts *protocol_contacts, PurpleContactInfo *info);
392bb692c505 Add virtual functions for actions and menu to PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42293
diff changeset
84 GMenuModel *(*get_menu)(PurpleProtocolContacts *protocol_contacts, PurpleContactInfo *info);
392bb692c505 Add virtual functions for actions and menu to PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42293
diff changeset
85
42293
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
86 /*< private >*/
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
87 gpointer reserved[4];
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
88 };
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
89
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
90 G_BEGIN_DECLS
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
91
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
92 /**
42538
d6b14c011e68 Merge PurpleProtocolContactsSearch into PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
93 * purple_protocol_contacts_search_async:
d6b14c011e68 Merge PurpleProtocolContactsSearch into PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
94 * @protocol_contacts: The instance.
d6b14c011e68 Merge PurpleProtocolContactsSearch into PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
95 * @account: The [class@Account] to search under.
d6b14c011e68 Merge PurpleProtocolContactsSearch into PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
96 * @text: The text to search for which must not be an empty string.
d6b14c011e68 Merge PurpleProtocolContactsSearch into PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
97 * @cancellable: (nullable): optional GCancellable object, %NULL to ignore.
d6b14c011e68 Merge PurpleProtocolContactsSearch into PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
98 * @callback: (scope async): a #GAsyncReadyCallback to call when the request is
d6b14c011e68 Merge PurpleProtocolContactsSearch into PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
99 * satisfied.
d6b14c011e68 Merge PurpleProtocolContactsSearch into PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
100 * @data: User data to pass to @callback.
d6b14c011e68 Merge PurpleProtocolContactsSearch into PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
101 *
d6b14c011e68 Merge PurpleProtocolContactsSearch into PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
102 * Starts the process of searching for contacts using @account that match
d6b14c011e68 Merge PurpleProtocolContactsSearch into PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
103 * @text.
d6b14c011e68 Merge PurpleProtocolContactsSearch into PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
104 *
d6b14c011e68 Merge PurpleProtocolContactsSearch into PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
105 * Call [method@ProtocolContacts.search_finish] to get the results.
d6b14c011e68 Merge PurpleProtocolContactsSearch into PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
106 *
d6b14c011e68 Merge PurpleProtocolContactsSearch into PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
107 * Since: 3.0.0
d6b14c011e68 Merge PurpleProtocolContactsSearch into PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
108 */
d6b14c011e68 Merge PurpleProtocolContactsSearch into PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
109 PURPLE_AVAILABLE_IN_3_0
d6b14c011e68 Merge PurpleProtocolContactsSearch into PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
110 void purple_protocol_contacts_search_async(PurpleProtocolContacts *protocol_contacts, PurpleAccount *account, const char *text, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer data);
d6b14c011e68 Merge PurpleProtocolContactsSearch into PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
111
d6b14c011e68 Merge PurpleProtocolContactsSearch into PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
112 /**
d6b14c011e68 Merge PurpleProtocolContactsSearch into PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
113 * purple_protocol_contacts_search_finish:
42545
26ae6ffab6d0 Fix a misnamed parameter in the docs
Gary Kramlich <grim@reaperworld.com>
parents: 42538
diff changeset
114 * @protocol_contacts: The instance.
42538
d6b14c011e68 Merge PurpleProtocolContactsSearch into PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
115 * @result: The [iface@Gio.AsyncResult] from the previous
d6b14c011e68 Merge PurpleProtocolContactsSearch into PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
116 * [method@ProtocolContacts.search_async] call.
d6b14c011e68 Merge PurpleProtocolContactsSearch into PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
117 * @error: Return address for a #GError, or %NULL.
d6b14c011e68 Merge PurpleProtocolContactsSearch into PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
118 *
d6b14c011e68 Merge PurpleProtocolContactsSearch into PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
119 * Finishes a previous call to [method@ProtocolContacts.search_async] and
d6b14c011e68 Merge PurpleProtocolContactsSearch into PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
120 * gets the result.
d6b14c011e68 Merge PurpleProtocolContactsSearch into PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
121 *
d6b14c011e68 Merge PurpleProtocolContactsSearch into PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
122 * Returns: (transfer full): A [iface@Gio.ListModel] of the matched contacts or
d6b14c011e68 Merge PurpleProtocolContactsSearch into PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
123 * %NULL with @error set on error.
d6b14c011e68 Merge PurpleProtocolContactsSearch into PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
124 *
d6b14c011e68 Merge PurpleProtocolContactsSearch into PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
125 * Since: 3.0.0
d6b14c011e68 Merge PurpleProtocolContactsSearch into PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
126 */
d6b14c011e68 Merge PurpleProtocolContactsSearch into PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
127 PURPLE_AVAILABLE_IN_3_0
d6b14c011e68 Merge PurpleProtocolContactsSearch into PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
128 GListModel *purple_protocol_contacts_search_finish(PurpleProtocolContacts *protocol_contacts, GAsyncResult *result, GError **error);
d6b14c011e68 Merge PurpleProtocolContactsSearch into PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
129
d6b14c011e68 Merge PurpleProtocolContactsSearch into PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
130 /**
42293
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
131 * purple_protocol_contacts_get_profile_async:
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
132 * @protocol_contacts: The instance.
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
133 * @info: The [class@ContactInfo] whose profile to get.
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
134 * @cancellable: (nullable): optional GCancellable object, %NULL to ignore.
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
135 * @callback: (scope async): a #GAsyncReadyCallback to call when the request is
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
136 * satisfied.
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
137 * @data: User data to pass to @callback.
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
138 *
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
139 * Starts the process requesting the user profile for @info.
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
140 *
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
141 * Call [method@ProtocolContacts.get_profile_finish] to get the results.
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
142 *
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
143 * Since: 3.0.0
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
144 */
42387
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42338
diff changeset
145 PURPLE_AVAILABLE_IN_3_0
42293
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
146 void purple_protocol_contacts_get_profile_async(PurpleProtocolContacts *protocol_contacts, PurpleContactInfo *info, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer data);
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
147
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
148 /**
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
149 * purple_protocol_contacts_get_profile_finish:
42317
8a8e85e9e114 Fix some documentation issues in PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42297
diff changeset
150 * @protocol_contacts: The instance.
42293
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
151 * @result: The [iface@Gio.AsyncResult] from the previous
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
152 * [method@ProtocolContacts.get_profile_async] call.
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
153 * @error: Return address for a #GError, or %NULL.
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
154 *
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
155 * Finishes a previous call to [method@ProtocolContacts.get_profile_async] and
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
156 * gets the result.
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
157 *
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
158 * Returns: (transfer full): A plain text or markdown formatted string of the
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
159 * contact info's profile, or %NULL with @error set on error.
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
160 *
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
161 * Since: 3.0.0
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
162 */
42387
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42338
diff changeset
163 PURPLE_AVAILABLE_IN_3_0
42293
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
164 char *purple_protocol_contacts_get_profile_finish(PurpleProtocolContacts *protocol_contacts, GAsyncResult *result, GError **error);
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
165
42297
392bb692c505 Add virtual functions for actions and menu to PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42293
diff changeset
166 /**
392bb692c505 Add virtual functions for actions and menu to PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42293
diff changeset
167 * purple_protocol_contacts_get_actions:
392bb692c505 Add virtual functions for actions and menu to PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42293
diff changeset
168 * @protocol_contacts: The instance.
392bb692c505 Add virtual functions for actions and menu to PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42293
diff changeset
169 * @info: The [class@ContactInfo] to get the actions for.
392bb692c505 Add virtual functions for actions and menu to PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42293
diff changeset
170 *
392bb692c505 Add virtual functions for actions and menu to PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42293
diff changeset
171 * Gets a [iface@Gio.ActionGroup] for @info. When this action group is used,
392bb692c505 Add virtual functions for actions and menu to PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42293
diff changeset
172 * it should use the prefix of `contact`.
392bb692c505 Add virtual functions for actions and menu to PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42293
diff changeset
173 *
392bb692c505 Add virtual functions for actions and menu to PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42293
diff changeset
174 * Returns: (transfer full): The action group or %NULL.
392bb692c505 Add virtual functions for actions and menu to PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42293
diff changeset
175 *
392bb692c505 Add virtual functions for actions and menu to PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42293
diff changeset
176 * Since: 3.0.0
392bb692c505 Add virtual functions for actions and menu to PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42293
diff changeset
177 */
42387
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42338
diff changeset
178 PURPLE_AVAILABLE_IN_3_0
42297
392bb692c505 Add virtual functions for actions and menu to PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42293
diff changeset
179 GActionGroup *purple_protocol_contacts_get_actions(PurpleProtocolContacts *protocol_contacts, PurpleContactInfo *info);
392bb692c505 Add virtual functions for actions and menu to PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42293
diff changeset
180
42317
8a8e85e9e114 Fix some documentation issues in PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42297
diff changeset
181 /**
42297
392bb692c505 Add virtual functions for actions and menu to PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42293
diff changeset
182 * purple_protocol_contacts_get_menu:
392bb692c505 Add virtual functions for actions and menu to PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42293
diff changeset
183 * @protocol_contacts: The instance.
392bb692c505 Add virtual functions for actions and menu to PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42293
diff changeset
184 * @info: The [class@ContactInfo] to get the menu for.
392bb692c505 Add virtual functions for actions and menu to PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42293
diff changeset
185 *
392bb692c505 Add virtual functions for actions and menu to PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42293
diff changeset
186 * Gets a [class@Gio.MenuModel] for @info.
392bb692c505 Add virtual functions for actions and menu to PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42293
diff changeset
187 *
392bb692c505 Add virtual functions for actions and menu to PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42293
diff changeset
188 * This menu will have at least the action groups from [iface@ProtocolActions]
392bb692c505 Add virtual functions for actions and menu to PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42293
diff changeset
189 * and [iface@ProtocolContacts] available to it.
392bb692c505 Add virtual functions for actions and menu to PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42293
diff changeset
190 *
392bb692c505 Add virtual functions for actions and menu to PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42293
diff changeset
191 * Returns: (transfer full): The menu model or %NULL.
392bb692c505 Add virtual functions for actions and menu to PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42293
diff changeset
192 *
392bb692c505 Add virtual functions for actions and menu to PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42293
diff changeset
193 * Since: 3.0.0
392bb692c505 Add virtual functions for actions and menu to PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42293
diff changeset
194 */
42387
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42338
diff changeset
195 PURPLE_AVAILABLE_IN_3_0
42297
392bb692c505 Add virtual functions for actions and menu to PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42293
diff changeset
196 GMenuModel *purple_protocol_contacts_get_menu(PurpleProtocolContacts *protocol_contacts, PurpleContactInfo *info);
392bb692c505 Add virtual functions for actions and menu to PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42293
diff changeset
197
42293
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
198 G_END_DECLS
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
199
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
200 #endif /* PURPLE_PROTOCOL_CONTACTS_H */

mercurial