Mercurial > pidgin.yaz
comparison libpurple/protocols/msn/switchboard.h @ 31292:47b6eda87723
propagate from branch 'im.pidgin.pidgin' (head 07d0765c444a097af45c2650f54323afb900a07b)
to branch 'im.pidgin.soc.2010.msn-tlc' (head f3998422a4724ab424e4e2328f58fc0504856557)
author | masca@cpw.pidgin.im |
---|---|
date | Mon, 19 Jul 2010 21:11:32 +0000 |
parents | ead7b8c19725 |
children | 6ce4f2272abc |
comparison
equal
deleted
inserted
replaced
30698:e874875a74a7 | 31292:47b6eda87723 |
---|---|
48 { | 48 { |
49 MSN_SB_FLAG_IM = 0x01, /**< This switchboard is being used for a conversation. */ | 49 MSN_SB_FLAG_IM = 0x01, /**< This switchboard is being used for a conversation. */ |
50 MSN_SB_FLAG_FT = 0x02 /**< This switchboard is being used for file transfer. */ | 50 MSN_SB_FLAG_FT = 0x02 /**< This switchboard is being used for file transfer. */ |
51 } MsnSBFlag; | 51 } MsnSBFlag; |
52 | 52 |
53 #include "conversation.h" | 53 #include "cmdproc.h" |
54 | |
55 #include "msg.h" | 54 #include "msg.h" |
56 #include "servconn.h" | 55 #include "servconn.h" |
57 #include "slplink.h" | 56 #include "session.h" |
58 #include "user.h" | |
59 | 57 |
60 /** | 58 /** |
61 * A switchboard. | 59 * A switchboard. |
62 * | 60 * |
63 * A place where a bunch of users send messages to the rest of the users. | 61 * A place where a bunch of users send messages to the rest of the users. |
244 * @return @c TRUE if a message can be sent, @c FALSE otherwise. | 242 * @return @c TRUE if a message can be sent, @c FALSE otherwise. |
245 */ | 243 */ |
246 void msn_switchboard_send_msg(MsnSwitchBoard *swboard, MsnMessage *msg, | 244 void msn_switchboard_send_msg(MsnSwitchBoard *swboard, MsnMessage *msg, |
247 gboolean queue); | 245 gboolean queue); |
248 | 246 |
247 void | |
248 msg_error_helper(MsnCmdProc *cmdproc, MsnMessage *msg, MsnMsgErrorType error); | |
249 | |
249 gboolean msn_switchboard_chat_leave(MsnSwitchBoard *swboard); | 250 gboolean msn_switchboard_chat_leave(MsnSwitchBoard *swboard); |
250 gboolean msn_switchboard_chat_invite(MsnSwitchBoard *swboard, const char *who); | 251 gboolean msn_switchboard_chat_invite(MsnSwitchBoard *swboard, const char *who); |
251 | 252 |
252 void msn_switchboard_request(MsnSwitchBoard *swboard); | 253 void msn_switchboard_request(MsnSwitchBoard *swboard); |
253 void msn_switchboard_request_add_user(MsnSwitchBoard *swboard, const char *user); | 254 void msn_switchboard_request_add_user(MsnSwitchBoard *swboard, const char *user); |
254 | |
255 /** | |
256 * Processes peer to peer messages. | |
257 * | |
258 * @param cmdproc The command processor. | |
259 * @param msg The message. | |
260 */ | |
261 void msn_p2p_msg(MsnCmdProc *cmdproc, MsnMessage *msg); | |
262 | |
263 /** | |
264 * Processes emoticon messages. | |
265 * | |
266 * @param cmdproc The command processor. | |
267 * @param msg The message. | |
268 */ | |
269 void msn_emoticon_msg(MsnCmdProc *cmdproc, MsnMessage *msg); | |
270 | |
271 /** | |
272 * Processes INVITE messages. | |
273 * | |
274 * @param cmdproc The command processor. | |
275 * @param msg The message. | |
276 */ | |
277 void msn_invite_msg(MsnCmdProc *cmdproc, MsnMessage *msg); | |
278 | 255 |
279 /** | 256 /** |
280 * Shows an ink message from this switchboard. | 257 * Shows an ink message from this switchboard. |
281 * | 258 * |
282 * @param swboard The switchboard. | 259 * @param swboard The switchboard. |