aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-contact-chooser.h
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-08-05 17:32:23 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-08-05 18:14:19 +0800
commit820b5479bd14c6b408a3818f9bc287ad0a3e2fb8 (patch)
treeb18e151d2f473a31c340c596aff30d9f9b393a14 /libempathy-gtk/empathy-contact-chooser.h
parentd337ef853cc47ff78fbfa0ac54cf3d795832a2b7 (diff)
downloadgsoc2013-empathy-820b5479bd14c6b408a3818f9bc287ad0a3e2fb8.tar
gsoc2013-empathy-820b5479bd14c6b408a3818f9bc287ad0a3e2fb8.tar.gz
gsoc2013-empathy-820b5479bd14c6b408a3818f9bc287ad0a3e2fb8.tar.bz2
gsoc2013-empathy-820b5479bd14c6b408a3818f9bc287ad0a3e2fb8.tar.lz
gsoc2013-empathy-820b5479bd14c6b408a3818f9bc287ad0a3e2fb8.tar.xz
gsoc2013-empathy-820b5479bd14c6b408a3818f9bc287ad0a3e2fb8.tar.zst
gsoc2013-empathy-820b5479bd14c6b408a3818f9bc287ad0a3e2fb8.zip
Add EmpathyContactChooser
This is a pure code refactoring from EmpathyInviteParticipantDialog, this widget is not generic yet. https://bugzilla.gnome.org/show_bug.cgi?id=656020
Diffstat (limited to 'libempathy-gtk/empathy-contact-chooser.h')
-rw-r--r--libempathy-gtk/empathy-contact-chooser.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-contact-chooser.h b/libempathy-gtk/empathy-contact-chooser.h
new file mode 100644
index 000000000..5af938d5d
--- /dev/null
+++ b/libempathy-gtk/empathy-contact-chooser.h
@@ -0,0 +1,55 @@
+/*
+ * empathy-contact-chooser.h
+ *
+ * EmpathyContactChooser
+ *
+ * (c) 2010, Collabora Ltd.
+ *
+ * Authors:
+ * Guillaume Desmottes <guillaume.desmottes@collabora.com>
+ */
+
+#ifndef __EMPATHY_CONTACT_CHOOSER_H__
+#define __EMPATHY_CONTACT_CHOOSER_H__
+
+#include <gtk/gtk.h>
+
+#include <telepathy-glib/account.h>
+
+#include "libempathy/empathy-tp-chat.h"
+
+G_BEGIN_DECLS
+
+#define EMPATHY_TYPE_CONTACT_CHOOSER (empathy_contact_chooser_get_type ())
+#define EMPATHY_CONTACT_CHOOSER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EMPATHY_TYPE_CONTACT_CHOOSER, EmpathyContactChooser))
+#define EMPATHY_CONTACT_CHOOSER_CLASS(obj) (G_TYPE_CHECK_CLASS_CAST ((obj), EMPATHY_TYPE_CONTACT_CHOOSER, EmpathyContactChooserClass))
+#define EMPATHY_IS_CONTACT_CHOOSER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EMPATHY_TYPE_CONTACT_CHOOSER))
+#define EMPATHY_IS_CONTACT_CHOOSER_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE ((obj), EMPATHY_TYPE_CONTACT_CHOOSER))
+#define EMPATHY_CONTACT_CHOOSER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EMPATHY_TYPE_CONTACT_CHOOSER, EmpathyContactChooserClass))
+
+typedef struct _EmpathyContactChooser EmpathyContactChooser;
+typedef struct _EmpathyContactChooserClass EmpathyContactChooserClass;
+typedef struct _EmpathyContactChooserPrivate EmpathyContactChooserPrivate;
+
+struct _EmpathyContactChooser
+{
+ GtkBox parent;
+
+ EmpathyContactChooserPrivate *priv;
+};
+
+struct _EmpathyContactChooserClass
+{
+ GtkBoxClass parent_class;
+};
+
+GType empathy_contact_chooser_get_type (void);
+
+GtkWidget * empathy_contact_chooser_new (EmpathyTpChat *tp_chat);
+
+TpContact * empathy_contact_chooser_get_selected (
+ EmpathyContactChooser *self);
+
+G_END_DECLS
+
+#endif