comparison libpurple/protocols/mxit/protocol.h @ 32819:2c6510167895 default tip

propagate from branch 'im.pidgin.pidgin.2.x.y' (head 3315c5dfbd0ad16511bdcf865e5b07c02d07df24) to branch 'im.pidgin.pidgin' (head cbd1eda6bcbf0565ae7766396bb8f6f419cb6a9a)
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Sat, 02 Jun 2012 02:30:49 +0000
parents 930820b18a8d
children
comparison
equal deleted inserted replaced
32818:01ff09d4a463 32819:2c6510167895
32 #define CP_HTTP_REC_TERM '\x26' /* http record terminator '&' */ 32 #define CP_HTTP_REC_TERM '\x26' /* http record terminator '&' */
33 #define CP_FLD_TERM '\x01' /* field terminator */ 33 #define CP_FLD_TERM '\x01' /* field terminator */
34 #define CP_PKT_TERM '\x02' /* packet terminator */ 34 #define CP_PKT_TERM '\x02' /* packet terminator */
35 35
36 36
37 #define CP_MAX_PACKET ( 1024 * 1024 ) /* maximum client protocol packet size (1 MiB) */ 37 #define CP_MAX_PACKET ( 1 * 1000 * 1000 ) /* maximum client protocol packet size (1 MB) */
38 #define CP_MAX_FILESIZE ( 150 * 1000 ) /* maximum client protocol file transfer size (150 KB) */
39 #define MXIT_EMOTICON_SIZE 18 /* icon size for custom emoticons */ 38 #define MXIT_EMOTICON_SIZE 18 /* icon size for custom emoticons */
40 #define CP_MAX_STATUS_MSG 250 /* maximum status message length (in characters) */ 39 #define CP_MAX_STATUS_MSG 250 /* maximum status message length (in characters) */
41 40
42 /* Avatars */ 41 /* Avatars */
43 #define MXIT_AVATAR_SIZE 96 /* default avatar image size 96x96 */ 42 #define MXIT_AVATAR_SIZE 96 /* default avatar image size 96x96 */
75 #define MXIT_CF_NO_AVATARS 0x200000 74 #define MXIT_CF_NO_AVATARS 0x200000
76 #define MXIT_CF_GAMING 0x400000 75 #define MXIT_CF_GAMING 0x400000
77 #define MXIT_CF_GAMING_UPDATE 0x800000 76 #define MXIT_CF_GAMING_UPDATE 0x800000
78 #define MXIT_CF_VOICE 0x1000000 77 #define MXIT_CF_VOICE 0x1000000
79 #define MXIT_CF_VIDEO 0x2000000 78 #define MXIT_CF_VIDEO 0x2000000
79 #define MXIT_CF_TOUCHSCREEN 0x4000000
80 80
81 /* Client features supported by this implementation */ 81 /* Client features supported by this implementation */
82 #define MXIT_CP_FEATURES ( MXIT_CF_FILE_TRANSFER | MXIT_CF_FILE_ACCESS | MXIT_CF_AUDIO | MXIT_CF_MARKUP | MXIT_CF_EXT_MARKUP | MXIT_CF_NO_GATEWAYS | MXIT_CF_IMAGES | MXIT_CF_COMMANDS | MXIT_CF_VIBES | MXIT_CF_MIDP2 ) 82 #define MXIT_CP_FEATURES ( MXIT_CF_FILE_TRANSFER | MXIT_CF_FILE_ACCESS | MXIT_CF_AUDIO | MXIT_CF_MARKUP | MXIT_CF_EXT_MARKUP | MXIT_CF_NO_GATEWAYS | MXIT_CF_IMAGES | MXIT_CF_COMMANDS | MXIT_CF_VIBES | MXIT_CF_MIDP2 )
83 83
84 84
153 #define RX_STATE_PROC 0x03 /* process read data */ 153 #define RX_STATE_PROC 0x03 /* process read data */
154 154
155 /* message flags */ 155 /* message flags */
156 #define CP_MSG_NOTIFY_DELIVERY 0x0002 /* request delivery notification */ 156 #define CP_MSG_NOTIFY_DELIVERY 0x0002 /* request delivery notification */
157 #define CP_MSG_NOTIFY_READ 0x0004 /* request read notification */ 157 #define CP_MSG_NOTIFY_READ 0x0004 /* request read notification */
158 #define CP_MSG_ENCRYPTED 0x0010 /* message is encrypted */ 158 #define CP_MSG_PWD_ENCRYPTED 0x0010 /* message is password encrypted */
159 #define CP_MSG_TL_ENCRYPTED 0x0020 /* message is transport encrypted */
160 #define CP_MSG_RPLY_PWD_ENCRYPT 0x0040 /* reply should be password encrypted */
161 #define CP_MSG_RPLY_TL_ENCRYPT 0x0080 /* reply should be transport encrypted */
159 #define CP_MSG_MARKUP 0x0200 /* message may contain markup */ 162 #define CP_MSG_MARKUP 0x0200 /* message may contain markup */
160 #define CP_MSG_EMOTICON 0x0400 /* message may contain custom emoticons */ 163 #define CP_MSG_EMOTICON 0x0400 /* message may contain custom emoticons */
161 164
162 /* redirect types */ 165 /* redirect types */
163 #define CP_REDIRECT_PERMANENT 1 /* permanent redirect */ 166 #define CP_REDIRECT_PERMANENT 1 /* permanent redirect */
177 #define CP_MSGEVENT_DISPLAYED 0x04 /* message was viewed */ 180 #define CP_MSGEVENT_DISPLAYED 0x04 /* message was viewed */
178 181
179 /* extended profile attribute fields */ 182 /* extended profile attribute fields */
180 #define CP_PROFILE_BIRTHDATE "birthdate" /* Birthdate (String - ISO 8601 format) */ 183 #define CP_PROFILE_BIRTHDATE "birthdate" /* Birthdate (String - ISO 8601 format) */
181 #define CP_PROFILE_GENDER "gender" /* Gender (Boolean - 0=female, 1=male) */ 184 #define CP_PROFILE_GENDER "gender" /* Gender (Boolean - 0=female, 1=male) */
182 #define CP_PROFILE_HIDENUMBER "hidenumber" /* Hide Number (Boolean - 0=false, 1=true) */ 185 // #define CP_PROFILE_HIDENUMBER "hidenumber" /* Hide Number (Boolean - 0=false, 1=true) (DEPRECATED) */
183 #define CP_PROFILE_FULLNAME "fullname" /* Fullname (UTF8 String) */ 186 #define CP_PROFILE_FULLNAME "fullname" /* Fullname (UTF8 String) */
184 #define CP_PROFILE_STATUS "statusmsg" /* Status Message (UTF8 String) */ 187 #define CP_PROFILE_STATUS "statusmsg" /* Status Message (UTF8 String) */
185 #define CP_PROFILE_PREVSTATUS "prevstatusmsgs" /* Previous Status Messages (UTF8 String) */ 188 #define CP_PROFILE_PREVSTATUS "prevstatusmsgs" /* Previous Status Messages (UTF8 String) */
186 #define CP_PROFILE_AVATAR "avatarid" /* Avatar ID (String) */ 189 #define CP_PROFILE_AVATAR "avatarid" /* Avatar ID (String) */
187 #define CP_PROFILE_MODIFIED "lastmodified" /* Last-Modified timestamp */ 190 #define CP_PROFILE_MODIFIED "lastmodified" /* Last-Modified timestamp */