3 * Purple is the legal property of its developers, whose names are too numerous
4 * to list here. Please refer to the COPYRIGHT file distributed with this
7 * Rewritten from scratch during Google Summer of Code 2012
8 * by Tomek Wasilczyk (http://www.wasilczyk.pl).
10 * Previously implemented by:
11 * - Arkadiusz Miskiewicz <misiek@pld.org.pl> - first implementation (2001);
12 * - Bartosz Oler <bartosz@bzimage.us> - reimplemented during GSoC 2005;
13 * - Krzysztof Klinikowski <grommasher@gmail.com> - some parts (2009-2011).
15 * This program is free software; you can redistribute it and/or modify
16 * it under the terms of the GNU General Public License as published by
17 * the Free Software Foundation; either version 2 of the License, or
18 * (at your option) any later version.
20 * This program is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
25 * You should have received a copy of the GNU General Public License
26 * along with this program; if not, write to the Free Software
27 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
30 #ifndef PURPLE_GG_STATUS_H
31 #define PURPLE_GG_STATUS_H
36 typedef struct _ggp_status_session_data ggp_status_session_data
;
38 void ggp_status_setup(PurpleConnection
*gc
);
39 void ggp_status_cleanup(PurpleConnection
*gc
);
41 GList
* ggp_status_types(PurpleAccount
*account
);
42 int ggp_status_from_purplestatus(PurpleStatus
*status
, gchar
**message
);
43 const gchar
* ggp_status_to_purplestatus(int status
);
44 const gchar
* ggp_status_get_name(const gchar
*purple_status
);
48 void ggp_status_set_initial(PurpleConnection
*gc
, struct gg_login_params
*glp
);
50 gboolean
ggp_status_set(PurpleAccount
*account
, int status
, const gchar
* msg
);
51 void ggp_status_set_purplestatus(PurpleAccount
*account
, PurpleStatus
*status
);
52 void ggp_status_set_disconnected(PurpleAccount
*account
);
53 void ggp_status_fake_to_self(PurpleConnection
*gc
);
55 gboolean
ggp_status_get_status_broadcasting(PurpleConnection
*gc
);
56 void ggp_status_set_status_broadcasting(PurpleConnection
*gc
,
57 gboolean broadcasting
);
58 void ggp_status_broadcasting_dialog(PurpleConnection
*gc
);
62 void ggp_status_got_others(PurpleConnection
*gc
, struct gg_event
*ev
);
63 char * ggp_status_buddy_text(PurpleBuddy
*buddy
);
65 #endif /* PURPLE_GG_STATUS_H */