annotate libpurple/protocols/msn/cmdproc.h @ 31173:66e7fe9f7810

propagate from branch 'im.pidgin.pidgin' (head cd770a44f05f96d1e74ea761e614d1a468ba60df) to branch 'im.pidgin.cpw.qulogic.msnp16' (head 6d2fd5bca8c2fda994d1dfbb04197ab9882d652d)
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Sat, 22 May 2010 06:27:18 +0000
parents f7ee91763c6b
children e8e4c4207d30
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
15374
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 *
15823
32c366eeeb99 sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@gmail.com>
parents: 15374
diff changeset
4 * purple
15374
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
5 *
15823
32c366eeeb99 sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@gmail.com>
parents: 15374
diff changeset
6 * Purple is the legal property of its developers, whose names are too numerous
15374
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
19680
44b4e8bd759b The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 15823
diff changeset
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
15374
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
23 */
29373
462cb893521b Minor header file cleanup. Mostly I wanted to move some enums above some #includes
Mark Doliner <mark@kingant.net>
parents: 28424
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: 28424
diff changeset
25 #define MSN_CMDPROC_H
15374
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
29373
462cb893521b Minor header file cleanup. Mostly I wanted to move some enums above some #includes
Mark Doliner <mark@kingant.net>
parents: 28424
diff changeset
29 #include "command.h"
15374
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
30 #include "error.h"
29373
462cb893521b Minor header file cleanup. Mostly I wanted to move some enums above some #includes
Mark Doliner <mark@kingant.net>
parents: 28424
diff changeset
31 #include "history.h"
462cb893521b Minor header file cleanup. Mostly I wanted to move some enums above some #includes
Mark Doliner <mark@kingant.net>
parents: 28424
diff changeset
32 #include "servconn.h"
462cb893521b Minor header file cleanup. Mostly I wanted to move some enums above some #includes
Mark Doliner <mark@kingant.net>
parents: 28424
diff changeset
33 #include "session.h"
15374
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
34 #include "table.h"
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
35
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
36 struct _MsnCmdProc
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
37 {
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
38 MsnSession *session;
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
39 MsnServConn *servconn;
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
40
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
41 GQueue *txqueue;
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
42
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
43 MsnCommand *last_cmd;
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
44
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
45 MsnTable *cbs_table;
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
46
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
47 MsnHistory *history;
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
48
25001
0ffa511ac165 Re-combine large (multi-part) messages on MSN since we seem to say that we
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 19680
diff changeset
49 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: 19680
diff changeset
50
15374
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
51 void *data; /**< Extra data, like the switchboard. */
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
52 };
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
53
31145
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 29373
diff changeset
54 /**
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 29373
diff changeset
55 * Creates a MsnCmdProc structure.
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 29373
diff changeset
56 *
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 29373
diff changeset
57 * @param session The session to associate with.
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 29373
diff changeset
58 *
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 29373
diff changeset
59 * @return A new MsnCmdProc structure.
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 29373
diff changeset
60 */
15374
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
61 MsnCmdProc *msn_cmdproc_new(MsnSession *session);
31145
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 29373
diff changeset
62
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 29373
diff changeset
63 /**
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 29373
diff changeset
64 * Destroys an MsnCmdProc.
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 29373
diff changeset
65 *
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 29373
diff changeset
66 * @param cmdproc The object structure.
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 29373
diff changeset
67 */
15374
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
68 void msn_cmdproc_destroy(MsnCmdProc *cmdproc);
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
69
31145
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 29373
diff changeset
70 /**
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 29373
diff changeset
71 * Process the queued transactions.
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 29373
diff changeset
72 *
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 29373
diff changeset
73 * @param cmdproc The MsnCmdProc.
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 29373
diff changeset
74 */
15374
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
75 void msn_cmdproc_process_queue(MsnCmdProc *cmdproc);
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
76
31145
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 29373
diff changeset
77 /**
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 29373
diff changeset
78 * Sends transaction using this servconn.
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 29373
diff changeset
79 *
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 29373
diff changeset
80 * @param cmdproc The MsnCmdProc to be used.
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 29373
diff changeset
81 * @param trans The MsnTransaction to be sent.
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 29373
diff changeset
82 */
15374
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
83 void msn_cmdproc_send_trans(MsnCmdProc *cmdproc, MsnTransaction *trans);
31145
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 29373
diff changeset
84
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 29373
diff changeset
85 /**
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 29373
diff changeset
86 * Add a transaction to the queue to be processed latter.
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 29373
diff changeset
87 *
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 29373
diff changeset
88 * @param cmdproc The MsnCmdProc in which the transaction will be queued.
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 29373
diff changeset
89 * @param trans The MsnTransaction to be queued.
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 29373
diff changeset
90 */
15374
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
91 void msn_cmdproc_queue_trans(MsnCmdProc *cmdproc,
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
92 MsnTransaction *trans);
31145
994798816048 msn: Improve cmdproc.h docs.
masca@cpw.pidgin.im
parents: 29373
diff changeset
93
15374
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
94 void msn_cmdproc_process_msg(MsnCmdProc *cmdproc,
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
95 MsnMessage *msg);
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
96 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
97 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
98 void msn_cmdproc_process_payload(MsnCmdProc *cmdproc,
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
99 char *payload, int payload_len);
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
100
29373
462cb893521b Minor header file cleanup. Mostly I wanted to move some enums above some #includes
Mark Doliner <mark@kingant.net>
parents: 28424
diff changeset
101 #endif /* MSN_CMDPROC_H */