Mercurial > pidgin
diff libpurple/protocols/mxit/protocol.h @ 30286:08d9cdac2b3c
A few changes to the Profile.
For the user's profile we now also request the 'flags' attribute.
The DoB-Locked flag indicates if the user is allowed to change their
date-of-birth. If it it locked, make the DoB field read-only.
For your buddies profile, request the 'lastseen' attribute.
For offline contacts we now show on the profile page when last
they were online.
| author | andrew.victor@mxit.com |
|---|---|
| date | Mon, 19 Jul 2010 08:39:45 +0000 |
| parents | 30d0d4756fac |
| children | 44f53d3fc54f |
line wrap: on
line diff
--- a/libpurple/protocols/mxit/protocol.h Fri Jul 16 12:15:28 2010 +0000 +++ b/libpurple/protocols/mxit/protocol.h Mon Jul 19 08:39:45 2010 +0000 @@ -190,13 +190,17 @@ #define CP_PROFILE_EMAIL "email" /* Email address (UTF8 String) */ #define CP_PROFILE_MOBILENR "mobilenumber" /* Mobile Number (UTF8 String) */ #define CP_PROFILE_REGCOUNTRY "registeredcountry" /* Registered Country Code (UTF8 String) */ +#define CP_PROFILE_FLAGS "flags" /* Profile flags (Bitset) */ +#define CP_PROFILE_LASTSEEN "lastseen" /* Last-Online timestamp */ /* extended profile field types */ -#define CP_PROF_TYPE_BOOL 0x02 /* boolean profile attribute type */ -#define CP_PROF_TYPE_INT 0x05 /* integer profile attribute type */ -#define CP_PROF_TYPE_UTF8 0x0A /* UTF8 string profile attribute type */ -#define CP_PROF_TYPE_DATE 0x0B /* date-time profile attribute type */ +#define CP_PROFILE_TYPE_BOOL 0x02 /* boolean profile attribute type */ +#define CP_PROFILE_TYPE_INT 0x05 /* integer profile attribute type */ +#define CP_PROFILE_TYPE_UTF8 0x0A /* UTF8 string profile attribute type */ +#define CP_PROFILE_TYPE_DATE 0x0B /* date-time profile attribute type */ +/* profile flags */ +#define CP_PROF_DOBLOCKED 0x40 /* date-of-birth cannot be changed */ /* define this to enable protocol debugging (very verbose logging) */ #define DEBUG_PROTOCOL
