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