| 19 * |
19 * |
| 20 * You should have received a copy of the GNU General Public License |
20 * You should have received a copy of the GNU General Public License |
| 21 * along with this program; if not, write to the Free Software |
21 * along with this program; if not, write to the Free Software |
| 22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 23 */ |
23 */ |
| 24 #ifndef _MSN_SESSION_H_ |
24 #ifndef MSN_SESSION_H |
| 25 #define _MSN_SESSION_H_ |
25 #define MSN_SESSION_H |
| 26 |
26 |
| 27 typedef struct _MsnSession MsnSession; |
27 typedef struct _MsnSession MsnSession; |
| 28 |
|
| 29 #include "sslconn.h" |
|
| 30 |
|
| 31 #include "user.h" |
|
| 32 #include "slpcall.h" |
|
| 33 |
|
| 34 #include "notification.h" |
|
| 35 #include "switchboard.h" |
|
| 36 #include "group.h" |
|
| 37 |
|
| 38 #include "nexus.h" |
|
| 39 #include "httpconn.h" |
|
| 40 #include "oim.h" |
|
| 41 |
|
| 42 #include "userlist.h" |
|
| 43 #include "sync.h" |
|
| 44 |
28 |
| 45 /** |
29 /** |
| 46 * Types of errors. |
30 * Types of errors. |
| 47 */ |
31 */ |
| 48 typedef enum |
32 typedef enum |
| 71 MSN_LOGIN_STEP_AUTH, |
54 MSN_LOGIN_STEP_AUTH, |
| 72 MSN_LOGIN_STEP_GET_COOKIE, |
55 MSN_LOGIN_STEP_GET_COOKIE, |
| 73 MSN_LOGIN_STEP_AUTH_END, |
56 MSN_LOGIN_STEP_AUTH_END, |
| 74 MSN_LOGIN_STEP_SYN, |
57 MSN_LOGIN_STEP_SYN, |
| 75 MSN_LOGIN_STEP_END |
58 MSN_LOGIN_STEP_END |
| 76 |
|
| 77 } MsnLoginStep; |
59 } MsnLoginStep; |
| 78 |
60 |
| 79 #define MSN_LOGIN_STEPS MSN_LOGIN_STEP_END |
61 #define MSN_LOGIN_STEPS MSN_LOGIN_STEP_END |
| |
62 |
| |
63 #include "group.h" |
| |
64 #include "httpconn.h" |
| |
65 #include "nexus.h" |
| |
66 #include "notification.h" |
| |
67 #include "oim.h" |
| |
68 #include "slpcall.h" |
| |
69 #include "sslconn.h" |
| |
70 #include "switchboard.h" |
| |
71 #include "sync.h" |
| |
72 #include "user.h" |
| |
73 #include "userlist.h" |
| 80 |
74 |
| 81 struct _MsnSession |
75 struct _MsnSession |
| 82 { |
76 { |
| 83 PurpleAccount *account; |
77 PurpleAccount *account; |
| 84 MsnUser *user; |
78 MsnUser *user; |
| 236 |
230 |
| 237 /*post message to User*/ |
231 /*post message to User*/ |
| 238 void msn_session_report_user(MsnSession *session,const char *passport, |
232 void msn_session_report_user(MsnSession *session,const char *passport, |
| 239 const char *msg,PurpleMessageFlags flags); |
233 const char *msg,PurpleMessageFlags flags); |
| 240 |
234 |
| 241 #endif /* _MSN_SESSION_H_ */ |
235 #endif /* MSN_SESSION_H */ |