Mercurial > pidgin
annotate src/protocols/msn/group.h @ 9193:502707ca1836
[gaim-migrate @ 9988]
Patch by Felipe Contreras to add MSN file transfer and buddy icons. Please
test and report any bugs!
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sun, 06 Jun 2004 02:39:08 +0000 |
parents | 06f57183e29f |
children | ab6636c5a136 |
rev | line source |
---|---|
5518 | 1 /** |
2 * @file group.h Group functions | |
3 * | |
4 * gaim | |
5 * | |
8475
06f57183e29f
[gaim-migrate @ 9208]
Christian Hammond <chipx86@chipx86.com>
parents:
6701
diff
changeset
|
6 * Copyright (C) 2003-2004 Christian Hammond <chipx86@gnupdate.org> |
6701
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
5518
diff
changeset
|
7 * |
5518 | 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 _MSN_GROUP_H_ | |
23 #define _MSN_GROUP_H_ | |
24 | |
25 typedef struct _MsnGroup MsnGroup; | |
26 | |
6701
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
5518
diff
changeset
|
27 #include <stdio.h> |
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
5518
diff
changeset
|
28 |
5518 | 29 #include "session.h" |
30 #include "user.h" | |
31 | |
9193
502707ca1836
[gaim-migrate @ 9988]
Christian Hammond <chipx86@chipx86.com>
parents:
8475
diff
changeset
|
32 #include "userlist.h" |
502707ca1836
[gaim-migrate @ 9988]
Christian Hammond <chipx86@chipx86.com>
parents:
8475
diff
changeset
|
33 |
5518 | 34 /** |
35 * A group. | |
36 */ | |
37 struct _MsnGroup | |
38 { | |
39 MsnSession *session; /**< The MSN session. */ | |
40 | |
41 int id; /**< The group ID. */ | |
42 char *name; /**< The name of the group. */ | |
43 }; | |
44 | |
45 /**************************************************************************/ | |
46 /** @name Group API */ | |
47 /**************************************************************************/ | |
48 /*@{*/ | |
49 | |
50 /** | |
51 * Creates a new group structure. | |
52 * | |
53 * @param session The MSN session. | |
54 * @param id The group ID. | |
55 * @param name The name of the group. | |
56 * | |
57 * @return A new group structure. | |
58 */ | |
9193
502707ca1836
[gaim-migrate @ 9988]
Christian Hammond <chipx86@chipx86.com>
parents:
8475
diff
changeset
|
59 MsnGroup *msn_group_new(MsnUserList *userlist, int id, const char *name); |
5518 | 60 |
61 /** | |
62 * Destroys a group structure. | |
63 * | |
64 * @param group The group to destroy. | |
65 */ | |
66 void msn_group_destroy(MsnGroup *group); | |
67 | |
68 /** | |
69 * Sets the ID for a group. | |
70 * | |
71 * @param group The group. | |
72 * @param id The ID. | |
73 */ | |
74 void msn_group_set_id(MsnGroup *group, int id); | |
75 | |
76 /** | |
77 * Sets the name for a group. | |
78 * | |
79 * @param group The group. | |
80 * @param name The name. | |
81 */ | |
82 void msn_group_set_name(MsnGroup *group, const char *name); | |
83 | |
84 /** | |
85 * Returns the ID for a group. | |
86 * | |
87 * @param group The group. | |
88 * | |
89 * @return The ID. | |
90 */ | |
91 int msn_group_get_id(const MsnGroup *group); | |
92 | |
93 /** | |
94 * Returns the name for a group. | |
95 * | |
96 * @param group The group. | |
97 * | |
98 * @return The name. | |
99 */ | |
100 const char *msn_group_get_name(const MsnGroup *group); | |
101 #endif /* _MSN_GROUP_H_ */ |