libpurple/purpleprotocolcontacts.h

Thu, 07 Aug 2025 21:40:13 -0500

author
Gary Kramlich <grim@reaperworld.com>
date
Thu, 07 Aug 2025 21:40:13 -0500
changeset 43302
e7b0bbfec5d5
parent 43296
5eab84f697de
permissions
-rw-r--r--

Add an avatar-for-display property to Purple.ContactInfo

Testing Done:
Ran the tests under valgrind and called in the turtles.

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

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
42594
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42545
diff changeset
6 * to list here. Please refer to the COPYRIGHT file distributed with this
42293
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 *
42594
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42545
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: 42545
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: 42545
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: 42545
diff changeset
12 * any later version.
42293
8888e6d1e9a8 Create the PurpleProtocolContacts interface
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: 42545
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: 42545
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: 42545
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: 42545
diff changeset
17 * more details.
42293
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
18 *
42594
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42545
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: 42545
diff changeset
20 * this library; if not, see <https://www.gnu.org/licenses/>.
42293
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 *
42615
2f3308794a8f Remove the micro version from since tags for libpurple part 4
Gary Kramlich <grim@reaperworld.com>
parents: 42594
diff changeset
49 * Since: 3.0
42293
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 *
42615
2f3308794a8f Remove the micro version from since tags for libpurple part 4
Gary Kramlich <grim@reaperworld.com>
parents: 42594
diff changeset
57 * Since: 3.0
42538
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
42293
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
63 struct _PurpleProtocolContactsInterface {
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
64 /*< private >*/
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
65 GTypeInterface parent;
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
66
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
67 /*< public >*/
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
68 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
69 char *(*get_profile_finish)(PurpleProtocolContacts *protocol_contacts, GAsyncResult *result, GError **error);
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
70
42297
392bb692c505 Add virtual functions for actions and menu to PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42293
diff changeset
71 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
72 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
73
42293
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
74 /*< private >*/
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
75 gpointer reserved[4];
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
76 };
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
77
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
78 G_BEGIN_DECLS
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
79
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
80 /**
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
81 * purple_protocol_contacts_get_profile_async:
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
82 * @protocol_contacts: The instance.
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
83 * @info: The [class@ContactInfo] whose profile to get.
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
84 * @cancellable: (nullable): optional GCancellable object, %NULL to ignore.
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
85 * @callback: (scope async): a #GAsyncReadyCallback to call when the request is
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
86 * satisfied.
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
87 * @data: User data to pass to @callback.
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 * Starts the process requesting the user profile for @info.
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
90 *
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
91 * Call [method@ProtocolContacts.get_profile_finish] to get the results.
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
92 *
42615
2f3308794a8f Remove the micro version from since tags for libpurple part 4
Gary Kramlich <grim@reaperworld.com>
parents: 42594
diff changeset
93 * Since: 3.0
42293
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
94 */
42387
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42338
diff changeset
95 PURPLE_AVAILABLE_IN_3_0
42293
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
96 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
97
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
98 /**
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
99 * purple_protocol_contacts_get_profile_finish:
42317
8a8e85e9e114 Fix some documentation issues in PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42297
diff changeset
100 * @protocol_contacts: The instance.
42293
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
101 * @result: The [iface@Gio.AsyncResult] from the previous
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
102 * [method@ProtocolContacts.get_profile_async] call.
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
103 * @error: Return address for a #GError, or %NULL.
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
104 *
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
105 * Finishes a previous call to [method@ProtocolContacts.get_profile_async] and
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
106 * gets the result.
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
107 *
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
108 * 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
109 * contact info's profile, or %NULL with @error set on error.
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
110 *
42615
2f3308794a8f Remove the micro version from since tags for libpurple part 4
Gary Kramlich <grim@reaperworld.com>
parents: 42594
diff changeset
111 * Since: 3.0
42293
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
112 */
42387
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42338
diff changeset
113 PURPLE_AVAILABLE_IN_3_0
42293
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
114 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
115
42297
392bb692c505 Add virtual functions for actions and menu to PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42293
diff changeset
116 /**
392bb692c505 Add virtual functions for actions and menu to PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42293
diff changeset
117 * purple_protocol_contacts_get_actions:
392bb692c505 Add virtual functions for actions and menu to PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42293
diff changeset
118 * @protocol_contacts: The instance.
392bb692c505 Add virtual functions for actions and menu to PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42293
diff changeset
119 * @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
120 *
392bb692c505 Add virtual functions for actions and menu to PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42293
diff changeset
121 * 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
122 * 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
123 *
392bb692c505 Add virtual functions for actions and menu to PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42293
diff changeset
124 * 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
125 *
42615
2f3308794a8f Remove the micro version from since tags for libpurple part 4
Gary Kramlich <grim@reaperworld.com>
parents: 42594
diff changeset
126 * Since: 3.0
42297
392bb692c505 Add virtual functions for actions and menu to PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42293
diff changeset
127 */
42387
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42338
diff changeset
128 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
129 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
130
42317
8a8e85e9e114 Fix some documentation issues in PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42297
diff changeset
131 /**
42297
392bb692c505 Add virtual functions for actions and menu to PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42293
diff changeset
132 * purple_protocol_contacts_get_menu:
392bb692c505 Add virtual functions for actions and menu to PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42293
diff changeset
133 * @protocol_contacts: The instance.
392bb692c505 Add virtual functions for actions and menu to PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42293
diff changeset
134 * @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
135 *
392bb692c505 Add virtual functions for actions and menu to PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42293
diff changeset
136 * 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
137 *
392bb692c505 Add virtual functions for actions and menu to PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42293
diff changeset
138 * 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
139 *
42615
2f3308794a8f Remove the micro version from since tags for libpurple part 4
Gary Kramlich <grim@reaperworld.com>
parents: 42594
diff changeset
140 * Since: 3.0
42297
392bb692c505 Add virtual functions for actions and menu to PurpleProtocolContacts
Gary Kramlich <grim@reaperworld.com>
parents: 42293
diff changeset
141 */
42387
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42338
diff changeset
142 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
143 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
144
42293
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
145 G_END_DECLS
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
146
8888e6d1e9a8 Create the PurpleProtocolContacts interface
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
147 #endif /* PURPLE_PROTOCOL_CONTACTS_H */

mercurial