]> git.0d.be Git - empathy.git/blobdiff - libempathy/empathy-tp-chat.h
add myself to AUTHORS
[empathy.git] / libempathy / empathy-tp-chat.h
index 353052923fe6b3034b16a5105adeb4c74ca7e552..940c360957952cdbe398022e07d4499db6c869f3 100644 (file)
@@ -52,15 +52,21 @@ struct _EmpathyTpChatClass {
        GObjectClass parent_class;
 };
 
+typedef struct {
+       gchar          *name;
+       guint           id;
+       TpPropertyFlags flags;
+       GValue         *value;
+} EmpathyTpChatProperty;
+
 GType          empathy_tp_chat_get_type             (void) G_GNUC_CONST;
 EmpathyTpChat *empathy_tp_chat_new                  (TpChannel          *channel);
 void           empathy_tp_chat_close                (EmpathyTpChat      *chat);
 const gchar *  empathy_tp_chat_get_id               (EmpathyTpChat      *chat);
-EmpathyContact*empathy_tp_chat_get_remote_contact   (EmpathyTpChat      *chat);
-McAccount *    empathy_tp_chat_get_account          (EmpathyTpChat      *chat);
+EmpathyContact *empathy_tp_chat_get_remote_contact   (EmpathyTpChat      *chat);
 TpChannel *    empathy_tp_chat_get_channel          (EmpathyTpChat      *chat);
+TpConnection * empathy_tp_chat_get_connection       (EmpathyTpChat      *chat);
 gboolean       empathy_tp_chat_is_ready             (EmpathyTpChat      *chat);
-guint          empathy_tp_chat_get_members_count    (EmpathyTpChat      *chat);
 void           empathy_tp_chat_send                 (EmpathyTpChat      *chat,
                                                     EmpathyMessage     *message);
 void           empathy_tp_chat_set_state            (EmpathyTpChat      *chat,
@@ -68,6 +74,10 @@ void           empathy_tp_chat_set_state            (EmpathyTpChat      *chat,
 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);
 
 /* Returns a read-only list of pending messages (should be a copy maybe ?) */
 const GList *  empathy_tp_chat_get_pending_messages (EmpathyTpChat *chat);
@@ -76,6 +86,17 @@ void           empathy_tp_chat_acknowledge_message (EmpathyTpChat *chat,
 void           empathy_tp_chat_acknowledge_messages (EmpathyTpChat *chat,
                                                     const GList *messages);
 
+gboolean       empathy_tp_chat_password_needed      (EmpathyTpChat *chat);
+
+void           empathy_tp_chat_provide_password_async (EmpathyTpChat *chat,
+                                                      const gchar *password,
+                                                      GAsyncReadyCallback callback,
+                                                      gpointer user_data);
+
+gboolean       empathy_tp_chat_provide_password_finish (EmpathyTpChat *chat,
+                                                       GAsyncResult *result,
+                                                       GError **error);
+
 G_END_DECLS
 
 #endif /* __EMPATHY_TP_CHAT_H__ */