Mercurial > pidgin
comparison libpurple/protocols/msn/session.h @ 20408:14b8fb8d27b3
merge of 790a91b1bb6c10ada984951cbd2485e95e5159fd and
05f7badcad9471084218e698a5c011908d17af90
author | Ka-Hing Cheung <khc@hxbc.us> |
---|---|
date | Wed, 02 May 2007 06:06:56 +0000 |
parents | 4ddc27c18781 |
children | 703fc3437ab5 |
comparison
equal
deleted
inserted
replaced
16345:6b4e778ee4b4 | 20408:14b8fb8d27b3 |
---|---|
36 #include "group.h" | 36 #include "group.h" |
37 | 37 |
38 #include "cmdproc.h" | 38 #include "cmdproc.h" |
39 #include "nexus.h" | 39 #include "nexus.h" |
40 #include "httpconn.h" | 40 #include "httpconn.h" |
41 #include "contact.h" | |
42 #include "oim.h" | |
41 | 43 |
42 #include "userlist.h" | 44 #include "userlist.h" |
43 #include "sync.h" | 45 #include "sync.h" |
44 | 46 |
45 /** | 47 /** |
92 gboolean destroying; /**< A flag that states if the session is being destroyed. */ | 94 gboolean destroying; /**< A flag that states if the session is being destroyed. */ |
93 gboolean http_method; | 95 gboolean http_method; |
94 | 96 |
95 MsnNotification *notification; | 97 MsnNotification *notification; |
96 MsnNexus *nexus; | 98 MsnNexus *nexus; |
99 MsnContact *contact; | |
100 MsnOim *oim; | |
97 MsnSync *sync; | 101 MsnSync *sync; |
98 | 102 |
99 MsnUserList *userlist; | 103 MsnUserList *userlist; |
100 | 104 |
101 int servconns_count; /**< The count of server connections. */ | 105 int servconns_count; /**< The count of server connections. */ |
103 GList *directconns; /**< The list of all the directconnections. */ | 107 GList *directconns; /**< The list of all the directconnections. */ |
104 GList *slplinks; /**< The list of all the slplinks. */ | 108 GList *slplinks; /**< The list of all the slplinks. */ |
105 | 109 |
106 int conv_seq; /**< The current conversation sequence number. */ | 110 int conv_seq; /**< The current conversation sequence number. */ |
107 | 111 |
112 /*psm info*/ | |
113 char *psm; | |
114 | |
115 /*first blist contact node*/ | |
116 PurpleBlistNode *bnode; | |
117 | |
108 struct | 118 struct |
109 { | 119 { |
120 /*t and p, get via USR TWN*/ | |
121 char *t; | |
122 char *p; | |
123 | |
110 char *kv; | 124 char *kv; |
111 char *sid; | 125 char *sid; |
112 char *mspauth; | 126 char *mspauth; |
113 unsigned long sl; | 127 unsigned long sl; |
114 char *file; | 128 char *file; |
115 char *client_ip; | 129 char *client_ip; |
116 int client_port; | 130 int client_port; |
117 | |
118 } passport_info; | 131 } passport_info; |
119 }; | 132 }; |
120 | 133 |
121 /** | 134 /** |
122 * Creates an MSN session. | 135 * Creates an MSN session. |
222 * | 235 * |
223 * @param session The MSN session. | 236 * @param session The MSN session. |
224 */ | 237 */ |
225 void msn_session_finish_login(MsnSession *session); | 238 void msn_session_finish_login(MsnSession *session); |
226 | 239 |
240 /*get conversation via session, | |
241 * If has one, return that,else create a new one; | |
242 */ | |
243 PurpleConversation *msn_session_get_conv(MsnSession *session,const char *passport); | |
244 | |
245 /*post message to User*/ | |
246 void msn_session_report_user(MsnSession *session,const char *passport, | |
247 char *msg,PurpleMessageFlags flags); | |
248 | |
249 void msn_session_set_bnode(MsnSession *session); | |
250 | |
251 PurpleBlistNode *msn_session_get_bnode(MsnSession *session); | |
252 | |
227 #endif /* _MSN_SESSION_H_ */ | 253 #endif /* _MSN_SESSION_H_ */ |