annotate libpurple/protocols/msn/cmdproc.h @ 32253:9173ec5a45cf

merge of '1b285d0b375fbd5e778db6bb852a7b089feb16a3' and 'd1328041ee003fdee29a0cf6ae44b44727a49bb8'
author Kevin Stange <kevin@simguy.net>
date Sun, 02 Oct 2011 00:06:40 +0000
parents 6ce4f2272abc
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
15373
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
1 /**
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
2 * @file cmdproc.h MSN command processor functions
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
3 *
15822
32c366eeeb99 sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@gmail.com>
parents: 15373
diff changeset
4 * purple
15373
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
5 *
15822
32c366eeeb99 sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@gmail.com>
parents: 15373
diff changeset
6 * Purple is the legal property of its developers, whose names are too numerous
15373
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
7 * to list here. Please refer to the COPYRIGHT file distributed with this
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
8 * source distribution.
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
9 *
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
10 * This program is free software; you can redistribute it and/or modify
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
11 * it under the terms of the GNU General Public License as published by
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
12 * the Free Software Foundation; either version 2 of the License, or
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
13 * (at your option) any later version.
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
14 *
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
15 * This program is distributed in the hope that it will be useful,
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
18 * GNU General Public License for more details.
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
19 *
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
20 * You should have received a copy of the GNU General Public License
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
21 * along with this program; if not, write to the Free Software
19681
44b4e8bd759b The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 15822
diff changeset
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
15373
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
23 */
28983
462cb893521b Minor header file cleanup. Mostly I wanted to move some enums above some #includes
Mark Doliner <mark@kingant.net>
parents: 28074
diff changeset
24 #ifndef MSN_CMDPROC_H
462cb893521b Minor header file cleanup. Mostly I wanted to move some enums above some #includes
Mark Doliner <mark@kingant.net>
parents: 28074
diff changeset
25 #define MSN_CMDPROC_H
15373
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
26
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
27 typedef struct _MsnCmdProc MsnCmdProc;
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
28
28983
462cb893521b Minor header file cleanup. Mostly I wanted to move some enums above some #includes
Mark Doliner <mark@kingant.net>
parents: 28074
diff changeset
29 #include "command.h"
462cb893521b Minor header file cleanup. Mostly I wanted to move some enums above some #includes
Mark Doliner <mark@kingant.net>
parents: 28074
diff changeset
30 #include "history.h"
462cb893521b Minor header file cleanup. Mostly I wanted to move some enums above some #includes
Mark Doliner <mark@kingant.net>
parents: 28074
diff changeset
31 #include "servconn.h"
462cb893521b Minor header file cleanup. Mostly I wanted to move some enums above some #includes
Mark Doliner <mark@kingant.net>
parents: 28074
diff changeset
32 #include "session.h"
15373
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
33 #include "table.h"
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
34
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
35 struct _MsnCmdProc
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
36 {
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
37 MsnSession *session;
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
38 MsnServConn *servconn;
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
39
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
40 GQueue *txqueue;
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
41
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
42 MsnCommand *last_cmd;
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
43
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
44 MsnTable *cbs_table;
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
45
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
46 MsnHistory *history;
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
47
25377
0ffa511ac165 Re-combine large (multi-part) messages on MSN since we seem to say that we
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 19681
diff changeset
48 GHashTable *multiparts; /**< Multi-part message ID's */
0ffa511ac165 Re-combine large (multi-part) messages on MSN since we seem to say that we
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 19681
diff changeset
49
15373
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
50 void *data; /**< Extra data, like the switchboard. */
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
51 };
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
52
30707
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 28983
diff changeset
53 /**
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 28983
diff changeset
54 * Creates a MsnCmdProc structure.
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 28983
diff changeset
55 *
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 28983
diff changeset
56 * @param session The session to associate with.
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 28983
diff changeset
57 *
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 28983
diff changeset
58 * @return A new MsnCmdProc structure.
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 28983
diff changeset
59 */
15373
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
60 MsnCmdProc *msn_cmdproc_new(MsnSession *session);
30707
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 28983
diff changeset
61
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 28983
diff changeset
62 /**
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 28983
diff changeset
63 * Destroys an MsnCmdProc.
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 28983
diff changeset
64 *
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 28983
diff changeset
65 * @param cmdproc The object structure.
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 28983
diff changeset
66 */
15373
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
67 void msn_cmdproc_destroy(MsnCmdProc *cmdproc);
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
68
30707
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 28983
diff changeset
69 /**
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 28983
diff changeset
70 * Process the queued transactions.
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 28983
diff changeset
71 *
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 28983
diff changeset
72 * @param cmdproc The MsnCmdProc.
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 28983
diff changeset
73 */
15373
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
74 void msn_cmdproc_process_queue(MsnCmdProc *cmdproc);
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
75
30707
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 28983
diff changeset
76 /**
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 28983
diff changeset
77 * Sends transaction using this servconn.
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 28983
diff changeset
78 *
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 28983
diff changeset
79 * @param cmdproc The MsnCmdProc to be used.
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 28983
diff changeset
80 * @param trans The MsnTransaction to be sent.
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 28983
diff changeset
81 */
31791
6ce4f2272abc Fix a crash when the account is disconnected and we have requested a SB. (Hanzz, ported by shlomif)(Fixes #12431)
masca@cpw.pidgin.im
parents: 30753
diff changeset
82 gboolean msn_cmdproc_send_trans(MsnCmdProc *cmdproc, MsnTransaction *trans);
30707
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 28983
diff changeset
83
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 28983
diff changeset
84 /**
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 28983
diff changeset
85 * Add a transaction to the queue to be processed latter.
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 28983
diff changeset
86 *
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 28983
diff changeset
87 * @param cmdproc The MsnCmdProc in which the transaction will be queued.
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 28983
diff changeset
88 * @param trans The MsnTransaction to be queued.
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 28983
diff changeset
89 */
15373
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
90 void msn_cmdproc_queue_trans(MsnCmdProc *cmdproc,
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
91 MsnTransaction *trans);
30707
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 28983
diff changeset
92
15373
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
93 void msn_cmdproc_process_msg(MsnCmdProc *cmdproc,
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
94 MsnMessage *msg);
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
95 void msn_cmdproc_process_cmd(MsnCmdProc *cmdproc, MsnCommand *cmd);
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
96 void msn_cmdproc_process_cmd_text(MsnCmdProc *cmdproc, const char *command);
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
97 void msn_cmdproc_process_payload(MsnCmdProc *cmdproc,
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
98 char *payload, int payload_len);
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
99
28983
462cb893521b Minor header file cleanup. Mostly I wanted to move some enums above some #includes
Mark Doliner <mark@kingant.net>
parents: 28074
diff changeset
100 #endif /* MSN_CMDPROC_H */