Mercurial > pidgin.yaz
comparison src/protocols/msn/switchboard.h @ 8808:bbd8cdaf0ad5
[gaim-migrate @ 9570]
A massive patch by shx to reorganize MSN some more and add command
processor support. This allows us to do cool things like produce more
detailed error messages. For example, the Invalid Username dialog now
shows the username of the invalid user.
I modified the aforementioned dialog so it'll look a little nicer looking,
and also mention the account this happened on. It also removes the user
from your blist, as there's no point to keeping the user on there.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sun, 25 Apr 2004 22:02:06 +0000 |
parents | fc27237783ee |
children | c30d81b4dd22 |
comparison
equal
deleted
inserted
replaced
8807:482fc53c969d | 8808:bbd8cdaf0ad5 |
---|---|
27 #include "conversation.h" | 27 #include "conversation.h" |
28 | 28 |
29 #include "msg.h" | 29 #include "msg.h" |
30 #include "msnslp.h" | 30 #include "msnslp.h" |
31 #include "servconn.h" | 31 #include "servconn.h" |
32 #include "cmdproc.h" | |
32 #include "user.h" | 33 #include "user.h" |
33 | 34 |
34 struct _MsnSwitchBoard | 35 struct _MsnSwitchBoard |
35 { | 36 { |
36 MsnServConn *servconn; | 37 MsnServConn *servconn; |
38 MsnCmdProc *cmdproc; | |
37 MsnUser *user; | 39 MsnUser *user; |
38 | 40 |
39 char *auth_key; | 41 char *auth_key; |
40 char *session_id; | 42 char *session_id; |
41 | 43 |
43 gboolean destroying; | 45 gboolean destroying; |
44 | 46 |
45 GaimConversation *chat; | 47 GaimConversation *chat; |
46 | 48 |
47 gboolean in_use; | 49 gboolean in_use; |
50 gboolean joined; | |
48 | 51 |
49 int total_users; | 52 int total_users; |
50 | 53 |
51 gboolean msg; | 54 gboolean msg; |
52 int msglen; | 55 int msglen; |
53 | 56 |
54 int chat_id; | 57 int chat_id; |
55 int trId; | |
56 | 58 |
57 gboolean hidden; | 59 gboolean hidden; |
58 | 60 |
59 MsnSlpSession *slp_session; | 61 MsnSlpSession *slp_session; |
60 }; | 62 }; |
63 | |
64 /** | |
65 * Initialize the variables for switchboard creation. | |
66 */ | |
67 void msn_switchboard_init(void); | |
68 | |
69 /** | |
70 * Destroy the variables for switchboard creation. | |
71 */ | |
72 void msn_switchboard_end(void); | |
61 | 73 |
62 /** | 74 /** |
63 * Creates a new switchboard. | 75 * Creates a new switchboard. |
64 * | 76 * |
65 * @param session The MSN session. | 77 * @param session The MSN session. |
165 /** | 177 /** |
166 * Sends a message to a switchboard. | 178 * Sends a message to a switchboard. |
167 * | 179 * |
168 * @param swboard The switchboard. | 180 * @param swboard The switchboard. |
169 * @param msg The message to send. | 181 * @param msg The message to send. |
170 * | |
171 * @return @c TRUE if successful, or @c FALSE otherwise. | |
172 */ | 182 */ |
173 gboolean msn_switchboard_send_msg(MsnSwitchBoard *swboard, | 183 void msn_switchboard_send_msg(MsnSwitchBoard *swboard, |
174 MsnMessage *msg); | 184 MsnMessage *msg); |
175 | |
176 /** | |
177 * Sends a command to the switchboard. | |
178 * | |
179 * @param swboard The switchboard. | |
180 * @param command The command. | |
181 * @param params The parameters. | |
182 * | |
183 * @return @c TRUE if successful, or @c FALSE otherwise. | |
184 */ | |
185 gboolean msn_switchboard_send_command(MsnSwitchBoard *swboard, | |
186 const char *command, | |
187 const char *params); | |
188 | 185 |
189 #endif /* _MSN_SWITCHBOARD_H_ */ | 186 #endif /* _MSN_SWITCHBOARD_H_ */ |