diff options
author | Xavier Claessens <xclaesse@src.gnome.org> | 2007-05-02 20:38:49 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2007-05-02 20:38:49 +0800 |
commit | 59f3e5480f8b20dcea7d7b19682a5c2f67260cdd (patch) | |
tree | f441f3eea5f7540923d2631ec27a4c3e2936decf /libempathy/gossip-presence.h | |
parent | 6e1d5d1bf7e4c1bbac9d1d76fe967acf0dc423d1 (diff) | |
download | gsoc2013-empathy-59f3e5480f8b20dcea7d7b19682a5c2f67260cdd.tar gsoc2013-empathy-59f3e5480f8b20dcea7d7b19682a5c2f67260cdd.tar.gz gsoc2013-empathy-59f3e5480f8b20dcea7d7b19682a5c2f67260cdd.tar.bz2 gsoc2013-empathy-59f3e5480f8b20dcea7d7b19682a5c2f67260cdd.tar.lz gsoc2013-empathy-59f3e5480f8b20dcea7d7b19682a5c2f67260cdd.tar.xz gsoc2013-empathy-59f3e5480f8b20dcea7d7b19682a5c2f67260cdd.tar.zst gsoc2013-empathy-59f3e5480f8b20dcea7d7b19682a5c2f67260cdd.zip |
[darcs-to-svn @ Fix setting presence]
svn path=/trunk/; revision=23
Diffstat (limited to 'libempathy/gossip-presence.h')
-rw-r--r-- | libempathy/gossip-presence.h | 33 |
1 files changed, 13 insertions, 20 deletions
diff --git a/libempathy/gossip-presence.h b/libempathy/gossip-presence.h index 12648e6f7..4aa2aa668 100644 --- a/libempathy/gossip-presence.h +++ b/libempathy/gossip-presence.h @@ -22,6 +22,7 @@ #define __GOSSIP_PRESENCE_H__ #include <glib-object.h> +#include <libmissioncontrol/mission-control.h> G_BEGIN_DECLS @@ -43,29 +44,21 @@ struct _GossipPresenceClass { GObjectClass parent_class; }; -typedef enum { - GOSSIP_PRESENCE_STATE_AVAILABLE, - GOSSIP_PRESENCE_STATE_BUSY, - GOSSIP_PRESENCE_STATE_AWAY, - GOSSIP_PRESENCE_STATE_EXT_AWAY, - GOSSIP_PRESENCE_STATE_HIDDEN, /* When you appear offline to others */ - GOSSIP_PRESENCE_STATE_UNAVAILABLE, -} GossipPresenceState; - GType gossip_presence_get_type (void) G_GNUC_CONST; GossipPresence * gossip_presence_new (void); -GossipPresence * gossip_presence_new_full (GossipPresenceState state, - const gchar *status); -GossipPresenceState gossip_presence_get_state (GossipPresence *presence); -const gchar * gossip_presence_get_status (GossipPresence *presence); -void gossip_presence_set_state (GossipPresence *presence, - GossipPresenceState state); -void gossip_presence_set_status (GossipPresence *presence, - const gchar *status); -gint gossip_presence_sort_func (gconstpointer a, - gconstpointer b); -const gchar * gossip_presence_state_get_default_status (GossipPresenceState state); +GossipPresence * gossip_presence_new_full (McPresence state, + const gchar *status); +McPresence gossip_presence_get_state (GossipPresence *presence); +const gchar * gossip_presence_get_status (GossipPresence *presence); +void gossip_presence_set_state (GossipPresence *presence, + McPresence state); +void gossip_presence_set_status (GossipPresence *presence, + const gchar *status); +gint gossip_presence_sort_func (gconstpointer a, + gconstpointer b); +const gchar * gossip_presence_state_get_default_status (McPresence state); +McPresence gossip_presence_state_from_str (const gchar *str); G_END_DECLS |