Sat, 18 Aug 2007 05:54:49 +0000
- Add purple_certificate_display_x509
| 4359 | 1 | /** |
| 2 | * @file conversation.h Conversation API | |
|
5034
077678f7b048
[gaim-migrate @ 5377]
Christian Hammond <chipx86@chipx86.com>
parents:
4890
diff
changeset
|
3 | * @ingroup core |
| 4359 | 4 | * |
| 15884 | 5 | * purple |
| 4359 | 6 | * |
| 15884 | 7 | * Purple is the legal property of its developers, whose names are too numerous |
| 8046 | 8 | * to list here. Please refer to the COPYRIGHT file distributed with this |
| 9 | * source distribution. | |
|
6485
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6414
diff
changeset
|
10 | * |
| 4359 | 11 | * This program is free software; you can redistribute it and/or modify |
| 12 | * it under the terms of the GNU General Public License as published by | |
| 13 | * the Free Software Foundation; either version 2 of the License, or | |
| 14 | * (at your option) any later version. | |
| 15 | * | |
| 16 | * This program is distributed in the hope that it will be useful, | |
| 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 19 | * GNU General Public License for more details. | |
| 20 | * | |
| 21 | * You should have received a copy of the GNU General Public License | |
| 22 | * along with this program; if not, write to the Free Software | |
| 23 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
|
6488
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
24 | * |
|
6605
665d3a8e885c
[gaim-migrate @ 7129]
Christian Hammond <chipx86@chipx86.com>
parents:
6585
diff
changeset
|
25 | * @see @ref conversation-signals |
| 4359 | 26 | */ |
| 15884 | 27 | #ifndef _PURPLE_CONVERSATION_H_ |
| 28 | #define _PURPLE_CONVERSATION_H_ | |
| 4359 | 29 | |
| 30 | /**************************************************************************/ | |
| 31 | /** Data Structures */ | |
| 32 | /**************************************************************************/ | |
| 33 | ||
| 11581 | 34 | |
| 15884 | 35 | typedef struct _PurpleConversationUiOps PurpleConversationUiOps; |
| 36 | typedef struct _PurpleConversation PurpleConversation; | |
| 37 | typedef struct _PurpleConvIm PurpleConvIm; | |
| 38 | typedef struct _PurpleConvChat PurpleConvChat; | |
| 39 | typedef struct _PurpleConvChatBuddy PurpleConvChatBuddy; | |
| 4359 | 40 | |
| 41 | /** | |
| 42 | * A type of conversation. | |
| 43 | */ | |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
44 | typedef enum |
| 4359 | 45 | { |
| 15884 | 46 | PURPLE_CONV_TYPE_UNKNOWN = 0, /**< Unknown conversation type. */ |
| 47 | PURPLE_CONV_TYPE_IM, /**< Instant Message. */ | |
| 48 | PURPLE_CONV_TYPE_CHAT, /**< Chat room. */ | |
| 49 | PURPLE_CONV_TYPE_MISC, /**< A misc. conversation. */ | |
| 50 | PURPLE_CONV_TYPE_ANY /**< Any type of conversation. */ | |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
51 | |
| 15884 | 52 | } PurpleConversationType; |
| 4359 | 53 | |
| 54 | /** | |
| 55 | * Conversation update type. | |
| 56 | */ | |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
57 | typedef enum |
| 4359 | 58 | { |
| 15884 | 59 | PURPLE_CONV_UPDATE_ADD = 0, /**< The buddy associated with the conversation |
| 8155 | 60 | was added. */ |
| 15884 | 61 | PURPLE_CONV_UPDATE_REMOVE, /**< The buddy associated with the conversation |
| 8155 | 62 | was removed. */ |
| 15884 | 63 | PURPLE_CONV_UPDATE_ACCOUNT, /**< The purple_account was changed. */ |
| 64 | PURPLE_CONV_UPDATE_TYPING, /**< The typing state was updated. */ | |
| 65 | PURPLE_CONV_UPDATE_UNSEEN, /**< The unseen state was updated. */ | |
| 66 | PURPLE_CONV_UPDATE_LOGGING, /**< Logging for this conversation was | |
| 8155 | 67 | enabled or disabled. */ |
| 15884 | 68 | PURPLE_CONV_UPDATE_TOPIC, /**< The topic for a chat was updated. */ |
| 4359 | 69 | /* |
| 70 | * XXX These need to go when we implement a more generic core/UI event | |
| 71 | * system. | |
| 72 | */ | |
| 15884 | 73 | PURPLE_CONV_ACCOUNT_ONLINE, /**< One of the user's accounts went online. */ |
| 74 | PURPLE_CONV_ACCOUNT_OFFLINE, /**< One of the user's accounts went offline. */ | |
| 75 | PURPLE_CONV_UPDATE_AWAY, /**< The other user went away. */ | |
| 76 | PURPLE_CONV_UPDATE_ICON, /**< The other user's buddy icon changed. */ | |
| 77 | PURPLE_CONV_UPDATE_TITLE, | |
| 78 | PURPLE_CONV_UPDATE_CHATLEFT, | |
| 10665 | 79 | |
| 15884 | 80 | PURPLE_CONV_UPDATE_FEATURES, /**< The features for a chat have changed */ |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
81 | |
| 15884 | 82 | } PurpleConvUpdateType; |
| 4359 | 83 | |
| 84 | /** | |
|
5872
754c63f29b77
[gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
5858
diff
changeset
|
85 | * The typing state of a user. |
|
754c63f29b77
[gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
5858
diff
changeset
|
86 | */ |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
87 | typedef enum |
|
5872
754c63f29b77
[gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
5858
diff
changeset
|
88 | { |
| 15884 | 89 | PURPLE_NOT_TYPING = 0, /**< Not typing. */ |
| 90 | PURPLE_TYPING, /**< Currently typing. */ | |
| 91 | PURPLE_TYPED /**< Stopped typing momentarily. */ | |
|
5872
754c63f29b77
[gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
5858
diff
changeset
|
92 | |
| 15884 | 93 | } PurpleTypingState; |
|
5872
754c63f29b77
[gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
5858
diff
changeset
|
94 | |
|
6621
2a18ef3e5224
[gaim-migrate @ 7145]
Robert McQueen <robot101@debian.org>
parents:
6605
diff
changeset
|
95 | /** |
|
2a18ef3e5224
[gaim-migrate @ 7145]
Robert McQueen <robot101@debian.org>
parents:
6605
diff
changeset
|
96 | * Flags applicable to a message. Most will have send, recv or system. |
|
2a18ef3e5224
[gaim-migrate @ 7145]
Robert McQueen <robot101@debian.org>
parents:
6605
diff
changeset
|
97 | */ |
|
2a18ef3e5224
[gaim-migrate @ 7145]
Robert McQueen <robot101@debian.org>
parents:
6605
diff
changeset
|
98 | typedef enum |
|
2a18ef3e5224
[gaim-migrate @ 7145]
Robert McQueen <robot101@debian.org>
parents:
6605
diff
changeset
|
99 | { |
| 15884 | 100 | PURPLE_MESSAGE_SEND = 0x0001, /**< Outgoing message. */ |
| 101 | PURPLE_MESSAGE_RECV = 0x0002, /**< Incoming message. */ | |
| 102 | PURPLE_MESSAGE_SYSTEM = 0x0004, /**< System message. */ | |
| 103 | PURPLE_MESSAGE_AUTO_RESP = 0x0008, /**< Auto response. */ | |
| 104 | PURPLE_MESSAGE_ACTIVE_ONLY = 0x0010, /**< Hint to the UI that this | |
|
13477
aa1863ed7f63
[gaim-migrate @ 15852]
Richard Laager <rlaager@pidgin.im>
parents:
12867
diff
changeset
|
105 | message should not be |
|
aa1863ed7f63
[gaim-migrate @ 15852]
Richard Laager <rlaager@pidgin.im>
parents:
12867
diff
changeset
|
106 | shown in conversations |
|
aa1863ed7f63
[gaim-migrate @ 15852]
Richard Laager <rlaager@pidgin.im>
parents:
12867
diff
changeset
|
107 | which are only open for |
|
aa1863ed7f63
[gaim-migrate @ 15852]
Richard Laager <rlaager@pidgin.im>
parents:
12867
diff
changeset
|
108 | internal UI purposes |
|
aa1863ed7f63
[gaim-migrate @ 15852]
Richard Laager <rlaager@pidgin.im>
parents:
12867
diff
changeset
|
109 | (e.g. for contact-aware |
|
aa1863ed7f63
[gaim-migrate @ 15852]
Richard Laager <rlaager@pidgin.im>
parents:
12867
diff
changeset
|
110 | conversions). */ |
| 15884 | 111 | PURPLE_MESSAGE_NICK = 0x0020, /**< Contains your nick. */ |
| 112 | PURPLE_MESSAGE_NO_LOG = 0x0040, /**< Do not log. */ | |
| 113 | PURPLE_MESSAGE_WHISPER = 0x0080, /**< Whispered message. */ | |
| 114 | PURPLE_MESSAGE_ERROR = 0x0200, /**< Error message. */ | |
| 115 | PURPLE_MESSAGE_DELAYED = 0x0400, /**< Delayed message. */ | |
| 116 | PURPLE_MESSAGE_RAW = 0x0800, /**< "Raw" message - don't | |
|
13477
aa1863ed7f63
[gaim-migrate @ 15852]
Richard Laager <rlaager@pidgin.im>
parents:
12867
diff
changeset
|
117 | apply formatting */ |
|
16007
3d954c38cf0c
Patch from Zac West which (1) adds a message flag, PURPLE_MESSAGE_NOTIFY, used to indicate that a message is a protocol-level notification from a user ('buzz' in yahoo, 'nudge' in msn, for example) and (2) uses it along with improving the text displayed when sending/receiving buzzes and nudges. The addition of this flag means that a plugin could implement custom behavior, such as playing a sound or triggerring some other event, reliably and easily.
Evan Schoenberg <evands@pidgin.im>
parents:
15884
diff
changeset
|
118 | PURPLE_MESSAGE_IMAGES = 0x1000, /**< Message contains images */ |
|
18087
b56ec2e9dae6
add a PURPLE_MESSAGE_NO_LINKIFY to prevent things from getting linkified
Nathan Walp <nwalp@pidgin.im>
parents:
16743
diff
changeset
|
119 | PURPLE_MESSAGE_NOTIFY = 0x2000, /**< Message is a notification */ |
|
b56ec2e9dae6
add a PURPLE_MESSAGE_NO_LINKIFY to prevent things from getting linkified
Nathan Walp <nwalp@pidgin.im>
parents:
16743
diff
changeset
|
120 | PURPLE_MESSAGE_NO_LINKIFY = 0x4000 /**< Message should not be auto- |
|
b56ec2e9dae6
add a PURPLE_MESSAGE_NO_LINKIFY to prevent things from getting linkified
Nathan Walp <nwalp@pidgin.im>
parents:
16743
diff
changeset
|
121 | linkified */ |
|
10008
1de3454a0dca
[gaim-migrate @ 10925]
Mark Doliner <markdoliner@pidgin.im>
parents:
9939
diff
changeset
|
122 | |
| 15884 | 123 | } PurpleMessageFlags; |
|
6621
2a18ef3e5224
[gaim-migrate @ 7145]
Robert McQueen <robot101@debian.org>
parents:
6605
diff
changeset
|
124 | |
|
9554
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
125 | /** |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
126 | * Flags applicable to users in Chats. |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
127 | */ |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
128 | typedef enum |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
129 | { |
| 15884 | 130 | PURPLE_CBFLAGS_NONE = 0x0000, /**< No flags */ |
| 131 | PURPLE_CBFLAGS_VOICE = 0x0001, /**< Voiced user or "Participant" */ | |
| 132 | PURPLE_CBFLAGS_HALFOP = 0x0002, /**< Half-op */ | |
| 133 | PURPLE_CBFLAGS_OP = 0x0004, /**< Channel Op or Moderator */ | |
| 134 | PURPLE_CBFLAGS_FOUNDER = 0x0008, /**< Channel Founder */ | |
| 135 | PURPLE_CBFLAGS_TYPING = 0x0010, /**< Currently typing */ | |
| 11581 | 136 | |
| 15884 | 137 | } PurpleConvChatBuddyFlags; |
|
9554
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
138 | |
|
5872
754c63f29b77
[gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
5858
diff
changeset
|
139 | #include "account.h" |
|
9718
aeee69c6c784
[gaim-migrate @ 10579]
Mark Doliner <markdoliner@pidgin.im>
parents:
9627
diff
changeset
|
140 | #include "buddyicon.h" |
| 7431 | 141 | #include "log.h" |
|
5872
754c63f29b77
[gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
5858
diff
changeset
|
142 | #include "server.h" |
|
754c63f29b77
[gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
5858
diff
changeset
|
143 | |
|
754c63f29b77
[gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
5858
diff
changeset
|
144 | /** |
| 4359 | 145 | * Conversation operations and events. |
| 146 | * | |
| 147 | * Any UI representing a conversation must assign a filled-out | |
| 15884 | 148 | * PurpleConversationUiOps structure to the PurpleConversation. |
| 4359 | 149 | */ |
| 15884 | 150 | struct _PurpleConversationUiOps |
| 4359 | 151 | { |
|
19120
18082e7316a9
Document most of PurpleConversationUiOps.
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
152 | /** Called when @a conv is created (but before the @ref |
|
18082e7316a9
Document most of PurpleConversationUiOps.
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
153 | * conversation-created signal is emitted). |
|
18082e7316a9
Document most of PurpleConversationUiOps.
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
154 | */ |
| 15884 | 155 | void (*create_conversation)(PurpleConversation *conv); |
|
19120
18082e7316a9
Document most of PurpleConversationUiOps.
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
156 | |
|
18082e7316a9
Document most of PurpleConversationUiOps.
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
157 | /** Called just before @a conv is freed. */ |
| 15884 | 158 | void (*destroy_conversation)(PurpleConversation *conv); |
|
19120
18082e7316a9
Document most of PurpleConversationUiOps.
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
159 | /** Write a message to a chat. If this field is @c NULL, libpurple will |
|
18082e7316a9
Document most of PurpleConversationUiOps.
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
160 | * fall back to using #write_conv. |
|
18082e7316a9
Document most of PurpleConversationUiOps.
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
161 | * @see purple_conv_chat_write() |
|
18082e7316a9
Document most of PurpleConversationUiOps.
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
162 | */ |
| 15884 | 163 | void (*write_chat)(PurpleConversation *conv, const char *who, |
| 164 | const char *message, PurpleMessageFlags flags, | |
| 8155 | 165 | time_t mtime); |
|
19120
18082e7316a9
Document most of PurpleConversationUiOps.
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
166 | /** Write a message to an IM conversation. If this field is @c NULL, |
|
18082e7316a9
Document most of PurpleConversationUiOps.
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
167 | * libpurple will fall back to using #write_conv. |
|
18082e7316a9
Document most of PurpleConversationUiOps.
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
168 | * @see purple_conv_im_write() |
|
18082e7316a9
Document most of PurpleConversationUiOps.
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
169 | */ |
| 15884 | 170 | void (*write_im)(PurpleConversation *conv, const char *who, |
| 171 | const char *message, PurpleMessageFlags flags, | |
| 8155 | 172 | time_t mtime); |
|
19120
18082e7316a9
Document most of PurpleConversationUiOps.
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
173 | /** Write a message to a conversation. This is used rather than |
|
18082e7316a9
Document most of PurpleConversationUiOps.
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
174 | * the chat- or im-specific ops for generic messages, such as system |
|
18082e7316a9
Document most of PurpleConversationUiOps.
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
175 | * messages like "x is now know as y". |
|
18082e7316a9
Document most of PurpleConversationUiOps.
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
176 | * @see purple_conversation_write() |
|
18082e7316a9
Document most of PurpleConversationUiOps.
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
177 | */ |
|
18082e7316a9
Document most of PurpleConversationUiOps.
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
178 | void (*write_conv)(PurpleConversation *conv, |
|
18082e7316a9
Document most of PurpleConversationUiOps.
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
179 | const char *name, |
|
18082e7316a9
Document most of PurpleConversationUiOps.
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
180 | const char *alias, |
|
18082e7316a9
Document most of PurpleConversationUiOps.
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
181 | const char *message, |
|
18082e7316a9
Document most of PurpleConversationUiOps.
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
182 | PurpleMessageFlags flags, |
| 8155 | 183 | time_t mtime); |
| 4359 | 184 | |
|
19120
18082e7316a9
Document most of PurpleConversationUiOps.
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
185 | /** Add @a cbuddies to a chat. |
|
18082e7316a9
Document most of PurpleConversationUiOps.
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
186 | * @param cbuddies A @C GList of #PurpleConvChatBuddy structs. |
|
18082e7316a9
Document most of PurpleConversationUiOps.
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
187 | * @param new_arrivals Whether join notices should be shown. |
|
18082e7316a9
Document most of PurpleConversationUiOps.
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
188 | * (Join notices are actually written to the |
|
18082e7316a9
Document most of PurpleConversationUiOps.
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
189 | * conversation by #purple_conv_chat_add_users().) |
|
18082e7316a9
Document most of PurpleConversationUiOps.
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
190 | */ |
|
18082e7316a9
Document most of PurpleConversationUiOps.
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
191 | void (*chat_add_users)(PurpleConversation *conv, |
|
18082e7316a9
Document most of PurpleConversationUiOps.
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
192 | GList *cbuddies, |
|
18082e7316a9
Document most of PurpleConversationUiOps.
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
193 | gboolean new_arrivals); |
|
18082e7316a9
Document most of PurpleConversationUiOps.
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
194 | /** Rename the user in this chat named @a old_name to @a new_name. (The |
|
18082e7316a9
Document most of PurpleConversationUiOps.
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
195 | * rename message is written to the conversation by libpurple.) |
|
18082e7316a9
Document most of PurpleConversationUiOps.
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
196 | * @param new_alias @a new_name's new alias, if they have one. |
|
18082e7316a9
Document most of PurpleConversationUiOps.
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
197 | * @see purple_conv_chat_add_users() |
|
18082e7316a9
Document most of PurpleConversationUiOps.
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
198 | */ |
| 15884 | 199 | void (*chat_rename_user)(PurpleConversation *conv, const char *old_name, |
|
11485
fe334b13d1d0
[gaim-migrate @ 13727]
Peter Lawler <pidgin@bleeter.id.au>
parents:
11454
diff
changeset
|
200 | const char *new_name, const char *new_alias); |
|
19120
18082e7316a9
Document most of PurpleConversationUiOps.
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
201 | /** Remove @a users from a chat. |
|
18082e7316a9
Document most of PurpleConversationUiOps.
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
202 | * @param users A @C GList of <tt>const char *</tt>s. |
|
18082e7316a9
Document most of PurpleConversationUiOps.
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
203 | * @see purple_conv_chat_rename_user() |
|
18082e7316a9
Document most of PurpleConversationUiOps.
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
204 | */ |
| 15884 | 205 | void (*chat_remove_users)(PurpleConversation *conv, GList *users); |
|
19120
18082e7316a9
Document most of PurpleConversationUiOps.
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
206 | /** Called when a user's flags are changed. |
|
18082e7316a9
Document most of PurpleConversationUiOps.
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
207 | * @see purple_conv_chat_user_set_flags() |
|
18082e7316a9
Document most of PurpleConversationUiOps.
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
208 | */ |
| 15884 | 209 | void (*chat_update_user)(PurpleConversation *conv, const char *user); |
| 4359 | 210 | |
|
19120
18082e7316a9
Document most of PurpleConversationUiOps.
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
211 | /** Present this conversation to the user; for example, by displaying |
|
18082e7316a9
Document most of PurpleConversationUiOps.
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
212 | * the IM dialog. |
|
18082e7316a9
Document most of PurpleConversationUiOps.
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
213 | */ |
| 15884 | 214 | void (*present)(PurpleConversation *conv); |
| 4359 | 215 | |
|
19120
18082e7316a9
Document most of PurpleConversationUiOps.
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
216 | /** If this UI has a concept of focus (as in a windowing system) and |
|
18082e7316a9
Document most of PurpleConversationUiOps.
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
217 | * this conversation has the focus, return @c TRUE; otherwise, return |
|
18082e7316a9
Document most of PurpleConversationUiOps.
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
218 | * @c FALSE. |
|
18082e7316a9
Document most of PurpleConversationUiOps.
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
219 | */ |
| 15884 | 220 | gboolean (*has_focus)(PurpleConversation *conv); |
|
9260
82d7b380220a
[gaim-migrate @ 10059]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9166
diff
changeset
|
221 | |
| 10526 | 222 | /* Custom Smileys */ |
| 15884 | 223 | gboolean (*custom_smiley_add)(PurpleConversation *conv, const char *smile, gboolean remote); |
| 224 | void (*custom_smiley_write)(PurpleConversation *conv, const char *smile, | |
|
11137
cf40226ddff7
[gaim-migrate @ 13201]
Mark Doliner <markdoliner@pidgin.im>
parents:
11035
diff
changeset
|
225 | const guchar *data, gsize size); |
| 15884 | 226 | void (*custom_smiley_close)(PurpleConversation *conv, const char *smile); |
| 14582 | 227 | |
|
19120
18082e7316a9
Document most of PurpleConversationUiOps.
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
228 | /** Prompt the user for confirmation to send @a message. This function |
|
18082e7316a9
Document most of PurpleConversationUiOps.
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
229 | * should arrange for the message to be sent if the user accepts. If |
|
18082e7316a9
Document most of PurpleConversationUiOps.
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
230 | * this field is @c NULL, libpurple will fall back to using |
|
18082e7316a9
Document most of PurpleConversationUiOps.
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
231 | * #purple_request_action(). |
|
18082e7316a9
Document most of PurpleConversationUiOps.
Will Thompson <resiak@pidgin.im>
parents:
18190
diff
changeset
|
232 | */ |
| 15884 | 233 | void (*send_confirm)(PurpleConversation *conv, const char *message); |
|
16743
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
16007
diff
changeset
|
234 | |
|
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
16007
diff
changeset
|
235 | void (*_purple_reserved1)(void); |
|
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
16007
diff
changeset
|
236 | void (*_purple_reserved2)(void); |
|
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
16007
diff
changeset
|
237 | void (*_purple_reserved3)(void); |
|
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
16007
diff
changeset
|
238 | void (*_purple_reserved4)(void); |
| 4359 | 239 | }; |
| 240 | ||
| 241 | /** | |
| 242 | * Data specific to Instant Messages. | |
| 243 | */ | |
| 15884 | 244 | struct _PurpleConvIm |
| 4359 | 245 | { |
| 15884 | 246 | PurpleConversation *conv; /**< The parent conversation. */ |
| 4359 | 247 | |
| 15884 | 248 | PurpleTypingState typing_state; /**< The current typing state. */ |
|
4465
43184ae252ed
[gaim-migrate @ 4740]
Christian Hammond <chipx86@chipx86.com>
parents:
4378
diff
changeset
|
249 | guint typing_timeout; /**< The typing timer handle. */ |
|
43184ae252ed
[gaim-migrate @ 4740]
Christian Hammond <chipx86@chipx86.com>
parents:
4378
diff
changeset
|
250 | time_t type_again; /**< The type again time. */ |
|
13844
835b8f7b3d1d
[gaim-migrate @ 16295]
Mark Doliner <markdoliner@pidgin.im>
parents:
13840
diff
changeset
|
251 | guint send_typed_timeout; /**< The type again timer handle. */ |
| 4359 | 252 | |
| 15884 | 253 | PurpleBuddyIcon *icon; /**< The buddy icon. */ |
| 4359 | 254 | }; |
| 255 | ||
| 256 | /** | |
| 257 | * Data specific to Chats. | |
| 258 | */ | |
| 15884 | 259 | struct _PurpleConvChat |
| 4359 | 260 | { |
| 15884 | 261 | PurpleConversation *conv; /**< The parent conversation. */ |
| 4359 | 262 | |
|
4465
43184ae252ed
[gaim-migrate @ 4740]
Christian Hammond <chipx86@chipx86.com>
parents:
4378
diff
changeset
|
263 | GList *in_room; /**< The users in the room. */ |
|
43184ae252ed
[gaim-migrate @ 4740]
Christian Hammond <chipx86@chipx86.com>
parents:
4378
diff
changeset
|
264 | GList *ignored; /**< Ignored users. */ |
|
43184ae252ed
[gaim-migrate @ 4740]
Christian Hammond <chipx86@chipx86.com>
parents:
4378
diff
changeset
|
265 | char *who; /**< The person who set the topic. */ |
|
43184ae252ed
[gaim-migrate @ 4740]
Christian Hammond <chipx86@chipx86.com>
parents:
4378
diff
changeset
|
266 | char *topic; /**< The topic. */ |
|
43184ae252ed
[gaim-migrate @ 4740]
Christian Hammond <chipx86@chipx86.com>
parents:
4378
diff
changeset
|
267 | int id; /**< The chat ID. */ |
| 8158 | 268 | char *nick; /**< Your nick in this chat. */ |
| 8256 | 269 | |
| 270 | gboolean left; /**< We left the chat and kept the window open */ | |
| 4359 | 271 | }; |
| 272 | ||
| 273 | /** | |
|
9554
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
274 | * Data for "Chat Buddies" |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
275 | */ |
| 15884 | 276 | struct _PurpleConvChatBuddy |
|
9554
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
277 | { |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
278 | char *name; /**< The name */ |
|
14027
708c2047424f
[gaim-migrate @ 16521]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
13844
diff
changeset
|
279 | char *alias; /**< The alias */ |
|
708c2047424f
[gaim-migrate @ 16521]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
13844
diff
changeset
|
280 | char *alias_key; /**< The alias key */ |
|
708c2047424f
[gaim-migrate @ 16521]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
13844
diff
changeset
|
281 | gboolean buddy; /**< ChatBuddy is on the blist */ |
| 15884 | 282 | PurpleConvChatBuddyFlags flags; /**< Flags (ops, voice etc.) */ |
|
9554
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
283 | }; |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
284 | |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
285 | /** |
| 4359 | 286 | * A core representation of a conversation between two or more people. |
| 287 | * | |
| 11581 | 288 | * The conversation can be an IM or a chat. |
| 4359 | 289 | */ |
| 15884 | 290 | struct _PurpleConversation |
| 4359 | 291 | { |
| 15884 | 292 | PurpleConversationType type; /**< The type of conversation. */ |
| 4359 | 293 | |
| 15884 | 294 | PurpleAccount *account; /**< The user using this conversation. */ |
| 4359 | 295 | |
| 296 | ||
| 297 | char *name; /**< The name of the conversation. */ | |
| 298 | char *title; /**< The window title. */ | |
| 299 | ||
| 300 | gboolean logging; /**< The status of logging. */ | |
| 8158 | 301 | |
|
11454
a604c2097a6e
[gaim-migrate @ 13693]
Richard Laager <rlaager@pidgin.im>
parents:
11338
diff
changeset
|
302 | GList *logs; /**< This conversation's logs */ |
| 8158 | 303 | |
| 4359 | 304 | union |
| 305 | { | |
| 15884 | 306 | PurpleConvIm *im; /**< IM-specific data. */ |
| 307 | PurpleConvChat *chat; /**< Chat-specific data. */ | |
|
4378
3bef342997ef
[gaim-migrate @ 4644]
Christian Hammond <chipx86@chipx86.com>
parents:
4359
diff
changeset
|
308 | void *misc; /**< Misc. data. */ |
| 4359 | 309 | |
| 310 | } u; | |
|
4465
43184ae252ed
[gaim-migrate @ 4740]
Christian Hammond <chipx86@chipx86.com>
parents:
4378
diff
changeset
|
311 | |
| 15884 | 312 | PurpleConversationUiOps *ui_ops; /**< UI-specific operations. */ |
|
4465
43184ae252ed
[gaim-migrate @ 4740]
Christian Hammond <chipx86@chipx86.com>
parents:
4378
diff
changeset
|
313 | void *ui_data; /**< UI-specific data. */ |
|
4876
b6ec886c8c77
[gaim-migrate @ 5206]
Christian Hammond <chipx86@chipx86.com>
parents:
4491
diff
changeset
|
314 | |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
315 | GHashTable *data; /**< Plugin-specific data. */ |
|
10849
476d68d7a435
[gaim-migrate @ 12521]
Richard Laager <rlaager@pidgin.im>
parents:
10827
diff
changeset
|
316 | |
| 15884 | 317 | PurpleConnectionFlags features; /**< The supported features */ |
| 10665 | 318 | |
| 4359 | 319 | }; |
| 320 | ||
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
321 | #ifdef __cplusplus |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
322 | extern "C" { |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
323 | #endif |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
324 | |
| 4359 | 325 | /**************************************************************************/ |
| 326 | /** @name Conversation API */ | |
| 327 | /**************************************************************************/ | |
| 328 | /*@{*/ | |
| 329 | ||
| 330 | /** | |
| 331 | * Creates a new conversation of the specified type. | |
| 332 | * | |
|
6720
cdc5348dd848
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6622
diff
changeset
|
333 | * @param type The type of conversation. |
| 15884 | 334 | * @param account The account opening the conversation window on the purple |
|
6720
cdc5348dd848
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6622
diff
changeset
|
335 | * user's end. |
|
cdc5348dd848
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6622
diff
changeset
|
336 | * @param name The name of the conversation. |
| 4359 | 337 | * |
| 338 | * @return The new conversation. | |
| 339 | */ | |
| 15884 | 340 | PurpleConversation *purple_conversation_new(PurpleConversationType type, |
| 341 | PurpleAccount *account, | |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
342 | const char *name); |
| 4359 | 343 | |
| 344 | /** | |
| 345 | * Destroys the specified conversation and removes it from the parent | |
| 346 | * window. | |
| 347 | * | |
| 348 | * If this conversation is the only one contained in the parent window, | |
| 349 | * that window is also destroyed. | |
| 350 | * | |
| 351 | * @param conv The conversation to destroy. | |
| 352 | */ | |
| 15884 | 353 | void purple_conversation_destroy(PurpleConversation *conv); |
| 4359 | 354 | |
|
12624
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12618
diff
changeset
|
355 | |
|
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12618
diff
changeset
|
356 | /** |
|
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12618
diff
changeset
|
357 | * Present a conversation to the user. This allows core code to initiate a |
|
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12618
diff
changeset
|
358 | * conversation by displaying the IM dialog. |
|
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12618
diff
changeset
|
359 | * @param conv The conversation to present |
|
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12618
diff
changeset
|
360 | */ |
| 15884 | 361 | void purple_conversation_present(PurpleConversation *conv); |
|
12624
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12618
diff
changeset
|
362 | |
|
c1c92f08976b
[gaim-migrate @ 14960]
Christopher O'Brien <siege@pidgin.im>
parents:
12618
diff
changeset
|
363 | |
| 4359 | 364 | /** |
| 365 | * Returns the specified conversation's type. | |
| 366 | * | |
| 367 | * @param conv The conversation. | |
| 368 | * | |
| 369 | * @return The conversation's type. | |
| 370 | */ | |
| 15884 | 371 | PurpleConversationType purple_conversation_get_type(const PurpleConversation *conv); |
| 4359 | 372 | |
| 373 | /** | |
| 374 | * Sets the specified conversation's UI operations structure. | |
| 375 | * | |
| 376 | * @param conv The conversation. | |
| 377 | * @param ops The UI conversation operations structure. | |
| 378 | */ | |
| 15884 | 379 | void purple_conversation_set_ui_ops(PurpleConversation *conv, |
| 380 | PurpleConversationUiOps *ops); | |
| 4359 | 381 | |
| 382 | /** | |
| 11581 | 383 | * Sets the default conversation UI operations structure. |
| 384 | * | |
| 385 | * @param ops The UI conversation operations structure. | |
| 386 | */ | |
| 15884 | 387 | void purple_conversations_set_ui_ops(PurpleConversationUiOps *ops); |
| 11581 | 388 | |
| 389 | /** | |
| 4359 | 390 | * Returns the specified conversation's UI operations structure. |
|
6585
8fcd3639e544
[gaim-migrate @ 7107]
Christian Hammond <chipx86@chipx86.com>
parents:
6488
diff
changeset
|
391 | * |
| 4359 | 392 | * @param conv The conversation. |
| 393 | * | |
| 394 | * @return The operations structure. | |
| 395 | */ | |
| 15884 | 396 | PurpleConversationUiOps *purple_conversation_get_ui_ops( |
| 397 | const PurpleConversation *conv); | |
| 4359 | 398 | |
| 399 | /** | |
| 15884 | 400 | * Sets the specified conversation's purple_account. |
| 4359 | 401 | * |
| 15884 | 402 | * This purple_account represents the user using purple, not the person the user |
| 4359 | 403 | * is having a conversation/chat/flame with. |
| 404 | * | |
| 405 | * @param conv The conversation. | |
| 15884 | 406 | * @param account The purple_account. |
| 4359 | 407 | */ |
| 15884 | 408 | void purple_conversation_set_account(PurpleConversation *conv, |
| 409 | PurpleAccount *account); | |
| 4359 | 410 | |
| 411 | /** | |
| 15884 | 412 | * Returns the specified conversation's purple_account. |
| 4359 | 413 | * |
| 15884 | 414 | * This purple_account represents the user using purple, not the person the user |
| 4359 | 415 | * is having a conversation/chat/flame with. |
| 416 | * | |
| 417 | * @param conv The conversation. | |
| 418 | * | |
| 15884 | 419 | * @return The conversation's purple_account. |
| 4359 | 420 | */ |
| 15884 | 421 | PurpleAccount *purple_conversation_get_account(const PurpleConversation *conv); |
| 4359 | 422 | |
| 423 | /** | |
| 15884 | 424 | * Returns the specified conversation's purple_connection. |
| 4359 | 425 | * |
| 15884 | 426 | * This is the same as purple_conversation_get_user(conv)->gc. |
| 4359 | 427 | * |
| 428 | * @param conv The conversation. | |
| 429 | * | |
| 15884 | 430 | * @return The conversation's purple_connection. |
| 4359 | 431 | */ |
| 15884 | 432 | PurpleConnection *purple_conversation_get_gc(const PurpleConversation *conv); |
| 4359 | 433 | |
| 434 | /** | |
| 435 | * Sets the specified conversation's title. | |
| 436 | * | |
| 437 | * @param conv The conversation. | |
| 438 | * @param title The title. | |
| 439 | */ | |
| 15884 | 440 | void purple_conversation_set_title(PurpleConversation *conv, const char *title); |
| 4359 | 441 | |
| 442 | /** | |
| 443 | * Returns the specified conversation's title. | |
| 444 | * | |
|
6720
cdc5348dd848
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6622
diff
changeset
|
445 | * @param conv The conversation. |
| 4359 | 446 | * |
| 447 | * @return The title. | |
| 448 | */ | |
| 15884 | 449 | const char *purple_conversation_get_title(const PurpleConversation *conv); |
| 4359 | 450 | |
| 451 | /** | |
| 452 | * Automatically sets the specified conversation's title. | |
| 453 | * | |
| 454 | * This function takes OPT_IM_ALIAS_TAB into account, as well as the | |
| 455 | * user's alias. | |
| 456 | * | |
| 457 | * @param conv The conversation. | |
| 458 | */ | |
| 15884 | 459 | void purple_conversation_autoset_title(PurpleConversation *conv); |
| 4359 | 460 | |
| 461 | /** | |
|
7256
311c8febfc92
[gaim-migrate @ 7833]
Christian Hammond <chipx86@chipx86.com>
parents:
7122
diff
changeset
|
462 | * Sets the specified conversation's name. |
|
311c8febfc92
[gaim-migrate @ 7833]
Christian Hammond <chipx86@chipx86.com>
parents:
7122
diff
changeset
|
463 | * |
|
311c8febfc92
[gaim-migrate @ 7833]
Christian Hammond <chipx86@chipx86.com>
parents:
7122
diff
changeset
|
464 | * @param conv The conversation. |
|
311c8febfc92
[gaim-migrate @ 7833]
Christian Hammond <chipx86@chipx86.com>
parents:
7122
diff
changeset
|
465 | * @param name The conversation's name. |
|
311c8febfc92
[gaim-migrate @ 7833]
Christian Hammond <chipx86@chipx86.com>
parents:
7122
diff
changeset
|
466 | */ |
| 15884 | 467 | void purple_conversation_set_name(PurpleConversation *conv, const char *name); |
|
7256
311c8febfc92
[gaim-migrate @ 7833]
Christian Hammond <chipx86@chipx86.com>
parents:
7122
diff
changeset
|
468 | |
|
311c8febfc92
[gaim-migrate @ 7833]
Christian Hammond <chipx86@chipx86.com>
parents:
7122
diff
changeset
|
469 | /** |
| 4359 | 470 | * Returns the specified conversation's name. |
| 471 | * | |
| 472 | * @param conv The conversation. | |
| 473 | * | |
| 474 | * @return The conversation's name. | |
| 475 | */ | |
| 15884 | 476 | const char *purple_conversation_get_name(const PurpleConversation *conv); |
| 4359 | 477 | |
| 478 | /** | |
| 479 | * Enables or disables logging for this conversation. | |
| 480 | * | |
|
6720
cdc5348dd848
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6622
diff
changeset
|
481 | * @param conv The conversation. |
|
cdc5348dd848
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6622
diff
changeset
|
482 | * @param log @c TRUE if logging should be enabled, or @c FALSE otherwise. |
| 4359 | 483 | */ |
| 15884 | 484 | void purple_conversation_set_logging(PurpleConversation *conv, gboolean log); |
| 4359 | 485 | |
| 486 | /** | |
| 487 | * Returns whether or not logging is enabled for this conversation. | |
| 488 | * | |
|
6720
cdc5348dd848
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6622
diff
changeset
|
489 | * @param conv The conversation. |
|
cdc5348dd848
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6622
diff
changeset
|
490 | * |
| 4359 | 491 | * @return @c TRUE if logging is enabled, or @c FALSE otherwise. |
| 492 | */ | |
| 15884 | 493 | gboolean purple_conversation_is_logging(const PurpleConversation *conv); |
| 4359 | 494 | |
| 495 | /** | |
|
11672
018c70c8134c
[gaim-migrate @ 13958]
Richard Laager <rlaager@pidgin.im>
parents:
11664
diff
changeset
|
496 | * Closes any open logs for this conversation. |
|
018c70c8134c
[gaim-migrate @ 13958]
Richard Laager <rlaager@pidgin.im>
parents:
11664
diff
changeset
|
497 | * |
|
018c70c8134c
[gaim-migrate @ 13958]
Richard Laager <rlaager@pidgin.im>
parents:
11664
diff
changeset
|
498 | * Note that new logs will be opened as necessary (e.g. upon receipt of a |
|
018c70c8134c
[gaim-migrate @ 13958]
Richard Laager <rlaager@pidgin.im>
parents:
11664
diff
changeset
|
499 | * message, if the conversation has logging enabled. To disable logging for |
| 15884 | 500 | * the remainder of the conversation, use purple_conversation_set_logging(). |
|
11672
018c70c8134c
[gaim-migrate @ 13958]
Richard Laager <rlaager@pidgin.im>
parents:
11664
diff
changeset
|
501 | * |
|
018c70c8134c
[gaim-migrate @ 13958]
Richard Laager <rlaager@pidgin.im>
parents:
11664
diff
changeset
|
502 | * @param conv The conversation. |
|
018c70c8134c
[gaim-migrate @ 13958]
Richard Laager <rlaager@pidgin.im>
parents:
11664
diff
changeset
|
503 | */ |
| 15884 | 504 | void purple_conversation_close_logs(PurpleConversation *conv); |
|
11672
018c70c8134c
[gaim-migrate @ 13958]
Richard Laager <rlaager@pidgin.im>
parents:
11664
diff
changeset
|
505 | |
|
018c70c8134c
[gaim-migrate @ 13958]
Richard Laager <rlaager@pidgin.im>
parents:
11664
diff
changeset
|
506 | /** |
| 4359 | 507 | * Returns the specified conversation's IM-specific data. |
| 508 | * | |
| 15884 | 509 | * If the conversation type is not PURPLE_CONV_TYPE_IM, this will return @c NULL. |
| 4359 | 510 | * |
| 511 | * @param conv The conversation. | |
| 512 | * | |
| 513 | * @return The IM-specific data. | |
| 514 | */ | |
| 15884 | 515 | PurpleConvIm *purple_conversation_get_im_data(const PurpleConversation *conv); |
| 4359 | 516 | |
| 15884 | 517 | #define PURPLE_CONV_IM(c) (purple_conversation_get_im_data(c)) |
| 4359 | 518 | |
| 519 | /** | |
| 520 | * Returns the specified conversation's chat-specific data. | |
| 521 | * | |
| 15884 | 522 | * If the conversation type is not PURPLE_CONV_TYPE_CHAT, this will return @c NULL. |
| 4359 | 523 | * |
| 524 | * @param conv The conversation. | |
| 525 | * | |
| 526 | * @return The chat-specific data. | |
| 527 | */ | |
| 15884 | 528 | PurpleConvChat *purple_conversation_get_chat_data(const PurpleConversation *conv); |
| 4359 | 529 | |
| 15884 | 530 | #define PURPLE_CONV_CHAT(c) (purple_conversation_get_chat_data(c)) |
| 4359 | 531 | |
| 532 | /** | |
|
4877
7d1f4381fed0
[gaim-migrate @ 5207]
Christian Hammond <chipx86@chipx86.com>
parents:
4876
diff
changeset
|
533 | * Sets extra data for a conversation. |
|
6585
8fcd3639e544
[gaim-migrate @ 7107]
Christian Hammond <chipx86@chipx86.com>
parents:
6488
diff
changeset
|
534 | * |
|
4876
b6ec886c8c77
[gaim-migrate @ 5206]
Christian Hammond <chipx86@chipx86.com>
parents:
4491
diff
changeset
|
535 | * @param conv The conversation. |
|
b6ec886c8c77
[gaim-migrate @ 5206]
Christian Hammond <chipx86@chipx86.com>
parents:
4491
diff
changeset
|
536 | * @param key The unique key. |
|
b6ec886c8c77
[gaim-migrate @ 5206]
Christian Hammond <chipx86@chipx86.com>
parents:
4491
diff
changeset
|
537 | * @param data The data to assign. |
|
b6ec886c8c77
[gaim-migrate @ 5206]
Christian Hammond <chipx86@chipx86.com>
parents:
4491
diff
changeset
|
538 | */ |
| 15884 | 539 | void purple_conversation_set_data(PurpleConversation *conv, const char *key, |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
540 | gpointer data); |
|
4876
b6ec886c8c77
[gaim-migrate @ 5206]
Christian Hammond <chipx86@chipx86.com>
parents:
4491
diff
changeset
|
541 | |
|
b6ec886c8c77
[gaim-migrate @ 5206]
Christian Hammond <chipx86@chipx86.com>
parents:
4491
diff
changeset
|
542 | /** |
|
4877
7d1f4381fed0
[gaim-migrate @ 5207]
Christian Hammond <chipx86@chipx86.com>
parents:
4876
diff
changeset
|
543 | * Returns extra data in a conversation. |
|
4876
b6ec886c8c77
[gaim-migrate @ 5206]
Christian Hammond <chipx86@chipx86.com>
parents:
4491
diff
changeset
|
544 | * |
|
b6ec886c8c77
[gaim-migrate @ 5206]
Christian Hammond <chipx86@chipx86.com>
parents:
4491
diff
changeset
|
545 | * @param conv The conversation. |
|
b6ec886c8c77
[gaim-migrate @ 5206]
Christian Hammond <chipx86@chipx86.com>
parents:
4491
diff
changeset
|
546 | * @param key The unqiue key. |
|
b6ec886c8c77
[gaim-migrate @ 5206]
Christian Hammond <chipx86@chipx86.com>
parents:
4491
diff
changeset
|
547 | * |
|
b6ec886c8c77
[gaim-migrate @ 5206]
Christian Hammond <chipx86@chipx86.com>
parents:
4491
diff
changeset
|
548 | * @return The data associated with the key. |
|
b6ec886c8c77
[gaim-migrate @ 5206]
Christian Hammond <chipx86@chipx86.com>
parents:
4491
diff
changeset
|
549 | */ |
| 15884 | 550 | gpointer purple_conversation_get_data(PurpleConversation *conv, const char *key); |
|
4876
b6ec886c8c77
[gaim-migrate @ 5206]
Christian Hammond <chipx86@chipx86.com>
parents:
4491
diff
changeset
|
551 | |
|
b6ec886c8c77
[gaim-migrate @ 5206]
Christian Hammond <chipx86@chipx86.com>
parents:
4491
diff
changeset
|
552 | /** |
| 4359 | 553 | * Returns a list of all conversations. |
| 554 | * | |
| 555 | * This list includes both IMs and chats. | |
| 556 | * | |
|
18190
bcf28ef7e8ff
Re-fix the DBus list handling code by killing const GList* / const GSList*
Richard Laager <rlaager@pidgin.im>
parents:
18122
diff
changeset
|
557 | * @constreturn A GList of all conversations. |
| 4359 | 558 | */ |
|
18122
9bf9970c1b6a
disapproval of revision '2d8ea56b90971e7851442d96b7d74ecb4f052126'
Richard Laager <rlaager@pidgin.im>
parents:
18121
diff
changeset
|
559 | GList *purple_get_conversations(void); |
| 4359 | 560 | |
| 561 | /** | |
| 562 | * Returns a list of all IMs. | |
| 563 | * | |
|
18190
bcf28ef7e8ff
Re-fix the DBus list handling code by killing const GList* / const GSList*
Richard Laager <rlaager@pidgin.im>
parents:
18122
diff
changeset
|
564 | * @constreturn A GList of all IMs. |
| 4359 | 565 | */ |
|
18122
9bf9970c1b6a
disapproval of revision '2d8ea56b90971e7851442d96b7d74ecb4f052126'
Richard Laager <rlaager@pidgin.im>
parents:
18121
diff
changeset
|
566 | GList *purple_get_ims(void); |
| 4359 | 567 | |
| 568 | /** | |
| 569 | * Returns a list of all chats. | |
| 570 | * | |
|
18190
bcf28ef7e8ff
Re-fix the DBus list handling code by killing const GList* / const GSList*
Richard Laager <rlaager@pidgin.im>
parents:
18122
diff
changeset
|
571 | * @constreturn A GList of all chats. |
| 4359 | 572 | */ |
|
18122
9bf9970c1b6a
disapproval of revision '2d8ea56b90971e7851442d96b7d74ecb4f052126'
Richard Laager <rlaager@pidgin.im>
parents:
18121
diff
changeset
|
573 | GList *purple_get_chats(void); |
| 4359 | 574 | |
| 575 | /** | |
| 15884 | 576 | * Finds a conversation with the specified type, name, and Purple account. |
| 4359 | 577 | * |
|
10246
aa5bff72f94c
[gaim-migrate @ 11386]
Mark Doliner <markdoliner@pidgin.im>
parents:
10008
diff
changeset
|
578 | * @param type The type of the conversation. |
| 4359 | 579 | * @param name The name of the conversation. |
| 15884 | 580 | * @param account The purple_account associated with the conversation. |
| 4359 | 581 | * |
| 582 | * @return The conversation if found, or @c NULL otherwise. | |
| 583 | */ | |
| 15884 | 584 | PurpleConversation *purple_find_conversation_with_account( |
| 585 | PurpleConversationType type, const char *name, | |
| 586 | const PurpleAccount *account); | |
| 4359 | 587 | |
| 588 | /** | |
| 589 | * Writes to a conversation window. | |
| 590 | * | |
| 591 | * This function should not be used to write IM or chat messages. Use | |
| 15884 | 592 | * purple_conv_im_write() and purple_conv_chat_write() instead. Those functions will |
| 4359 | 593 | * most likely call this anyway, but they may do their own formatting, |
| 594 | * sound playback, etc. | |
| 595 | * | |
| 596 | * This can be used to write generic messages, such as "so and so closed | |
| 597 | * the conversation window." | |
| 598 | * | |
| 599 | * @param conv The conversation. | |
| 600 | * @param who The user who sent the message. | |
| 601 | * @param message The message. | |
|
6621
2a18ef3e5224
[gaim-migrate @ 7145]
Robert McQueen <robot101@debian.org>
parents:
6605
diff
changeset
|
602 | * @param flags The message flags. |
| 4359 | 603 | * @param mtime The time the message was sent. |
| 604 | * | |
| 15884 | 605 | * @see purple_conv_im_write() |
| 606 | * @see purple_conv_chat_write() | |
| 4359 | 607 | */ |
| 15884 | 608 | void purple_conversation_write(PurpleConversation *conv, const char *who, |
| 609 | const char *message, PurpleMessageFlags flags, | |
| 10665 | 610 | time_t mtime); |
| 611 | ||
| 612 | ||
| 613 | /** | |
| 614 | Set the features as supported for the given conversation. | |
| 615 | @param conv The conversation | |
| 616 | @param features Bitset defining supported features | |
| 617 | */ | |
| 15884 | 618 | void purple_conversation_set_features(PurpleConversation *conv, |
| 619 | PurpleConnectionFlags features); | |
| 10665 | 620 | |
| 621 | ||
| 622 | /** | |
| 623 | Get the features supported by the given conversation. | |
| 624 | @param conv The conversation | |
| 625 | */ | |
| 15884 | 626 | PurpleConnectionFlags purple_conversation_get_features(PurpleConversation *conv); |
| 4359 | 627 | |
| 628 | /** | |
|
9260
82d7b380220a
[gaim-migrate @ 10059]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9166
diff
changeset
|
629 | * Determines if a conversation has focus |
|
82d7b380220a
[gaim-migrate @ 10059]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9166
diff
changeset
|
630 | * |
|
82d7b380220a
[gaim-migrate @ 10059]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9166
diff
changeset
|
631 | * @param conv The conversation. |
|
82d7b380220a
[gaim-migrate @ 10059]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9166
diff
changeset
|
632 | * |
|
82d7b380220a
[gaim-migrate @ 10059]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9166
diff
changeset
|
633 | * @return @c TRUE if the conversation has focus, @c FALSE if |
|
82d7b380220a
[gaim-migrate @ 10059]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9166
diff
changeset
|
634 | * it does not or the UI does not have a concept of conversation focus |
|
82d7b380220a
[gaim-migrate @ 10059]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9166
diff
changeset
|
635 | */ |
| 15884 | 636 | gboolean purple_conversation_has_focus(PurpleConversation *conv); |
|
9260
82d7b380220a
[gaim-migrate @ 10059]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9166
diff
changeset
|
637 | |
|
82d7b380220a
[gaim-migrate @ 10059]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9166
diff
changeset
|
638 | /** |
| 4359 | 639 | * Updates the visual status and UI of a conversation. |
| 640 | * | |
| 641 | * @param conv The conversation. | |
| 642 | * @param type The update type. | |
| 643 | */ | |
| 15884 | 644 | void purple_conversation_update(PurpleConversation *conv, PurpleConvUpdateType type); |
| 4359 | 645 | |
| 646 | /** | |
| 647 | * Calls a function on each conversation. | |
| 648 | * | |
| 649 | * @param func The function. | |
| 650 | */ | |
| 15884 | 651 | void purple_conversation_foreach(void (*func)(PurpleConversation *conv)); |
| 4359 | 652 | |
| 653 | /*@}*/ | |
| 654 | ||
| 655 | ||
| 656 | /**************************************************************************/ | |
| 657 | /** @name IM Conversation API */ | |
| 658 | /**************************************************************************/ | |
| 659 | /*@{*/ | |
| 660 | ||
| 661 | /** | |
| 662 | * Gets an IM's parent conversation. | |
| 663 | * | |
| 664 | * @param im The IM. | |
| 665 | * | |
| 666 | * @return The parent conversation. | |
| 667 | */ | |
| 15884 | 668 | PurpleConversation *purple_conv_im_get_conversation(const PurpleConvIm *im); |
| 4359 | 669 | |
| 670 | /** | |
|
6846
f814f02dca87
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
671 | * Sets the IM's buddy icon. |
|
f814f02dca87
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
672 | * |
| 15884 | 673 | * This should only be called from within Purple. You probably want to |
| 674 | * call purple_buddy_icon_set_data(). | |
|
6846
f814f02dca87
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
675 | * |
|
f814f02dca87
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
676 | * @param im The IM. |
|
f814f02dca87
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
677 | * @param icon The buddy icon. |
|
f814f02dca87
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
678 | * |
| 15884 | 679 | * @see purple_buddy_icon_set_data() |
|
6846
f814f02dca87
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
680 | */ |
| 15884 | 681 | void purple_conv_im_set_icon(PurpleConvIm *im, PurpleBuddyIcon *icon); |
|
6846
f814f02dca87
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
682 | |
|
f814f02dca87
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
683 | /** |
|
f814f02dca87
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
684 | * Returns the IM's buddy icon. |
|
f814f02dca87
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
685 | * |
|
f814f02dca87
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
686 | * @param im The IM. |
|
f814f02dca87
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
687 | * |
|
f814f02dca87
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
688 | * @return The buddy icon. |
|
f814f02dca87
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
689 | */ |
| 15884 | 690 | PurpleBuddyIcon *purple_conv_im_get_icon(const PurpleConvIm *im); |
|
6846
f814f02dca87
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
691 | |
|
f814f02dca87
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
692 | /** |
| 4359 | 693 | * Sets the IM's typing state. |
| 694 | * | |
| 695 | * @param im The IM. | |
| 696 | * @param state The typing state. | |
| 697 | */ | |
| 15884 | 698 | void purple_conv_im_set_typing_state(PurpleConvIm *im, PurpleTypingState state); |
| 4359 | 699 | |
| 700 | /** | |
| 701 | * Returns the IM's typing state. | |
| 702 | * | |
| 703 | * @param im The IM. | |
| 704 | * | |
| 705 | * @return The IM's typing state. | |
| 706 | */ | |
| 15884 | 707 | PurpleTypingState purple_conv_im_get_typing_state(const PurpleConvIm *im); |
| 4359 | 708 | |
| 709 | /** | |
| 710 | * Starts the IM's typing timeout. | |
| 711 | * | |
| 712 | * @param im The IM. | |
| 713 | * @param timeout The timeout. | |
| 714 | */ | |
| 15884 | 715 | void purple_conv_im_start_typing_timeout(PurpleConvIm *im, int timeout); |
| 4359 | 716 | |
| 717 | /** | |
| 718 | * Stops the IM's typing timeout. | |
| 719 | * | |
| 720 | * @param im The IM. | |
| 721 | */ | |
| 15884 | 722 | void purple_conv_im_stop_typing_timeout(PurpleConvIm *im); |
| 4359 | 723 | |
| 724 | /** | |
| 725 | * Returns the IM's typing timeout. | |
| 726 | * | |
| 727 | * @param im The IM. | |
| 728 | * | |
| 729 | * @return The timeout. | |
| 730 | */ | |
| 15884 | 731 | guint purple_conv_im_get_typing_timeout(const PurpleConvIm *im); |
| 4359 | 732 | |
| 733 | /** | |
| 15884 | 734 | * Sets the quiet-time when no PURPLE_TYPING messages will be sent. |
|
13844
835b8f7b3d1d
[gaim-migrate @ 16295]
Mark Doliner <markdoliner@pidgin.im>
parents:
13840
diff
changeset
|
735 | * Few protocols need this (maybe only MSN). If the user is still |
| 15884 | 736 | * typing after this quiet-period, then another PURPLE_TYPING message |
|
13844
835b8f7b3d1d
[gaim-migrate @ 16295]
Mark Doliner <markdoliner@pidgin.im>
parents:
13840
diff
changeset
|
737 | * will be sent. |
| 4359 | 738 | * |
| 739 | * @param im The IM. | |
|
13844
835b8f7b3d1d
[gaim-migrate @ 16295]
Mark Doliner <markdoliner@pidgin.im>
parents:
13840
diff
changeset
|
740 | * @param val The number of seconds to wait before allowing another |
| 15884 | 741 | * PURPLE_TYPING message to be sent to the user. Or 0 to |
| 742 | * not send another PURPLE_TYPING message. | |
| 4359 | 743 | */ |
| 15884 | 744 | void purple_conv_im_set_type_again(PurpleConvIm *im, unsigned int val); |
| 4359 | 745 | |
| 746 | /** | |
| 15884 | 747 | * Returns the time after which another PURPLE_TYPING message should be sent. |
| 4359 | 748 | * |
| 749 | * @param im The IM. | |
| 750 | * | |
|
13844
835b8f7b3d1d
[gaim-migrate @ 16295]
Mark Doliner <markdoliner@pidgin.im>
parents:
13840
diff
changeset
|
751 | * @return The time in seconds since the epoch. Or 0 if no additional |
| 15884 | 752 | * PURPLE_TYPING message should be sent. |
| 4359 | 753 | */ |
| 15884 | 754 | time_t purple_conv_im_get_type_again(const PurpleConvIm *im); |
| 4359 | 755 | |
| 756 | /** | |
| 757 | * Starts the IM's type again timeout. | |
| 758 | * | |
| 759 | * @param im The IM. | |
| 760 | */ | |
| 15884 | 761 | void purple_conv_im_start_send_typed_timeout(PurpleConvIm *im); |
| 4359 | 762 | |
| 763 | /** | |
| 764 | * Stops the IM's type again timeout. | |
| 765 | * | |
| 766 | * @param im The IM. | |
| 767 | */ | |
| 15884 | 768 | void purple_conv_im_stop_send_typed_timeout(PurpleConvIm *im); |
| 4359 | 769 | |
| 770 | /** | |
| 771 | * Returns the IM's type again timeout interval. | |
| 772 | * | |
| 773 | * @param im The IM. | |
| 774 | * | |
| 775 | * @return The type again timeout interval. | |
| 776 | */ | |
| 15884 | 777 | guint purple_conv_im_get_send_typed_timeout(const PurpleConvIm *im); |
| 4359 | 778 | |
| 779 | /** | |
| 780 | * Updates the visual typing notification for an IM conversation. | |
| 781 | * | |
| 782 | * @param im The IM. | |
| 783 | */ | |
| 15884 | 784 | void purple_conv_im_update_typing(PurpleConvIm *im); |
| 4359 | 785 | |
| 786 | /** | |
| 787 | * Writes to an IM. | |
| 788 | * | |
| 789 | * @param im The IM. | |
| 790 | * @param who The user who sent the message. | |
| 791 | * @param message The message to write. | |
|
6621
2a18ef3e5224
[gaim-migrate @ 7145]
Robert McQueen <robot101@debian.org>
parents:
6605
diff
changeset
|
792 | * @param flags The message flags. |
| 4359 | 793 | * @param mtime The time the message was sent. |
| 794 | */ | |
| 15884 | 795 | void purple_conv_im_write(PurpleConvIm *im, const char *who, |
| 796 | const char *message, PurpleMessageFlags flags, | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
797 | time_t mtime); |
| 4359 | 798 | |
| 799 | /** | |
| 9627 | 800 | * Presents an IM-error to the user |
| 11581 | 801 | * |
| 9627 | 802 | * This is a helper function to find a conversation, write an error to it, and |
| 803 | * raise the window. If a conversation with this user doesn't already exist, | |
| 804 | * the function will return FALSE and the calling function can attempt to present | |
| 15884 | 805 | * the error another way (purple_notify_error, most likely) |
| 9627 | 806 | * |
| 807 | * @param who The user this error is about | |
| 808 | * @param account The account this error is on | |
| 809 | * @param what The error | |
| 810 | * @return TRUE if the error was presented, else FALSE | |
| 811 | */ | |
| 15884 | 812 | gboolean purple_conv_present_error(const char *who, PurpleAccount *account, const char *what); |
| 9627 | 813 | |
| 814 | /** | |
| 4359 | 815 | * Sends a message to this IM conversation. |
| 816 | * | |
| 817 | * @param im The IM. | |
| 818 | * @param message The message to send. | |
| 819 | */ | |
| 15884 | 820 | void purple_conv_im_send(PurpleConvIm *im, const char *message); |
| 4359 | 821 | |
| 10526 | 822 | /** |
| 14582 | 823 | * Sends a message to a conversation after confirming with |
| 824 | * the user. | |
| 825 | * | |
| 826 | * This function is intended for use in cases where the user | |
| 827 | * hasn't explicitly and knowingly caused a message to be sent. | |
| 828 | * The confirmation ensures that the user isn't sending a | |
| 829 | * message by mistake. | |
| 830 | * | |
| 831 | * @param conv The conversation. | |
| 832 | * @param message The message to send. | |
| 833 | */ | |
| 15884 | 834 | void purple_conv_send_confirm(PurpleConversation *conv, const char *message); |
| 14582 | 835 | |
| 836 | /** | |
|
11921
fe74264ce36c
[gaim-migrate @ 14212]
Evan Schoenberg <evands@pidgin.im>
parents:
11869
diff
changeset
|
837 | * Sends a message to this IM conversation with specified flags. |
|
fe74264ce36c
[gaim-migrate @ 14212]
Evan Schoenberg <evands@pidgin.im>
parents:
11869
diff
changeset
|
838 | * |
|
fe74264ce36c
[gaim-migrate @ 14212]
Evan Schoenberg <evands@pidgin.im>
parents:
11869
diff
changeset
|
839 | * @param im The IM. |
|
fe74264ce36c
[gaim-migrate @ 14212]
Evan Schoenberg <evands@pidgin.im>
parents:
11869
diff
changeset
|
840 | * @param message The message to send. |
| 15884 | 841 | * @param flags The PurpleMessageFlags flags to use in addition to PURPLE_MESSAGE_SEND. |
|
11921
fe74264ce36c
[gaim-migrate @ 14212]
Evan Schoenberg <evands@pidgin.im>
parents:
11869
diff
changeset
|
842 | */ |
| 15884 | 843 | void purple_conv_im_send_with_flags(PurpleConvIm *im, const char *message, PurpleMessageFlags flags); |
|
11921
fe74264ce36c
[gaim-migrate @ 14212]
Evan Schoenberg <evands@pidgin.im>
parents:
11869
diff
changeset
|
844 | |
|
fe74264ce36c
[gaim-migrate @ 14212]
Evan Schoenberg <evands@pidgin.im>
parents:
11869
diff
changeset
|
845 | /** |
| 10528 | 846 | * Adds a smiley to the conversation's smiley tree. If this returns |
| 15884 | 847 | * @c TRUE you should call purple_conv_custom_smiley_write() one or more |
| 848 | * times, and then purple_conv_custom_smiley_close(). If this returns | |
| 10528 | 849 | * @c FALSE, either the conv or smile were invalid, or the icon was |
| 850 | * found in the cache. In either case, calling write or close would | |
| 851 | * be an error. | |
| 10526 | 852 | * |
| 853 | * @param conv The conversation to associate the smiley with. | |
| 854 | * @param smile The text associated with the smiley | |
| 855 | * @param cksum_type The type of checksum. | |
| 856 | * @param chksum The checksum, as a NUL terminated base64 string. | |
|
12618
b83b6bab0703
[gaim-migrate @ 14954]
Richard Laager <rlaager@pidgin.im>
parents:
12463
diff
changeset
|
857 | * @param remote @c TRUE if the custom smiley is set by the remote user (buddy). |
| 10528 | 858 | * @return @c TRUE if an icon is expected, else FALSE. Note that |
| 15884 | 859 | * it is an error to never call purple_conv_custom_smiley_close if |
| 10526 | 860 | * this function returns @c TRUE, but an error to call it if |
| 861 | * @c FALSE is returned. | |
| 862 | */ | |
| 863 | ||
| 15884 | 864 | gboolean purple_conv_custom_smiley_add(PurpleConversation *conv, const char *smile, |
|
12618
b83b6bab0703
[gaim-migrate @ 14954]
Richard Laager <rlaager@pidgin.im>
parents:
12463
diff
changeset
|
865 | const char *cksum_type, const char *chksum, |
|
b83b6bab0703
[gaim-migrate @ 14954]
Richard Laager <rlaager@pidgin.im>
parents:
12463
diff
changeset
|
866 | gboolean remote); |
| 10526 | 867 | |
| 868 | ||
| 869 | /** | |
| 870 | * Updates the image associated with the current smiley. | |
| 871 | * | |
| 872 | * @param conv The conversation associated with the smiley. | |
| 873 | * @param smile The text associated with the smiley. | |
| 874 | * @param data The actual image data. | |
| 875 | * @param size The length of the data. | |
| 876 | */ | |
| 877 | ||
| 15884 | 878 | void purple_conv_custom_smiley_write(PurpleConversation *conv, |
|
11137
cf40226ddff7
[gaim-migrate @ 13201]
Mark Doliner <markdoliner@pidgin.im>
parents:
11035
diff
changeset
|
879 | const char *smile, |
|
cf40226ddff7
[gaim-migrate @ 13201]
Mark Doliner <markdoliner@pidgin.im>
parents:
11035
diff
changeset
|
880 | const guchar *data, |
|
cf40226ddff7
[gaim-migrate @ 13201]
Mark Doliner <markdoliner@pidgin.im>
parents:
11035
diff
changeset
|
881 | gsize size); |
| 10526 | 882 | |
| 883 | /** | |
| 884 | * Close the custom smiley, all data has been written with | |
| 15884 | 885 | * purple_conv_custom_smiley_write, and it is no longer valid |
| 10526 | 886 | * to call that function on that smiley. |
| 887 | * | |
| 15884 | 888 | * @param conv The purple conversation associated with the smiley. |
| 10526 | 889 | * @param smile The text associated with the smiley |
| 890 | */ | |
| 891 | ||
| 15884 | 892 | void purple_conv_custom_smiley_close(PurpleConversation *conv, const char *smile); |
| 10526 | 893 | |
| 4359 | 894 | /*@}*/ |
| 895 | ||
| 896 | ||
| 897 | /**************************************************************************/ | |
| 898 | /** @name Chat Conversation API */ | |
| 899 | /**************************************************************************/ | |
| 900 | /*@{*/ | |
| 901 | ||
| 902 | /** | |
| 903 | * Gets a chat's parent conversation. | |
| 904 | * | |
| 905 | * @param chat The chat. | |
| 906 | * | |
| 907 | * @return The parent conversation. | |
| 908 | */ | |
| 15884 | 909 | PurpleConversation *purple_conv_chat_get_conversation(const PurpleConvChat *chat); |
| 4359 | 910 | |
| 911 | /** | |
| 912 | * Sets the list of users in the chat room. | |
| 913 | * | |
|
6407
d67b6a6ba7d2
[gaim-migrate @ 6913]
Christian Hammond <chipx86@chipx86.com>
parents:
6405
diff
changeset
|
914 | * @note Calling this function will not update the display of the users. |
| 15884 | 915 | * Please use purple_conv_chat_add_user(), purple_conv_chat_add_users(), |
| 916 | * purple_conv_chat_remove_user(), and purple_conv_chat_remove_users() instead. | |
|
6407
d67b6a6ba7d2
[gaim-migrate @ 6913]
Christian Hammond <chipx86@chipx86.com>
parents:
6405
diff
changeset
|
917 | * |
| 4359 | 918 | * @param chat The chat. |
| 919 | * @param users The list of users. | |
| 920 | * | |
| 921 | * @return The list passed. | |
| 922 | */ | |
| 15884 | 923 | GList *purple_conv_chat_set_users(PurpleConvChat *chat, GList *users); |
| 4359 | 924 | |
| 925 | /** | |
| 926 | * Returns a list of users in the chat room. | |
| 927 | * | |
| 928 | * @param chat The chat. | |
| 929 | * | |
|
18190
bcf28ef7e8ff
Re-fix the DBus list handling code by killing const GList* / const GSList*
Richard Laager <rlaager@pidgin.im>
parents:
18122
diff
changeset
|
930 | * @constreturn The list of users. |
| 4359 | 931 | */ |
|
18122
9bf9970c1b6a
disapproval of revision '2d8ea56b90971e7851442d96b7d74ecb4f052126'
Richard Laager <rlaager@pidgin.im>
parents:
18121
diff
changeset
|
932 | GList *purple_conv_chat_get_users(const PurpleConvChat *chat); |
| 4359 | 933 | |
| 934 | /** | |
| 935 | * Ignores a user in a chat room. | |
| 936 | * | |
| 937 | * @param chat The chat. | |
| 938 | * @param name The name of the user. | |
| 939 | */ | |
| 15884 | 940 | void purple_conv_chat_ignore(PurpleConvChat *chat, const char *name); |
| 4359 | 941 | |
| 942 | /** | |
| 943 | * Unignores a user in a chat room. | |
| 944 | * | |
| 945 | * @param chat The chat. | |
| 946 | * @param name The name of the user. | |
| 947 | */ | |
| 15884 | 948 | void purple_conv_chat_unignore(PurpleConvChat *chat, const char *name); |
| 4359 | 949 | |
| 950 | /** | |
| 951 | * Sets the list of ignored users in the chat room. | |
| 952 | * | |
| 953 | * @param chat The chat. | |
| 954 | * @param ignored The list of ignored users. | |
| 955 | * | |
| 956 | * @return The list passed. | |
| 957 | */ | |
| 15884 | 958 | GList *purple_conv_chat_set_ignored(PurpleConvChat *chat, GList *ignored); |
| 4359 | 959 | |
| 960 | /** | |
| 961 | * Returns the list of ignored users in the chat room. | |
| 962 | * | |
| 963 | * @param chat The chat. | |
| 964 | * | |
| 965 | * @return The list of ignored users. | |
| 966 | */ | |
|
18122
9bf9970c1b6a
disapproval of revision '2d8ea56b90971e7851442d96b7d74ecb4f052126'
Richard Laager <rlaager@pidgin.im>
parents:
18121
diff
changeset
|
967 | GList *purple_conv_chat_get_ignored(const PurpleConvChat *chat); |
| 4359 | 968 | |
| 969 | /** | |
| 970 | * Returns the actual name of the specified ignored user, if it exists in | |
| 971 | * the ignore list. | |
| 972 | * | |
| 973 | * If the user found contains a prefix, such as '+' or '\@', this is also | |
| 974 | * returned. The username passed to the function does not have to have this | |
| 975 | * formatting. | |
| 976 | * | |
| 977 | * @param chat The chat. | |
| 978 | * @param user The user to check in the ignore list. | |
| 979 | * | |
| 980 | * @return The ignored user if found, complete with prefixes, or @c NULL | |
| 981 | * if not found. | |
| 982 | */ | |
| 15884 | 983 | const char *purple_conv_chat_get_ignored_user(const PurpleConvChat *chat, |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
984 | const char *user); |
| 4359 | 985 | |
| 986 | /** | |
| 987 | * Returns @c TRUE if the specified user is ignored. | |
| 988 | * | |
| 989 | * @param chat The chat. | |
| 990 | * @param user The user. | |
| 991 | * | |
| 992 | * @return @c TRUE if the user is in the ignore list; @c FALSE otherwise. | |
| 993 | */ | |
| 15884 | 994 | gboolean purple_conv_chat_is_user_ignored(const PurpleConvChat *chat, |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
995 | const char *user); |
| 4359 | 996 | |
| 997 | /** | |
| 998 | * Sets the chat room's topic. | |
| 999 | * | |
| 1000 | * @param chat The chat. | |
| 1001 | * @param who The user that set the topic. | |
| 1002 | * @param topic The topic. | |
| 1003 | */ | |
| 15884 | 1004 | void purple_conv_chat_set_topic(PurpleConvChat *chat, const char *who, |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
1005 | const char *topic); |
| 4359 | 1006 | |
| 1007 | /** | |
| 1008 | * Returns the chat room's topic. | |
| 1009 | * | |
| 1010 | * @param chat The chat. | |
| 1011 | * | |
| 1012 | * @return The chat's topic. | |
| 1013 | */ | |
| 15884 | 1014 | const char *purple_conv_chat_get_topic(const PurpleConvChat *chat); |
| 4359 | 1015 | |
| 1016 | /** | |
| 1017 | * Sets the chat room's ID. | |
| 1018 | * | |
| 1019 | * @param chat The chat. | |
| 1020 | * @param id The ID. | |
| 1021 | */ | |
| 15884 | 1022 | void purple_conv_chat_set_id(PurpleConvChat *chat, int id); |
| 4359 | 1023 | |
| 1024 | /** | |
| 1025 | * Returns the chat room's ID. | |
| 1026 | * | |
| 1027 | * @param chat The chat. | |
| 1028 | * | |
| 1029 | * @return The ID. | |
| 1030 | */ | |
| 15884 | 1031 | int purple_conv_chat_get_id(const PurpleConvChat *chat); |
| 4359 | 1032 | |
| 1033 | /** | |
| 1034 | * Writes to a chat. | |
| 1035 | * | |
| 1036 | * @param chat The chat. | |
| 1037 | * @param who The user who sent the message. | |
| 1038 | * @param message The message to write. | |
|
6621
2a18ef3e5224
[gaim-migrate @ 7145]
Robert McQueen <robot101@debian.org>
parents:
6605
diff
changeset
|
1039 | * @param flags The flags. |
| 4359 | 1040 | * @param mtime The time the message was sent. |
| 1041 | */ | |
| 15884 | 1042 | void purple_conv_chat_write(PurpleConvChat *chat, const char *who, |
| 1043 | const char *message, PurpleMessageFlags flags, | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
1044 | time_t mtime); |
| 4359 | 1045 | |
| 1046 | /** | |
| 1047 | * Sends a message to this chat conversation. | |
| 1048 | * | |
| 1049 | * @param chat The chat. | |
| 1050 | * @param message The message to send. | |
| 1051 | */ | |
| 15884 | 1052 | void purple_conv_chat_send(PurpleConvChat *chat, const char *message); |
| 4359 | 1053 | |
| 1054 | /** | |
|
11921
fe74264ce36c
[gaim-migrate @ 14212]
Evan Schoenberg <evands@pidgin.im>
parents:
11869
diff
changeset
|
1055 | * Sends a message to this chat conversation with specified flags. |
|
fe74264ce36c
[gaim-migrate @ 14212]
Evan Schoenberg <evands@pidgin.im>
parents:
11869
diff
changeset
|
1056 | * |
|
fe74264ce36c
[gaim-migrate @ 14212]
Evan Schoenberg <evands@pidgin.im>
parents:
11869
diff
changeset
|
1057 | * @param chat The chat. |
|
fe74264ce36c
[gaim-migrate @ 14212]
Evan Schoenberg <evands@pidgin.im>
parents:
11869
diff
changeset
|
1058 | * @param message The message to send. |
| 15884 | 1059 | * @param flags The PurpleMessageFlags flags to use. |
|
11921
fe74264ce36c
[gaim-migrate @ 14212]
Evan Schoenberg <evands@pidgin.im>
parents:
11869
diff
changeset
|
1060 | */ |
| 15884 | 1061 | void purple_conv_chat_send_with_flags(PurpleConvChat *chat, const char *message, PurpleMessageFlags flags); |
|
11921
fe74264ce36c
[gaim-migrate @ 14212]
Evan Schoenberg <evands@pidgin.im>
parents:
11869
diff
changeset
|
1062 | |
|
fe74264ce36c
[gaim-migrate @ 14212]
Evan Schoenberg <evands@pidgin.im>
parents:
11869
diff
changeset
|
1063 | /** |
| 4359 | 1064 | * Adds a user to a chat. |
| 1065 | * | |
| 9939 | 1066 | * @param chat The chat. |
| 1067 | * @param user The user to add. | |
| 1068 | * @param extra_msg An extra message to display with the join message. | |
| 1069 | * @param flags The users flags | |
| 1070 | * @param new_arrival Decides whether or not to show a join notice. | |
| 4359 | 1071 | */ |
| 15884 | 1072 | void purple_conv_chat_add_user(PurpleConvChat *chat, const char *user, |
| 1073 | const char *extra_msg, PurpleConvChatBuddyFlags flags, | |
|
9846
61f7349c153a
[gaim-migrate @ 10724]
Nathan Fredrickson <nathan@silverorange.com>
parents:
9718
diff
changeset
|
1074 | gboolean new_arrival); |
| 4359 | 1075 | |
| 1076 | /** | |
|
6407
d67b6a6ba7d2
[gaim-migrate @ 6913]
Christian Hammond <chipx86@chipx86.com>
parents:
6405
diff
changeset
|
1077 | * Adds a list of users to a chat. |
|
d67b6a6ba7d2
[gaim-migrate @ 6913]
Christian Hammond <chipx86@chipx86.com>
parents:
6405
diff
changeset
|
1078 | * |
|
11454
a604c2097a6e
[gaim-migrate @ 13693]
Richard Laager <rlaager@pidgin.im>
parents:
11338
diff
changeset
|
1079 | * The data is copied from @a users, @a extra_msgs, and @a flags, so it is up to |
|
a604c2097a6e
[gaim-migrate @ 13693]
Richard Laager <rlaager@pidgin.im>
parents:
11338
diff
changeset
|
1080 | * the caller to free this list after calling this function. |
|
6407
d67b6a6ba7d2
[gaim-migrate @ 6913]
Christian Hammond <chipx86@chipx86.com>
parents:
6405
diff
changeset
|
1081 | * |
|
11454
a604c2097a6e
[gaim-migrate @ 13693]
Richard Laager <rlaager@pidgin.im>
parents:
11338
diff
changeset
|
1082 | * @param chat The chat. |
|
a604c2097a6e
[gaim-migrate @ 13693]
Richard Laager <rlaager@pidgin.im>
parents:
11338
diff
changeset
|
1083 | * @param users The list of users to add. |
|
a604c2097a6e
[gaim-migrate @ 13693]
Richard Laager <rlaager@pidgin.im>
parents:
11338
diff
changeset
|
1084 | * @param extra_msgs An extra message to display with the join message for each |
|
a604c2097a6e
[gaim-migrate @ 13693]
Richard Laager <rlaager@pidgin.im>
parents:
11338
diff
changeset
|
1085 | * user. This list may be shorter than @a users, in which |
|
a604c2097a6e
[gaim-migrate @ 13693]
Richard Laager <rlaager@pidgin.im>
parents:
11338
diff
changeset
|
1086 | * case, the users after the end of extra_msgs will not have |
|
a604c2097a6e
[gaim-migrate @ 13693]
Richard Laager <rlaager@pidgin.im>
parents:
11338
diff
changeset
|
1087 | * an extra message. By extension, this means that extra_msgs |
|
a604c2097a6e
[gaim-migrate @ 13693]
Richard Laager <rlaager@pidgin.im>
parents:
11338
diff
changeset
|
1088 | * can simply be @c NULL and none of the users will have an |
|
a604c2097a6e
[gaim-migrate @ 13693]
Richard Laager <rlaager@pidgin.im>
parents:
11338
diff
changeset
|
1089 | * extra message. |
|
a604c2097a6e
[gaim-migrate @ 13693]
Richard Laager <rlaager@pidgin.im>
parents:
11338
diff
changeset
|
1090 | * @param flags The list of flags for each user. |
|
a604c2097a6e
[gaim-migrate @ 13693]
Richard Laager <rlaager@pidgin.im>
parents:
11338
diff
changeset
|
1091 | * @param new_arrivals Decides whether or not to show join notices. |
|
6407
d67b6a6ba7d2
[gaim-migrate @ 6913]
Christian Hammond <chipx86@chipx86.com>
parents:
6405
diff
changeset
|
1092 | */ |
| 15884 | 1093 | void purple_conv_chat_add_users(PurpleConvChat *chat, GList *users, GList *extra_msgs, |
|
11454
a604c2097a6e
[gaim-migrate @ 13693]
Richard Laager <rlaager@pidgin.im>
parents:
11338
diff
changeset
|
1094 | GList *flags, gboolean new_arrivals); |
|
6407
d67b6a6ba7d2
[gaim-migrate @ 6913]
Christian Hammond <chipx86@chipx86.com>
parents:
6405
diff
changeset
|
1095 | |
|
d67b6a6ba7d2
[gaim-migrate @ 6913]
Christian Hammond <chipx86@chipx86.com>
parents:
6405
diff
changeset
|
1096 | /** |
| 4359 | 1097 | * Renames a user in a chat. |
| 1098 | * | |
| 1099 | * @param chat The chat. | |
| 1100 | * @param old_user The old username. | |
| 1101 | * @param new_user The new username. | |
| 1102 | */ | |
| 15884 | 1103 | void purple_conv_chat_rename_user(PurpleConvChat *chat, const char *old_user, |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
1104 | const char *new_user); |
| 4359 | 1105 | |
| 1106 | /** | |
| 1107 | * Removes a user from a chat, optionally with a reason. | |
| 1108 | * | |
|
6407
d67b6a6ba7d2
[gaim-migrate @ 6913]
Christian Hammond <chipx86@chipx86.com>
parents:
6405
diff
changeset
|
1109 | * It is up to the developer to free this list after calling this function. |
|
d67b6a6ba7d2
[gaim-migrate @ 6913]
Christian Hammond <chipx86@chipx86.com>
parents:
6405
diff
changeset
|
1110 | * |
| 4359 | 1111 | * @param chat The chat. |
| 1112 | * @param user The user that is being removed. | |
| 1113 | * @param reason The optional reason given for the removal. Can be @c NULL. | |
| 1114 | */ | |
| 15884 | 1115 | void purple_conv_chat_remove_user(PurpleConvChat *chat, const char *user, |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
1116 | const char *reason); |
| 4359 | 1117 | |
| 1118 | /** | |
|
6407
d67b6a6ba7d2
[gaim-migrate @ 6913]
Christian Hammond <chipx86@chipx86.com>
parents:
6405
diff
changeset
|
1119 | * Removes a list of users from a chat, optionally with a single reason. |
|
d67b6a6ba7d2
[gaim-migrate @ 6913]
Christian Hammond <chipx86@chipx86.com>
parents:
6405
diff
changeset
|
1120 | * |
|
d67b6a6ba7d2
[gaim-migrate @ 6913]
Christian Hammond <chipx86@chipx86.com>
parents:
6405
diff
changeset
|
1121 | * @param chat The chat. |
|
d67b6a6ba7d2
[gaim-migrate @ 6913]
Christian Hammond <chipx86@chipx86.com>
parents:
6405
diff
changeset
|
1122 | * @param users The users that are being removed. |
|
d67b6a6ba7d2
[gaim-migrate @ 6913]
Christian Hammond <chipx86@chipx86.com>
parents:
6405
diff
changeset
|
1123 | * @param reason The optional reason given for the removal. Can be @c NULL. |
|
d67b6a6ba7d2
[gaim-migrate @ 6913]
Christian Hammond <chipx86@chipx86.com>
parents:
6405
diff
changeset
|
1124 | */ |
| 15884 | 1125 | void purple_conv_chat_remove_users(PurpleConvChat *chat, GList *users, |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
1126 | const char *reason); |
|
6407
d67b6a6ba7d2
[gaim-migrate @ 6913]
Christian Hammond <chipx86@chipx86.com>
parents:
6405
diff
changeset
|
1127 | |
|
d67b6a6ba7d2
[gaim-migrate @ 6913]
Christian Hammond <chipx86@chipx86.com>
parents:
6405
diff
changeset
|
1128 | /** |
|
9554
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1129 | * Finds a user in a chat |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1130 | * |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1131 | * @param chat The chat. |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1132 | * @param user The user to look for. |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1133 | * |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1134 | * @return TRUE if the user is in the chat, FALSE if not |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1135 | */ |
| 15884 | 1136 | gboolean purple_conv_chat_find_user(PurpleConvChat *chat, const char *user); |
|
9554
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1137 | |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1138 | /** |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1139 | * Set a users flags in a chat |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1140 | * |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1141 | * @param chat The chat. |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1142 | * @param user The user to update. |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1143 | * @param flags The new flags. |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1144 | */ |
| 15884 | 1145 | void purple_conv_chat_user_set_flags(PurpleConvChat *chat, const char *user, |
| 1146 | PurpleConvChatBuddyFlags flags); | |
|
9554
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1147 | |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1148 | /** |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1149 | * Get the flags for a user in a chat |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1150 | * |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1151 | * @param chat The chat. |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1152 | * @param user The user to find the flags for |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1153 | * |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1154 | * @return The flags for the user |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1155 | */ |
| 15884 | 1156 | PurpleConvChatBuddyFlags purple_conv_chat_user_get_flags(PurpleConvChat *chat, |
|
9554
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1157 | const char *user); |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1158 | |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1159 | /** |
|
6414
f78eb072fcc0
[gaim-migrate @ 6921]
Christian Hammond <chipx86@chipx86.com>
parents:
6407
diff
changeset
|
1160 | * Clears all users from a chat. |
|
f78eb072fcc0
[gaim-migrate @ 6921]
Christian Hammond <chipx86@chipx86.com>
parents:
6407
diff
changeset
|
1161 | * |
|
f78eb072fcc0
[gaim-migrate @ 6921]
Christian Hammond <chipx86@chipx86.com>
parents:
6407
diff
changeset
|
1162 | * @param chat The chat. |
|
f78eb072fcc0
[gaim-migrate @ 6921]
Christian Hammond <chipx86@chipx86.com>
parents:
6407
diff
changeset
|
1163 | */ |
| 15884 | 1164 | void purple_conv_chat_clear_users(PurpleConvChat *chat); |
|
6414
f78eb072fcc0
[gaim-migrate @ 6921]
Christian Hammond <chipx86@chipx86.com>
parents:
6407
diff
changeset
|
1165 | |
|
f78eb072fcc0
[gaim-migrate @ 6921]
Christian Hammond <chipx86@chipx86.com>
parents:
6407
diff
changeset
|
1166 | /** |
| 8158 | 1167 | * Sets your nickname (used for hilighting) for a chat. |
| 1168 | * | |
| 1169 | * @param chat The chat. | |
| 1170 | * @param nick The nick. | |
| 1171 | */ | |
| 15884 | 1172 | void purple_conv_chat_set_nick(PurpleConvChat *chat, const char *nick); |
| 8158 | 1173 | |
| 1174 | /** | |
| 1175 | * Gets your nickname (used for hilighting) for a chat. | |
| 1176 | * | |
| 1177 | * @param chat The chat. | |
| 1178 | * @return The nick. | |
| 1179 | */ | |
| 15884 | 1180 | const char *purple_conv_chat_get_nick(PurpleConvChat *chat); |
| 8158 | 1181 | |
| 1182 | /** | |
| 4359 | 1183 | * Finds a chat with the specified chat ID. |
| 1184 | * | |
| 15884 | 1185 | * @param gc The purple_connection. |
| 4359 | 1186 | * @param id The chat ID. |
| 1187 | * | |
| 1188 | * @return The chat conversation. | |
| 1189 | */ | |
| 15884 | 1190 | PurpleConversation *purple_find_chat(const PurpleConnection *gc, int id); |
| 4359 | 1191 | |
| 8256 | 1192 | /** |
| 1193 | * Lets the core know we left a chat, without destroying it. | |
| 1194 | * Called from serv_got_chat_left(). | |
| 1195 | * | |
| 1196 | * @param chat The chat. | |
| 1197 | */ | |
| 15884 | 1198 | void purple_conv_chat_left(PurpleConvChat *chat); |
| 8256 | 1199 | |
| 1200 | /** | |
| 1201 | * Returns true if we're no longer in this chat, | |
| 1202 | * and just left the window open. | |
| 1203 | * | |
| 1204 | * @param chat The chat. | |
| 1205 | * | |
| 1206 | * @return @c TRUE if we left the chat already, @c FALSE if | |
| 1207 | * we're still there. | |
| 1208 | */ | |
| 15884 | 1209 | gboolean purple_conv_chat_has_left(PurpleConvChat *chat); |
| 8256 | 1210 | |
|
9554
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1211 | /** |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1212 | * Creates a new chat buddy |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1213 | * |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1214 | * @param name The name. |
|
14027
708c2047424f
[gaim-migrate @ 16521]
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
parents:
13844
diff
changeset
|
1215 | * @param alias The alias. |
|
9554
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1216 | * @param flags The flags. |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1217 | * |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1218 | * @return The new chat buddy |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1219 | */ |
| 15884 | 1220 | PurpleConvChatBuddy *purple_conv_chat_cb_new(const char *name, const char *alias, |
| 1221 | PurpleConvChatBuddyFlags flags); | |
|
9554
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1222 | |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1223 | /** |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1224 | * Find a chat buddy in a chat |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1225 | * |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1226 | * @param chat The chat. |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1227 | * @param name The name of the chat buddy to find. |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1228 | */ |
| 15884 | 1229 | PurpleConvChatBuddy *purple_conv_chat_cb_find(PurpleConvChat *chat, const char *name); |
|
9554
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1230 | |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1231 | /** |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1232 | * Get the name of a chat buddy |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1233 | * |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1234 | * @param cb The chat buddy. |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1235 | * |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1236 | * @return The name of the chat buddy. |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1237 | */ |
| 15884 | 1238 | const char *purple_conv_chat_cb_get_name(PurpleConvChatBuddy *cb); |
|
9554
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1239 | |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1240 | /** |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1241 | * Destroys a chat buddy |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1242 | * |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1243 | * @param cb The chat buddy to destroy |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1244 | */ |
| 15884 | 1245 | void purple_conv_chat_cb_destroy(PurpleConvChatBuddy *cb); |
|
9554
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1246 | |
|
17265
fd5b0ca330a3
New api function purple_conversation_get_extended_menu.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16743
diff
changeset
|
1247 | /** |
|
fd5b0ca330a3
New api function purple_conversation_get_extended_menu.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16743
diff
changeset
|
1248 | * Retrieves the extended menu items for the conversation. |
|
fd5b0ca330a3
New api function purple_conversation_get_extended_menu.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16743
diff
changeset
|
1249 | * |
|
fd5b0ca330a3
New api function purple_conversation_get_extended_menu.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16743
diff
changeset
|
1250 | * @param conv The conversation. |
|
fd5b0ca330a3
New api function purple_conversation_get_extended_menu.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16743
diff
changeset
|
1251 | * |
|
fd5b0ca330a3
New api function purple_conversation_get_extended_menu.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16743
diff
changeset
|
1252 | * @return A list of PurpleMenuAction items, harvested by the |
|
fd5b0ca330a3
New api function purple_conversation_get_extended_menu.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16743
diff
changeset
|
1253 | * chat-extended-menu signal. The list and the menuaction |
|
fd5b0ca330a3
New api function purple_conversation_get_extended_menu.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16743
diff
changeset
|
1254 | * items should be freed by the caller. |
|
fd5b0ca330a3
New api function purple_conversation_get_extended_menu.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16743
diff
changeset
|
1255 | */ |
|
fd5b0ca330a3
New api function purple_conversation_get_extended_menu.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16743
diff
changeset
|
1256 | GList * purple_conversation_get_extended_menu(PurpleConversation *conv); |
|
fd5b0ca330a3
New api function purple_conversation_get_extended_menu.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16743
diff
changeset
|
1257 | |
|
17266
d4dc6a9ca244
New function purple_conversation_do_command. This is almost like
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
17265
diff
changeset
|
1258 | /** |
|
d4dc6a9ca244
New function purple_conversation_do_command. This is almost like
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
17265
diff
changeset
|
1259 | * Perform a command in a conversation. Similar to @see purple_cmd_do_command |
|
d4dc6a9ca244
New function purple_conversation_do_command. This is almost like
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
17265
diff
changeset
|
1260 | * |
|
d4dc6a9ca244
New function purple_conversation_do_command. This is almost like
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
17265
diff
changeset
|
1261 | * @param conv The conversation. |
|
d4dc6a9ca244
New function purple_conversation_do_command. This is almost like
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
17265
diff
changeset
|
1262 | * @param cmdline The entire command including the arguments. |
|
d4dc6a9ca244
New function purple_conversation_do_command. This is almost like
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
17265
diff
changeset
|
1263 | * @param markup @c NULL, or the formatted command line. |
|
d4dc6a9ca244
New function purple_conversation_do_command. This is almost like
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
17265
diff
changeset
|
1264 | * @param error If the command failed errormsg is filled in with the appropriate error |
|
d4dc6a9ca244
New function purple_conversation_do_command. This is almost like
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
17265
diff
changeset
|
1265 | * message, if not @c NULL. It must be freed by the caller with g_free(). |
|
d4dc6a9ca244
New function purple_conversation_do_command. This is almost like
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
17265
diff
changeset
|
1266 | * |
|
d4dc6a9ca244
New function purple_conversation_do_command. This is almost like
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
17265
diff
changeset
|
1267 | * @return @c TRUE if the command was executed successfully, @c FALSE otherwise. |
|
d4dc6a9ca244
New function purple_conversation_do_command. This is almost like
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
17265
diff
changeset
|
1268 | */ |
|
d4dc6a9ca244
New function purple_conversation_do_command. This is almost like
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
17265
diff
changeset
|
1269 | gboolean purple_conversation_do_command(PurpleConversation *conv, const gchar *cmdline, const gchar *markup, gchar **error); |
|
d4dc6a9ca244
New function purple_conversation_do_command. This is almost like
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
17265
diff
changeset
|
1270 | |
| 4359 | 1271 | /*@}*/ |
| 1272 | ||
|
4469
ef60c820b884
[gaim-migrate @ 4744]
Christian Hammond <chipx86@chipx86.com>
parents:
4465
diff
changeset
|
1273 | /**************************************************************************/ |
|
6485
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6414
diff
changeset
|
1274 | /** @name Conversations Subsystem */ |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6414
diff
changeset
|
1275 | /**************************************************************************/ |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6414
diff
changeset
|
1276 | /*@{*/ |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6414
diff
changeset
|
1277 | |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6414
diff
changeset
|
1278 | /** |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6414
diff
changeset
|
1279 | * Returns the conversation subsystem handle. |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6414
diff
changeset
|
1280 | * |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6414
diff
changeset
|
1281 | * @return The conversation subsystem handle. |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6414
diff
changeset
|
1282 | */ |
| 15884 | 1283 | void *purple_conversations_get_handle(void); |
|
6485
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6414
diff
changeset
|
1284 | |
|
5872
754c63f29b77
[gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
5858
diff
changeset
|
1285 | /** |
|
754c63f29b77
[gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
5858
diff
changeset
|
1286 | * Initializes the conversation subsystem. |
|
754c63f29b77
[gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
5858
diff
changeset
|
1287 | */ |
| 15884 | 1288 | void purple_conversations_init(void); |
|
6485
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6414
diff
changeset
|
1289 | |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6414
diff
changeset
|
1290 | /** |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6414
diff
changeset
|
1291 | * Uninitializes the conversation subsystem. |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6414
diff
changeset
|
1292 | */ |
| 15884 | 1293 | void purple_conversations_uninit(void); |
|
5872
754c63f29b77
[gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
5858
diff
changeset
|
1294 | |
|
4481
1a02f276e41e
[gaim-migrate @ 4756]
Christian Hammond <chipx86@chipx86.com>
parents:
4476
diff
changeset
|
1295 | /*@}*/ |
|
1a02f276e41e
[gaim-migrate @ 4756]
Christian Hammond <chipx86@chipx86.com>
parents:
4476
diff
changeset
|
1296 | |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
1297 | #ifdef __cplusplus |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
1298 | } |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
1299 | #endif |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
1300 | |
| 15884 | 1301 | #endif /* _PURPLE_CONVERSATION_H_ */ |