Sat, 16 Apr 2005 18:44:40 +0000
[gaim-migrate @ 12503]
Fix bug #1016434 - "MSN phone numbers don't appear changed until next logon"
| 4359 | 1 | /** |
| 2 | * @file conversation.h Conversation API | |
|
5034
077678f7b048
[gaim-migrate @ 5377]
Christian Hammond <chipx86@chipx86.com>
parents:
4890
diff
changeset
|
3 | * @ingroup core |
| 4359 | 4 | * |
| 5 | * gaim | |
| 6 | * | |
| 8046 | 7 | * Gaim is the legal property of its developers, whose names are too numerous |
| 8 | * to list here. Please refer to the COPYRIGHT file distributed with this | |
| 9 | * source distribution. | |
|
6485
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6414
diff
changeset
|
10 | * |
| 4359 | 11 | * This program is free software; you can redistribute it and/or modify |
| 12 | * it under the terms of the GNU General Public License as published by | |
| 13 | * the Free Software Foundation; either version 2 of the License, or | |
| 14 | * (at your option) any later version. | |
| 15 | * | |
| 16 | * This program is distributed in the hope that it will be useful, | |
| 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 19 | * GNU General Public License for more details. | |
| 20 | * | |
| 21 | * You should have received a copy of the GNU General Public License | |
| 22 | * along with this program; if not, write to the Free Software | |
| 23 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
|
6488
6a47a95e4dbb
[gaim-migrate @ 7002]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
24 | * |
|
6605
665d3a8e885c
[gaim-migrate @ 7129]
Christian Hammond <chipx86@chipx86.com>
parents:
6585
diff
changeset
|
25 | * @see @ref conversation-signals |
| 4359 | 26 | */ |
|
4890
d87a9b5bbe57
[gaim-migrate @ 5220]
Christian Hammond <chipx86@chipx86.com>
parents:
4877
diff
changeset
|
27 | #ifndef _GAIM_CONVERSATION_H_ |
|
d87a9b5bbe57
[gaim-migrate @ 5220]
Christian Hammond <chipx86@chipx86.com>
parents:
4877
diff
changeset
|
28 | #define _GAIM_CONVERSATION_H_ |
| 4359 | 29 | |
| 30 | /**************************************************************************/ | |
| 31 | /** Data Structures */ | |
| 32 | /**************************************************************************/ | |
| 33 | ||
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
34 | typedef struct _GaimConvWindowUiOps GaimConvWindowUiOps; |
|
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
35 | typedef struct _GaimConvWindow GaimConvWindow; |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
36 | typedef struct _GaimConversationUiOps GaimConversationUiOps; |
|
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
37 | typedef struct _GaimConversation GaimConversation; |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
38 | typedef struct _GaimConvIm GaimConvIm; |
|
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
39 | typedef struct _GaimConvChat GaimConvChat; |
|
9554
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
40 | typedef struct _GaimConvChatBuddy GaimConvChatBuddy; |
| 4359 | 41 | |
| 42 | /** | |
| 43 | * A type of conversation. | |
| 44 | */ | |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
45 | typedef enum |
| 4359 | 46 | { |
| 47 | GAIM_CONV_UNKNOWN = 0, /**< Unknown conversation type. */ | |
| 48 | GAIM_CONV_IM, /**< Instant Message. */ | |
|
4378
3bef342997ef
[gaim-migrate @ 4644]
Christian Hammond <chipx86@chipx86.com>
parents:
4359
diff
changeset
|
49 | GAIM_CONV_CHAT, /**< Chat room. */ |
|
10246
aa5bff72f94c
[gaim-migrate @ 11386]
Mark Doliner <markdoliner@pidgin.im>
parents:
10008
diff
changeset
|
50 | GAIM_CONV_MISC, /**< A misc. conversation. */ |
|
aa5bff72f94c
[gaim-migrate @ 11386]
Mark Doliner <markdoliner@pidgin.im>
parents:
10008
diff
changeset
|
51 | GAIM_CONV_ANY /**< Any type of conversation. */ |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
52 | |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
53 | } GaimConversationType; |
| 4359 | 54 | |
| 55 | /** | |
| 56 | * Unseen text states. | |
| 57 | */ | |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
58 | typedef enum |
| 4359 | 59 | { |
| 60 | GAIM_UNSEEN_NONE = 0, /**< No unseen text in the conversation. */ | |
| 61 | GAIM_UNSEEN_TEXT, /**< Unseen text in the conversation. */ | |
|
6405
30166fa1b9a2
[gaim-migrate @ 6910]
Christian Hammond <chipx86@chipx86.com>
parents:
6311
diff
changeset
|
62 | GAIM_UNSEEN_NICK, /**< Unseen text and the nick was said. */ |
|
30166fa1b9a2
[gaim-migrate @ 6910]
Christian Hammond <chipx86@chipx86.com>
parents:
6311
diff
changeset
|
63 | GAIM_UNSEEN_EVENT /**< Unseen events in the conversation. */ |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
64 | |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
65 | } GaimUnseenState; |
| 4359 | 66 | |
| 67 | /** | |
| 68 | * Conversation update type. | |
| 69 | */ | |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
70 | typedef enum |
| 4359 | 71 | { |
| 72 | GAIM_CONV_UPDATE_ADD = 0, /**< The buddy associated with the conversation | |
| 8155 | 73 | was added. */ |
| 4359 | 74 | GAIM_CONV_UPDATE_REMOVE, /**< The buddy associated with the conversation |
| 8155 | 75 | was removed. */ |
| 4491 | 76 | GAIM_CONV_UPDATE_ACCOUNT, /**< The gaim_account was changed. */ |
| 4359 | 77 | GAIM_CONV_UPDATE_TYPING, /**< The typing state was updated. */ |
| 78 | GAIM_CONV_UPDATE_UNSEEN, /**< The unseen state was updated. */ | |
| 79 | GAIM_CONV_UPDATE_LOGGING, /**< Logging for this conversation was | |
| 8155 | 80 | enabled or disabled. */ |
| 4359 | 81 | GAIM_CONV_UPDATE_TOPIC, /**< The topic for a chat was updated. */ |
| 82 | /* | |
| 83 | * XXX These need to go when we implement a more generic core/UI event | |
| 84 | * system. | |
| 85 | */ | |
|
4378
3bef342997ef
[gaim-migrate @ 4644]
Christian Hammond <chipx86@chipx86.com>
parents:
4359
diff
changeset
|
86 | GAIM_CONV_ACCOUNT_ONLINE, /**< One of the user's accounts went online. */ |
|
3bef342997ef
[gaim-migrate @ 4644]
Christian Hammond <chipx86@chipx86.com>
parents:
4359
diff
changeset
|
87 | GAIM_CONV_ACCOUNT_OFFLINE, /**< One of the user's accounts went offline. */ |
|
6846
f814f02dca87
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
88 | GAIM_CONV_UPDATE_AWAY, /**< The other user went away. */ |
| 8155 | 89 | GAIM_CONV_UPDATE_ICON, /**< The other user's buddy icon changed. */ |
| 8256 | 90 | GAIM_CONV_UPDATE_TITLE, |
| 10665 | 91 | GAIM_CONV_UPDATE_CHATLEFT, |
| 92 | ||
| 93 | GAIM_CONV_UPDATE_FEATURES, /**< The features for a chat have changed */ | |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
94 | |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
95 | } GaimConvUpdateType; |
| 4359 | 96 | |
| 97 | /** | |
|
5872
754c63f29b77
[gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
5858
diff
changeset
|
98 | * The typing state of a user. |
|
754c63f29b77
[gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
5858
diff
changeset
|
99 | */ |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
100 | typedef enum |
|
5872
754c63f29b77
[gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
5858
diff
changeset
|
101 | { |
|
754c63f29b77
[gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
5858
diff
changeset
|
102 | GAIM_NOT_TYPING = 0, /**< Not typing. */ |
|
754c63f29b77
[gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
5858
diff
changeset
|
103 | GAIM_TYPING, /**< Currently typing. */ |
|
754c63f29b77
[gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
5858
diff
changeset
|
104 | GAIM_TYPED /**< Stopped typing momentarily. */ |
|
754c63f29b77
[gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
5858
diff
changeset
|
105 | |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
106 | } GaimTypingState; |
|
5872
754c63f29b77
[gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
5858
diff
changeset
|
107 | |
|
6621
2a18ef3e5224
[gaim-migrate @ 7145]
Robert McQueen <robot101@debian.org>
parents:
6605
diff
changeset
|
108 | /** |
|
2a18ef3e5224
[gaim-migrate @ 7145]
Robert McQueen <robot101@debian.org>
parents:
6605
diff
changeset
|
109 | * 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
|
110 | */ |
|
2a18ef3e5224
[gaim-migrate @ 7145]
Robert McQueen <robot101@debian.org>
parents:
6605
diff
changeset
|
111 | typedef enum |
|
2a18ef3e5224
[gaim-migrate @ 7145]
Robert McQueen <robot101@debian.org>
parents:
6605
diff
changeset
|
112 | { |
|
6982
12f08de92674
[gaim-migrate @ 7538]
Mark Doliner <markdoliner@pidgin.im>
parents:
6846
diff
changeset
|
113 | GAIM_MESSAGE_SEND = 0x0001, /**< Outgoing message. */ |
|
12f08de92674
[gaim-migrate @ 7538]
Mark Doliner <markdoliner@pidgin.im>
parents:
6846
diff
changeset
|
114 | GAIM_MESSAGE_RECV = 0x0002, /**< Incoming message. */ |
|
12f08de92674
[gaim-migrate @ 7538]
Mark Doliner <markdoliner@pidgin.im>
parents:
6846
diff
changeset
|
115 | GAIM_MESSAGE_SYSTEM = 0x0004, /**< System message. */ |
|
12f08de92674
[gaim-migrate @ 7538]
Mark Doliner <markdoliner@pidgin.im>
parents:
6846
diff
changeset
|
116 | GAIM_MESSAGE_AUTO_RESP = 0x0008, /**< Auto response. */ |
|
12f08de92674
[gaim-migrate @ 7538]
Mark Doliner <markdoliner@pidgin.im>
parents:
6846
diff
changeset
|
117 | GAIM_MESSAGE_COLORIZE = 0x0010, /**< Colorize nicks. */ |
|
12f08de92674
[gaim-migrate @ 7538]
Mark Doliner <markdoliner@pidgin.im>
parents:
6846
diff
changeset
|
118 | GAIM_MESSAGE_NICK = 0x0020, /**< Contains your nick. */ |
|
12f08de92674
[gaim-migrate @ 7538]
Mark Doliner <markdoliner@pidgin.im>
parents:
6846
diff
changeset
|
119 | GAIM_MESSAGE_NO_LOG = 0x0040, /**< Do not log. */ |
|
12f08de92674
[gaim-migrate @ 7538]
Mark Doliner <markdoliner@pidgin.im>
parents:
6846
diff
changeset
|
120 | GAIM_MESSAGE_WHISPER = 0x0080, /**< Whispered message. */ |
|
9584
1a6198375303
[gaim-migrate @ 10427]
Nathan Fredrickson <nathan@silverorange.com>
parents:
9554
diff
changeset
|
121 | GAIM_MESSAGE_ERROR = 0x0200, /**< Error message. */ |
|
10346
9c65a007b4a5
[gaim-migrate @ 11560]
Felipe Contreras <felipe.contreras@gmail.com>
parents:
10246
diff
changeset
|
122 | GAIM_MESSAGE_DELAYED = 0x0400, /**< Delayed message. */ |
|
9c65a007b4a5
[gaim-migrate @ 11560]
Felipe Contreras <felipe.contreras@gmail.com>
parents:
10246
diff
changeset
|
123 | GAIM_MESSAGE_RAW = 0x0800 /**< "Raw" message - don't apply formatting */ |
|
10008
1de3454a0dca
[gaim-migrate @ 10925]
Mark Doliner <markdoliner@pidgin.im>
parents:
9939
diff
changeset
|
124 | |
|
6621
2a18ef3e5224
[gaim-migrate @ 7145]
Robert McQueen <robot101@debian.org>
parents:
6605
diff
changeset
|
125 | } GaimMessageFlags; |
|
2a18ef3e5224
[gaim-migrate @ 7145]
Robert McQueen <robot101@debian.org>
parents:
6605
diff
changeset
|
126 | |
|
9554
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
127 | /** |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
128 | * Flags applicable to users in Chats. |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
129 | */ |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
130 | typedef enum |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
131 | { |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
132 | GAIM_CBFLAGS_NONE = 0x0000, /**< No flags */ |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
133 | GAIM_CBFLAGS_VOICE = 0x0001, /**< Voiced user or "Participant" */ |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
134 | GAIM_CBFLAGS_HALFOP = 0x0002, /**< Half-op */ |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
135 | GAIM_CBFLAGS_OP = 0x0004, /**< Channel Op or Moderator */ |
| 10665 | 136 | GAIM_CBFLAGS_FOUNDER = 0x0008, /**< Channel Founder */ |
| 137 | GAIM_CBFLAGS_TYPING = 0x0010, /**< Currently typing */ | |
| 138 | ||
|
10008
1de3454a0dca
[gaim-migrate @ 10925]
Mark Doliner <markdoliner@pidgin.im>
parents:
9939
diff
changeset
|
139 | |
|
9554
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
140 | } GaimConvChatBuddyFlags; |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
141 | |
|
5872
754c63f29b77
[gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
5858
diff
changeset
|
142 | #include "account.h" |
|
9718
aeee69c6c784
[gaim-migrate @ 10579]
Mark Doliner <markdoliner@pidgin.im>
parents:
9627
diff
changeset
|
143 | #include "buddyicon.h" |
| 7431 | 144 | #include "log.h" |
|
5872
754c63f29b77
[gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
5858
diff
changeset
|
145 | #include "server.h" |
|
754c63f29b77
[gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
5858
diff
changeset
|
146 | |
|
754c63f29b77
[gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
5858
diff
changeset
|
147 | /** |
| 4359 | 148 | * Conversation window operations. |
| 149 | * | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
150 | * Any UI representing a window must assign a filled-out gaim_conv_window_ops |
|
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
151 | * structure to the GaimConvWindow. |
| 4359 | 152 | */ |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
153 | struct _GaimConvWindowUiOps |
| 4359 | 154 | { |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
155 | GaimConversationUiOps *(*get_conversation_ui_ops)(void); |
| 4359 | 156 | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
157 | void (*new_window)(GaimConvWindow *win); |
|
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
158 | void (*destroy_window)(GaimConvWindow *win); |
| 4359 | 159 | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
160 | void (*show)(GaimConvWindow *win); |
|
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
161 | void (*hide)(GaimConvWindow *win); |
|
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
162 | void (*raise)(GaimConvWindow *win); |
|
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
163 | void (*flash)(GaimConvWindow *win); |
| 4359 | 164 | |
| 10827 | 165 | void (*switch_conversation)(GaimConvWindow *win, GaimConversation *conv); |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
166 | void (*add_conversation)(GaimConvWindow *win, GaimConversation *conv); |
|
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
167 | void (*remove_conversation)(GaimConvWindow *win, GaimConversation *conv); |
| 10665 | 168 | |
| 10827 | 169 | GaimConversation *(*get_active_conversation)(const GaimConvWindow *win); |
|
9260
82d7b380220a
[gaim-migrate @ 10059]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9166
diff
changeset
|
170 | gboolean (*has_focus)(GaimConvWindow *win); |
| 4359 | 171 | }; |
| 172 | ||
| 173 | /** | |
| 174 | * Conversation operations and events. | |
| 175 | * | |
| 176 | * Any UI representing a conversation must assign a filled-out | |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
177 | * GaimConversationUiOps structure to the GaimConversation. |
| 4359 | 178 | */ |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
179 | struct _GaimConversationUiOps |
| 4359 | 180 | { |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
181 | void (*destroy_conversation)(GaimConversation *conv); |
|
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
182 | void (*write_chat)(GaimConversation *conv, const char *who, |
| 8155 | 183 | const char *message, GaimMessageFlags flags, |
| 184 | time_t mtime); | |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
185 | void (*write_im)(GaimConversation *conv, const char *who, |
| 8155 | 186 | const char *message, GaimMessageFlags flags, |
| 187 | time_t mtime); | |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
188 | void (*write_conv)(GaimConversation *conv, const char *who, |
| 8155 | 189 | const char *message, GaimMessageFlags flags, |
| 190 | time_t mtime); | |
| 4359 | 191 | |
|
9846
61f7349c153a
[gaim-migrate @ 10724]
Nathan Fredrickson <nathan@silverorange.com>
parents:
9718
diff
changeset
|
192 | void (*chat_add_user)(GaimConversation *conv, const char *user, gboolean new_arrival); |
|
6407
d67b6a6ba7d2
[gaim-migrate @ 6913]
Christian Hammond <chipx86@chipx86.com>
parents:
6405
diff
changeset
|
193 | void (*chat_add_users)(GaimConversation *conv, GList *users); |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
194 | void (*chat_rename_user)(GaimConversation *conv, |
| 8155 | 195 | const char *old_name, const char *new_name); |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
196 | void (*chat_remove_user)(GaimConversation *conv, const char *user); |
|
6407
d67b6a6ba7d2
[gaim-migrate @ 6913]
Christian Hammond <chipx86@chipx86.com>
parents:
6405
diff
changeset
|
197 | void (*chat_remove_users)(GaimConversation *conv, GList *users); |
|
9554
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
198 | void (*chat_update_user)(GaimConversation *conv, const char *user); |
| 4359 | 199 | |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
200 | void (*update_progress)(GaimConversation *conv, float percent); |
| 4359 | 201 | |
|
9260
82d7b380220a
[gaim-migrate @ 10059]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9166
diff
changeset
|
202 | gboolean (*has_focus)(GaimConversation *conv); |
|
82d7b380220a
[gaim-migrate @ 10059]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9166
diff
changeset
|
203 | |
| 10526 | 204 | /* Custom Smileys */ |
| 205 | gboolean (*custom_smiley_add)(GaimConversation *conv, const char *smile); | |
| 206 | void (*custom_smiley_write)(GaimConversation *conv, const char *smile, | |
| 207 | const char * data, gint64 size); | |
| 208 | void (*custom_smiley_close)(GaimConversation *conv, const char *smile); | |
| 209 | ||
| 210 | ||
| 211 | ||
| 4359 | 212 | /* Events */ |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
213 | void (*updated)(GaimConversation *conv, GaimConvUpdateType type); |
|
9260
82d7b380220a
[gaim-migrate @ 10059]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9166
diff
changeset
|
214 | |
| 4359 | 215 | }; |
| 216 | ||
| 217 | /** | |
| 218 | * A core representation of a graphical window containing one or more | |
| 219 | * conversations. | |
| 220 | */ | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
221 | struct _GaimConvWindow |
| 4359 | 222 | { |
|
4465
43184ae252ed
[gaim-migrate @ 4740]
Christian Hammond <chipx86@chipx86.com>
parents:
4378
diff
changeset
|
223 | GList *conversations; /**< The conversations in the window. */ |
|
43184ae252ed
[gaim-migrate @ 4740]
Christian Hammond <chipx86@chipx86.com>
parents:
4378
diff
changeset
|
224 | size_t conversation_count; /**< The number of conversations. */ |
| 4359 | 225 | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
226 | GaimConvWindowUiOps *ui_ops; /**< UI-specific window operations. */ |
|
4465
43184ae252ed
[gaim-migrate @ 4740]
Christian Hammond <chipx86@chipx86.com>
parents:
4378
diff
changeset
|
227 | void *ui_data; /**< UI-specific data. */ |
| 4359 | 228 | }; |
| 229 | ||
| 230 | /** | |
| 231 | * Data specific to Instant Messages. | |
| 232 | */ | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
233 | struct _GaimConvIm |
| 4359 | 234 | { |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
235 | GaimConversation *conv; /**< The parent conversation. */ |
| 4359 | 236 | |
|
5872
754c63f29b77
[gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
5858
diff
changeset
|
237 | GaimTypingState typing_state; /**< The current typing state. */ |
|
4465
43184ae252ed
[gaim-migrate @ 4740]
Christian Hammond <chipx86@chipx86.com>
parents:
4378
diff
changeset
|
238 | guint typing_timeout; /**< The typing timer handle. */ |
|
43184ae252ed
[gaim-migrate @ 4740]
Christian Hammond <chipx86@chipx86.com>
parents:
4378
diff
changeset
|
239 | time_t type_again; /**< The type again time. */ |
|
43184ae252ed
[gaim-migrate @ 4740]
Christian Hammond <chipx86@chipx86.com>
parents:
4378
diff
changeset
|
240 | guint type_again_timeout; /**< The type again timer handle. */ |
| 4359 | 241 | |
|
6846
f814f02dca87
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
242 | GaimBuddyIcon *icon; /**< The buddy icon. */ |
| 4359 | 243 | }; |
| 244 | ||
| 245 | /** | |
| 246 | * Data specific to Chats. | |
| 247 | */ | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
248 | struct _GaimConvChat |
| 4359 | 249 | { |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
250 | GaimConversation *conv; /**< The parent conversation. */ |
| 4359 | 251 | |
|
4465
43184ae252ed
[gaim-migrate @ 4740]
Christian Hammond <chipx86@chipx86.com>
parents:
4378
diff
changeset
|
252 | GList *in_room; /**< The users in the room. */ |
|
43184ae252ed
[gaim-migrate @ 4740]
Christian Hammond <chipx86@chipx86.com>
parents:
4378
diff
changeset
|
253 | GList *ignored; /**< Ignored users. */ |
|
43184ae252ed
[gaim-migrate @ 4740]
Christian Hammond <chipx86@chipx86.com>
parents:
4378
diff
changeset
|
254 | char *who; /**< The person who set the topic. */ |
|
43184ae252ed
[gaim-migrate @ 4740]
Christian Hammond <chipx86@chipx86.com>
parents:
4378
diff
changeset
|
255 | char *topic; /**< The topic. */ |
|
43184ae252ed
[gaim-migrate @ 4740]
Christian Hammond <chipx86@chipx86.com>
parents:
4378
diff
changeset
|
256 | int id; /**< The chat ID. */ |
| 8158 | 257 | char *nick; /**< Your nick in this chat. */ |
| 8256 | 258 | |
| 259 | gboolean left; /**< We left the chat and kept the window open */ | |
| 4359 | 260 | }; |
| 261 | ||
| 262 | /** | |
|
9554
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
263 | * Data for "Chat Buddies" |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
264 | */ |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
265 | struct _GaimConvChatBuddy |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
266 | { |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
267 | char *name; /**< The name */ |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
268 | GaimConvChatBuddyFlags flags; /**< Flags (ops, voice etc.) */ |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
269 | }; |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
270 | |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
271 | /** |
| 4359 | 272 | * A core representation of a conversation between two or more people. |
| 273 | * | |
| 274 | * The conversation can be an IM or a chat. Each conversation is kept | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
275 | * in a GaimConvWindow and has a UI representation. |
| 4359 | 276 | */ |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
277 | struct _GaimConversation |
| 4359 | 278 | { |
| 279 | GaimConversationType type; /**< The type of conversation. */ | |
| 280 | ||
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
281 | GaimAccount *account; /**< The user using this conversation. */ |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
282 | GaimConvWindow *window; /**< The parent window. */ |
| 4359 | 283 | |
| 284 | int conversation_pos; /**< The position in the window's list. */ | |
| 285 | ||
| 286 | char *name; /**< The name of the conversation. */ | |
| 287 | char *title; /**< The window title. */ | |
| 288 | ||
| 289 | gboolean logging; /**< The status of logging. */ | |
| 8158 | 290 | |
| 7431 | 291 | GaimLog *log; /**< This conversation's log */ |
| 8158 | 292 | |
| 4359 | 293 | GList *send_history; /**< The send history. */ |
| 294 | GString *history; /**< The conversation history. */ | |
| 295 | ||
| 296 | GaimUnseenState unseen; /**< The unseen tab state. */ | |
| 297 | ||
| 298 | union | |
| 299 | { | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
300 | GaimConvIm *im; /**< IM-specific data. */ |
|
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
301 | GaimConvChat *chat; /**< Chat-specific data. */ |
|
4378
3bef342997ef
[gaim-migrate @ 4644]
Christian Hammond <chipx86@chipx86.com>
parents:
4359
diff
changeset
|
302 | void *misc; /**< Misc. data. */ |
| 4359 | 303 | |
| 304 | } u; | |
|
4465
43184ae252ed
[gaim-migrate @ 4740]
Christian Hammond <chipx86@chipx86.com>
parents:
4378
diff
changeset
|
305 | |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
306 | GaimConversationUiOps *ui_ops; /**< UI-specific operations. */ |
|
4465
43184ae252ed
[gaim-migrate @ 4740]
Christian Hammond <chipx86@chipx86.com>
parents:
4378
diff
changeset
|
307 | void *ui_data; /**< UI-specific data. */ |
|
4876
b6ec886c8c77
[gaim-migrate @ 5206]
Christian Hammond <chipx86@chipx86.com>
parents:
4491
diff
changeset
|
308 | |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
309 | GHashTable *data; /**< Plugin-specific data. */ |
| 10665 | 310 | |
| 311 | GaimConnectionFlags features; /**< The supported features */ | |
| 312 | ||
| 4359 | 313 | }; |
| 314 | ||
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
315 | typedef void (*GaimConvPlacementFunc)(GaimConversation *); |
| 4359 | 316 | |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
317 | #ifdef __cplusplus |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
318 | extern "C" { |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
319 | #endif |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
320 | |
| 4359 | 321 | /**************************************************************************/ |
| 322 | /** @name Conversation Window API */ | |
| 323 | /**************************************************************************/ | |
| 324 | /*@{*/ | |
| 325 | ||
| 326 | /** | |
| 327 | * Creates a new conversation window. | |
| 328 | * | |
| 329 | * This window is added to the list of windows, but is not shown until | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
330 | * gaim_conv_window_show() is called. |
| 4359 | 331 | * |
| 332 | * @return The new conversation window. | |
| 333 | */ | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
334 | GaimConvWindow *gaim_conv_window_new(void); |
| 4359 | 335 | |
| 336 | /** | |
| 337 | * Destroys the specified conversation window and all conversations in it. | |
| 338 | * | |
| 339 | * @param win The window to destroy. | |
| 340 | */ | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
341 | void gaim_conv_window_destroy(GaimConvWindow *win); |
| 4359 | 342 | |
| 343 | /** | |
| 344 | * Shows the specified conversation window. | |
| 345 | * | |
| 346 | * @param win The window. | |
| 347 | */ | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
348 | void gaim_conv_window_show(GaimConvWindow *win); |
| 4359 | 349 | |
| 350 | /** | |
| 351 | * Hides the specified conversation window. | |
| 352 | * | |
| 353 | * @param win The window. | |
| 354 | */ | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
355 | void gaim_conv_window_hide(GaimConvWindow *win); |
| 4359 | 356 | |
| 357 | /** | |
| 358 | * Raises the specified conversation window. | |
| 359 | * | |
| 360 | * @param win The window. | |
| 361 | */ | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
362 | void gaim_conv_window_raise(GaimConvWindow *win); |
| 4359 | 363 | |
| 364 | /** | |
| 365 | * Causes the window to flash for IM notification, if the UI supports this. | |
|
6585
8fcd3639e544
[gaim-migrate @ 7107]
Christian Hammond <chipx86@chipx86.com>
parents:
6488
diff
changeset
|
366 | * |
| 4359 | 367 | * @param win The window. |
| 368 | */ | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
369 | void gaim_conv_window_flash(GaimConvWindow *win); |
| 4359 | 370 | |
| 371 | /** | |
| 372 | * Sets the specified window's UI window operations structure. | |
| 373 | * | |
| 374 | * @param win The window. | |
| 375 | * @param ops The UI window operations structure. | |
| 376 | */ | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
377 | void gaim_conv_window_set_ui_ops(GaimConvWindow *win, |
| 10827 | 378 | GaimConvWindowUiOps *ops); |
| 4359 | 379 | |
| 380 | /** | |
| 381 | * Returns the specified window's UI window operations structure. | |
| 382 | * | |
| 383 | * @param win The window. | |
| 384 | * | |
| 385 | * @return The UI window operations structure. | |
| 386 | */ | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
387 | GaimConvWindowUiOps *gaim_conv_window_get_ui_ops(const GaimConvWindow *win); |
| 4359 | 388 | |
| 389 | /** | |
| 390 | * Adds a conversation to this window. | |
| 391 | * | |
| 392 | * If the conversation already has a parent window, this will do nothing. | |
| 393 | * | |
| 394 | * @param win The window. | |
| 395 | * @param conv The conversation. | |
| 396 | * | |
| 397 | * @return The new index of the conversation in the window. | |
| 398 | */ | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
399 | int gaim_conv_window_add_conversation(GaimConvWindow *win, |
| 10827 | 400 | GaimConversation *conv); |
| 4359 | 401 | |
| 402 | /** | |
| 10824 | 403 | * Removes the conversation from the window. |
| 4359 | 404 | * |
| 405 | * @param win The window. | |
| 10824 | 406 | * @param conv The conversation. |
| 4359 | 407 | * |
| 408 | * @return The conversation removed. | |
| 409 | */ | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
410 | GaimConversation *gaim_conv_window_remove_conversation(GaimConvWindow *win, |
| 10824 | 411 | GaimConversation *conv); |
| 4359 | 412 | /** |
| 413 | * Returns the number of conversations in the window. | |
| 414 | * | |
| 415 | * @param win The window. | |
| 416 | * | |
| 417 | * @return The number of conversations. | |
| 418 | */ | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
419 | size_t gaim_conv_window_get_conversation_count(const GaimConvWindow *win); |
| 4359 | 420 | |
| 421 | /** | |
| 422 | * Switches the active conversation to the one at the specified index. | |
| 423 | * | |
| 424 | * If @a index is out of range, this does nothing. | |
| 425 | * | |
| 426 | * @param win The window. | |
| 427 | * @param index The new index. | |
| 428 | */ | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
429 | void gaim_conv_window_switch_conversation(GaimConvWindow *win, |
| 10827 | 430 | GaimConversation *conv); |
| 4359 | 431 | |
| 432 | /** | |
| 433 | * Returns the active conversation in the window. | |
| 434 | * | |
| 435 | * @param win The window. | |
| 436 | * | |
| 437 | * @return The active conversation. | |
| 438 | */ | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
439 | GaimConversation *gaim_conv_window_get_active_conversation( |
|
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
440 | const GaimConvWindow *win); |
| 4359 | 441 | |
| 442 | /** | |
|
9260
82d7b380220a
[gaim-migrate @ 10059]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9166
diff
changeset
|
443 | * Determines if a conversation window has focus |
|
82d7b380220a
[gaim-migrate @ 10059]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9166
diff
changeset
|
444 | * |
|
82d7b380220a
[gaim-migrate @ 10059]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9166
diff
changeset
|
445 | * @param win The window. |
|
82d7b380220a
[gaim-migrate @ 10059]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9166
diff
changeset
|
446 | * |
|
82d7b380220a
[gaim-migrate @ 10059]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9166
diff
changeset
|
447 | * @return @c TRUE if the conversation window has focus, @c FALSE if |
|
82d7b380220a
[gaim-migrate @ 10059]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9166
diff
changeset
|
448 | * it does not or the UI does not have a concept of window focus |
|
82d7b380220a
[gaim-migrate @ 10059]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9166
diff
changeset
|
449 | */ |
|
82d7b380220a
[gaim-migrate @ 10059]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9166
diff
changeset
|
450 | gboolean gaim_conv_window_has_focus(GaimConvWindow *win); |
|
82d7b380220a
[gaim-migrate @ 10059]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9166
diff
changeset
|
451 | |
|
82d7b380220a
[gaim-migrate @ 10059]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9166
diff
changeset
|
452 | /** |
| 4359 | 453 | * Returns the list of conversations in the specified window. |
| 454 | * | |
| 455 | * @param win The window. | |
| 456 | * | |
| 457 | * @return The list of conversations. | |
| 458 | */ | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
459 | GList *gaim_conv_window_get_conversations(const GaimConvWindow *win); |
| 4359 | 460 | |
| 461 | /** | |
| 462 | * Returns a list of all windows. | |
| 463 | * | |
| 464 | * @return A list of windows. | |
| 465 | */ | |
| 466 | GList *gaim_get_windows(void); | |
| 467 | ||
|
4469
ef60c820b884
[gaim-migrate @ 4744]
Christian Hammond <chipx86@chipx86.com>
parents:
4465
diff
changeset
|
468 | /** |
|
ef60c820b884
[gaim-migrate @ 4744]
Christian Hammond <chipx86@chipx86.com>
parents:
4465
diff
changeset
|
469 | * Returns the first window containing a conversation of the specified type. |
|
ef60c820b884
[gaim-migrate @ 4744]
Christian Hammond <chipx86@chipx86.com>
parents:
4465
diff
changeset
|
470 | * |
|
ef60c820b884
[gaim-migrate @ 4744]
Christian Hammond <chipx86@chipx86.com>
parents:
4465
diff
changeset
|
471 | * @param type The conversation type. |
|
ef60c820b884
[gaim-migrate @ 4744]
Christian Hammond <chipx86@chipx86.com>
parents:
4465
diff
changeset
|
472 | * |
|
ef60c820b884
[gaim-migrate @ 4744]
Christian Hammond <chipx86@chipx86.com>
parents:
4465
diff
changeset
|
473 | * @return The window if found, or @c NULL if not found. |
|
ef60c820b884
[gaim-migrate @ 4744]
Christian Hammond <chipx86@chipx86.com>
parents:
4465
diff
changeset
|
474 | */ |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
475 | GaimConvWindow *gaim_get_first_window_with_type(GaimConversationType type); |
|
4469
ef60c820b884
[gaim-migrate @ 4744]
Christian Hammond <chipx86@chipx86.com>
parents:
4465
diff
changeset
|
476 | /** |
|
ef60c820b884
[gaim-migrate @ 4744]
Christian Hammond <chipx86@chipx86.com>
parents:
4465
diff
changeset
|
477 | * Returns the last window containing a conversation of the specified type. |
|
ef60c820b884
[gaim-migrate @ 4744]
Christian Hammond <chipx86@chipx86.com>
parents:
4465
diff
changeset
|
478 | * |
|
ef60c820b884
[gaim-migrate @ 4744]
Christian Hammond <chipx86@chipx86.com>
parents:
4465
diff
changeset
|
479 | * @param type The conversation type. |
|
ef60c820b884
[gaim-migrate @ 4744]
Christian Hammond <chipx86@chipx86.com>
parents:
4465
diff
changeset
|
480 | * |
|
ef60c820b884
[gaim-migrate @ 4744]
Christian Hammond <chipx86@chipx86.com>
parents:
4465
diff
changeset
|
481 | * @return The window if found, or @c NULL if not found. |
|
ef60c820b884
[gaim-migrate @ 4744]
Christian Hammond <chipx86@chipx86.com>
parents:
4465
diff
changeset
|
482 | */ |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
483 | GaimConvWindow *gaim_get_last_window_with_type(GaimConversationType type); |
|
4469
ef60c820b884
[gaim-migrate @ 4744]
Christian Hammond <chipx86@chipx86.com>
parents:
4465
diff
changeset
|
484 | |
| 4359 | 485 | /*@}*/ |
| 486 | ||
| 487 | /**************************************************************************/ | |
| 488 | /** @name Conversation API */ | |
| 489 | /**************************************************************************/ | |
| 490 | /*@{*/ | |
| 491 | ||
| 492 | /** | |
| 493 | * Creates a new conversation of the specified type. | |
| 494 | * | |
|
6720
cdc5348dd848
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6622
diff
changeset
|
495 | * @param type The type of conversation. |
|
cdc5348dd848
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6622
diff
changeset
|
496 | * @param account The account opening the conversation window on the gaim |
|
cdc5348dd848
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6622
diff
changeset
|
497 | * user's end. |
|
cdc5348dd848
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6622
diff
changeset
|
498 | * @param name The name of the conversation. |
| 4359 | 499 | * |
| 500 | * @return The new conversation. | |
| 501 | */ | |
|
6585
8fcd3639e544
[gaim-migrate @ 7107]
Christian Hammond <chipx86@chipx86.com>
parents:
6488
diff
changeset
|
502 | GaimConversation *gaim_conversation_new(GaimConversationType type, |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
503 | GaimAccount *account, |
|
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
504 | const char *name); |
| 4359 | 505 | |
| 506 | /** | |
| 507 | * Destroys the specified conversation and removes it from the parent | |
| 508 | * window. | |
| 509 | * | |
| 510 | * If this conversation is the only one contained in the parent window, | |
| 511 | * that window is also destroyed. | |
| 512 | * | |
| 513 | * @param conv The conversation to destroy. | |
| 514 | */ | |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
515 | void gaim_conversation_destroy(GaimConversation *conv); |
| 4359 | 516 | |
| 517 | /** | |
| 518 | * Returns the specified conversation's type. | |
| 519 | * | |
| 520 | * @param conv The conversation. | |
| 521 | * | |
| 522 | * @return The conversation's type. | |
| 523 | */ | |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
524 | GaimConversationType gaim_conversation_get_type(const GaimConversation *conv); |
| 4359 | 525 | |
| 526 | /** | |
| 527 | * Sets the specified conversation's UI operations structure. | |
| 528 | * | |
| 529 | * @param conv The conversation. | |
| 530 | * @param ops The UI conversation operations structure. | |
| 531 | */ | |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
532 | void gaim_conversation_set_ui_ops(GaimConversation *conv, |
|
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
533 | GaimConversationUiOps *ops); |
| 4359 | 534 | |
| 535 | /** | |
| 536 | * Returns the specified conversation's UI operations structure. | |
|
6585
8fcd3639e544
[gaim-migrate @ 7107]
Christian Hammond <chipx86@chipx86.com>
parents:
6488
diff
changeset
|
537 | * |
| 4359 | 538 | * @param conv The conversation. |
| 539 | * | |
| 540 | * @return The operations structure. | |
| 541 | */ | |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
542 | GaimConversationUiOps *gaim_conversation_get_ui_ops( |
|
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
543 | const GaimConversation *conv); |
| 4359 | 544 | |
| 545 | /** | |
| 4491 | 546 | * Sets the specified conversation's gaim_account. |
| 4359 | 547 | * |
| 4491 | 548 | * This gaim_account represents the user using gaim, not the person the user |
| 4359 | 549 | * is having a conversation/chat/flame with. |
| 550 | * | |
| 551 | * @param conv The conversation. | |
| 4491 | 552 | * @param account The gaim_account. |
| 4359 | 553 | */ |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
554 | void gaim_conversation_set_account(GaimConversation *conv, |
| 10827 | 555 | GaimAccount *account); |
| 4359 | 556 | |
| 557 | /** | |
| 4491 | 558 | * Returns the specified conversation's gaim_account. |
| 4359 | 559 | * |
| 4491 | 560 | * This gaim_account represents the user using gaim, not the person the user |
| 4359 | 561 | * is having a conversation/chat/flame with. |
| 562 | * | |
| 563 | * @param conv The conversation. | |
| 564 | * | |
| 4491 | 565 | * @return The conversation's gaim_account. |
| 4359 | 566 | */ |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
567 | GaimAccount *gaim_conversation_get_account(const GaimConversation *conv); |
| 4359 | 568 | |
| 569 | /** | |
| 570 | * Returns the specified conversation's gaim_connection. | |
| 571 | * | |
| 572 | * This is the same as gaim_conversation_get_user(conv)->gc. | |
| 573 | * | |
| 574 | * @param conv The conversation. | |
| 575 | * | |
| 576 | * @return The conversation's gaim_connection. | |
| 577 | */ | |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
578 | GaimConnection *gaim_conversation_get_gc(const GaimConversation *conv); |
| 4359 | 579 | |
| 580 | /** | |
| 581 | * Sets the specified conversation's title. | |
| 582 | * | |
| 583 | * @param conv The conversation. | |
| 584 | * @param title The title. | |
| 585 | */ | |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
586 | void gaim_conversation_set_title(GaimConversation *conv, const char *title); |
| 4359 | 587 | |
| 588 | /** | |
| 589 | * Returns the specified conversation's title. | |
| 590 | * | |
|
6720
cdc5348dd848
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6622
diff
changeset
|
591 | * @param conv The conversation. |
| 4359 | 592 | * |
| 593 | * @return The title. | |
| 594 | */ | |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
595 | const char *gaim_conversation_get_title(const GaimConversation *conv); |
| 4359 | 596 | |
| 597 | /** | |
| 598 | * Automatically sets the specified conversation's title. | |
| 599 | * | |
| 600 | * This function takes OPT_IM_ALIAS_TAB into account, as well as the | |
| 601 | * user's alias. | |
| 602 | * | |
| 603 | * @param conv The conversation. | |
| 604 | */ | |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
605 | void gaim_conversation_autoset_title(GaimConversation *conv); |
| 4359 | 606 | |
| 607 | /** | |
| 608 | * Sets the conversation's unseen state. | |
| 609 | * | |
| 610 | * @param conv The conversation. | |
| 611 | * @param state The new unseen state. | |
| 612 | */ | |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
613 | void gaim_conversation_set_unseen(GaimConversation *conv, |
| 10827 | 614 | GaimUnseenState state); |
| 4359 | 615 | |
| 616 | /** | |
| 617 | * Returns the conversation's unseen state. | |
| 618 | * | |
| 619 | * @param conv The conversation. | |
| 620 | * | |
|
6720
cdc5348dd848
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6622
diff
changeset
|
621 | * @return The conversation's unseen state. |
| 4359 | 622 | */ |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
623 | GaimUnseenState gaim_conversation_get_unseen(const GaimConversation *conv); |
| 4359 | 624 | |
| 625 | /** | |
|
7256
311c8febfc92
[gaim-migrate @ 7833]
Christian Hammond <chipx86@chipx86.com>
parents:
7122
diff
changeset
|
626 | * Sets the specified conversation's name. |
|
311c8febfc92
[gaim-migrate @ 7833]
Christian Hammond <chipx86@chipx86.com>
parents:
7122
diff
changeset
|
627 | * |
|
311c8febfc92
[gaim-migrate @ 7833]
Christian Hammond <chipx86@chipx86.com>
parents:
7122
diff
changeset
|
628 | * @param conv The conversation. |
|
311c8febfc92
[gaim-migrate @ 7833]
Christian Hammond <chipx86@chipx86.com>
parents:
7122
diff
changeset
|
629 | * @param name The conversation's name. |
|
311c8febfc92
[gaim-migrate @ 7833]
Christian Hammond <chipx86@chipx86.com>
parents:
7122
diff
changeset
|
630 | */ |
|
311c8febfc92
[gaim-migrate @ 7833]
Christian Hammond <chipx86@chipx86.com>
parents:
7122
diff
changeset
|
631 | void gaim_conversation_set_name(GaimConversation *conv, const char *name); |
|
311c8febfc92
[gaim-migrate @ 7833]
Christian Hammond <chipx86@chipx86.com>
parents:
7122
diff
changeset
|
632 | |
|
311c8febfc92
[gaim-migrate @ 7833]
Christian Hammond <chipx86@chipx86.com>
parents:
7122
diff
changeset
|
633 | /** |
| 4359 | 634 | * Returns the specified conversation's name. |
| 635 | * | |
| 636 | * @param conv The conversation. | |
| 637 | * | |
| 638 | * @return The conversation's name. | |
| 639 | */ | |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
640 | const char *gaim_conversation_get_name(const GaimConversation *conv); |
| 4359 | 641 | |
| 642 | /** | |
| 643 | * Enables or disables logging for this conversation. | |
| 644 | * | |
|
6720
cdc5348dd848
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6622
diff
changeset
|
645 | * @param conv The conversation. |
|
cdc5348dd848
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6622
diff
changeset
|
646 | * @param log @c TRUE if logging should be enabled, or @c FALSE otherwise. |
| 4359 | 647 | */ |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
648 | void gaim_conversation_set_logging(GaimConversation *conv, gboolean log); |
| 4359 | 649 | |
| 650 | /** | |
| 651 | * Returns whether or not logging is enabled for this conversation. | |
| 652 | * | |
|
6720
cdc5348dd848
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6622
diff
changeset
|
653 | * @param conv The conversation. |
|
cdc5348dd848
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6622
diff
changeset
|
654 | * |
| 4359 | 655 | * @return @c TRUE if logging is enabled, or @c FALSE otherwise. |
| 656 | */ | |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
657 | gboolean gaim_conversation_is_logging(const GaimConversation *conv); |
| 4359 | 658 | |
| 659 | /** | |
| 660 | * Returns the specified conversation's send history. | |
| 661 | * | |
| 662 | * @param conv The conversation. | |
| 663 | * | |
| 664 | * @return The conversation's send history. | |
| 665 | */ | |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
666 | GList *gaim_conversation_get_send_history(const GaimConversation *conv); |
| 4359 | 667 | |
| 668 | /** | |
| 669 | * Sets the specified conversation's history. | |
| 670 | * | |
| 671 | * @param conv The conversation. | |
| 672 | * @param history The history. | |
| 673 | */ | |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
674 | void gaim_conversation_set_history(GaimConversation *conv, GString *history); |
| 4359 | 675 | |
| 676 | /** | |
| 677 | * Returns the specified conversation's history. | |
| 678 | * | |
| 679 | * @param conv The conversation. | |
| 680 | * | |
| 681 | * @return The conversation's history. | |
| 682 | */ | |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
683 | GString *gaim_conversation_get_history(const GaimConversation *conv); |
| 4359 | 684 | |
| 685 | /** | |
| 686 | * Returns the specified conversation's parent window. | |
| 687 | * | |
| 688 | * @param conv The conversation. | |
| 689 | * | |
| 690 | * @return The conversation's parent window. | |
| 691 | */ | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
692 | GaimConvWindow *gaim_conversation_get_window(const GaimConversation *conv); |
| 4359 | 693 | |
| 694 | /** | |
| 695 | * Returns the specified conversation's IM-specific data. | |
| 696 | * | |
| 697 | * If the conversation type is not GAIM_CONV_IM, this will return @c NULL. | |
| 698 | * | |
| 699 | * @param conv The conversation. | |
| 700 | * | |
| 701 | * @return The IM-specific data. | |
| 702 | */ | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
703 | GaimConvIm *gaim_conversation_get_im_data(const GaimConversation *conv); |
| 4359 | 704 | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
705 | #define GAIM_CONV_IM(c) (gaim_conversation_get_im_data(c)) |
| 4359 | 706 | |
| 707 | /** | |
| 708 | * Returns the specified conversation's chat-specific data. | |
| 709 | * | |
| 710 | * If the conversation type is not GAIM_CONV_CHAT, this will return @c NULL. | |
| 711 | * | |
| 712 | * @param conv The conversation. | |
| 713 | * | |
| 714 | * @return The chat-specific data. | |
| 715 | */ | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
716 | GaimConvChat *gaim_conversation_get_chat_data(const GaimConversation *conv); |
| 4359 | 717 | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
718 | #define GAIM_CONV_CHAT(c) (gaim_conversation_get_chat_data(c)) |
| 4359 | 719 | |
| 720 | /** | |
|
4877
7d1f4381fed0
[gaim-migrate @ 5207]
Christian Hammond <chipx86@chipx86.com>
parents:
4876
diff
changeset
|
721 | * Sets extra data for a conversation. |
|
6585
8fcd3639e544
[gaim-migrate @ 7107]
Christian Hammond <chipx86@chipx86.com>
parents:
6488
diff
changeset
|
722 | * |
|
4876
b6ec886c8c77
[gaim-migrate @ 5206]
Christian Hammond <chipx86@chipx86.com>
parents:
4491
diff
changeset
|
723 | * @param conv The conversation. |
|
b6ec886c8c77
[gaim-migrate @ 5206]
Christian Hammond <chipx86@chipx86.com>
parents:
4491
diff
changeset
|
724 | * @param key The unique key. |
|
b6ec886c8c77
[gaim-migrate @ 5206]
Christian Hammond <chipx86@chipx86.com>
parents:
4491
diff
changeset
|
725 | * @param data The data to assign. |
|
b6ec886c8c77
[gaim-migrate @ 5206]
Christian Hammond <chipx86@chipx86.com>
parents:
4491
diff
changeset
|
726 | */ |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
727 | void gaim_conversation_set_data(GaimConversation *conv, const char *key, |
|
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
728 | gpointer data); |
|
4876
b6ec886c8c77
[gaim-migrate @ 5206]
Christian Hammond <chipx86@chipx86.com>
parents:
4491
diff
changeset
|
729 | |
|
b6ec886c8c77
[gaim-migrate @ 5206]
Christian Hammond <chipx86@chipx86.com>
parents:
4491
diff
changeset
|
730 | /** |
|
4877
7d1f4381fed0
[gaim-migrate @ 5207]
Christian Hammond <chipx86@chipx86.com>
parents:
4876
diff
changeset
|
731 | * Returns extra data in a conversation. |
|
4876
b6ec886c8c77
[gaim-migrate @ 5206]
Christian Hammond <chipx86@chipx86.com>
parents:
4491
diff
changeset
|
732 | * |
|
b6ec886c8c77
[gaim-migrate @ 5206]
Christian Hammond <chipx86@chipx86.com>
parents:
4491
diff
changeset
|
733 | * @param conv The conversation. |
|
b6ec886c8c77
[gaim-migrate @ 5206]
Christian Hammond <chipx86@chipx86.com>
parents:
4491
diff
changeset
|
734 | * @param key The unqiue key. |
|
b6ec886c8c77
[gaim-migrate @ 5206]
Christian Hammond <chipx86@chipx86.com>
parents:
4491
diff
changeset
|
735 | * |
|
b6ec886c8c77
[gaim-migrate @ 5206]
Christian Hammond <chipx86@chipx86.com>
parents:
4491
diff
changeset
|
736 | * @return The data associated with the key. |
|
b6ec886c8c77
[gaim-migrate @ 5206]
Christian Hammond <chipx86@chipx86.com>
parents:
4491
diff
changeset
|
737 | */ |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
738 | gpointer gaim_conversation_get_data(GaimConversation *conv, const char *key); |
|
4876
b6ec886c8c77
[gaim-migrate @ 5206]
Christian Hammond <chipx86@chipx86.com>
parents:
4491
diff
changeset
|
739 | |
|
b6ec886c8c77
[gaim-migrate @ 5206]
Christian Hammond <chipx86@chipx86.com>
parents:
4491
diff
changeset
|
740 | /** |
| 4359 | 741 | * Returns a list of all conversations. |
| 742 | * | |
| 743 | * This list includes both IMs and chats. | |
| 744 | * | |
| 745 | * @return A GList of all conversations. | |
| 746 | */ | |
| 747 | GList *gaim_get_conversations(void); | |
| 748 | ||
| 749 | /** | |
| 750 | * Returns a list of all IMs. | |
| 751 | * | |
| 752 | * @return A GList of all IMs. | |
| 753 | */ | |
| 754 | GList *gaim_get_ims(void); | |
| 755 | ||
| 756 | /** | |
| 757 | * Returns a list of all chats. | |
| 758 | * | |
| 759 | * @return A GList of all chats. | |
| 760 | */ | |
| 761 | GList *gaim_get_chats(void); | |
| 762 | ||
| 763 | /** | |
|
10246
aa5bff72f94c
[gaim-migrate @ 11386]
Mark Doliner <markdoliner@pidgin.im>
parents:
10008
diff
changeset
|
764 | * Finds a conversation with the specified type, name, and Gaim account. |
| 4359 | 765 | * |
|
10246
aa5bff72f94c
[gaim-migrate @ 11386]
Mark Doliner <markdoliner@pidgin.im>
parents:
10008
diff
changeset
|
766 | * @param type The type of the conversation. |
| 4359 | 767 | * @param name The name of the conversation. |
| 4491 | 768 | * @param account The gaim_account associated with the conversation. |
| 4359 | 769 | * |
| 770 | * @return The conversation if found, or @c NULL otherwise. | |
| 771 | */ | |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
772 | GaimConversation *gaim_find_conversation_with_account( |
|
10246
aa5bff72f94c
[gaim-migrate @ 11386]
Mark Doliner <markdoliner@pidgin.im>
parents:
10008
diff
changeset
|
773 | GaimConversationType type, const char *name, |
|
aa5bff72f94c
[gaim-migrate @ 11386]
Mark Doliner <markdoliner@pidgin.im>
parents:
10008
diff
changeset
|
774 | const GaimAccount *account); |
| 4359 | 775 | |
| 776 | /** | |
| 777 | * Writes to a conversation window. | |
| 778 | * | |
| 779 | * This function should not be used to write IM or chat messages. Use | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
780 | * gaim_conv_im_write() and gaim_conv_chat_write() instead. Those functions will |
| 4359 | 781 | * most likely call this anyway, but they may do their own formatting, |
| 782 | * sound playback, etc. | |
| 783 | * | |
| 784 | * This can be used to write generic messages, such as "so and so closed | |
| 785 | * the conversation window." | |
| 786 | * | |
| 787 | * @param conv The conversation. | |
| 788 | * @param who The user who sent the message. | |
| 789 | * @param message The message. | |
|
6621
2a18ef3e5224
[gaim-migrate @ 7145]
Robert McQueen <robot101@debian.org>
parents:
6605
diff
changeset
|
790 | * @param flags The message flags. |
| 4359 | 791 | * @param mtime The time the message was sent. |
| 792 | * | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
793 | * @see gaim_conv_im_write() |
|
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
794 | * @see gaim_conv_chat_write() |
| 4359 | 795 | */ |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
796 | void gaim_conversation_write(GaimConversation *conv, const char *who, |
| 10665 | 797 | const char *message, GaimMessageFlags flags, |
| 798 | time_t mtime); | |
| 799 | ||
| 800 | ||
| 801 | /** | |
| 802 | Set the features as supported for the given conversation. | |
| 803 | @param conv The conversation | |
| 804 | @param features Bitset defining supported features | |
| 805 | */ | |
| 806 | void gaim_conversation_set_features(GaimConversation *conv, | |
| 807 | GaimConnectionFlags features); | |
| 808 | ||
| 809 | ||
| 810 | /** | |
| 811 | Get the features supported by the given conversation. | |
| 812 | @param conv The conversation | |
| 813 | */ | |
| 814 | GaimConnectionFlags gaim_conversation_get_features(GaimConversation *conv); | |
| 815 | ||
| 4359 | 816 | |
| 817 | /** | |
| 818 | * Updates the progress bar on a conversation window | |
| 819 | * (if one exists in the UI). | |
| 820 | * | |
| 821 | * This is used for loading images typically. | |
| 822 | * | |
| 823 | * @param conv The conversation. | |
| 824 | * @param percent The percentage. | |
| 825 | */ | |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
826 | void gaim_conversation_update_progress(GaimConversation *conv, float percent); |
| 4359 | 827 | |
| 828 | /** | |
|
9260
82d7b380220a
[gaim-migrate @ 10059]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9166
diff
changeset
|
829 | * Determines if a conversation has focus |
|
82d7b380220a
[gaim-migrate @ 10059]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9166
diff
changeset
|
830 | * |
|
82d7b380220a
[gaim-migrate @ 10059]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9166
diff
changeset
|
831 | * @param conv The conversation. |
|
82d7b380220a
[gaim-migrate @ 10059]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9166
diff
changeset
|
832 | * |
|
82d7b380220a
[gaim-migrate @ 10059]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9166
diff
changeset
|
833 | * @return @c TRUE if the conversation has focus, @c FALSE if |
|
82d7b380220a
[gaim-migrate @ 10059]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9166
diff
changeset
|
834 | * 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
|
835 | */ |
|
82d7b380220a
[gaim-migrate @ 10059]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9166
diff
changeset
|
836 | gboolean gaim_conversation_has_focus(GaimConversation *conv); |
|
82d7b380220a
[gaim-migrate @ 10059]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9166
diff
changeset
|
837 | |
|
82d7b380220a
[gaim-migrate @ 10059]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9166
diff
changeset
|
838 | /** |
| 4359 | 839 | * Updates the visual status and UI of a conversation. |
| 840 | * | |
| 841 | * @param conv The conversation. | |
| 842 | * @param type The update type. | |
| 843 | */ | |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
844 | void gaim_conversation_update(GaimConversation *conv, GaimConvUpdateType type); |
| 4359 | 845 | |
| 846 | /** | |
| 847 | * Calls a function on each conversation. | |
| 848 | * | |
| 849 | * @param func The function. | |
| 850 | */ | |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
851 | void gaim_conversation_foreach(void (*func)(GaimConversation *conv)); |
| 4359 | 852 | |
| 853 | /*@}*/ | |
| 854 | ||
| 855 | ||
| 856 | /**************************************************************************/ | |
| 857 | /** @name IM Conversation API */ | |
| 858 | /**************************************************************************/ | |
| 859 | /*@{*/ | |
| 860 | ||
| 861 | /** | |
| 862 | * Gets an IM's parent conversation. | |
| 863 | * | |
| 864 | * @param im The IM. | |
| 865 | * | |
| 866 | * @return The parent conversation. | |
| 867 | */ | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
868 | GaimConversation *gaim_conv_im_get_conversation(const GaimConvIm *im); |
| 4359 | 869 | |
| 870 | /** | |
|
6846
f814f02dca87
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
871 | * Sets the IM's buddy icon. |
|
f814f02dca87
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
872 | * |
|
f814f02dca87
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
873 | * This should only be called from within Gaim. You probably want to |
|
f814f02dca87
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
874 | * call gaim_buddy_icon_set_data(). |
|
f814f02dca87
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
875 | * |
|
f814f02dca87
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
876 | * @param im The IM. |
|
f814f02dca87
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
877 | * @param icon The buddy icon. |
|
f814f02dca87
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
878 | * |
|
f814f02dca87
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
879 | * @see gaim_buddy_icon_set_data() |
|
f814f02dca87
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
880 | */ |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
881 | void gaim_conv_im_set_icon(GaimConvIm *im, GaimBuddyIcon *icon); |
|
6846
f814f02dca87
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
882 | |
|
f814f02dca87
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
883 | /** |
|
f814f02dca87
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
884 | * Returns the IM's buddy icon. |
|
f814f02dca87
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
885 | * |
|
f814f02dca87
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
886 | * @param im The IM. |
|
f814f02dca87
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
887 | * |
|
f814f02dca87
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
888 | * @return The buddy icon. |
|
f814f02dca87
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
889 | */ |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
890 | GaimBuddyIcon *gaim_conv_im_get_icon(const GaimConvIm *im); |
|
6846
f814f02dca87
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
891 | |
|
f814f02dca87
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
892 | /** |
| 4359 | 893 | * Sets the IM's typing state. |
| 894 | * | |
| 895 | * @param im The IM. | |
| 896 | * @param state The typing state. | |
| 897 | */ | |
|
8288
457cf0339c09
[gaim-migrate @ 9012]
Christian Hammond <chipx86@chipx86.com>
parents:
8256
diff
changeset
|
898 | void gaim_conv_im_set_typing_state(GaimConvIm *im, GaimTypingState state); |
| 4359 | 899 | |
| 900 | /** | |
| 901 | * Returns the IM's typing state. | |
| 902 | * | |
| 903 | * @param im The IM. | |
| 904 | * | |
| 905 | * @return The IM's typing state. | |
| 906 | */ | |
|
8288
457cf0339c09
[gaim-migrate @ 9012]
Christian Hammond <chipx86@chipx86.com>
parents:
8256
diff
changeset
|
907 | GaimTypingState gaim_conv_im_get_typing_state(const GaimConvIm *im); |
| 4359 | 908 | |
| 909 | /** | |
| 910 | * Starts the IM's typing timeout. | |
| 911 | * | |
| 912 | * @param im The IM. | |
| 913 | * @param timeout The timeout. | |
| 914 | */ | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
915 | void gaim_conv_im_start_typing_timeout(GaimConvIm *im, int timeout); |
| 4359 | 916 | |
| 917 | /** | |
| 918 | * Stops the IM's typing timeout. | |
| 919 | * | |
| 920 | * @param im The IM. | |
| 921 | */ | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
922 | void gaim_conv_im_stop_typing_timeout(GaimConvIm *im); |
| 4359 | 923 | |
| 924 | /** | |
| 925 | * Returns the IM's typing timeout. | |
| 926 | * | |
| 927 | * @param im The IM. | |
| 928 | * | |
| 929 | * @return The timeout. | |
| 930 | */ | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
931 | guint gaim_conv_im_get_typing_timeout(const GaimConvIm *im); |
| 4359 | 932 | |
| 933 | /** | |
| 934 | * Sets the IM's time until it should send another typing notification. | |
| 935 | * | |
| 936 | * @param im The IM. | |
| 937 | * @param val The time. | |
| 938 | */ | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
939 | void gaim_conv_im_set_type_again(GaimConvIm *im, time_t val); |
| 4359 | 940 | |
| 941 | /** | |
| 942 | * Returns the IM's time until it should send another typing notification. | |
| 943 | * | |
| 944 | * @param im The IM. | |
| 945 | * | |
| 946 | * @return The time. | |
| 947 | */ | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
948 | time_t gaim_conv_im_get_type_again(const GaimConvIm *im); |
| 4359 | 949 | |
| 950 | /** | |
| 951 | * Starts the IM's type again timeout. | |
| 952 | * | |
| 953 | * @param im The IM. | |
| 954 | */ | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
955 | void gaim_conv_im_start_type_again_timeout(GaimConvIm *im); |
| 4359 | 956 | |
| 957 | /** | |
| 958 | * Stops the IM's type again timeout. | |
| 959 | * | |
| 960 | * @param im The IM. | |
| 961 | */ | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
962 | void gaim_conv_im_stop_type_again_timeout(GaimConvIm *im); |
| 4359 | 963 | |
| 964 | /** | |
| 965 | * Returns the IM's type again timeout interval. | |
| 966 | * | |
| 967 | * @param im The IM. | |
| 968 | * | |
| 969 | * @return The type again timeout interval. | |
| 970 | */ | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
971 | guint gaim_conv_im_get_type_again_timeout(const GaimConvIm *im); |
| 4359 | 972 | |
| 973 | /** | |
| 974 | * Updates the visual typing notification for an IM conversation. | |
| 975 | * | |
| 976 | * @param im The IM. | |
| 977 | */ | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
978 | void gaim_conv_im_update_typing(GaimConvIm *im); |
| 4359 | 979 | |
| 980 | /** | |
| 981 | * Writes to an IM. | |
| 982 | * | |
| 983 | * @param im The IM. | |
| 984 | * @param who The user who sent the message. | |
| 985 | * @param message The message to write. | |
|
6621
2a18ef3e5224
[gaim-migrate @ 7145]
Robert McQueen <robot101@debian.org>
parents:
6605
diff
changeset
|
986 | * @param flags The message flags. |
| 4359 | 987 | * @param mtime The time the message was sent. |
| 988 | */ | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
989 | void gaim_conv_im_write(GaimConvIm *im, const char *who, |
|
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
990 | const char *message, GaimMessageFlags flags, |
|
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
991 | time_t mtime); |
| 4359 | 992 | |
| 993 | /** | |
| 9627 | 994 | * Presents an IM-error to the user |
| 995 | * | |
| 996 | * This is a helper function to find a conversation, write an error to it, and | |
| 997 | * raise the window. If a conversation with this user doesn't already exist, | |
| 998 | * the function will return FALSE and the calling function can attempt to present | |
| 999 | * the error another way (gaim_notify_error, most likely) | |
| 1000 | * | |
| 1001 | * @param who The user this error is about | |
| 1002 | * @param account The account this error is on | |
| 1003 | * @param what The error | |
| 1004 | * @return TRUE if the error was presented, else FALSE | |
| 1005 | */ | |
| 1006 | gboolean gaim_conv_present_error(const char *who, GaimAccount *account, const char *what); | |
| 1007 | ||
| 1008 | /** | |
| 4359 | 1009 | * Sends a message to this IM conversation. |
| 1010 | * | |
| 1011 | * @param im The IM. | |
| 1012 | * @param message The message to send. | |
| 1013 | */ | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
1014 | void gaim_conv_im_send(GaimConvIm *im, const char *message); |
| 4359 | 1015 | |
| 10526 | 1016 | /** |
| 10528 | 1017 | * Adds a smiley to the conversation's smiley tree. If this returns |
| 1018 | * @c TRUE you should call gaim_conv_custom_smiley_write() one or more | |
| 1019 | * times, and then gaim_conv_custom_smiley_close(). If this returns | |
| 1020 | * @c FALSE, either the conv or smile were invalid, or the icon was | |
| 1021 | * found in the cache. In either case, calling write or close would | |
| 1022 | * be an error. | |
| 10526 | 1023 | * |
| 1024 | * @param conv The conversation to associate the smiley with. | |
| 1025 | * @param smile The text associated with the smiley | |
| 1026 | * @param cksum_type The type of checksum. | |
| 1027 | * @param chksum The checksum, as a NUL terminated base64 string. | |
| 10528 | 1028 | * @return @c TRUE if an icon is expected, else FALSE. Note that |
| 10526 | 1029 | * it is an error to never call gaim_conv_custom_smiley_close if |
| 1030 | * this function returns @c TRUE, but an error to call it if | |
| 1031 | * @c FALSE is returned. | |
| 1032 | */ | |
| 1033 | ||
| 1034 | gboolean gaim_conv_custom_smiley_add(GaimConversation *conv, const char *smile, | |
| 1035 | const char *cksum_type, const char *chksum); | |
| 1036 | ||
| 1037 | ||
| 1038 | /** | |
| 1039 | * Updates the image associated with the current smiley. | |
| 1040 | * | |
| 1041 | * @param conv The conversation associated with the smiley. | |
| 1042 | * @param smile The text associated with the smiley. | |
| 1043 | * @param data The actual image data. | |
| 1044 | * @param size The length of the data. | |
| 1045 | */ | |
| 1046 | ||
| 1047 | void gaim_conv_custom_smiley_write(GaimConversation *conv, | |
| 1048 | const char *smile, const char * data, | |
| 1049 | gint64 size); | |
| 1050 | ||
| 1051 | /** | |
| 1052 | * Close the custom smiley, all data has been written with | |
| 1053 | * gaim_conv_custom_smiley_write, and it is no longer valid | |
| 1054 | * to call that function on that smiley. | |
| 1055 | * | |
| 1056 | * @param conv The gaim conversation associated with the smiley. | |
| 1057 | * @param smile The text associated with the smiley | |
| 1058 | */ | |
| 1059 | ||
| 1060 | void gaim_conv_custom_smiley_close(GaimConversation *conv, const char *smile); | |
| 1061 | ||
| 4359 | 1062 | /*@}*/ |
| 1063 | ||
| 1064 | ||
| 1065 | /**************************************************************************/ | |
| 1066 | /** @name Chat Conversation API */ | |
| 1067 | /**************************************************************************/ | |
| 1068 | /*@{*/ | |
| 1069 | ||
| 1070 | /** | |
| 1071 | * Gets a chat's parent conversation. | |
| 1072 | * | |
| 1073 | * @param chat The chat. | |
| 1074 | * | |
| 1075 | * @return The parent conversation. | |
| 1076 | */ | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
1077 | GaimConversation *gaim_conv_chat_get_conversation(const GaimConvChat *chat); |
| 4359 | 1078 | |
| 1079 | /** | |
| 1080 | * Sets the list of users in the chat room. | |
| 1081 | * | |
|
6407
d67b6a6ba7d2
[gaim-migrate @ 6913]
Christian Hammond <chipx86@chipx86.com>
parents:
6405
diff
changeset
|
1082 | * @note Calling this function will not update the display of the users. |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
1083 | * Please use gaim_conv_chat_add_user(), gaim_conv_chat_add_users(), |
|
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
1084 | * gaim_conv_chat_remove_user(), and gaim_conv_chat_remove_users() instead. |
|
6407
d67b6a6ba7d2
[gaim-migrate @ 6913]
Christian Hammond <chipx86@chipx86.com>
parents:
6405
diff
changeset
|
1085 | * |
| 4359 | 1086 | * @param chat The chat. |
| 1087 | * @param users The list of users. | |
| 1088 | * | |
| 1089 | * @return The list passed. | |
| 1090 | */ | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
1091 | GList *gaim_conv_chat_set_users(GaimConvChat *chat, GList *users); |
| 4359 | 1092 | |
| 1093 | /** | |
| 1094 | * Returns a list of users in the chat room. | |
| 1095 | * | |
| 1096 | * @param chat The chat. | |
| 1097 | * | |
| 1098 | * @return The list of users. | |
| 1099 | */ | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
1100 | GList *gaim_conv_chat_get_users(const GaimConvChat *chat); |
| 4359 | 1101 | |
| 1102 | /** | |
| 1103 | * Ignores a user in a chat room. | |
| 1104 | * | |
| 1105 | * @param chat The chat. | |
| 1106 | * @param name The name of the user. | |
| 1107 | */ | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
1108 | void gaim_conv_chat_ignore(GaimConvChat *chat, const char *name); |
| 4359 | 1109 | |
| 1110 | /** | |
| 1111 | * Unignores a user in a chat room. | |
| 1112 | * | |
| 1113 | * @param chat The chat. | |
| 1114 | * @param name The name of the user. | |
| 1115 | */ | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
1116 | void gaim_conv_chat_unignore(GaimConvChat *chat, const char *name); |
| 4359 | 1117 | |
| 1118 | /** | |
| 1119 | * Sets the list of ignored users in the chat room. | |
| 1120 | * | |
| 1121 | * @param chat The chat. | |
| 1122 | * @param ignored The list of ignored users. | |
| 1123 | * | |
| 1124 | * @return The list passed. | |
| 1125 | */ | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
1126 | GList *gaim_conv_chat_set_ignored(GaimConvChat *chat, GList *ignored); |
| 4359 | 1127 | |
| 1128 | /** | |
| 1129 | * Returns the list of ignored users in the chat room. | |
| 1130 | * | |
| 1131 | * @param chat The chat. | |
| 1132 | * | |
| 1133 | * @return The list of ignored users. | |
| 1134 | */ | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
1135 | GList *gaim_conv_chat_get_ignored(const GaimConvChat *chat); |
| 4359 | 1136 | |
| 1137 | /** | |
| 1138 | * Returns the actual name of the specified ignored user, if it exists in | |
| 1139 | * the ignore list. | |
| 1140 | * | |
| 1141 | * If the user found contains a prefix, such as '+' or '\@', this is also | |
| 1142 | * returned. The username passed to the function does not have to have this | |
| 1143 | * formatting. | |
| 1144 | * | |
| 1145 | * @param chat The chat. | |
| 1146 | * @param user The user to check in the ignore list. | |
| 1147 | * | |
| 1148 | * @return The ignored user if found, complete with prefixes, or @c NULL | |
| 1149 | * if not found. | |
| 1150 | */ | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
1151 | const char *gaim_conv_chat_get_ignored_user(const GaimConvChat *chat, |
|
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
1152 | const char *user); |
| 4359 | 1153 | |
| 1154 | /** | |
| 1155 | * Returns @c TRUE if the specified user is ignored. | |
| 1156 | * | |
| 1157 | * @param chat The chat. | |
| 1158 | * @param user The user. | |
| 1159 | * | |
| 1160 | * @return @c TRUE if the user is in the ignore list; @c FALSE otherwise. | |
| 1161 | */ | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
1162 | gboolean gaim_conv_chat_is_user_ignored(const GaimConvChat *chat, |
|
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
1163 | const char *user); |
| 4359 | 1164 | |
| 1165 | /** | |
| 1166 | * Sets the chat room's topic. | |
| 1167 | * | |
| 1168 | * @param chat The chat. | |
| 1169 | * @param who The user that set the topic. | |
| 1170 | * @param topic The topic. | |
| 1171 | */ | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
1172 | void gaim_conv_chat_set_topic(GaimConvChat *chat, const char *who, |
|
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
1173 | const char *topic); |
| 4359 | 1174 | |
| 1175 | /** | |
| 1176 | * Returns the chat room's topic. | |
| 1177 | * | |
| 1178 | * @param chat The chat. | |
| 1179 | * | |
| 1180 | * @return The chat's topic. | |
| 1181 | */ | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
1182 | const char *gaim_conv_chat_get_topic(const GaimConvChat *chat); |
| 4359 | 1183 | |
| 1184 | /** | |
| 1185 | * Sets the chat room's ID. | |
| 1186 | * | |
| 1187 | * @param chat The chat. | |
| 1188 | * @param id The ID. | |
| 1189 | */ | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
1190 | void gaim_conv_chat_set_id(GaimConvChat *chat, int id); |
| 4359 | 1191 | |
| 1192 | /** | |
| 1193 | * Returns the chat room's ID. | |
| 1194 | * | |
| 1195 | * @param chat The chat. | |
| 1196 | * | |
| 1197 | * @return The ID. | |
| 1198 | */ | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
1199 | int gaim_conv_chat_get_id(const GaimConvChat *chat); |
| 4359 | 1200 | |
| 1201 | /** | |
| 1202 | * Writes to a chat. | |
| 1203 | * | |
| 1204 | * @param chat The chat. | |
| 1205 | * @param who The user who sent the message. | |
| 1206 | * @param message The message to write. | |
|
6621
2a18ef3e5224
[gaim-migrate @ 7145]
Robert McQueen <robot101@debian.org>
parents:
6605
diff
changeset
|
1207 | * @param flags The flags. |
| 4359 | 1208 | * @param mtime The time the message was sent. |
| 1209 | */ | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
1210 | void gaim_conv_chat_write(GaimConvChat *chat, const char *who, |
|
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
1211 | const char *message, GaimMessageFlags flags, |
|
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
1212 | time_t mtime); |
| 4359 | 1213 | |
| 1214 | /** | |
| 1215 | * Sends a message to this chat conversation. | |
| 1216 | * | |
| 1217 | * @param chat The chat. | |
| 1218 | * @param message The message to send. | |
| 1219 | */ | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
1220 | void gaim_conv_chat_send(GaimConvChat *chat, const char *message); |
| 4359 | 1221 | |
| 1222 | /** | |
| 1223 | * Adds a user to a chat. | |
| 1224 | * | |
| 9939 | 1225 | * @param chat The chat. |
| 1226 | * @param user The user to add. | |
| 1227 | * @param extra_msg An extra message to display with the join message. | |
| 1228 | * @param flags The users flags | |
| 1229 | * @param new_arrival Decides whether or not to show a join notice. | |
| 4359 | 1230 | */ |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
1231 | void gaim_conv_chat_add_user(GaimConvChat *chat, const char *user, |
|
9846
61f7349c153a
[gaim-migrate @ 10724]
Nathan Fredrickson <nathan@silverorange.com>
parents:
9718
diff
changeset
|
1232 | const char *extra_msg, GaimConvChatBuddyFlags flags, |
|
61f7349c153a
[gaim-migrate @ 10724]
Nathan Fredrickson <nathan@silverorange.com>
parents:
9718
diff
changeset
|
1233 | gboolean new_arrival); |
| 4359 | 1234 | |
| 1235 | /** | |
|
6407
d67b6a6ba7d2
[gaim-migrate @ 6913]
Christian Hammond <chipx86@chipx86.com>
parents:
6405
diff
changeset
|
1236 | * Adds a list of users to a chat. |
|
d67b6a6ba7d2
[gaim-migrate @ 6913]
Christian Hammond <chipx86@chipx86.com>
parents:
6405
diff
changeset
|
1237 | * |
|
d67b6a6ba7d2
[gaim-migrate @ 6913]
Christian Hammond <chipx86@chipx86.com>
parents:
6405
diff
changeset
|
1238 | * The data is copied from @a users, so it is up to the developer to |
|
d67b6a6ba7d2
[gaim-migrate @ 6913]
Christian Hammond <chipx86@chipx86.com>
parents:
6405
diff
changeset
|
1239 | * free this list after calling this function. |
|
d67b6a6ba7d2
[gaim-migrate @ 6913]
Christian Hammond <chipx86@chipx86.com>
parents:
6405
diff
changeset
|
1240 | * |
|
d67b6a6ba7d2
[gaim-migrate @ 6913]
Christian Hammond <chipx86@chipx86.com>
parents:
6405
diff
changeset
|
1241 | * @param chat The chat. |
|
d67b6a6ba7d2
[gaim-migrate @ 6913]
Christian Hammond <chipx86@chipx86.com>
parents:
6405
diff
changeset
|
1242 | * @param users The list of users to add. |
|
9554
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1243 | * @param flags The list of flags for each user. |
|
6407
d67b6a6ba7d2
[gaim-migrate @ 6913]
Christian Hammond <chipx86@chipx86.com>
parents:
6405
diff
changeset
|
1244 | */ |
|
9554
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1245 | void gaim_conv_chat_add_users(GaimConvChat *chat, GList *users, GList *flags); |
|
6407
d67b6a6ba7d2
[gaim-migrate @ 6913]
Christian Hammond <chipx86@chipx86.com>
parents:
6405
diff
changeset
|
1246 | |
|
d67b6a6ba7d2
[gaim-migrate @ 6913]
Christian Hammond <chipx86@chipx86.com>
parents:
6405
diff
changeset
|
1247 | /** |
| 4359 | 1248 | * Renames a user in a chat. |
| 1249 | * | |
| 1250 | * @param chat The chat. | |
| 1251 | * @param old_user The old username. | |
| 1252 | * @param new_user The new username. | |
| 1253 | */ | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
1254 | void gaim_conv_chat_rename_user(GaimConvChat *chat, const char *old_user, |
|
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
1255 | const char *new_user); |
| 4359 | 1256 | |
| 1257 | /** | |
| 1258 | * Removes a user from a chat, optionally with a reason. | |
| 1259 | * | |
|
6407
d67b6a6ba7d2
[gaim-migrate @ 6913]
Christian Hammond <chipx86@chipx86.com>
parents:
6405
diff
changeset
|
1260 | * 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
|
1261 | * |
| 4359 | 1262 | * @param chat The chat. |
| 1263 | * @param user The user that is being removed. | |
| 1264 | * @param reason The optional reason given for the removal. Can be @c NULL. | |
| 1265 | */ | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
1266 | void gaim_conv_chat_remove_user(GaimConvChat *chat, const char *user, |
|
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
1267 | const char *reason); |
| 4359 | 1268 | |
| 1269 | /** | |
|
6407
d67b6a6ba7d2
[gaim-migrate @ 6913]
Christian Hammond <chipx86@chipx86.com>
parents:
6405
diff
changeset
|
1270 | * 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
|
1271 | * |
|
d67b6a6ba7d2
[gaim-migrate @ 6913]
Christian Hammond <chipx86@chipx86.com>
parents:
6405
diff
changeset
|
1272 | * @param chat The chat. |
|
d67b6a6ba7d2
[gaim-migrate @ 6913]
Christian Hammond <chipx86@chipx86.com>
parents:
6405
diff
changeset
|
1273 | * @param users The users that are being removed. |
|
d67b6a6ba7d2
[gaim-migrate @ 6913]
Christian Hammond <chipx86@chipx86.com>
parents:
6405
diff
changeset
|
1274 | * @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
|
1275 | */ |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
1276 | void gaim_conv_chat_remove_users(GaimConvChat *chat, GList *users, |
|
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
1277 | const char *reason); |
|
6407
d67b6a6ba7d2
[gaim-migrate @ 6913]
Christian Hammond <chipx86@chipx86.com>
parents:
6405
diff
changeset
|
1278 | |
|
d67b6a6ba7d2
[gaim-migrate @ 6913]
Christian Hammond <chipx86@chipx86.com>
parents:
6405
diff
changeset
|
1279 | /** |
|
9554
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1280 | * Finds a user in a chat |
|
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 | * @param chat The chat. |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1283 | * @param user The user to look for. |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1284 | * |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1285 | * @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
|
1286 | */ |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1287 | gboolean gaim_conv_chat_find_user(GaimConvChat *chat, const char *user); |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1288 | |
|
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 | * Set a users flags in a chat |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1291 | * |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1292 | * @param chat The chat. |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1293 | * @param user The user to update. |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1294 | * @param flags The new flags. |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1295 | */ |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1296 | void gaim_conv_chat_user_set_flags(GaimConvChat *chat, const char *user, |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1297 | GaimConvChatBuddyFlags flags); |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1298 | |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1299 | /** |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1300 | * Get the flags for a user in a chat |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1301 | * |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1302 | * @param chat The chat. |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1303 | * @param user The user to find the flags for |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1304 | * |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1305 | * @return The flags for the user |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1306 | */ |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1307 | GaimConvChatBuddyFlags gaim_conv_chat_user_get_flags(GaimConvChat *chat, |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1308 | const char *user); |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1309 | |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1310 | /** |
|
6414
f78eb072fcc0
[gaim-migrate @ 6921]
Christian Hammond <chipx86@chipx86.com>
parents:
6407
diff
changeset
|
1311 | * Clears all users from a chat. |
|
f78eb072fcc0
[gaim-migrate @ 6921]
Christian Hammond <chipx86@chipx86.com>
parents:
6407
diff
changeset
|
1312 | * |
|
f78eb072fcc0
[gaim-migrate @ 6921]
Christian Hammond <chipx86@chipx86.com>
parents:
6407
diff
changeset
|
1313 | * @param chat The chat. |
|
f78eb072fcc0
[gaim-migrate @ 6921]
Christian Hammond <chipx86@chipx86.com>
parents:
6407
diff
changeset
|
1314 | */ |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
1315 | void gaim_conv_chat_clear_users(GaimConvChat *chat); |
|
6414
f78eb072fcc0
[gaim-migrate @ 6921]
Christian Hammond <chipx86@chipx86.com>
parents:
6407
diff
changeset
|
1316 | |
|
f78eb072fcc0
[gaim-migrate @ 6921]
Christian Hammond <chipx86@chipx86.com>
parents:
6407
diff
changeset
|
1317 | /** |
| 8158 | 1318 | * Sets your nickname (used for hilighting) for a chat. |
| 1319 | * | |
| 1320 | * @param chat The chat. | |
| 1321 | * @param nick The nick. | |
| 1322 | */ | |
| 1323 | void gaim_conv_chat_set_nick(GaimConvChat *chat, const char *nick); | |
| 1324 | ||
| 1325 | /** | |
| 1326 | * Gets your nickname (used for hilighting) for a chat. | |
| 1327 | * | |
| 1328 | * @param chat The chat. | |
| 1329 | * @return The nick. | |
| 1330 | */ | |
| 1331 | const char *gaim_conv_chat_get_nick(GaimConvChat *chat); | |
| 1332 | ||
| 1333 | /** | |
| 4359 | 1334 | * Finds a chat with the specified chat ID. |
| 1335 | * | |
| 1336 | * @param gc The gaim_connection. | |
| 1337 | * @param id The chat ID. | |
| 1338 | * | |
| 1339 | * @return The chat conversation. | |
| 1340 | */ | |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
1341 | GaimConversation *gaim_find_chat(const GaimConnection *gc, int id); |
| 4359 | 1342 | |
| 8256 | 1343 | /** |
| 1344 | * Lets the core know we left a chat, without destroying it. | |
| 1345 | * Called from serv_got_chat_left(). | |
| 1346 | * | |
| 1347 | * @param chat The chat. | |
| 1348 | */ | |
| 1349 | void gaim_conv_chat_left(GaimConvChat *chat); | |
| 1350 | ||
| 1351 | /** | |
| 1352 | * Returns true if we're no longer in this chat, | |
| 1353 | * and just left the window open. | |
| 1354 | * | |
| 1355 | * @param chat The chat. | |
| 1356 | * | |
| 1357 | * @return @c TRUE if we left the chat already, @c FALSE if | |
| 1358 | * we're still there. | |
| 1359 | */ | |
| 1360 | gboolean gaim_conv_chat_has_left(GaimConvChat *chat); | |
| 1361 | ||
|
9554
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1362 | /** |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1363 | * Creates a new chat buddy |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1364 | * |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1365 | * @param name The name. |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1366 | * @param flags The flags. |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1367 | * |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1368 | * @return The new chat buddy |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1369 | */ |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1370 | GaimConvChatBuddy *gaim_conv_chat_cb_new(const char *name, |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1371 | GaimConvChatBuddyFlags flags); |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1372 | |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1373 | /** |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1374 | * Find a chat buddy in a chat |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1375 | * |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1376 | * @param chat The chat. |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1377 | * @param name The name of the chat buddy to find. |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1378 | */ |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1379 | GaimConvChatBuddy *gaim_conv_chat_cb_find(GaimConvChat *chat, const char *name); |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1380 | |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1381 | /** |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1382 | * Get the name of a chat buddy |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1383 | * |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1384 | * @param cb The chat buddy. |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1385 | * |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1386 | * @return The name of the chat buddy. |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1387 | */ |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1388 | const char *gaim_conv_chat_cb_get_name(GaimConvChatBuddy *cb); |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1389 | |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1390 | /** |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1391 | * Destroys a chat buddy |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1392 | * |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1393 | * @param cb The chat buddy to destroy |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1394 | */ |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1395 | void gaim_conv_chat_cb_destroy(GaimConvChatBuddy *cb); |
|
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9260
diff
changeset
|
1396 | |
| 4359 | 1397 | /*@}*/ |
| 1398 | ||
|
4469
ef60c820b884
[gaim-migrate @ 4744]
Christian Hammond <chipx86@chipx86.com>
parents:
4465
diff
changeset
|
1399 | /**************************************************************************/ |
|
7122
5f40c16a4ae4
[gaim-migrate @ 7689]
Christian Hammond <chipx86@chipx86.com>
parents:
7118
diff
changeset
|
1400 | /** @name Conversation Placement API */ |
|
4469
ef60c820b884
[gaim-migrate @ 4744]
Christian Hammond <chipx86@chipx86.com>
parents:
4465
diff
changeset
|
1401 | /**************************************************************************/ |
|
4481
1a02f276e41e
[gaim-migrate @ 4756]
Christian Hammond <chipx86@chipx86.com>
parents:
4476
diff
changeset
|
1402 | /*@{*/ |
|
4469
ef60c820b884
[gaim-migrate @ 4744]
Christian Hammond <chipx86@chipx86.com>
parents:
4465
diff
changeset
|
1403 | |
|
ef60c820b884
[gaim-migrate @ 4744]
Christian Hammond <chipx86@chipx86.com>
parents:
4465
diff
changeset
|
1404 | /** |
| 5858 | 1405 | * Returns a GList containing the IDs and Names of the registered placement |
| 1406 | * functions. | |
| 1407 | * | |
| 1408 | * @return The list of IDs and names. | |
| 1409 | */ | |
| 1410 | GList *gaim_conv_placement_get_options(void); | |
| 1411 | ||
| 1412 | /** | |
|
4469
ef60c820b884
[gaim-migrate @ 4744]
Christian Hammond <chipx86@chipx86.com>
parents:
4465
diff
changeset
|
1413 | * Adds a conversation placement function to the list of possible functions. |
|
ef60c820b884
[gaim-migrate @ 4744]
Christian Hammond <chipx86@chipx86.com>
parents:
4465
diff
changeset
|
1414 | * |
|
6720
cdc5348dd848
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6622
diff
changeset
|
1415 | * @param id The unique ID of the placement function. |
|
4469
ef60c820b884
[gaim-migrate @ 4744]
Christian Hammond <chipx86@chipx86.com>
parents:
4465
diff
changeset
|
1416 | * @param name The name of the function. |
|
ef60c820b884
[gaim-migrate @ 4744]
Christian Hammond <chipx86@chipx86.com>
parents:
4465
diff
changeset
|
1417 | * @param fnc A pointer to the function. |
|
ef60c820b884
[gaim-migrate @ 4744]
Christian Hammond <chipx86@chipx86.com>
parents:
4465
diff
changeset
|
1418 | */ |
|
6311
1e253e4b423f
[gaim-migrate @ 6810]
Christian Hammond <chipx86@chipx86.com>
parents:
6063
diff
changeset
|
1419 | void gaim_conv_placement_add_fnc(const char *id, const char *name, |
|
1e253e4b423f
[gaim-migrate @ 6810]
Christian Hammond <chipx86@chipx86.com>
parents:
6063
diff
changeset
|
1420 | GaimConvPlacementFunc fnc); |
|
4469
ef60c820b884
[gaim-migrate @ 4744]
Christian Hammond <chipx86@chipx86.com>
parents:
4465
diff
changeset
|
1421 | |
|
ef60c820b884
[gaim-migrate @ 4744]
Christian Hammond <chipx86@chipx86.com>
parents:
4465
diff
changeset
|
1422 | /** |
|
ef60c820b884
[gaim-migrate @ 4744]
Christian Hammond <chipx86@chipx86.com>
parents:
4465
diff
changeset
|
1423 | * Removes a conversation placement function from the list of possible |
|
ef60c820b884
[gaim-migrate @ 4744]
Christian Hammond <chipx86@chipx86.com>
parents:
4465
diff
changeset
|
1424 | * functions. |
|
ef60c820b884
[gaim-migrate @ 4744]
Christian Hammond <chipx86@chipx86.com>
parents:
4465
diff
changeset
|
1425 | * |
| 5858 | 1426 | * @param id The id of the function. |
|
4469
ef60c820b884
[gaim-migrate @ 4744]
Christian Hammond <chipx86@chipx86.com>
parents:
4465
diff
changeset
|
1427 | */ |
| 5858 | 1428 | void gaim_conv_placement_remove_fnc(const char *id); |
|
4469
ef60c820b884
[gaim-migrate @ 4744]
Christian Hammond <chipx86@chipx86.com>
parents:
4465
diff
changeset
|
1429 | |
|
ef60c820b884
[gaim-migrate @ 4744]
Christian Hammond <chipx86@chipx86.com>
parents:
4465
diff
changeset
|
1430 | /** |
|
ef60c820b884
[gaim-migrate @ 4744]
Christian Hammond <chipx86@chipx86.com>
parents:
4465
diff
changeset
|
1431 | * Returns the name of the conversation placement function at the |
| 5858 | 1432 | * specified id. |
|
4469
ef60c820b884
[gaim-migrate @ 4744]
Christian Hammond <chipx86@chipx86.com>
parents:
4465
diff
changeset
|
1433 | * |
| 5858 | 1434 | * @param id The id. |
|
4469
ef60c820b884
[gaim-migrate @ 4744]
Christian Hammond <chipx86@chipx86.com>
parents:
4465
diff
changeset
|
1435 | * |
| 5858 | 1436 | * @return The name of the function, or @c NULL if this id is invalid. |
|
4469
ef60c820b884
[gaim-migrate @ 4744]
Christian Hammond <chipx86@chipx86.com>
parents:
4465
diff
changeset
|
1437 | */ |
| 5858 | 1438 | const char *gaim_conv_placement_get_name(const char *id); |
|
4469
ef60c820b884
[gaim-migrate @ 4744]
Christian Hammond <chipx86@chipx86.com>
parents:
4465
diff
changeset
|
1439 | |
|
ef60c820b884
[gaim-migrate @ 4744]
Christian Hammond <chipx86@chipx86.com>
parents:
4465
diff
changeset
|
1440 | /** |
|
ef60c820b884
[gaim-migrate @ 4744]
Christian Hammond <chipx86@chipx86.com>
parents:
4465
diff
changeset
|
1441 | * Returns a pointer to the conversation placement function at the |
| 5858 | 1442 | * specified id. |
|
4469
ef60c820b884
[gaim-migrate @ 4744]
Christian Hammond <chipx86@chipx86.com>
parents:
4465
diff
changeset
|
1443 | * |
| 5858 | 1444 | * @param id The id. |
|
4469
ef60c820b884
[gaim-migrate @ 4744]
Christian Hammond <chipx86@chipx86.com>
parents:
4465
diff
changeset
|
1445 | * |
|
ef60c820b884
[gaim-migrate @ 4744]
Christian Hammond <chipx86@chipx86.com>
parents:
4465
diff
changeset
|
1446 | * @return A pointer to the function. |
|
ef60c820b884
[gaim-migrate @ 4744]
Christian Hammond <chipx86@chipx86.com>
parents:
4465
diff
changeset
|
1447 | */ |
| 5858 | 1448 | GaimConvPlacementFunc gaim_conv_placement_get_fnc(const char *id); |
|
4469
ef60c820b884
[gaim-migrate @ 4744]
Christian Hammond <chipx86@chipx86.com>
parents:
4465
diff
changeset
|
1449 | |
|
ef60c820b884
[gaim-migrate @ 4744]
Christian Hammond <chipx86@chipx86.com>
parents:
4465
diff
changeset
|
1450 | /** |
|
7561
fd6a81f1594e
[gaim-migrate @ 8175]
Christian Hammond <chipx86@chipx86.com>
parents:
7431
diff
changeset
|
1451 | * Sets the current conversation placement function. |
|
fd6a81f1594e
[gaim-migrate @ 8175]
Christian Hammond <chipx86@chipx86.com>
parents:
7431
diff
changeset
|
1452 | * |
|
fd6a81f1594e
[gaim-migrate @ 8175]
Christian Hammond <chipx86@chipx86.com>
parents:
7431
diff
changeset
|
1453 | * @param func The new conversation placement function. |
|
fd6a81f1594e
[gaim-migrate @ 8175]
Christian Hammond <chipx86@chipx86.com>
parents:
7431
diff
changeset
|
1454 | */ |
|
fd6a81f1594e
[gaim-migrate @ 8175]
Christian Hammond <chipx86@chipx86.com>
parents:
7431
diff
changeset
|
1455 | void gaim_conv_placement_set_current_func(GaimConvPlacementFunc func); |
|
fd6a81f1594e
[gaim-migrate @ 8175]
Christian Hammond <chipx86@chipx86.com>
parents:
7431
diff
changeset
|
1456 | |
|
fd6a81f1594e
[gaim-migrate @ 8175]
Christian Hammond <chipx86@chipx86.com>
parents:
7431
diff
changeset
|
1457 | /** |
|
fd6a81f1594e
[gaim-migrate @ 8175]
Christian Hammond <chipx86@chipx86.com>
parents:
7431
diff
changeset
|
1458 | * Returns the current conversation placement function. |
|
fd6a81f1594e
[gaim-migrate @ 8175]
Christian Hammond <chipx86@chipx86.com>
parents:
7431
diff
changeset
|
1459 | * |
|
fd6a81f1594e
[gaim-migrate @ 8175]
Christian Hammond <chipx86@chipx86.com>
parents:
7431
diff
changeset
|
1460 | * @return The current conversation placement function. |
|
fd6a81f1594e
[gaim-migrate @ 8175]
Christian Hammond <chipx86@chipx86.com>
parents:
7431
diff
changeset
|
1461 | */ |
|
fd6a81f1594e
[gaim-migrate @ 8175]
Christian Hammond <chipx86@chipx86.com>
parents:
7431
diff
changeset
|
1462 | GaimConvPlacementFunc gaim_conv_placement_get_current_func(void); |
|
fd6a81f1594e
[gaim-migrate @ 8175]
Christian Hammond <chipx86@chipx86.com>
parents:
7431
diff
changeset
|
1463 | |
|
fd6a81f1594e
[gaim-migrate @ 8175]
Christian Hammond <chipx86@chipx86.com>
parents:
7431
diff
changeset
|
1464 | /** |
| 5858 | 1465 | * Returns the id of the specified conversation placement function. |
|
4469
ef60c820b884
[gaim-migrate @ 4744]
Christian Hammond <chipx86@chipx86.com>
parents:
4465
diff
changeset
|
1466 | * |
|
ef60c820b884
[gaim-migrate @ 4744]
Christian Hammond <chipx86@chipx86.com>
parents:
4465
diff
changeset
|
1467 | * @param fnc A pointer to the registered function. |
|
ef60c820b884
[gaim-migrate @ 4744]
Christian Hammond <chipx86@chipx86.com>
parents:
4465
diff
changeset
|
1468 | * |
| 5858 | 1469 | * @return The id of the conversation, or NULL if the function is not |
|
4469
ef60c820b884
[gaim-migrate @ 4744]
Christian Hammond <chipx86@chipx86.com>
parents:
4465
diff
changeset
|
1470 | * registered. |
|
ef60c820b884
[gaim-migrate @ 4744]
Christian Hammond <chipx86@chipx86.com>
parents:
4465
diff
changeset
|
1471 | */ |
| 5858 | 1472 | const char *gaim_conv_placement_get_fnc_id(GaimConvPlacementFunc fnc); |
|
4469
ef60c820b884
[gaim-migrate @ 4744]
Christian Hammond <chipx86@chipx86.com>
parents:
4465
diff
changeset
|
1473 | |
|
4481
1a02f276e41e
[gaim-migrate @ 4756]
Christian Hammond <chipx86@chipx86.com>
parents:
4476
diff
changeset
|
1474 | /*@}*/ |
|
1a02f276e41e
[gaim-migrate @ 4756]
Christian Hammond <chipx86@chipx86.com>
parents:
4476
diff
changeset
|
1475 | |
|
1a02f276e41e
[gaim-migrate @ 4756]
Christian Hammond <chipx86@chipx86.com>
parents:
4476
diff
changeset
|
1476 | /**************************************************************************/ |
|
1a02f276e41e
[gaim-migrate @ 4756]
Christian Hammond <chipx86@chipx86.com>
parents:
4476
diff
changeset
|
1477 | /** @name UI Registration Functions */ |
|
1a02f276e41e
[gaim-migrate @ 4756]
Christian Hammond <chipx86@chipx86.com>
parents:
4476
diff
changeset
|
1478 | /**************************************************************************/ |
|
1a02f276e41e
[gaim-migrate @ 4756]
Christian Hammond <chipx86@chipx86.com>
parents:
4476
diff
changeset
|
1479 | /*@{*/ |
|
1a02f276e41e
[gaim-migrate @ 4756]
Christian Hammond <chipx86@chipx86.com>
parents:
4476
diff
changeset
|
1480 | |
|
1a02f276e41e
[gaim-migrate @ 4756]
Christian Hammond <chipx86@chipx86.com>
parents:
4476
diff
changeset
|
1481 | /** |
|
1a02f276e41e
[gaim-migrate @ 4756]
Christian Hammond <chipx86@chipx86.com>
parents:
4476
diff
changeset
|
1482 | * Sets the UI operations structure to be used in all gaim conversation |
|
1a02f276e41e
[gaim-migrate @ 4756]
Christian Hammond <chipx86@chipx86.com>
parents:
4476
diff
changeset
|
1483 | * windows. |
|
1a02f276e41e
[gaim-migrate @ 4756]
Christian Hammond <chipx86@chipx86.com>
parents:
4476
diff
changeset
|
1484 | * |
|
5207
4d3a908867a2
[gaim-migrate @ 5575]
Christian Hammond <chipx86@chipx86.com>
parents:
5034
diff
changeset
|
1485 | * @param ops The UI operations structure. |
|
4481
1a02f276e41e
[gaim-migrate @ 4756]
Christian Hammond <chipx86@chipx86.com>
parents:
4476
diff
changeset
|
1486 | */ |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
1487 | void gaim_conversations_set_win_ui_ops(GaimConvWindowUiOps *ops); |
|
4481
1a02f276e41e
[gaim-migrate @ 4756]
Christian Hammond <chipx86@chipx86.com>
parents:
4476
diff
changeset
|
1488 | |
|
1a02f276e41e
[gaim-migrate @ 4756]
Christian Hammond <chipx86@chipx86.com>
parents:
4476
diff
changeset
|
1489 | /** |
|
1a02f276e41e
[gaim-migrate @ 4756]
Christian Hammond <chipx86@chipx86.com>
parents:
4476
diff
changeset
|
1490 | * Returns the gaim window UI operations structure to be used in |
|
1a02f276e41e
[gaim-migrate @ 4756]
Christian Hammond <chipx86@chipx86.com>
parents:
4476
diff
changeset
|
1491 | * new windows. |
|
1a02f276e41e
[gaim-migrate @ 4756]
Christian Hammond <chipx86@chipx86.com>
parents:
4476
diff
changeset
|
1492 | * |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
1493 | * @return A filled-out GaimConvWindowUiOps structure. |
|
4481
1a02f276e41e
[gaim-migrate @ 4756]
Christian Hammond <chipx86@chipx86.com>
parents:
4476
diff
changeset
|
1494 | */ |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
1495 | GaimConvWindowUiOps *gaim_conversations_get_win_ui_ops(void); |
|
4481
1a02f276e41e
[gaim-migrate @ 4756]
Christian Hammond <chipx86@chipx86.com>
parents:
4476
diff
changeset
|
1496 | |
| 10665 | 1497 | |
|
6485
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6414
diff
changeset
|
1498 | /*@}*/ |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6414
diff
changeset
|
1499 | |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6414
diff
changeset
|
1500 | /**************************************************************************/ |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6414
diff
changeset
|
1501 | /** @name Conversations Subsystem */ |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6414
diff
changeset
|
1502 | /**************************************************************************/ |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6414
diff
changeset
|
1503 | /*@{*/ |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6414
diff
changeset
|
1504 | |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6414
diff
changeset
|
1505 | /** |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6414
diff
changeset
|
1506 | * Returns the conversation subsystem handle. |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6414
diff
changeset
|
1507 | * |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6414
diff
changeset
|
1508 | * @return The conversation subsystem handle. |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6414
diff
changeset
|
1509 | */ |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6414
diff
changeset
|
1510 | void *gaim_conversations_get_handle(void); |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6414
diff
changeset
|
1511 | |
|
5872
754c63f29b77
[gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
5858
diff
changeset
|
1512 | /** |
|
754c63f29b77
[gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
5858
diff
changeset
|
1513 | * Initializes the conversation subsystem. |
|
754c63f29b77
[gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
5858
diff
changeset
|
1514 | */ |
|
6485
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6414
diff
changeset
|
1515 | void gaim_conversations_init(void); |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6414
diff
changeset
|
1516 | |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6414
diff
changeset
|
1517 | /** |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6414
diff
changeset
|
1518 | * Uninitializes the conversation subsystem. |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6414
diff
changeset
|
1519 | */ |
|
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6414
diff
changeset
|
1520 | void gaim_conversations_uninit(void); |
|
5872
754c63f29b77
[gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
5858
diff
changeset
|
1521 | |
|
4481
1a02f276e41e
[gaim-migrate @ 4756]
Christian Hammond <chipx86@chipx86.com>
parents:
4476
diff
changeset
|
1522 | /*@}*/ |
|
1a02f276e41e
[gaim-migrate @ 4756]
Christian Hammond <chipx86@chipx86.com>
parents:
4476
diff
changeset
|
1523 | |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
1524 | #ifdef __cplusplus |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
1525 | } |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
1526 | #endif |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
1527 | |
|
4890
d87a9b5bbe57
[gaim-migrate @ 5220]
Christian Hammond <chipx86@chipx86.com>
parents:
4877
diff
changeset
|
1528 | #endif /* _GAIM_CONVERSATION_H_ */ |