annotate src/protocols/trepia/profile.h @ 11209:e552095ec599

[gaim-migrate @ 13340] Clarify what is going to happen. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Mon, 08 Aug 2005 16:23:18 +0000
parents e6e194f9d44c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5730
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
1 /**
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
2 * @file profile.h Trepia profile API
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
3 *
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
4 * gaim
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
5 *
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
6 * Copyright (C) 2003 Christian Hammond <chipx86@gnupdate.org>
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
7 *
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
8 * This program is free software; you can redistribute it and/or modify
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
9 * it under the terms of the GNU General Public License as published by
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
10 * the Free Software Foundation; either version 2 of the License, or
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
11 * (at your option) any later version.
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
12 *
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
13 * This program is distributed in the hope that it will be useful,
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
16 * GNU General Public License for more details.
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
17 *
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
18 * You should have received a copy of the GNU General Public License
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
19 * along with this program; if not, write to the Free Software
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
21 */
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
22 #ifndef _TREPIA_PROFILE_H_
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
23 #define _TREPIA_PROFILE_H_
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
24
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
25 #include <glib.h>
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
26 #include <time.h>
5789
d42d2c9c2122 [gaim-migrate @ 6214]
Christian Hammond <chipx86@chipx86.com>
parents: 5752
diff changeset
27 #include "blist.h"
5730
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
28
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
29 typedef struct
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
30 {
7382
e6e194f9d44c [gaim-migrate @ 7977]
Nathan Walp <nwalp@pidgin.im>
parents: 5789
diff changeset
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
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
35 int id; /* a */
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
36 char *location; /* p */
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
37 time_t login_time; /* b */
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
38 char *login; /* d */
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
39 int age; /* m */
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
40 char sex; /* n */
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
41 char *first_name; /* g */
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
42 char *last_name; /* h */
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
43 char *profile; /* o */
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
44 char *email; /* e */
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
45 int icq; /* i */
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
46 char *aim; /* j */
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
47 char *msn; /* k */
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
48 char *yahoo; /* l */
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
49 char *homepage; /* f */
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
50 char *country; /* r */
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
51 char *state; /* s */
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
52 char *city; /* t */
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
53 char *languages; /* u */
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
54 char *school; /* v */
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
55 char *company; /* w */
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
56
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
57 } TrepiaProfile;
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
58
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
59 TrepiaProfile *trepia_profile_new(void);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
60 void trepia_profile_destroy(TrepiaProfile *profile);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
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
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
63 void trepia_profile_set_id(TrepiaProfile *profile, int value);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
64 void trepia_profile_set_location(TrepiaProfile *profile, const char *value);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
65 void trepia_profile_set_login_time(TrepiaProfile *profile, time_t value);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
66 void trepia_profile_set_login(TrepiaProfile *profile, const char *value);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
67 void trepia_profile_set_age(TrepiaProfile *profile, int value);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
68 void trepia_profile_set_sex(TrepiaProfile *profile, char value);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
69 void trepia_profile_set_first_name(TrepiaProfile *profile, const char *value);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
70 void trepia_profile_set_last_name(TrepiaProfile *profile, const char *value);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
71 void trepia_profile_set_profile(TrepiaProfile *profile, const char *value);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
72 void trepia_profile_set_email(TrepiaProfile *profile, const char *value);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
73 void trepia_profile_set_icq(TrepiaProfile *profile, int value);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
74 void trepia_profile_set_aim(TrepiaProfile *profile, const char *value);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
75 void trepia_profile_set_msn(TrepiaProfile *profile, const char *value);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
76 void trepia_profile_set_yahoo(TrepiaProfile *profile, const char *value);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
77 void trepia_profile_set_homepage(TrepiaProfile *profile, const char *value);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
78 void trepia_profile_set_country(TrepiaProfile *profile, const char *value);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
79 void trepia_profile_set_state(TrepiaProfile *profile, const char *value);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
80 void trepia_profile_set_city(TrepiaProfile *profile, const char *value);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
81 void trepia_profile_set_languages(TrepiaProfile *profile, const char *value);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
82 void trepia_profile_set_school(TrepiaProfile *profile, const char *value);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
83 void trepia_profile_set_company(TrepiaProfile *profile, const char *value);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
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
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
86 int trepia_profile_get_id(const TrepiaProfile *profile);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
87 const char *trepia_profile_get_location(const TrepiaProfile *profile);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
88 time_t trepia_profile_get_login_time(const TrepiaProfile *profile);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
89 const char *trepia_profile_get_login(const TrepiaProfile *profile);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
90 int trepia_profile_get_age(const TrepiaProfile *profile);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
91 char trepia_profile_get_sex(const TrepiaProfile *profile);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
92 const char *trepia_profile_get_first_name(const TrepiaProfile *profile);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
93 const char *trepia_profile_get_last_name(const TrepiaProfile *profile);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
94 const char *trepia_profile_get_profile(const TrepiaProfile *profile);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
95 const char *trepia_profile_get_email(const TrepiaProfile *profile);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
96 int trepia_profile_get_icq(const TrepiaProfile *profile);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
97 const char *trepia_profile_get_aim(const TrepiaProfile *profile);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
98 const char *trepia_profile_get_msn(const TrepiaProfile *profile);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
99 const char *trepia_profile_get_yahoo(const TrepiaProfile *profile);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
100 const char *trepia_profile_get_homepage(const TrepiaProfile *profile);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
101 const char *trepia_profile_get_country(const TrepiaProfile *profile);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
102 const char *trepia_profile_get_state(const TrepiaProfile *profile);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
103 const char *trepia_profile_get_city(const TrepiaProfile *profile);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
104 const char *trepia_profile_get_languages(const TrepiaProfile *profile);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
105 const char *trepia_profile_get_school(const TrepiaProfile *profile);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
106 const char *trepia_profile_get_company(const TrepiaProfile *profile);
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
107
99ae9bd8b5fa [gaim-migrate @ 6154]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
108 #endif /* _TREPIA_PROFILE_H_ */