Mercurial > pidgin.yaz
comparison libpurple/protocols/mxit/profile.h @ 28903:69aa4660401a
Initial addition of the MXit protocol plugin, provided by the MXit folks
themselves.
author | John Bailey <rekkanoryo@rekkanoryo.org> |
---|---|
date | Sun, 08 Nov 2009 23:55:56 +0000 |
parents | |
children | 207662bad69c |
comparison
equal
deleted
inserted
replaced
28901:13e668ef158d | 28903:69aa4660401a |
---|---|
1 /* | |
2 * MXit Protocol libPurple Plugin | |
3 * | |
4 * -- user profile's -- | |
5 * | |
6 * Andrew Victor <libpurple@mxit.com> | |
7 * | |
8 * (C) Copyright 2009 MXit Lifestyle (Pty) Ltd. | |
9 * <http://www.mxitlifestyle.com> | |
10 * | |
11 * This program is free software; you can redistribute it and/or modify | |
12 * it under the terms of the GNU General Public License as published by | |
13 * the Free Software Foundation; either version 2 of the License, or | |
14 * (at your option) any later version. | |
15 * | |
16 * This program is distributed in the hope that it will be useful, | |
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
19 * GNU General Public License for more details. | |
20 * | |
21 * You should have received a copy of the GNU General Public License | |
22 * along with this program; if not, write to the Free Software | |
23 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA | |
24 */ | |
25 | |
26 #ifndef _MXIT_PROFILE_H_ | |
27 #define _MXIT_PROFILE_H_ | |
28 | |
29 #include <glib.h> | |
30 | |
31 | |
32 struct MXitProfile { | |
33 /* required */ | |
34 char loginname[64]; /* name user uses to log into MXit with (aka 'mxitid') */ | |
35 char nickname[64]; /* user's own display name (aka 'nickname', aka 'fullname', aka 'alias') in MXit */ | |
36 char birthday[16]; /* user's birthday "YYYY-MM-DD" */ | |
37 gboolean male; /* true if the user's gender is male (otherwise female) */ | |
38 char pin[16]; /* user's password */ | |
39 | |
40 /* optional */ | |
41 char title[32]; /* user's title */ | |
42 char firstname[64]; /* user's first name */ | |
43 char lastname[64]; /* user's last name (aka 'surname') */ | |
44 char email[64]; /* user's email address */ | |
45 char mobilenr[21]; /* user's mobile number */ | |
46 | |
47 gboolean hidden; /* set if the user's msisdn should remain hidden */ | |
48 }; | |
49 | |
50 struct MXitSession; | |
51 void mxit_show_profile( struct MXitSession* session, const char* username, struct MXitProfile* profile ); | |
52 | |
53 gboolean validateDate( const char* bday ); | |
54 | |
55 | |
56 #endif /* _MXIT_PROFILE_H_ */ |