Mercurial > pidgin
annotate src/protocols/trepia/profile.h @ 9532:b27ab1b8395d
[gaim-migrate @ 10359]
Fix bug 988882, submitted by Bj?rn Voigt.
He also submitted a patch, but I like my way better.
Anyhoo, thanks Bj?rn.
Also committing some notes to myself because I'm too
lazy to remove them and THEN commit.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Wed, 14 Jul 2004 22:47:20 +0000 |
parents | e6e194f9d44c |
children |
rev | line source |
---|---|
5730 | 1 /** |
2 * @file profile.h Trepia profile API | |
3 * | |
4 * gaim | |
5 * | |
6 * Copyright (C) 2003 Christian Hammond <chipx86@gnupdate.org> | |
7 * | |
8 * This program is free software; you can redistribute it and/or modify | |
9 * it under the terms of the GNU General Public License as published by | |
10 * the Free Software Foundation; either version 2 of the License, or | |
11 * (at your option) any later version. | |
12 * | |
13 * This program is distributed in the hope that it will be useful, | |
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 * GNU General Public License for more details. | |
17 * | |
18 * You should have received a copy of the GNU General Public License | |
19 * along with this program; if not, write to the Free Software | |
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
21 */ | |
22 #ifndef _TREPIA_PROFILE_H_ | |
23 #define _TREPIA_PROFILE_H_ | |
24 | |
25 #include <glib.h> | |
26 #include <time.h> | |
5789
d42d2c9c2122
[gaim-migrate @ 6214]
Christian Hammond <chipx86@chipx86.com>
parents:
5752
diff
changeset
|
27 #include "blist.h" |
5730 | 28 |
29 typedef struct | |
30 { | |
7382 | 31 GaimBuddy *buddy; |
5789
d42d2c9c2122
[gaim-migrate @ 6214]
Christian Hammond <chipx86@chipx86.com>
parents:
5752
diff
changeset
|
32 |
5752
90eea4997759
[gaim-migrate @ 6177]
Christian Hammond <chipx86@chipx86.com>
parents:
5730
diff
changeset
|
33 int type; /* c */ |
90eea4997759
[gaim-migrate @ 6177]
Christian Hammond <chipx86@chipx86.com>
parents:
5730
diff
changeset
|
34 |
5730 | 35 int id; /* a */ |
36 char *location; /* p */ | |
37 time_t login_time; /* b */ | |
38 char *login; /* d */ | |
39 int age; /* m */ | |
40 char sex; /* n */ | |
41 char *first_name; /* g */ | |
42 char *last_name; /* h */ | |
43 char *profile; /* o */ | |
44 char *email; /* e */ | |
45 int icq; /* i */ | |
46 char *aim; /* j */ | |
47 char *msn; /* k */ | |
48 char *yahoo; /* l */ | |
49 char *homepage; /* f */ | |
50 char *country; /* r */ | |
51 char *state; /* s */ | |
52 char *city; /* t */ | |
53 char *languages; /* u */ | |
54 char *school; /* v */ | |
55 char *company; /* w */ | |
56 | |
57 } TrepiaProfile; | |
58 | |
59 TrepiaProfile *trepia_profile_new(void); | |
60 void trepia_profile_destroy(TrepiaProfile *profile); | |
61 | |
5752
90eea4997759
[gaim-migrate @ 6177]
Christian Hammond <chipx86@chipx86.com>
parents:
5730
diff
changeset
|
62 void trepia_profile_set_type(TrepiaProfile *profile, int value); |
5730 | 63 void trepia_profile_set_id(TrepiaProfile *profile, int value); |
64 void trepia_profile_set_location(TrepiaProfile *profile, const char *value); | |
65 void trepia_profile_set_login_time(TrepiaProfile *profile, time_t value); | |
66 void trepia_profile_set_login(TrepiaProfile *profile, const char *value); | |
67 void trepia_profile_set_age(TrepiaProfile *profile, int value); | |
68 void trepia_profile_set_sex(TrepiaProfile *profile, char value); | |
69 void trepia_profile_set_first_name(TrepiaProfile *profile, const char *value); | |
70 void trepia_profile_set_last_name(TrepiaProfile *profile, const char *value); | |
71 void trepia_profile_set_profile(TrepiaProfile *profile, const char *value); | |
72 void trepia_profile_set_email(TrepiaProfile *profile, const char *value); | |
73 void trepia_profile_set_icq(TrepiaProfile *profile, int value); | |
74 void trepia_profile_set_aim(TrepiaProfile *profile, const char *value); | |
75 void trepia_profile_set_msn(TrepiaProfile *profile, const char *value); | |
76 void trepia_profile_set_yahoo(TrepiaProfile *profile, const char *value); | |
77 void trepia_profile_set_homepage(TrepiaProfile *profile, const char *value); | |
78 void trepia_profile_set_country(TrepiaProfile *profile, const char *value); | |
79 void trepia_profile_set_state(TrepiaProfile *profile, const char *value); | |
80 void trepia_profile_set_city(TrepiaProfile *profile, const char *value); | |
81 void trepia_profile_set_languages(TrepiaProfile *profile, const char *value); | |
82 void trepia_profile_set_school(TrepiaProfile *profile, const char *value); | |
83 void trepia_profile_set_company(TrepiaProfile *profile, const char *value); | |
84 | |
5752
90eea4997759
[gaim-migrate @ 6177]
Christian Hammond <chipx86@chipx86.com>
parents:
5730
diff
changeset
|
85 int trepia_profile_get_type(const TrepiaProfile *profile); |
5730 | 86 int trepia_profile_get_id(const TrepiaProfile *profile); |
87 const char *trepia_profile_get_location(const TrepiaProfile *profile); | |
88 time_t trepia_profile_get_login_time(const TrepiaProfile *profile); | |
89 const char *trepia_profile_get_login(const TrepiaProfile *profile); | |
90 int trepia_profile_get_age(const TrepiaProfile *profile); | |
91 char trepia_profile_get_sex(const TrepiaProfile *profile); | |
92 const char *trepia_profile_get_first_name(const TrepiaProfile *profile); | |
93 const char *trepia_profile_get_last_name(const TrepiaProfile *profile); | |
94 const char *trepia_profile_get_profile(const TrepiaProfile *profile); | |
95 const char *trepia_profile_get_email(const TrepiaProfile *profile); | |
96 int trepia_profile_get_icq(const TrepiaProfile *profile); | |
97 const char *trepia_profile_get_aim(const TrepiaProfile *profile); | |
98 const char *trepia_profile_get_msn(const TrepiaProfile *profile); | |
99 const char *trepia_profile_get_yahoo(const TrepiaProfile *profile); | |
100 const char *trepia_profile_get_homepage(const TrepiaProfile *profile); | |
101 const char *trepia_profile_get_country(const TrepiaProfile *profile); | |
102 const char *trepia_profile_get_state(const TrepiaProfile *profile); | |
103 const char *trepia_profile_get_city(const TrepiaProfile *profile); | |
104 const char *trepia_profile_get_languages(const TrepiaProfile *profile); | |
105 const char *trepia_profile_get_school(const TrepiaProfile *profile); | |
106 const char *trepia_profile_get_company(const TrepiaProfile *profile); | |
107 | |
108 #endif /* _TREPIA_PROFILE_H_ */ |