Wed, 08 Aug 2012 10:02:43 +0200
Gadu-Gadu: status refactoring - own status
| 11414 | 1 | /** |
| 2 | * @file buddylist.h | |
| 3 | * | |
| 15884 | 4 | * purple |
| 11414 | 5 | * |
| 6 | * Copyright (C) 2005 Bartosz Oler <bartosz@bzimage.us> | |
| 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 | |
|
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
|
20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 11414 | 21 | */ |
| 22 | ||
| 23 | ||
| 15884 | 24 | #ifndef _PURPLE_GG_BUDDYLIST_H |
| 25 | #define _PURPLE_GG_BUDDYLIST_H | |
| 11414 | 26 | |
| 27 | #include "connection.h" | |
| 28 | #include "account.h" | |
| 29 | ||
| 30 | void | |
| 15884 | 31 | ggp_buddylist_send(PurpleConnection *gc); |
| 11414 | 32 | |
| 33 | /** | |
|
27197
b785e826ce29
gadu-gadu: There's no need to set all buddies to offline at logout
Paul Aurich <darkrain42@pidgin.im>
parents:
19859
diff
changeset
|
34 | * Load buddylist from server into the roster. |
| 11414 | 35 | * |
| 15884 | 36 | * @param gc PurpleConnection |
| 11414 | 37 | * @param buddylist Pointer to the buddylist that will be loaded. |
| 38 | */ | |
| 15884 | 39 | /* void ggp_buddylist_load(PurpleConnection *gc, char *buddylist) {{{ */ |
| 11414 | 40 | void |
| 15884 | 41 | ggp_buddylist_load(PurpleConnection *gc, char *buddylist); |
| 11414 | 42 | |
| 43 | /** | |
| 44 | * Get all the buddies in the current account. | |
| 45 | * | |
| 46 | * @param account Current account. | |
|
31293
169eeb43b52c
Remove trailing whitespace
Richard Laager <rlaager@pidgin.im>
parents:
27197
diff
changeset
|
47 | * |
| 11414 | 48 | * @return List of buddies. |
| 49 | */ | |
| 50 | char * | |
| 15884 | 51 | ggp_buddylist_dump(PurpleAccount *account); |
| 11414 | 52 | |
|
33299
b3c4ab3aeb7f
Gadu-Gadu: utils refactoring, (partially) fix new account registration
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
31293
diff
changeset
|
53 | /** |
|
b3c4ab3aeb7f
Gadu-Gadu: utils refactoring, (partially) fix new account registration
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
31293
diff
changeset
|
54 | * Returns the best name of a buddy from the buddylist. |
|
b3c4ab3aeb7f
Gadu-Gadu: utils refactoring, (partially) fix new account registration
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
31293
diff
changeset
|
55 | * |
|
b3c4ab3aeb7f
Gadu-Gadu: utils refactoring, (partially) fix new account registration
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
31293
diff
changeset
|
56 | * @param gc PurpleConnection instance. |
|
b3c4ab3aeb7f
Gadu-Gadu: utils refactoring, (partially) fix new account registration
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
31293
diff
changeset
|
57 | * @param uin UIN of the buddy. |
|
b3c4ab3aeb7f
Gadu-Gadu: utils refactoring, (partially) fix new account registration
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
31293
diff
changeset
|
58 | * |
|
b3c4ab3aeb7f
Gadu-Gadu: utils refactoring, (partially) fix new account registration
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
31293
diff
changeset
|
59 | * @return Name of the buddy, or UIN converted to string, if there is no such |
|
b3c4ab3aeb7f
Gadu-Gadu: utils refactoring, (partially) fix new account registration
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
31293
diff
changeset
|
60 | * user on the list. |
|
b3c4ab3aeb7f
Gadu-Gadu: utils refactoring, (partially) fix new account registration
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
31293
diff
changeset
|
61 | */ |
|
b3c4ab3aeb7f
Gadu-Gadu: utils refactoring, (partially) fix new account registration
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
31293
diff
changeset
|
62 | const char * ggp_buddylist_get_buddy_name(PurpleConnection *gc, const uin_t uin); |
| 11414 | 63 | |
| 15884 | 64 | #endif /* _PURPLE_GG_BUDDYLIST_H */ |
| 11414 | 65 | |
| 12007 | 66 | |
| 67 | /* vim: set ts=8 sts=0 sw=8 noet: */ |