Fri, 20 Dec 2019 02:44:13 +0000
Merged in default (pull request #661)
Add metadata to Glade ui files.
Approved-by: Gary Kramlich
|
37946
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
1 | /* purple |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
2 | * |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
3 | * Purple is the legal property of its developers, whose names are too numerous |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
4 | * to list here. Please refer to the COPYRIGHT file distributed with this |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
5 | * source distribution. |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
6 | * |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
7 | * This program is free software; you can redistribute it and/or modify |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
8 | * it under the terms of the GNU General Public License as published by |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
9 | * the Free Software Foundation; either version 2 of the License, or |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
10 | * (at your option) any later version. |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
11 | * |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
12 | * This program is distributed in the hope that it will be useful, |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
15 | * GNU General Public License for more details. |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
16 | * |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
17 | * You should have received a copy of the GNU General Public License |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
18 | * along with this program; if not, write to the Free Software |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
20 | */ |
|
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 | #ifndef PURPLE_CONTACT_H |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
23 | #define PURPLE_CONTACT_H |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
24 | /** |
|
38552
85c4c3296419
libpurple: Fix section documentation headings
Mike Ruprecht <cmaiku@gmail.com>
parents:
38016
diff
changeset
|
25 | * SECTION:contact |
|
37949
87d2c1513e5b
Clean up some documentation comments
Gary Kramlich <grim@reaperworld.com>
parents:
37946
diff
changeset
|
26 | * @section_id: libpurple-contact |
|
87d2c1513e5b
Clean up some documentation comments
Gary Kramlich <grim@reaperworld.com>
parents:
37946
diff
changeset
|
27 | * @short_description: <filename>contact.h</filename> |
|
87d2c1513e5b
Clean up some documentation comments
Gary Kramlich <grim@reaperworld.com>
parents:
37946
diff
changeset
|
28 | * @title: Contact Object |
|
37946
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
29 | */ |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
30 | |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
31 | #define PURPLE_TYPE_CONTACT (purple_contact_get_type()) |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
32 | #define PURPLE_CONTACT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PURPLE_TYPE_CONTACT, PurpleContact)) |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
33 | #define PURPLE_CONTACT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), PURPLE_TYPE_CONTACT, PurpleContactClass)) |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
34 | #define PURPLE_IS_CONTACT(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_CONTACT)) |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
35 | #define PURPLE_IS_CONTACT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), PURPLE_TYPE_CONTACT)) |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
36 | #define PURPLE_CONTACT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), PURPLE_TYPE_CONTACT, PurpleContactClass)) |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
37 | |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
38 | typedef struct _PurpleContact PurpleContact; |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
39 | typedef struct _PurpleContactClass PurpleContactClass; |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
40 | |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
41 | #include "countingnode.h" |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
42 | #include "group.h" |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
43 | |
|
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 | * PurpleContact: |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
46 | * |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
47 | * A contact on the buddy list. |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
48 | * |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
49 | * 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
|
50 | * the buddies under this contact. |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
51 | */ |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
52 | struct _PurpleContact { |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
53 | PurpleCountingNode counting; |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
54 | }; |
|
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 | struct _PurpleContactClass { |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
57 | PurpleCountingNodeClass counting_class; |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
58 | |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
59 | /*< private >*/ |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
60 | void (*_purple_reserved1)(void); |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
61 | void (*_purple_reserved2)(void); |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
62 | void (*_purple_reserved3)(void); |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
63 | void (*_purple_reserved4)(void); |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
64 | }; |
|
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 | G_BEGIN_DECLS |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
67 | |
|
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 | /* Contact API */ |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
70 | /**************************************************************************/ |
|
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 | * purple_contact_get_type: |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
74 | * |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
75 | * Returns: The #GType for the #PurpleContact object. |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
76 | */ |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
77 | GType purple_contact_get_type(void); |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
78 | |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
79 | /** |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
80 | * purple_contact_new: |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
81 | * |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
82 | * Creates a new contact |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
83 | * |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
84 | * Returns: A new contact struct |
|
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 | PurpleContact *purple_contact_new(void); |
|
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 | /** |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
89 | * purple_contact_get_group: |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
90 | * @contact: The contact |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
91 | * |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
92 | * Gets the PurpleGroup from a PurpleContact |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
93 | * |
|
39738
14d425a528ad
Add missing transfer annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38552
diff
changeset
|
94 | * Returns: (transfer none): The group. |
|
37946
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
95 | */ |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
96 | PurpleGroup *purple_contact_get_group(const PurpleContact *contact); |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
97 | |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
98 | /** |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
99 | * purple_contact_get_priority_buddy: |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
100 | * @contact: The contact |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
101 | * |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
102 | * 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
|
103 | * |
|
39738
14d425a528ad
Add missing transfer annotations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
38552
diff
changeset
|
104 | * Returns: (transfer none): The highest priority buddy. |
|
37946
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
105 | */ |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
106 | PurpleBuddy *purple_contact_get_priority_buddy(PurpleContact *contact); |
|
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 | /** |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
109 | * purple_contact_set_alias: |
|
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 | * @alias: The alias |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
112 | * |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
113 | * Sets the alias for a contact. |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
114 | */ |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
115 | void purple_contact_set_alias(PurpleContact *contact, const char *alias); |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
116 | |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
117 | /** |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
118 | * purple_contact_get_alias: |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
119 | * @contact: The contact |
|
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 | * Gets the alias for a contact. |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
122 | * |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
123 | * Returns: The alias, or NULL if it is not set. |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
124 | */ |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
125 | const char *purple_contact_get_alias(PurpleContact *contact); |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
126 | |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
127 | /** |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
128 | * purple_contact_on_account: |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
129 | * @contact: The contact to search through. |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
130 | * @account: The account. |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
131 | * |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
132 | * 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
|
133 | * |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
134 | * Returns: TRUE if there are any buddies from account in the contact, or FALSE otherwise. |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
135 | */ |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
136 | gboolean purple_contact_on_account(PurpleContact *contact, PurpleAccount *account); |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
137 | |
|
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 | * purple_contact_invalidate_priority_buddy: |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
140 | * @contact: The contact |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
141 | * |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
142 | * Invalidates the priority buddy so that the next call to |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
143 | * purple_contact_get_priority_buddy recomputes it. |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
144 | */ |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
145 | void purple_contact_invalidate_priority_buddy(PurpleContact *contact); |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
146 | |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
147 | /** |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
148 | * purple_contact_merge: |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
149 | * @source: The contact to merge |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
150 | * @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
|
151 | * |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
152 | * Merges two contacts |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
153 | * |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
154 | * All of the buddies from source will be moved to target |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
155 | */ |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
156 | void purple_contact_merge(PurpleContact *source, PurpleBlistNode *node); |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
157 | |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
158 | |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
159 | G_END_DECLS |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
160 | |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
161 | #endif /* PURPLE_CONTACT_H */ |
|
4318acee8ac6
Pulled PurpleContact out to it's own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
162 |