libpurple/purpleconversationmember.h

Tue, 13 May 2025 00:49:03 -0500

author
Gary Kramlich <grim@reaperworld.com>
date
Tue, 13 May 2025 00:49:03 -0500
changeset 43249
ae9ab6159a80
parent 43185
c7b0c4b88dfb
permissions
-rw-r--r--

Start of the appearance preferences

Testing Done:
Toggled the preference and verified the key file updated. Also edited the key file and verified the widget updated.

Bugs closed: PIDGIN-18082

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

42080
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
1 /*
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
2 * Purple - Internet Messaging Library
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
3 * Copyright (C) Pidgin Developers <devel@pidgin.im>
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
4 *
42594
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
5 * Purple is the legal property of its developers, whose names are too numerous
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
6 * to list here. Please refer to the COPYRIGHT file distributed with this
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
7 * source distribution.
42080
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
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: 42387
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: 42387
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: 42387
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: 42387
diff changeset
12 * any later version.
42080
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
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: 42387
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: 42387
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: 42387
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: 42387
diff changeset
17 * more details.
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42387
diff changeset
18 *
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42387
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: 42387
diff changeset
20 * this library; if not, see <https://www.gnu.org/licenses/>.
42080
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
21 */
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
22
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
23 #if !defined(PURPLE_GLOBAL_HEADER_INSIDE) && !defined(PURPLE_COMPILATION)
42628
b069ea54b906 Fix the libpurple include warnings that were suggesting pidgin.h be included
Gary Kramlich <grim@reaperworld.com>
parents: 42613
diff changeset
24 # error "only <purple.h> may be included directly"
42080
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
25 #endif
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
26
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
27 #ifndef PURPLE_CONVERSATION_MEMBER_H
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
28 #define PURPLE_CONVERSATION_MEMBER_H
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
29
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
30 #include <glib.h>
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
31 #include <glib-object.h>
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
32
42921
a595e51a5bfa Add a badges property to Purple.ConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42779
diff changeset
33 #include "purplebadges.h"
42338
2548eb61acc9 Make sure all internal includes use double quotes
Gary Kramlich <grim@reaperworld.com>
parents: 42113
diff changeset
34 #include "purplecontactinfo.h"
2548eb61acc9 Make sure all internal includes use double quotes
Gary Kramlich <grim@reaperworld.com>
parents: 42113
diff changeset
35 #include "purpletags.h"
2548eb61acc9 Make sure all internal includes use double quotes
Gary Kramlich <grim@reaperworld.com>
parents: 42113
diff changeset
36 #include "purpletyping.h"
42387
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42338
diff changeset
37 #include "purpleversion.h"
42080
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
38
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
39 G_BEGIN_DECLS
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
40
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
41 #define PURPLE_TYPE_CONVERSATION_MEMBER (purple_conversation_member_get_type())
42387
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42338
diff changeset
42
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42338
diff changeset
43 PURPLE_AVAILABLE_IN_3_0
42080
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
44 G_DECLARE_FINAL_TYPE(PurpleConversationMember, purple_conversation_member,
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
45 PURPLE, CONVERSATION_MEMBER, GObject)
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
46
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
47 /**
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
48 * PurpleConversationMember:
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
49 *
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
50 * A conversation member links a [class@Purple.ContactInfo] to a
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
51 * [class@Purple.Conversation] as well as any data that is unique to the link.
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
52 *
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
53 * Some examples of this are typing state, badges, tags, etc.
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
54 *
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
55 * This does not hold a reference to a [class@Purple.Conversation] as you
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
56 * should not need to hold onto these and will have the
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
57 * [class@Purple.Conversation] when you need to look it up.
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
58 *
42613
780d7efe37c2 Remove the micro version from since tags for libpurple part 2
Gary Kramlich <grim@reaperworld.com>
parents: 42594
diff changeset
59 * Since: 3.0
42080
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
60 */
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
61
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
62 /**
43185
c7b0c4b88dfb Implement Purple.ConversationMember.compare
Gary Kramlich <grim@reaperworld.com>
parents: 43172
diff changeset
63 * purple_conversation_member_compare:
c7b0c4b88dfb Implement Purple.ConversationMember.compare
Gary Kramlich <grim@reaperworld.com>
parents: 43172
diff changeset
64 * @member2: (nullable): the member to compare
c7b0c4b88dfb Implement Purple.ConversationMember.compare
Gary Kramlich <grim@reaperworld.com>
parents: 43172
diff changeset
65 *
c7b0c4b88dfb Implement Purple.ConversationMember.compare
Gary Kramlich <grim@reaperworld.com>
parents: 43172
diff changeset
66 * Compares two members for sorting order.
c7b0c4b88dfb Implement Purple.ConversationMember.compare
Gary Kramlich <grim@reaperworld.com>
parents: 43172
diff changeset
67 *
c7b0c4b88dfb Implement Purple.ConversationMember.compare
Gary Kramlich <grim@reaperworld.com>
parents: 43172
diff changeset
68 * This starts by calling [method@Badges.compare] on the
c7b0c4b88dfb Implement Purple.ConversationMember.compare
Gary Kramlich <grim@reaperworld.com>
parents: 43172
diff changeset
69 * [property@ConversationMember:badges] property and then checks the
c7b0c4b88dfb Implement Purple.ConversationMember.compare
Gary Kramlich <grim@reaperworld.com>
parents: 43172
diff changeset
70 * [property@ConversationMember:name-for-display].
c7b0c4b88dfb Implement Purple.ConversationMember.compare
Gary Kramlich <grim@reaperworld.com>
parents: 43172
diff changeset
71 *
c7b0c4b88dfb Implement Purple.ConversationMember.compare
Gary Kramlich <grim@reaperworld.com>
parents: 43172
diff changeset
72 * Returns: less than zero if the first member should be sorted first, 0 if the
c7b0c4b88dfb Implement Purple.ConversationMember.compare
Gary Kramlich <grim@reaperworld.com>
parents: 43172
diff changeset
73 * two are equal or greater than zero if the second member should be
c7b0c4b88dfb Implement Purple.ConversationMember.compare
Gary Kramlich <grim@reaperworld.com>
parents: 43172
diff changeset
74 * sorted first.
c7b0c4b88dfb Implement Purple.ConversationMember.compare
Gary Kramlich <grim@reaperworld.com>
parents: 43172
diff changeset
75 *
c7b0c4b88dfb Implement Purple.ConversationMember.compare
Gary Kramlich <grim@reaperworld.com>
parents: 43172
diff changeset
76 * Since: 3.0
c7b0c4b88dfb Implement Purple.ConversationMember.compare
Gary Kramlich <grim@reaperworld.com>
parents: 43172
diff changeset
77 */
c7b0c4b88dfb Implement Purple.ConversationMember.compare
Gary Kramlich <grim@reaperworld.com>
parents: 43172
diff changeset
78 PURPLE_AVAILABLE_IN_3_0
c7b0c4b88dfb Implement Purple.ConversationMember.compare
Gary Kramlich <grim@reaperworld.com>
parents: 43172
diff changeset
79 int purple_conversation_member_compare(PurpleConversationMember *member1, PurpleConversationMember *member2);
c7b0c4b88dfb Implement Purple.ConversationMember.compare
Gary Kramlich <grim@reaperworld.com>
parents: 43172
diff changeset
80
c7b0c4b88dfb Implement Purple.ConversationMember.compare
Gary Kramlich <grim@reaperworld.com>
parents: 43172
diff changeset
81 /**
42080
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
82 * purple_conversation_member_new:
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
83 * @info: The [class@Purple.ContactInfo] for the member.
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
84 *
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
85 * Creates a new [class@Purple.ConversationMember]. This does not track the
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
86 * [class@Purple.Conversation] as you already need to know the conversation to
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
87 * access the member.
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
88 *
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
89 * Returns: (transfer full): The new instance.
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
90 *
42613
780d7efe37c2 Remove the micro version from since tags for libpurple part 2
Gary Kramlich <grim@reaperworld.com>
parents: 42594
diff changeset
91 * Since: 3.0
42080
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
92 */
42387
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42338
diff changeset
93 PURPLE_AVAILABLE_IN_3_0
42080
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
94 PurpleConversationMember *purple_conversation_member_new(PurpleContactInfo *info);
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
95
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
96 /**
43139
7b9d197a5e16 Add an alias property to Purple.ConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42921
diff changeset
97 * purple_conversation_member_get_alias:
7b9d197a5e16 Add an alias property to Purple.ConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42921
diff changeset
98 *
7b9d197a5e16 Add an alias property to Purple.ConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42921
diff changeset
99 * Gets the alias of a member.
7b9d197a5e16 Add an alias property to Purple.ConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42921
diff changeset
100 *
7b9d197a5e16 Add an alias property to Purple.ConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42921
diff changeset
101 * Returns: (nullable): The alias.
7b9d197a5e16 Add an alias property to Purple.ConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42921
diff changeset
102 *
7b9d197a5e16 Add an alias property to Purple.ConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42921
diff changeset
103 * Since: 3.0
7b9d197a5e16 Add an alias property to Purple.ConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42921
diff changeset
104 */
7b9d197a5e16 Add an alias property to Purple.ConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42921
diff changeset
105 PURPLE_AVAILABLE_IN_3_0
7b9d197a5e16 Add an alias property to Purple.ConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42921
diff changeset
106 const char *purple_conversation_member_get_alias(PurpleConversationMember *member);
7b9d197a5e16 Add an alias property to Purple.ConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42921
diff changeset
107
7b9d197a5e16 Add an alias property to Purple.ConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42921
diff changeset
108 /**
7b9d197a5e16 Add an alias property to Purple.ConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42921
diff changeset
109 * purple_conversation_member_set_alias:
7b9d197a5e16 Add an alias property to Purple.ConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42921
diff changeset
110 * @alias: (nullable): the new alias
7b9d197a5e16 Add an alias property to Purple.ConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42921
diff changeset
111 *
7b9d197a5e16 Add an alias property to Purple.ConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42921
diff changeset
112 * Sets the alias of a member.
7b9d197a5e16 Add an alias property to Purple.ConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42921
diff changeset
113 *
7b9d197a5e16 Add an alias property to Purple.ConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42921
diff changeset
114 * Since: 3.0
7b9d197a5e16 Add an alias property to Purple.ConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42921
diff changeset
115 */
7b9d197a5e16 Add an alias property to Purple.ConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42921
diff changeset
116 PURPLE_AVAILABLE_IN_3_0
7b9d197a5e16 Add an alias property to Purple.ConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42921
diff changeset
117 void purple_conversation_member_set_alias(PurpleConversationMember *member, const char *alias);
7b9d197a5e16 Add an alias property to Purple.ConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42921
diff changeset
118
7b9d197a5e16 Add an alias property to Purple.ConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42921
diff changeset
119 /**
42921
a595e51a5bfa Add a badges property to Purple.ConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42779
diff changeset
120 * purple_conversation_member_get_badges:
a595e51a5bfa Add a badges property to Purple.ConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42779
diff changeset
121 * @member: The instance.
a595e51a5bfa Add a badges property to Purple.ConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42779
diff changeset
122 *
a595e51a5bfa Add a badges property to Purple.ConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42779
diff changeset
123 * Gets the [class@Badges] from @member.
a595e51a5bfa Add a badges property to Purple.ConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42779
diff changeset
124 *
a595e51a5bfa Add a badges property to Purple.ConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42779
diff changeset
125 * This is generally used by user interfaces to display the badges, and
a595e51a5bfa Add a badges property to Purple.ConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42779
diff changeset
126 * protocols will update the badges as necessary. That said, nothing is
a595e51a5bfa Add a badges property to Purple.ConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42779
diff changeset
127 * stopping plugins from adding their own.
a595e51a5bfa Add a badges property to Purple.ConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42779
diff changeset
128 *
a595e51a5bfa Add a badges property to Purple.ConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42779
diff changeset
129 * Returns: (transfer none): The badges.
a595e51a5bfa Add a badges property to Purple.ConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42779
diff changeset
130 *
a595e51a5bfa Add a badges property to Purple.ConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42779
diff changeset
131 * Since: 3.0
a595e51a5bfa Add a badges property to Purple.ConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42779
diff changeset
132 */
a595e51a5bfa Add a badges property to Purple.ConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42779
diff changeset
133 PURPLE_AVAILABLE_IN_3_0
a595e51a5bfa Add a badges property to Purple.ConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42779
diff changeset
134 PurpleBadges *purple_conversation_member_get_badges(PurpleConversationMember *member);
a595e51a5bfa Add a badges property to Purple.ConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42779
diff changeset
135
a595e51a5bfa Add a badges property to Purple.ConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42779
diff changeset
136 /**
43140
951c4110ad50 Create Purple.ConversationMember:color
Gary Kramlich <grim@reaperworld.com>
parents: 43139
diff changeset
137 * purple_conversation_member_get_color:
951c4110ad50 Create Purple.ConversationMember:color
Gary Kramlich <grim@reaperworld.com>
parents: 43139
diff changeset
138 *
951c4110ad50 Create Purple.ConversationMember:color
Gary Kramlich <grim@reaperworld.com>
parents: 43139
diff changeset
139 * Gets the color that should be used to display the member.
951c4110ad50 Create Purple.ConversationMember:color
Gary Kramlich <grim@reaperworld.com>
parents: 43139
diff changeset
140 *
951c4110ad50 Create Purple.ConversationMember:color
Gary Kramlich <grim@reaperworld.com>
parents: 43139
diff changeset
141 * This is a hex color code in the format of `#RRGGBB`.
951c4110ad50 Create Purple.ConversationMember:color
Gary Kramlich <grim@reaperworld.com>
parents: 43139
diff changeset
142 *
951c4110ad50 Create Purple.ConversationMember:color
Gary Kramlich <grim@reaperworld.com>
parents: 43139
diff changeset
143 * User interfaces may adjust this color to increase contrast ratios.
951c4110ad50 Create Purple.ConversationMember:color
Gary Kramlich <grim@reaperworld.com>
parents: 43139
diff changeset
144 *
951c4110ad50 Create Purple.ConversationMember:color
Gary Kramlich <grim@reaperworld.com>
parents: 43139
diff changeset
145 * Returns: (nullable): The color.
951c4110ad50 Create Purple.ConversationMember:color
Gary Kramlich <grim@reaperworld.com>
parents: 43139
diff changeset
146 *
951c4110ad50 Create Purple.ConversationMember:color
Gary Kramlich <grim@reaperworld.com>
parents: 43139
diff changeset
147 * Since: 3.0
951c4110ad50 Create Purple.ConversationMember:color
Gary Kramlich <grim@reaperworld.com>
parents: 43139
diff changeset
148 */
951c4110ad50 Create Purple.ConversationMember:color
Gary Kramlich <grim@reaperworld.com>
parents: 43139
diff changeset
149 PURPLE_AVAILABLE_IN_3_0
951c4110ad50 Create Purple.ConversationMember:color
Gary Kramlich <grim@reaperworld.com>
parents: 43139
diff changeset
150 const char *purple_conversation_member_get_color(PurpleConversationMember *member);
951c4110ad50 Create Purple.ConversationMember:color
Gary Kramlich <grim@reaperworld.com>
parents: 43139
diff changeset
151
951c4110ad50 Create Purple.ConversationMember:color
Gary Kramlich <grim@reaperworld.com>
parents: 43139
diff changeset
152 /**
951c4110ad50 Create Purple.ConversationMember:color
Gary Kramlich <grim@reaperworld.com>
parents: 43139
diff changeset
153 * purple_conversation_member_set_color:
951c4110ad50 Create Purple.ConversationMember:color
Gary Kramlich <grim@reaperworld.com>
parents: 43139
diff changeset
154 * @color: (nullable): the new color
951c4110ad50 Create Purple.ConversationMember:color
Gary Kramlich <grim@reaperworld.com>
parents: 43139
diff changeset
155 *
951c4110ad50 Create Purple.ConversationMember:color
Gary Kramlich <grim@reaperworld.com>
parents: 43139
diff changeset
156 * Sets the color that the member should be displayed with.
951c4110ad50 Create Purple.ConversationMember:color
Gary Kramlich <grim@reaperworld.com>
parents: 43139
diff changeset
157 *
951c4110ad50 Create Purple.ConversationMember:color
Gary Kramlich <grim@reaperworld.com>
parents: 43139
diff changeset
158 * @color should be a hex color code in the format of `#RRGGBB`.
951c4110ad50 Create Purple.ConversationMember:color
Gary Kramlich <grim@reaperworld.com>
parents: 43139
diff changeset
159 *
951c4110ad50 Create Purple.ConversationMember:color
Gary Kramlich <grim@reaperworld.com>
parents: 43139
diff changeset
160 * Since: 3.0
951c4110ad50 Create Purple.ConversationMember:color
Gary Kramlich <grim@reaperworld.com>
parents: 43139
diff changeset
161 */
951c4110ad50 Create Purple.ConversationMember:color
Gary Kramlich <grim@reaperworld.com>
parents: 43139
diff changeset
162 PURPLE_AVAILABLE_IN_3_0
951c4110ad50 Create Purple.ConversationMember:color
Gary Kramlich <grim@reaperworld.com>
parents: 43139
diff changeset
163 void purple_conversation_member_set_color(PurpleConversationMember *member, const char *color);
951c4110ad50 Create Purple.ConversationMember:color
Gary Kramlich <grim@reaperworld.com>
parents: 43139
diff changeset
164
951c4110ad50 Create Purple.ConversationMember:color
Gary Kramlich <grim@reaperworld.com>
parents: 43139
diff changeset
165 /**
42080
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
166 * purple_conversation_member_get_contact_info:
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
167 * @conversation_member: The instance.
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
168 *
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
169 * Gets the [class@Purple.ContactInfo] for @conversation_member.
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
170 *
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
171 * Returns: (transfer none): The [class@Purple.ContactInfo] for
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
172 * @conversation_member.
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
173 *
42613
780d7efe37c2 Remove the micro version from since tags for libpurple part 2
Gary Kramlich <grim@reaperworld.com>
parents: 42594
diff changeset
174 * Since: 3.0
42080
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
175 */
42387
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42338
diff changeset
176 PURPLE_AVAILABLE_IN_3_0
42080
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
177 PurpleContactInfo *purple_conversation_member_get_contact_info(PurpleConversationMember *conversation_member);
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
178
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
179 /**
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
180 * purple_conversation_member_get_tags:
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
181 * @conversation_member: The instance.
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
182 *
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
183 * Gets the [class@Purple.Tags] instance for @conversation_member.
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
184 *
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
185 * Returns: (transfer none): The [class@Purple.Tags] for @conversation_member.
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
186 *
42613
780d7efe37c2 Remove the micro version from since tags for libpurple part 2
Gary Kramlich <grim@reaperworld.com>
parents: 42594
diff changeset
187 * Since: 3.0
42080
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
188 */
42387
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42338
diff changeset
189 PURPLE_AVAILABLE_IN_3_0
42080
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
190 PurpleTags *purple_conversation_member_get_tags(PurpleConversationMember *conversation_member);
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
191
42113
393c2ea6b399 Add PurpleTypingState and add it as a property to PurpleConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42080
diff changeset
192 /**
393c2ea6b399 Add PurpleTypingState and add it as a property to PurpleConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42080
diff changeset
193 * purple_conversation_member_get_typing_state:
393c2ea6b399 Add PurpleTypingState and add it as a property to PurpleConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42080
diff changeset
194 * @member: The instance.
393c2ea6b399 Add PurpleTypingState and add it as a property to PurpleConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42080
diff changeset
195 *
393c2ea6b399 Add PurpleTypingState and add it as a property to PurpleConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42080
diff changeset
196 * Gets the current [enum@Purple.TypingState] for @conversation_member.
393c2ea6b399 Add PurpleTypingState and add it as a property to PurpleConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42080
diff changeset
197 *
393c2ea6b399 Add PurpleTypingState and add it as a property to PurpleConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42080
diff changeset
198 * Returns: The current typing state for @conversation_member.
393c2ea6b399 Add PurpleTypingState and add it as a property to PurpleConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42080
diff changeset
199 *
42613
780d7efe37c2 Remove the micro version from since tags for libpurple part 2
Gary Kramlich <grim@reaperworld.com>
parents: 42594
diff changeset
200 * Since: 3.0
42113
393c2ea6b399 Add PurpleTypingState and add it as a property to PurpleConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42080
diff changeset
201 */
42387
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42338
diff changeset
202 PURPLE_AVAILABLE_IN_3_0
42113
393c2ea6b399 Add PurpleTypingState and add it as a property to PurpleConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42080
diff changeset
203 PurpleTypingState purple_conversation_member_get_typing_state(PurpleConversationMember *member);
393c2ea6b399 Add PurpleTypingState and add it as a property to PurpleConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42080
diff changeset
204
393c2ea6b399 Add PurpleTypingState and add it as a property to PurpleConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42080
diff changeset
205 /**
393c2ea6b399 Add PurpleTypingState and add it as a property to PurpleConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42080
diff changeset
206 * purple_conversation_member_set_typing_state:
393c2ea6b399 Add PurpleTypingState and add it as a property to PurpleConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42080
diff changeset
207 * @member: The instance.
393c2ea6b399 Add PurpleTypingState and add it as a property to PurpleConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42080
diff changeset
208 * @state: The new typing state.
393c2ea6b399 Add PurpleTypingState and add it as a property to PurpleConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42080
diff changeset
209 * @seconds: The number of seconds before resetting the state.
393c2ea6b399 Add PurpleTypingState and add it as a property to PurpleConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42080
diff changeset
210 *
393c2ea6b399 Add PurpleTypingState and add it as a property to PurpleConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42080
diff changeset
211 * Sets the typing state of @conversation_member to @state.
393c2ea6b399 Add PurpleTypingState and add it as a property to PurpleConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42080
diff changeset
212 *
393c2ea6b399 Add PurpleTypingState and add it as a property to PurpleConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42080
diff changeset
213 * If @seconds is greater than %0, a timeout will be added for @seconds to
393c2ea6b399 Add PurpleTypingState and add it as a property to PurpleConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42080
diff changeset
214 * reset the state to none.
393c2ea6b399 Add PurpleTypingState and add it as a property to PurpleConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42080
diff changeset
215 *
42613
780d7efe37c2 Remove the micro version from since tags for libpurple part 2
Gary Kramlich <grim@reaperworld.com>
parents: 42594
diff changeset
216 * Since: 3.0
42113
393c2ea6b399 Add PurpleTypingState and add it as a property to PurpleConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42080
diff changeset
217 */
42387
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42338
diff changeset
218 PURPLE_AVAILABLE_IN_3_0
42113
393c2ea6b399 Add PurpleTypingState and add it as a property to PurpleConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42080
diff changeset
219 void purple_conversation_member_set_typing_state(PurpleConversationMember *member, PurpleTypingState state, guint seconds);
393c2ea6b399 Add PurpleTypingState and add it as a property to PurpleConversationMember
Gary Kramlich <grim@reaperworld.com>
parents: 42080
diff changeset
220
42779
365eaa9d46f8 Add ConversationMember:nickname and ConversationMember:name-for-display properties
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
221 /**
365eaa9d46f8 Add ConversationMember:nickname and ConversationMember:name-for-display properties
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
222 * purple_conversation_member_get_nickname:
365eaa9d46f8 Add ConversationMember:nickname and ConversationMember:name-for-display properties
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
223 * @member: The instance.
365eaa9d46f8 Add ConversationMember:nickname and ConversationMember:name-for-display properties
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
224 *
365eaa9d46f8 Add ConversationMember:nickname and ConversationMember:name-for-display properties
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
225 * Sets the custom nickname for the remote user.
365eaa9d46f8 Add ConversationMember:nickname and ConversationMember:name-for-display properties
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
226 *
365eaa9d46f8 Add ConversationMember:nickname and ConversationMember:name-for-display properties
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
227 * Returns: (nullable): The custom nickname if set, otherwise %NULL.
365eaa9d46f8 Add ConversationMember:nickname and ConversationMember:name-for-display properties
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
228 *
365eaa9d46f8 Add ConversationMember:nickname and ConversationMember:name-for-display properties
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
229 * Since: 3.0
365eaa9d46f8 Add ConversationMember:nickname and ConversationMember:name-for-display properties
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
230 */
365eaa9d46f8 Add ConversationMember:nickname and ConversationMember:name-for-display properties
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
231 PURPLE_AVAILABLE_IN_3_0
365eaa9d46f8 Add ConversationMember:nickname and ConversationMember:name-for-display properties
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
232 const char *purple_conversation_member_get_nickname(PurpleConversationMember *member);
365eaa9d46f8 Add ConversationMember:nickname and ConversationMember:name-for-display properties
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
233
365eaa9d46f8 Add ConversationMember:nickname and ConversationMember:name-for-display properties
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
234 /**
365eaa9d46f8 Add ConversationMember:nickname and ConversationMember:name-for-display properties
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
235 * purple_conversation_member_set_nickname:
365eaa9d46f8 Add ConversationMember:nickname and ConversationMember:name-for-display properties
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
236 * @member: The instance.
365eaa9d46f8 Add ConversationMember:nickname and ConversationMember:name-for-display properties
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
237 * @nickname: (nullable): The new nickname.
365eaa9d46f8 Add ConversationMember:nickname and ConversationMember:name-for-display properties
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
238 *
365eaa9d46f8 Add ConversationMember:nickname and ConversationMember:name-for-display properties
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
239 * Sets the custom nickname for @member.
365eaa9d46f8 Add ConversationMember:nickname and ConversationMember:name-for-display properties
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
240 *
365eaa9d46f8 Add ConversationMember:nickname and ConversationMember:name-for-display properties
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
241 * This can be unset by passing in %NULL for @nickname.
365eaa9d46f8 Add ConversationMember:nickname and ConversationMember:name-for-display properties
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
242 *
365eaa9d46f8 Add ConversationMember:nickname and ConversationMember:name-for-display properties
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
243 * > Note: This should typically only be called by protocol plugins.
365eaa9d46f8 Add ConversationMember:nickname and ConversationMember:name-for-display properties
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
244 *
365eaa9d46f8 Add ConversationMember:nickname and ConversationMember:name-for-display properties
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
245 * Since: 3.0
365eaa9d46f8 Add ConversationMember:nickname and ConversationMember:name-for-display properties
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
246 */
365eaa9d46f8 Add ConversationMember:nickname and ConversationMember:name-for-display properties
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
247 PURPLE_AVAILABLE_IN_3_0
365eaa9d46f8 Add ConversationMember:nickname and ConversationMember:name-for-display properties
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
248 void purple_conversation_member_set_nickname(PurpleConversationMember *member, const char *nickname);
365eaa9d46f8 Add ConversationMember:nickname and ConversationMember:name-for-display properties
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
249
365eaa9d46f8 Add ConversationMember:nickname and ConversationMember:name-for-display properties
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
250 /**
365eaa9d46f8 Add ConversationMember:nickname and ConversationMember:name-for-display properties
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
251 * purple_conversation_member_get_name_for_display:
365eaa9d46f8 Add ConversationMember:nickname and ConversationMember:name-for-display properties
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
252 * @member: The instance.
365eaa9d46f8 Add ConversationMember:nickname and ConversationMember:name-for-display properties
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
253 *
365eaa9d46f8 Add ConversationMember:nickname and ConversationMember:name-for-display properties
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
254 * Gets the name that should be displayed for @member.
365eaa9d46f8 Add ConversationMember:nickname and ConversationMember:name-for-display properties
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
255 *
365eaa9d46f8 Add ConversationMember:nickname and ConversationMember:name-for-display properties
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
256 * See [property@ConversationMember:name-for-display] for more information.
365eaa9d46f8 Add ConversationMember:nickname and ConversationMember:name-for-display properties
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
257 *
365eaa9d46f8 Add ConversationMember:nickname and ConversationMember:name-for-display properties
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
258 * Returns: (transfer none): The name that should be displayed for @member.
365eaa9d46f8 Add ConversationMember:nickname and ConversationMember:name-for-display properties
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
259 *
365eaa9d46f8 Add ConversationMember:nickname and ConversationMember:name-for-display properties
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
260 * Since: 3.0
365eaa9d46f8 Add ConversationMember:nickname and ConversationMember:name-for-display properties
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
261 */
365eaa9d46f8 Add ConversationMember:nickname and ConversationMember:name-for-display properties
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
262 PURPLE_AVAILABLE_IN_3_0
365eaa9d46f8 Add ConversationMember:nickname and ConversationMember:name-for-display properties
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
263 const char *purple_conversation_member_get_name_for_display(PurpleConversationMember *member);
365eaa9d46f8 Add ConversationMember:nickname and ConversationMember:name-for-display properties
Gary Kramlich <grim@reaperworld.com>
parents: 42628
diff changeset
264
43172
8f93d317f96a Add Purple.ConversationMember.matches
Gary Kramlich <grim@reaperworld.com>
parents: 43140
diff changeset
265 /**
8f93d317f96a Add Purple.ConversationMember.matches
Gary Kramlich <grim@reaperworld.com>
parents: 43140
diff changeset
266 * purple_conversation_member_matches:
8f93d317f96a Add Purple.ConversationMember.matches
Gary Kramlich <grim@reaperworld.com>
parents: 43140
diff changeset
267 * @needle: (nullable): the string to match on
8f93d317f96a Add Purple.ConversationMember.matches
Gary Kramlich <grim@reaperworld.com>
parents: 43140
diff changeset
268 *
8f93d317f96a Add Purple.ConversationMember.matches
Gary Kramlich <grim@reaperworld.com>
parents: 43140
diff changeset
269 * Checks if a member matches a string.
8f93d317f96a Add Purple.ConversationMember.matches
Gary Kramlich <grim@reaperworld.com>
parents: 43140
diff changeset
270 *
8f93d317f96a Add Purple.ConversationMember.matches
Gary Kramlich <grim@reaperworld.com>
parents: 43140
diff changeset
271 * This uses [func@strmatches] to check the [property@ConversationMember:alias]
8f93d317f96a Add Purple.ConversationMember.matches
Gary Kramlich <grim@reaperworld.com>
parents: 43140
diff changeset
272 * and [property@ConversationMember:nickname] properties in order. If they
8f93d317f96a Add Purple.ConversationMember.matches
Gary Kramlich <grim@reaperworld.com>
parents: 43140
diff changeset
273 * don't match, the value of [method@ContactInfo.matches] will be returned.
8f93d317f96a Add Purple.ConversationMember.matches
Gary Kramlich <grim@reaperworld.com>
parents: 43140
diff changeset
274 *
8f93d317f96a Add Purple.ConversationMember.matches
Gary Kramlich <grim@reaperworld.com>
parents: 43140
diff changeset
275 * If @needle is %NULL or an empty string, %TRUE will be returned.
8f93d317f96a Add Purple.ConversationMember.matches
Gary Kramlich <grim@reaperworld.com>
parents: 43140
diff changeset
276 *
8f93d317f96a Add Purple.ConversationMember.matches
Gary Kramlich <grim@reaperworld.com>
parents: 43140
diff changeset
277 * Returns: %TRUE if the member matches @needle in any way.
8f93d317f96a Add Purple.ConversationMember.matches
Gary Kramlich <grim@reaperworld.com>
parents: 43140
diff changeset
278 *
8f93d317f96a Add Purple.ConversationMember.matches
Gary Kramlich <grim@reaperworld.com>
parents: 43140
diff changeset
279 * Since: 3.0
8f93d317f96a Add Purple.ConversationMember.matches
Gary Kramlich <grim@reaperworld.com>
parents: 43140
diff changeset
280 */
8f93d317f96a Add Purple.ConversationMember.matches
Gary Kramlich <grim@reaperworld.com>
parents: 43140
diff changeset
281 PURPLE_AVAILABLE_IN_3_0
8f93d317f96a Add Purple.ConversationMember.matches
Gary Kramlich <grim@reaperworld.com>
parents: 43140
diff changeset
282 gboolean purple_conversation_member_matches(PurpleConversationMember *member, const char *needle);
8f93d317f96a Add Purple.ConversationMember.matches
Gary Kramlich <grim@reaperworld.com>
parents: 43140
diff changeset
283
42080
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
284 G_END_DECLS
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
285
df47db24cee6 Add PurpleConversationMember to link a PurpleContactInfo to a PurpleConversation
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
286 #endif /* PURPLE_CONVERSATION_MEMBER_H */

mercurial