Mercurial > pidgin.yaz
comparison libpurple/protocols/msn/msn.h @ 20394:4a099e4d0d09
propagate from branch 'im.pidgin.pidgin' (head 98b6b547b29ea1192b73cc4e1de1e674edef4328)
to branch 'im.pidgin.rlaager.merging.msnp13-and-pidgin' (head 4d82c29e56bd33cd6f94302e343dfeb5d68ab3eb)
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Sun, 15 Apr 2007 03:43:17 +0000 |
parents | 32c366eeeb99 |
children | 6f986caeab59 4ddc27c18781 |
comparison
equal
deleted
inserted
replaced
20393:40a04930b233 | 20394:4a099e4d0d09 |
---|---|
1 /** | |
2 * @file msn.h The MSN protocol plugin | |
3 * | |
4 * purple | |
5 * | |
6 * Purple is the legal property of its developers, whose names are too numerous | |
7 * to list here. Please refer to the COPYRIGHT file distributed with this | |
8 * source distribution. | |
9 * | |
10 * This program is free software; you can redistribute it and/or modify | |
11 * it under the terms of the GNU General Public License as published by | |
12 * the Free Software Foundation; either version 2 of the License, or | |
13 * (at your option) any later version. | |
14 * | |
15 * This program is distributed in the hope that it will be useful, | |
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18 * GNU General Public License for more details. | |
19 * | |
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 | |
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
23 */ | |
24 #ifndef _MSN_H_ | |
25 #define _MSN_H_ | |
26 | |
27 /* #define MSN_DEBUG_MSG 1 */ | |
28 /* #define MSN_DEBUG_SLPMSG 1 */ | |
29 /* #define MSN_DEBUG_HTTP 1 */ | |
30 | |
31 /* #define MSN_DEBUG_SLP 1 */ | |
32 /* #define MSN_DEBUG_SLP_VERBOSE 1 */ | |
33 /* #define MSN_DEBUG_SLP_FILES 1 */ | |
34 | |
35 /* #define MSN_DEBUG_NS 1 */ | |
36 /* #define MSN_DEBUG_SB 1 */ | |
37 | |
38 #include "internal.h" | |
39 | |
40 #include "account.h" | |
41 #include "accountopt.h" | |
42 #include "blist.h" | |
43 #include "connection.h" | |
44 #include "conversation.h" | |
45 #include "debug.h" | |
46 #include "cipher.h" | |
47 #include "notify.h" | |
48 #include "privacy.h" | |
49 #include "proxy.h" | |
50 #include "prpl.h" | |
51 #include "request.h" | |
52 #include "servconn.h" | |
53 #include "sslconn.h" | |
54 #include "util.h" | |
55 | |
56 #include "ft.h" | |
57 | |
58 #define MSN_BUF_LEN 8192 | |
59 | |
60 #define USEROPT_MSNSERVER 3 | |
61 #define MSN_SERVER "messenger.hotmail.com" | |
62 #define USEROPT_MSNPORT 4 | |
63 #define MSN_PORT 1863 | |
64 | |
65 /* Windows Live Messenger Server*/ | |
66 #define WLM_SERVER "muser.messenger.hotmail.com" | |
67 #define WLM_PORT 1863 | |
68 #define WLM_PROT_VER 13 | |
69 /*This MSNP14 Support chat with Yahoo Messenger*/ | |
70 #define WLM_YAHOO_PROT_VER 14 | |
71 | |
72 #define WLM_MAX_PROTOCOL 14 | |
73 #define WLM_MIN_PROTOCOL 13 | |
74 | |
75 #define MSN_TYPING_RECV_TIMEOUT 6 | |
76 #define MSN_TYPING_SEND_TIMEOUT 4 | |
77 | |
78 #define HOTMAIL_URL "http://www.hotmail.com/cgi-bin/folders" | |
79 #define PASSPORT_URL "http://lc1.law13.hotmail.passport.com/cgi-bin/dologin?login=" | |
80 /*#define PROFILE_URL "http://spaces.msn.com/profile.aspx?mem="*/ | |
81 #define PROFILE_URL "http://spaces.live.com/profile.aspx?mem=" | |
82 #define PHOTO_URL " contactparams:photopreauthurl=\"" | |
83 | |
84 #define USEROPT_HOTMAIL 0 | |
85 | |
86 #define BUDDY_ALIAS_MAXLEN 387 | |
87 | |
88 #define MSN_FT_GUID "{5D3E02AB-6190-11d3-BBBB-00C04F795683}" | |
89 | |
90 #define MSN_CLIENTINFO \ | |
91 "Client-Name: Purple/" VERSION "\r\n" \ | |
92 "Chat-Logging: Y\r\n" | |
93 | |
94 | |
95 typedef enum | |
96 { | |
97 MSN_LIST_FL_OP = 0x01, | |
98 MSN_LIST_AL_OP = 0x02, | |
99 MSN_LIST_BL_OP = 0x04, | |
100 MSN_LIST_RL_OP = 0x08 | |
101 | |
102 } MsnListOp; | |
103 #define MSN_LIST_OP_MASK 0x07 | |
104 | |
105 typedef enum | |
106 { | |
107 MSN_CLIENT_CAP_WIN_MOBILE = 0x00001, | |
108 MSN_CLIENT_CAP_UNKNOWN_1 = 0x00002, | |
109 MSN_CLIENT_CAP_INK_GIF = 0x00004, | |
110 MSN_CLIENT_CAP_INK_ISF = 0x00008, | |
111 MSN_CLIENT_CAP_VIDEO_CHAT = 0x00010, | |
112 MSN_CLIENT_CAP_BASE = 0x00020, | |
113 MSN_CLIENT_CAP_MSNMOBILE = 0x00040, | |
114 MSN_CLIENT_CAP_MSNDIRECT = 0x00080, | |
115 MSN_CLIENT_CAP_WEBMSGR = 0x00100, | |
116 MSN_CLIENT_CAP_DIRECTIM = 0x04000, | |
117 MSN_CLIENT_CAP_WINKS = 0x08000, | |
118 MSN_CLIENT_CAP_SEARCH = 0x10000 | |
119 | |
120 } MsnClientCaps; | |
121 | |
122 typedef enum | |
123 { | |
124 MSN_CLIENT_VER_5_0 = 0x00, | |
125 MSN_CLIENT_VER_6_0 = 0x10, /* MSNC1 */ | |
126 MSN_CLIENT_VER_6_1 = 0x20, /* MSNC2 */ | |
127 MSN_CLIENT_VER_6_2 = 0x30, /* MSNC3 */ | |
128 MSN_CLIENT_VER_7_0 = 0x40, /* MSNC4 */ | |
129 MSN_CLIENT_VER_7_5 = 0x50 /* MSNC5 */ | |
130 | |
131 } MsnClientVerId; | |
132 | |
133 #define MSN_CLIENT_ID_VERSION MSN_CLIENT_VER_7_0 | |
134 #define MSN_CLIENT_ID_RESERVED_1 0x00 | |
135 #define MSN_CLIENT_ID_RESERVED_2 0x00 | |
136 #define MSN_CLIENT_ID_CAPABILITIES MSN_CLIENT_CAP_BASE | |
137 | |
138 #define MSN_CLIENT_ID \ | |
139 ((MSN_CLIENT_ID_VERSION << 24) | \ | |
140 (MSN_CLIENT_ID_RESERVED_1 << 16) | \ | |
141 (MSN_CLIENT_ID_RESERVED_2 << 8) | \ | |
142 (MSN_CLIENT_ID_CAPABILITIES)) | |
143 | |
144 void msn_act_id(GaimConnection *gc, const char *entry); | |
145 | |
146 | |
147 #endif /* _MSN_H_ */ |