Tue, 22 Jun 2010 22:44:28 +0000
Destroy Parts when the SlpMessage is destroyed.
| 5518 | 1 | /** |
| 2 | * @file group.h Group functions | |
| 3 | * | |
| 15884 | 4 | * purple |
| 5518 | 5 | * |
| 15884 | 6 | * Purple is the legal property of its developers, whose names are too numerous |
|
9198
e8eb6d5eb9eb
[gaim-migrate @ 9993]
Christian Hammond <chipx86@chipx86.com>
parents:
9193
diff
changeset
|
7 | * to list here. Please refer to the COPYRIGHT file distributed with this |
|
e8eb6d5eb9eb
[gaim-migrate @ 9993]
Christian Hammond <chipx86@chipx86.com>
parents:
9193
diff
changeset
|
8 | * source distribution. |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
5518
diff
changeset
|
9 | * |
| 5518 | 10 | * This program is free software; you can redistribute it and/or modify |
| 11 | * it under the terms of the GNU General Public License as published by | |
| 12 | * the Free Software Foundation; either version 2 of the License, or | |
| 13 | * (at your option) any later version. | |
| 14 | * | |
| 15 | * This program is distributed in the hope that it will be useful, | |
| 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 18 | * GNU General Public License for more details. | |
| 19 | * | |
| 20 | * You should have received a copy of the GNU General Public License | |
| 21 | * along with this program; if not, write to the Free Software | |
|
19859
71d37b57eff2
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
15884
diff
changeset
|
22 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 5518 | 23 | */ |
|
29305
202cb72ed5b0
Minor header file cleanup. Mostly I wanted to move some enums above some #includes
Mark Doliner <markdoliner@pidgin.im>
parents:
24395
diff
changeset
|
24 | #ifndef MSN_GROUP_H |
|
202cb72ed5b0
Minor header file cleanup. Mostly I wanted to move some enums above some #includes
Mark Doliner <markdoliner@pidgin.im>
parents:
24395
diff
changeset
|
25 | #define MSN_GROUP_H |
| 5518 | 26 | |
| 27 | typedef struct _MsnGroup MsnGroup; | |
| 28 | ||
|
30951
d7e414170155
I guess we like better to include internal than stdio.h.
Jorge Villaseñor <masca@cpw.pidgin.im>
parents:
29305
diff
changeset
|
29 | #include "internal.h" |
|
6701
7e2db9273748
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
5518
diff
changeset
|
30 | |
| 5518 | 31 | #include "session.h" |
| 32 | #include "user.h" | |
| 13855 | 33 | #include "userlist.h" |
| 5518 | 34 | |
| 13861 | 35 | #define MSN_INDIVIDUALS_GROUP_ID "1983" |
|
24395
8cab8ad0cba3
Transliterate the group-names. I think there was a patch for this, but I can't find it now.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
23833
diff
changeset
|
36 | #define MSN_INDIVIDUALS_GROUP_NAME _("Other Contacts") |
| 13856 | 37 | |
| 13857 | 38 | #define MSN_NON_IM_GROUP_ID "email" |
|
24395
8cab8ad0cba3
Transliterate the group-names. I think there was a patch for this, but I can't find it now.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
23833
diff
changeset
|
39 | #define MSN_NON_IM_GROUP_NAME _("Non-IM Contacts") |
|
9193
6e76f1367896
[gaim-migrate @ 9988]
Felipe Contreras <felipe.contreras@gmail.com>
parents:
8475
diff
changeset
|
40 | |
| 5518 | 41 | /** |
| 42 | * A group. | |
| 43 | */ | |
| 44 | struct _MsnGroup | |
| 45 | { | |
| 46 | MsnSession *session; /**< The MSN session. */ | |
| 47 | ||
| 13855 | 48 | char *id; /**< The group ID. */ |
| 5518 | 49 | char *name; /**< The name of the group. */ |
| 50 | }; | |
| 51 | ||
|
23833
1a4c1d44858d
Take care of more cleanup in the MSN code.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
23819
diff
changeset
|
52 | /************************************************************************** |
|
1a4c1d44858d
Take care of more cleanup in the MSN code.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
23819
diff
changeset
|
53 | ** @name Group API * |
|
1a4c1d44858d
Take care of more cleanup in the MSN code.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
23819
diff
changeset
|
54 | **************************************************************************/ |
| 5518 | 55 | /*@{*/ |
| 56 | ||
| 57 | /** | |
| 58 | * Creates a new group structure. | |
| 59 | * | |
| 60 | * @param session The MSN session. | |
| 61 | * @param id The group ID. | |
| 62 | * @param name The name of the group. | |
| 63 | * | |
| 64 | * @return A new group structure. | |
| 65 | */ | |
| 13855 | 66 | MsnGroup *msn_group_new(MsnUserList *userlist, const char *id, const char *name); |
| 5518 | 67 | |
| 68 | /** | |
| 69 | * Destroys a group structure. | |
| 70 | * | |
| 71 | * @param group The group to destroy. | |
| 72 | */ | |
| 73 | void msn_group_destroy(MsnGroup *group); | |
| 74 | ||
| 75 | /** | |
| 76 | * Sets the ID for a group. | |
| 77 | * | |
| 78 | * @param group The group. | |
| 79 | * @param id The ID. | |
| 80 | */ | |
| 13855 | 81 | void msn_group_set_id(MsnGroup *group, const char *id); |
| 5518 | 82 | |
| 83 | /** | |
| 84 | * Sets the name for a group. | |
| 85 | * | |
| 86 | * @param group The group. | |
| 87 | * @param name The name. | |
| 88 | */ | |
| 89 | void msn_group_set_name(MsnGroup *group, const char *name); | |
| 90 | ||
| 91 | /** | |
| 92 | * Returns the ID for a group. | |
| 93 | * | |
| 94 | * @param group The group. | |
| 95 | * | |
| 96 | * @return The ID. | |
| 97 | */ | |
| 13855 | 98 | char* msn_group_get_id(const MsnGroup *group); |
| 5518 | 99 | |
| 100 | /** | |
| 101 | * Returns the name for a group. | |
| 102 | * | |
| 103 | * @param group The group. | |
| 104 | * | |
| 105 | * @return The name. | |
| 106 | */ | |
| 107 | const char *msn_group_get_name(const MsnGroup *group); | |
|
23833
1a4c1d44858d
Take care of more cleanup in the MSN code.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
23819
diff
changeset
|
108 | |
|
29305
202cb72ed5b0
Minor header file cleanup. Mostly I wanted to move some enums above some #includes
Mark Doliner <markdoliner@pidgin.im>
parents:
24395
diff
changeset
|
109 | #endif /* MSN_GROUP_H */ |