]> git.0d.be Git - empathy.git/blobdiff - libempathy/empathy-dispatcher.h
EmpathyDispatcher: Use new EmpathyAccountManager API and rebase on TpConnection inste...
[empathy.git] / libempathy / empathy-dispatcher.h
index 231a2c10633c1f4e53cdc02a89c12b3a2330de44..167393364c548cff88ab2eb3fbc769220913ad9c 100644 (file)
@@ -42,12 +42,14 @@ G_BEGIN_DECLS
 typedef struct _EmpathyDispatcher      EmpathyDispatcher;
 typedef struct _EmpathyDispatcherClass EmpathyDispatcherClass;
 
-struct _EmpathyDispatcher {
+struct _EmpathyDispatcher
+{
   GObject parent;
   gpointer priv;
 };
 
-struct _EmpathyDispatcherClass {
+struct _EmpathyDispatcherClass
+{
  GObjectClass parent_class;
 };
 
@@ -60,7 +62,7 @@ typedef void (EmpathyDispatcherRequestCb) (
 GType empathy_dispatcher_get_type (void) G_GNUC_CONST;
 
 void empathy_dispatcher_create_channel (EmpathyDispatcher *dispatcher,
-  McAccount *account, GHashTable *request,
+  TpConnection *connection, GHashTable *request,
   EmpathyDispatcherRequestCb *callback, gpointer user_data);
 
 /* Requesting 1 to 1 stream media channels */
@@ -68,7 +70,7 @@ void empathy_dispatcher_call_with_contact (EmpathyContact *contact,
   EmpathyDispatcherRequestCb *callback, gpointer user_data);
 
 /* Requesting 1 to 1 text channels */
-void empathy_dispatcher_chat_with_contact_id (McAccount *account,
+void empathy_dispatcher_chat_with_contact_id (TpConnection *connection,
   const gchar *contact_id, EmpathyDispatcherRequestCb *callback,
   gpointer user_data);
 void  empathy_dispatcher_chat_with_contact (EmpathyContact *contact,
@@ -81,12 +83,12 @@ void empathy_dispatcher_send_file_to_contact (EmpathyContact *contact,
   gpointer user_data);
 
 /* Request a muc channel */
-void empathy_dispatcher_join_muc (McAccount *account,
+void empathy_dispatcher_join_muc (TpConnection *connection,
   const gchar *roomname, EmpathyDispatcherRequestCb *callback,
   gpointer user_data);
 
 GStrv empathy_dispatcher_find_channel_class (EmpathyDispatcher *dispatcher,
-  McAccount *account, const gchar *channel_type, guint handle_type);
+  TpConnection *connection, const gchar *channel_type, guint handle_type);
 
 /* Get the dispatcher singleton */
 EmpathyDispatcher *    empathy_dispatcher_dup_singleton (void);