Mercurial > pidgin.yaz
comparison libpurple/protocols/mxit/protocol.h @ 31941:ff2a8a839dbd
Extensions to the user profile.
author | andrew.victor@mxit.com |
---|---|
date | Tue, 22 Mar 2011 21:56:30 +0000 |
parents | aa74632c869d |
children | 2e4ac25df4ba |
comparison
equal
deleted
inserted
replaced
31940:df716c39f698 | 31941:ff2a8a839dbd |
---|---|
108 #define MXIT_CP_CAP "utf8=true;cid="MXIT_CLIENT_ID | 108 #define MXIT_CP_CAP "utf8=true;cid="MXIT_CLIENT_ID |
109 | 109 |
110 /* Client settings */ | 110 /* Client settings */ |
111 #define MAX_QUEUE_SIZE ( 1 << 5 ) /* tx queue size (32 packets) */ | 111 #define MAX_QUEUE_SIZE ( 1 << 5 ) /* tx queue size (32 packets) */ |
112 #define MXIT_POPUP_WIN_NAME "MXit Notification" /* popup window name */ | 112 #define MXIT_POPUP_WIN_NAME "MXit Notification" /* popup window name */ |
113 #define MXIT_MAX_ATTRIBS 10 /* maximum profile attributes supported */ | |
114 #define MXIT_DEFAULT_LOCALE "en" /* default locale setting */ | 113 #define MXIT_DEFAULT_LOCALE "en" /* default locale setting */ |
115 #define MXIT_DEFAULT_LOC "planetpurple" /* the default location for registration */ | 114 #define MXIT_DEFAULT_LOC "planetpurple" /* the default location for registration */ |
116 | 115 |
117 /* Client protocol commands */ | 116 /* Client protocol commands */ |
118 #define CP_CMD_LOGIN 0x0001 /* (1) login */ | 117 #define CP_CMD_LOGIN 0x0001 /* (1) login */ |
192 #define CP_PROFILE_EMAIL "email" /* Email address (UTF8 String) */ | 191 #define CP_PROFILE_EMAIL "email" /* Email address (UTF8 String) */ |
193 #define CP_PROFILE_MOBILENR "mobilenumber" /* Mobile Number (UTF8 String) */ | 192 #define CP_PROFILE_MOBILENR "mobilenumber" /* Mobile Number (UTF8 String) */ |
194 #define CP_PROFILE_REGCOUNTRY "registeredcountry" /* Registered Country Code (UTF8 String) */ | 193 #define CP_PROFILE_REGCOUNTRY "registeredcountry" /* Registered Country Code (UTF8 String) */ |
195 #define CP_PROFILE_FLAGS "flags" /* Profile flags (Bitset) */ | 194 #define CP_PROFILE_FLAGS "flags" /* Profile flags (Bitset) */ |
196 #define CP_PROFILE_LASTSEEN "lastseen" /* Last-Online timestamp */ | 195 #define CP_PROFILE_LASTSEEN "lastseen" /* Last-Online timestamp */ |
196 #define CP_PROFILE_WHEREAMI "whereami" /* Where am I / Where I live */ | |
197 #define CP_PROFILE_ABOUTME "aboutme" /* About me */ | |
197 | 198 |
198 /* extended profile field types */ | 199 /* extended profile field types */ |
199 #define CP_PROFILE_TYPE_BOOL 0x02 /* boolean profile attribute type */ | 200 #define CP_PROFILE_TYPE_BOOL 0x02 /* boolean (0 or 1) */ |
200 #define CP_PROFILE_TYPE_INT 0x05 /* integer profile attribute type */ | 201 #define CP_PROFILE_TYPE_INT 0x05 /* integer (32-bit) */ |
201 #define CP_PROFILE_TYPE_UTF8 0x0A /* UTF8 string profile attribute type */ | 202 #define CP_PROFILE_TYPE_LONG 0x06 /* long (64-bit) */ |
202 #define CP_PROFILE_TYPE_DATE 0x0B /* date-time profile attribute type */ | 203 #define CP_PROFILE_TYPE_UTF8 0x0A /* UTF8 string */ |
204 #define CP_PROFILE_TYPE_DATE 0x0B /* date-time (ISO 8601 format) */ | |
203 | 205 |
204 /* profile flags */ | 206 /* profile flags */ |
207 #define CP_PROF_NOT_SEARCHABLE 0x02 /* user cannot be searched for */ | |
208 #define CP_PROF_NOT_SUGGESTABLE 0x08 /* user cannot be suggested as friend */ | |
205 #define CP_PROF_DOBLOCKED 0x40 /* date-of-birth cannot be changed */ | 209 #define CP_PROF_DOBLOCKED 0x40 /* date-of-birth cannot be changed */ |
206 | 210 |
207 /* suggestion types */ | 211 /* suggestion types */ |
208 #define CP_SUGGEST_ADDRESSBOOK 0 /* address book search */ | 212 #define CP_SUGGEST_ADDRESSBOOK 0 /* address book search */ |
209 #define CP_SUGGEST_FRIENDS 1 /* suggested friends */ | 213 #define CP_SUGGEST_FRIENDS 1 /* suggested friends */ |