Mercurial > pidgin.yaz
comparison libpurple/protocols/jabber/buddy.h @ 29449:73e4c14921e4
jabber: Move those functions to jutil.[ch]
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Mon, 15 Feb 2010 05:35:56 +0000 |
parents | f2949cd7db0a |
children | 86204988c522 |
comparison
equal
deleted
inserted
replaced
29448:f2949cd7db0a | 29449:73e4c14921e4 |
---|---|
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA | 22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
23 */ | 23 */ |
24 #ifndef PURPLE_JABBER_BUDDY_H_ | 24 #ifndef PURPLE_JABBER_BUDDY_H_ |
25 #define PURPLE_JABBER_BUDDY_H_ | 25 #define PURPLE_JABBER_BUDDY_H_ |
26 | 26 |
27 typedef enum { | |
28 JABBER_BUDDY_STATE_UNKNOWN = -2, | |
29 JABBER_BUDDY_STATE_ERROR = -1, | |
30 JABBER_BUDDY_STATE_UNAVAILABLE = 0, | |
31 JABBER_BUDDY_STATE_ONLINE, | |
32 JABBER_BUDDY_STATE_CHAT, | |
33 JABBER_BUDDY_STATE_AWAY, | |
34 JABBER_BUDDY_STATE_XA, | |
35 JABBER_BUDDY_STATE_DND | |
36 } JabberBuddyState; | |
37 | |
38 typedef struct _JabberBuddy JabberBuddy; | 27 typedef struct _JabberBuddy JabberBuddy; |
39 | 28 |
40 #include "jabber.h" | 29 #include "jabber.h" |
41 #include "caps.h" | 30 #include "caps.h" |
31 #include "jutil.h" | |
42 | 32 |
43 struct _JabberBuddy { | 33 struct _JabberBuddy { |
44 GList *resources; | 34 GList *resources; |
45 char *error_msg; | 35 char *error_msg; |
46 enum { | 36 enum { |
108 | 98 |
109 void jabber_set_info(PurpleConnection *gc, const char *info); | 99 void jabber_set_info(PurpleConnection *gc, const char *info); |
110 void jabber_setup_set_info(PurplePluginAction *action); | 100 void jabber_setup_set_info(PurplePluginAction *action); |
111 void jabber_set_buddy_icon(PurpleConnection *gc, PurpleStoredImage *img); | 101 void jabber_set_buddy_icon(PurpleConnection *gc, PurpleStoredImage *img); |
112 | 102 |
113 /* state -> readable name */ | |
114 const char *jabber_buddy_state_get_name(JabberBuddyState state); | |
115 /* state -> core id */ | |
116 const char *jabber_buddy_state_get_status_id(JabberBuddyState state); | |
117 /* state -> show attr (for presence stanza) */ | |
118 const char *jabber_buddy_state_get_show(JabberBuddyState state); | |
119 /* core id -> state */ | |
120 JabberBuddyState jabber_buddy_status_id_get_state(const char *id); | |
121 /* show attr (presence stanza) -> state */ | |
122 JabberBuddyState jabber_buddy_show_get_state(const char *id); | |
123 | |
124 void jabber_user_search(JabberStream *js, const char *directory); | 103 void jabber_user_search(JabberStream *js, const char *directory); |
125 void jabber_user_search_begin(PurplePluginAction *); | 104 void jabber_user_search_begin(PurplePluginAction *); |
126 | 105 |
127 void jabber_buddy_remove_all_pending_buddy_info_requests(JabberStream *js); | 106 void jabber_buddy_remove_all_pending_buddy_info_requests(JabberStream *js); |
128 | 107 |