]> git.0d.be Git - empathy.git/blobdiff - libempathy-gtk/empathy-protocol-chooser.h
GNOME Goal: Update icon names
[empathy.git] / libempathy-gtk / empathy-protocol-chooser.h
index 75f9343cc7dd368baa6cdd96592601437a3559a8..2ae8017ef362c99565528f3706ee6ea96f981fd8 100644 (file)
 #ifndef __EMPATHY_PROTOCOL_CHOOSER_H__
 #define __EMPATHY_PROTOCOL_CHOOSER_H__
 
-#include <glib-object.h>
 #include <gtk/gtk.h>
+#include <telepathy-glib/telepathy-glib.h>
 
-#include <telepathy-glib/connection-manager.h>
+#include "empathy-account-settings.h"
 
 G_BEGIN_DECLS
 
@@ -39,7 +39,7 @@ G_BEGIN_DECLS
     EMPATHY_TYPE_PROTOCOL_CHOOSER))
 #define EMPATHY_IS_PROTOCOL_CHOOSER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), \
     EMPATHY_TYPE_PROTOCOL_CHOOSER))
-#define EMPATHY_PROTOCOL_CHOOSER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), \
+#define EMPATHY_PROTOCOL_CHOOSER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o),\
     EMPATHY_TYPE_PROTOCOL_CHOOSER, EmpathyProtocolChooserClass))
 
 typedef struct _EmpathyProtocolChooser EmpathyProtocolChooser;
@@ -58,13 +58,25 @@ struct _EmpathyProtocolChooserClass
   GtkComboBoxClass parent_class;
 };
 
+typedef gboolean (*EmpathyProtocolChooserFilterFunc) (TpConnectionManager *cm,
+    TpProtocol *protocol,
+    const gchar *service,
+    gpointer user_data);
+
 GType empathy_protocol_chooser_get_type (void) G_GNUC_CONST;
 GtkWidget * empathy_protocol_chooser_new (void);
 TpConnectionManager *empathy_protocol_chooser_dup_selected (
     EmpathyProtocolChooser *protocol_chooser,
-    TpConnectionManagerProtocol **protocol);
-gint empathy_protocol_chooser_n_protocols (
-    EmpathyProtocolChooser *protocol_chooser);
+    TpProtocol **protocol,
+    gchar **service);
+
+void empathy_protocol_chooser_set_visible (
+    EmpathyProtocolChooser *protocol_chooser,
+    EmpathyProtocolChooserFilterFunc func,
+    gpointer user_data);
+
+EmpathyAccountSettings * empathy_protocol_chooser_create_account_settings (
+    EmpathyProtocolChooser *self);
 
 G_END_DECLS
 #endif /*  __EMPATHY_PROTOCOL_CHOOSER_H__ */