diff options
author | Will Thompson <will.thompson@collabora.co.uk> | 2011-09-08 15:07:08 +0800 |
---|---|---|
committer | Will Thompson <will.thompson@collabora.co.uk> | 2011-10-15 01:22:01 +0800 |
commit | 6a56f4c19ff31722619e5494639884a6a2646967 (patch) | |
tree | 0f42990ebc09c02ce78eace330d7ab01c28579dc /libempathy/empathy-tp-chat.h | |
parent | 8bd6c6b3fa285cdf99f5a9b09c5c03ccf19ace5d (diff) | |
download | gsoc2013-empathy-6a56f4c19ff31722619e5494639884a6a2646967.tar gsoc2013-empathy-6a56f4c19ff31722619e5494639884a6a2646967.tar.gz gsoc2013-empathy-6a56f4c19ff31722619e5494639884a6a2646967.tar.bz2 gsoc2013-empathy-6a56f4c19ff31722619e5494639884a6a2646967.tar.lz gsoc2013-empathy-6a56f4c19ff31722619e5494639884a6a2646967.tar.xz gsoc2013-empathy-6a56f4c19ff31722619e5494639884a6a2646967.tar.zst gsoc2013-empathy-6a56f4c19ff31722619e5494639884a6a2646967.zip |
TpChat: hide guts of Telepathy properties.
This will make it easier to replace these with new stuff. The funky
indentation in the callbacks for the subject and title changing is to
make it clear that I didn't change that code; I'll reindent it in
another patch.
Diffstat (limited to 'libempathy/empathy-tp-chat.h')
-rw-r--r-- | libempathy/empathy-tp-chat.h | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/libempathy/empathy-tp-chat.h b/libempathy/empathy-tp-chat.h index 810cb5184..cc1c16aaf 100644 --- a/libempathy/empathy-tp-chat.h +++ b/libempathy/empathy-tp-chat.h @@ -53,13 +53,6 @@ struct _EmpathyTpChatClass { TpTextChannelClass parent_class; }; -typedef struct { - gchar *name; - guint id; - TpPropertyFlags flags; - GValue *value; -} EmpathyTpChatProperty; - typedef enum { EMPATHY_DELIVERY_STATUS_NONE, EMPATHY_DELIVERY_STATUS_SENDING, @@ -83,13 +76,14 @@ EmpathyContact *empathy_tp_chat_get_remote_contact (EmpathyTpChat *chat); TpAccount * empathy_tp_chat_get_account (EmpathyTpChat *chat); void empathy_tp_chat_send (EmpathyTpChat *chat, TpMessage *message); -void empathy_tp_chat_set_property (EmpathyTpChat *chat, - const gchar *name, - const GValue *value); -EmpathyTpChatProperty * - empathy_tp_chat_get_property (EmpathyTpChat *chat, - const gchar *name); -GPtrArray * empathy_tp_chat_get_properties (EmpathyTpChat *chat); + +const gchar * empathy_tp_chat_get_title (EmpathyTpChat *self); + +gboolean empathy_tp_chat_supports_subject (EmpathyTpChat *self); +const gchar * empathy_tp_chat_get_subject (EmpathyTpChat *self); +gboolean empathy_tp_chat_can_set_subject (EmpathyTpChat *self); +void empathy_tp_chat_set_subject (EmpathyTpChat *self, + const gchar *subject); /* Returns a read-only list of pending messages (should be a copy maybe ?) */ const GList * empathy_tp_chat_get_pending_messages (EmpathyTpChat *chat); |