libpurple/contact.h

Thu, 22 Feb 2024 06:03:16 -0600

author
Gary Kramlich <grim@reaperworld.com>
date
Thu, 22 Feb 2024 06:03:16 -0600
changeset 42596
b64b96f3b781
parent 42594
eddde70cedd8
child 42612
d905313bc732
permissions
-rw-r--r--

Add a favorite property to PurpleContactInfo

This will be used in the future for toggling whether or not contacts are
favorited or starred.

Testing Done:
Ran the unit tests under valgrind.

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

42594
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42391
diff changeset
1 /*
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42391
diff changeset
2 * Purple - Internet Messaging Library
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42391
diff changeset
3 * Copyright (C) Pidgin Developers <devel@pidgin.im>
37946
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
4 *
4318acee8ac6 Pulled PurpleContact out to it's own file
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: 42391
diff changeset
6 * to list here. Please refer to the COPYRIGHT file distributed with this
37946
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
7 * source distribution.
4318acee8ac6 Pulled PurpleContact out to it's own file
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: 42391
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: 42391
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: 42391
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: 42391
diff changeset
12 * any later version.
37946
4318acee8ac6 Pulled PurpleContact out to it's own file
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: 42391
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: 42391
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: 42391
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: 42391
diff changeset
17 * more details.
37946
4318acee8ac6 Pulled PurpleContact out to it's own file
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: 42391
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: 42391
diff changeset
20 * this library; if not, see <https://www.gnu.org/licenses/>.
37946
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
21 */
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
22
40474
1341be8e3402 Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents: 39738
diff changeset
23 #if !defined(PURPLE_GLOBAL_HEADER_INSIDE) && !defined(PURPLE_COMPILATION)
1341be8e3402 Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents: 39738
diff changeset
24 # error "only <purple.h> may be included directly"
1341be8e3402 Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents: 39738
diff changeset
25 #endif
1341be8e3402 Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents: 39738
diff changeset
26
41733
a9085b52de8b Rename PurpleContact to PurpleMetaContact.
Gary Kramlich <grim@reaperworld.com>
parents: 41200
diff changeset
27 #ifndef PURPLE_META_CONTACT_H
a9085b52de8b Rename PurpleContact to PurpleMetaContact.
Gary Kramlich <grim@reaperworld.com>
parents: 41200
diff changeset
28 #define PURPLE_META_CONTACT_H
37946
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
29
41733
a9085b52de8b Rename PurpleContact to PurpleMetaContact.
Gary Kramlich <grim@reaperworld.com>
parents: 41200
diff changeset
30 #define PURPLE_TYPE_META_CONTACT (purple_meta_contact_get_type())
a9085b52de8b Rename PurpleContact to PurpleMetaContact.
Gary Kramlich <grim@reaperworld.com>
parents: 41200
diff changeset
31 #define PURPLE_META_CONTACT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PURPLE_TYPE_META_CONTACT, PurpleMetaContact))
a9085b52de8b Rename PurpleContact to PurpleMetaContact.
Gary Kramlich <grim@reaperworld.com>
parents: 41200
diff changeset
32 #define PURPLE_META_CONTACT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), PURPLE_TYPE_META_CONTACT, PurpleMetaContactClass))
a9085b52de8b Rename PurpleContact to PurpleMetaContact.
Gary Kramlich <grim@reaperworld.com>
parents: 41200
diff changeset
33 #define PURPLE_IS_META_CONTACT(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_META_CONTACT))
a9085b52de8b Rename PurpleContact to PurpleMetaContact.
Gary Kramlich <grim@reaperworld.com>
parents: 41200
diff changeset
34 #define PURPLE_IS_META_CONTACT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), PURPLE_TYPE_META_CONTACT))
a9085b52de8b Rename PurpleContact to PurpleMetaContact.
Gary Kramlich <grim@reaperworld.com>
parents: 41200
diff changeset
35 #define PURPLE_META_CONTACT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), PURPLE_TYPE_META_CONTACT, PurpleMetaContactClass))
37946
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
36
41733
a9085b52de8b Rename PurpleContact to PurpleMetaContact.
Gary Kramlich <grim@reaperworld.com>
parents: 41200
diff changeset
37 typedef struct _PurpleMetaContact PurpleMetaContact;
a9085b52de8b Rename PurpleContact to PurpleMetaContact.
Gary Kramlich <grim@reaperworld.com>
parents: 41200
diff changeset
38 typedef struct _PurpleMetaContactClass PurpleMetaContactClass;
37946
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
39
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
40 #include "countingnode.h"
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
41 #include "group.h"
42344
c51d37734155 Rename account.[ch] to purpleaccount.[ch]
Gary Kramlich <grim@reaperworld.com>
parents: 41733
diff changeset
42 #include "purpleaccount.h"
42391
090b03385984 Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42344
diff changeset
43 #include "purpleversion.h"
37946
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
44
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
45 /**
41733
a9085b52de8b Rename PurpleContact to PurpleMetaContact.
Gary Kramlich <grim@reaperworld.com>
parents: 41200
diff changeset
46 * PurpleMetaContact:
37946
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
47 *
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
48 * A contact on the buddy list.
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
49 *
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
50 * A contact is a counting node, which means it keeps track of the counts of
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
51 * the buddies under this contact.
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
52 */
41733
a9085b52de8b Rename PurpleContact to PurpleMetaContact.
Gary Kramlich <grim@reaperworld.com>
parents: 41200
diff changeset
53 struct _PurpleMetaContact {
37946
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
54 PurpleCountingNode counting;
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
55 };
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
56
41733
a9085b52de8b Rename PurpleContact to PurpleMetaContact.
Gary Kramlich <grim@reaperworld.com>
parents: 41200
diff changeset
57 struct _PurpleMetaContactClass {
37946
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
58 PurpleCountingNodeClass counting_class;
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
59
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
60 /*< private >*/
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
61 void (*_purple_reserved1)(void);
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
62 void (*_purple_reserved2)(void);
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
63 void (*_purple_reserved3)(void);
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
64 void (*_purple_reserved4)(void);
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
65 };
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
66
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
67 G_BEGIN_DECLS
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
68
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
69 /**************************************************************************/
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
70 /* Contact API */
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
71 /**************************************************************************/
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
72
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
73 /**
41733
a9085b52de8b Rename PurpleContact to PurpleMetaContact.
Gary Kramlich <grim@reaperworld.com>
parents: 41200
diff changeset
74 * purple_meta_contact_get_type:
37946
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
75 *
41733
a9085b52de8b Rename PurpleContact to PurpleMetaContact.
Gary Kramlich <grim@reaperworld.com>
parents: 41200
diff changeset
76 * Returns: The #GType for the #PurpleMetaContact object.
42391
090b03385984 Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42344
diff changeset
77 *
090b03385984 Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42344
diff changeset
78 * Since: 3.0.0
37946
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
79 */
42391
090b03385984 Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42344
diff changeset
80 PURPLE_AVAILABLE_IN_3_0
41733
a9085b52de8b Rename PurpleContact to PurpleMetaContact.
Gary Kramlich <grim@reaperworld.com>
parents: 41200
diff changeset
81 GType purple_meta_contact_get_type(void);
37946
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
82
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
83 /**
41733
a9085b52de8b Rename PurpleContact to PurpleMetaContact.
Gary Kramlich <grim@reaperworld.com>
parents: 41200
diff changeset
84 * purple_meta_contact_new:
37946
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
85 *
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
86 * Creates a new contact
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
87 *
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
88 * Returns: A new contact struct
42391
090b03385984 Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42344
diff changeset
89 *
090b03385984 Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42344
diff changeset
90 * Since: 3.0.0
37946
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
91 */
42391
090b03385984 Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42344
diff changeset
92 PURPLE_AVAILABLE_IN_3_0
41733
a9085b52de8b Rename PurpleContact to PurpleMetaContact.
Gary Kramlich <grim@reaperworld.com>
parents: 41200
diff changeset
93 PurpleMetaContact *purple_meta_contact_new(void);
37946
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
94
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
95 /**
41733
a9085b52de8b Rename PurpleContact to PurpleMetaContact.
Gary Kramlich <grim@reaperworld.com>
parents: 41200
diff changeset
96 * purple_meta_contact_get_group:
37946
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
97 * @contact: The contact
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
98 *
41733
a9085b52de8b Rename PurpleContact to PurpleMetaContact.
Gary Kramlich <grim@reaperworld.com>
parents: 41200
diff changeset
99 * Gets the PurpleGroup from a PurpleMetaContact
37946
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
100 *
39738
14d425a528ad Add missing transfer annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 38552
diff changeset
101 * Returns: (transfer none): The group.
42391
090b03385984 Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42344
diff changeset
102 *
090b03385984 Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42344
diff changeset
103 * Since: 3.0.0
37946
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
104 */
42391
090b03385984 Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42344
diff changeset
105 PURPLE_AVAILABLE_IN_3_0
41733
a9085b52de8b Rename PurpleContact to PurpleMetaContact.
Gary Kramlich <grim@reaperworld.com>
parents: 41200
diff changeset
106 PurpleGroup *purple_meta_contact_get_group(const PurpleMetaContact *contact);
37946
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
107
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
108 /**
41733
a9085b52de8b Rename PurpleContact to PurpleMetaContact.
Gary Kramlich <grim@reaperworld.com>
parents: 41200
diff changeset
109 * purple_meta_contact_get_priority_buddy:
37946
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
110 * @contact: The contact
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
111 *
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
112 * Returns the highest priority buddy for a given contact.
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
113 *
39738
14d425a528ad Add missing transfer annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 38552
diff changeset
114 * Returns: (transfer none): The highest priority buddy.
42391
090b03385984 Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42344
diff changeset
115 *
090b03385984 Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42344
diff changeset
116 * Since: 3.0.0
37946
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
117 */
42391
090b03385984 Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42344
diff changeset
118 PURPLE_AVAILABLE_IN_3_0
41733
a9085b52de8b Rename PurpleContact to PurpleMetaContact.
Gary Kramlich <grim@reaperworld.com>
parents: 41200
diff changeset
119 PurpleBuddy *purple_meta_contact_get_priority_buddy(PurpleMetaContact *contact);
37946
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
120
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
121 /**
41733
a9085b52de8b Rename PurpleContact to PurpleMetaContact.
Gary Kramlich <grim@reaperworld.com>
parents: 41200
diff changeset
122 * purple_meta_contact_set_alias:
37946
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
123 * @contact: The contact
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
124 * @alias: The alias
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
125 *
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
126 * Sets the alias for a contact.
42391
090b03385984 Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42344
diff changeset
127 *
090b03385984 Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42344
diff changeset
128 * Since: 3.0.0
37946
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
129 */
42391
090b03385984 Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42344
diff changeset
130 PURPLE_AVAILABLE_IN_3_0
41733
a9085b52de8b Rename PurpleContact to PurpleMetaContact.
Gary Kramlich <grim@reaperworld.com>
parents: 41200
diff changeset
131 void purple_meta_contact_set_alias(PurpleMetaContact *contact, const char *alias);
37946
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
132
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
133 /**
41733
a9085b52de8b Rename PurpleContact to PurpleMetaContact.
Gary Kramlich <grim@reaperworld.com>
parents: 41200
diff changeset
134 * purple_meta_contact_get_alias:
37946
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
135 * @contact: The contact
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
136 *
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
137 * Gets the alias for a contact.
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
138 *
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
139 * Returns: The alias, or NULL if it is not set.
42391
090b03385984 Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42344
diff changeset
140 *
090b03385984 Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42344
diff changeset
141 * Since: 3.0.0
37946
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
142 */
42391
090b03385984 Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42344
diff changeset
143 PURPLE_AVAILABLE_IN_3_0
41733
a9085b52de8b Rename PurpleContact to PurpleMetaContact.
Gary Kramlich <grim@reaperworld.com>
parents: 41200
diff changeset
144 const char *purple_meta_contact_get_alias(PurpleMetaContact *contact);
37946
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
145
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
146 /**
41733
a9085b52de8b Rename PurpleContact to PurpleMetaContact.
Gary Kramlich <grim@reaperworld.com>
parents: 41200
diff changeset
147 * purple_meta_contact_on_account:
37946
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
148 * @contact: The contact to search through.
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
149 * @account: The account.
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
150 *
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
151 * Determines whether an account owns any buddies in a given contact
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
152 *
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
153 * Returns: TRUE if there are any buddies from account in the contact, or FALSE otherwise.
42391
090b03385984 Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42344
diff changeset
154 *
090b03385984 Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42344
diff changeset
155 * Since: 3.0.0
37946
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
156 */
42391
090b03385984 Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42344
diff changeset
157 PURPLE_AVAILABLE_IN_3_0
41733
a9085b52de8b Rename PurpleContact to PurpleMetaContact.
Gary Kramlich <grim@reaperworld.com>
parents: 41200
diff changeset
158 gboolean purple_meta_contact_on_account(PurpleMetaContact *contact, PurpleAccount *account);
37946
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
159
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
160 /**
41733
a9085b52de8b Rename PurpleContact to PurpleMetaContact.
Gary Kramlich <grim@reaperworld.com>
parents: 41200
diff changeset
161 * purple_meta_contact_invalidate_priority_buddy:
37946
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
162 * @contact: The contact
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
163 *
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
164 * Invalidates the priority buddy so that the next call to
41733
a9085b52de8b Rename PurpleContact to PurpleMetaContact.
Gary Kramlich <grim@reaperworld.com>
parents: 41200
diff changeset
165 * purple_meta_contact_get_priority_buddy recomputes it.
42391
090b03385984 Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42344
diff changeset
166 *
090b03385984 Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42344
diff changeset
167 * Since: 3.0.0
37946
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
168 */
42391
090b03385984 Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42344
diff changeset
169 PURPLE_AVAILABLE_IN_3_0
41733
a9085b52de8b Rename PurpleContact to PurpleMetaContact.
Gary Kramlich <grim@reaperworld.com>
parents: 41200
diff changeset
170 void purple_meta_contact_invalidate_priority_buddy(PurpleMetaContact *contact);
37946
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
171
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
172 /**
41733
a9085b52de8b Rename PurpleContact to PurpleMetaContact.
Gary Kramlich <grim@reaperworld.com>
parents: 41200
diff changeset
173 * purple_meta_contact_merge:
37946
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
174 * @source: The contact to merge
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
175 * @node: The place to merge to (a buddy or contact)
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
176 *
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
177 * Merges two contacts
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
178 *
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
179 * All of the buddies from source will be moved to target
42391
090b03385984 Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42344
diff changeset
180 *
090b03385984 Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42344
diff changeset
181 * Since: 3.0.0
37946
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
182 */
42391
090b03385984 Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42344
diff changeset
183 PURPLE_AVAILABLE_IN_3_0
41733
a9085b52de8b Rename PurpleContact to PurpleMetaContact.
Gary Kramlich <grim@reaperworld.com>
parents: 41200
diff changeset
184 void purple_meta_contact_merge(PurpleMetaContact *source, PurpleBlistNode *node);
37946
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
185
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
186
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
187 G_END_DECLS
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
188
41733
a9085b52de8b Rename PurpleContact to PurpleMetaContact.
Gary Kramlich <grim@reaperworld.com>
parents: 41200
diff changeset
189 #endif /* PURPLE_META_CONTACT_H */
37946
4318acee8ac6 Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
190

mercurial