]> 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 59b06ffbdb63b73e1640f5f1df569e17a41cc7f6..167393364c548cff88ab2eb3fbc769220913ad9c 100644 (file)
@@ -42,13 +42,15 @@ G_BEGIN_DECLS
 typedef struct _EmpathyDispatcher      EmpathyDispatcher;
 typedef struct _EmpathyDispatcherClass EmpathyDispatcherClass;
 
-struct _EmpathyDispatcher {
-       GObject parent;
-       gpointer priv;
+struct _EmpathyDispatcher
+{
+  GObject parent;
+  gpointer priv;
 };
 
-struct _EmpathyDispatcherClass {
-       GObjectClass parent_class;
+struct _EmpathyDispatcherClass
+{
+ GObjectClass parent_class;
 };
 
 /* Will be called when the channel is ready for dispatching. The requestor
@@ -57,14 +59,18 @@ typedef void (EmpathyDispatcherRequestCb) (
   EmpathyDispatchOperation *dispatch,  const GError *error,
   gpointer user_data);
 
-GType empathy_dispatcher_get_type             (void) G_GNUC_CONST;
+GType empathy_dispatcher_get_type (void) G_GNUC_CONST;
+
+void empathy_dispatcher_create_channel (EmpathyDispatcher *dispatcher,
+  TpConnection *connection, GHashTable *request,
+  EmpathyDispatcherRequestCb *callback, gpointer user_data);
 
 /* Requesting 1 to 1 stream media channels */
 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,
@@ -77,10 +83,13 @@ 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,
+  TpConnection *connection, const gchar *channel_type, guint handle_type);
+
 /* Get the dispatcher singleton */
 EmpathyDispatcher *    empathy_dispatcher_dup_singleton (void);