]> git.0d.be Git - empathy.git/blobdiff - libempathy-gtk/empathy-contact-widget.h
More flexible API for EmpathyContactWidget, we now have flags to set
[empathy.git] / libempathy-gtk / empathy-contact-widget.h
index 4b7102e8f5c977a5f15ea8772e9ed8bb12d11709..3a2aed996dbdcdb7ae6cabee30a0ff3ae5e4c428 100644 (file)
 
 #include <gtk/gtk.h>
 
-#include <libempathy/gossip-contact.h>
+#include <libempathy/empathy-contact.h>
 
 G_BEGIN_DECLS
 
-GtkWidget *    empathy_contact_widget_new         (GossipContact *contact,
-                                                  gboolean       editable);
-void           empathy_contact_widget_save        (GtkWidget     *widget);
-GossipContact *empathy_contact_widget_get_contact (GtkWidget     *widget);
+typedef enum {
+       EMPATHY_CONTACT_WIDGET_EDIT_ALIAS   = 1 << 0,
+       EMPATHY_CONTACT_WIDGET_EDIT_AVATAR  = 1 << 1,
+       EMPATHY_CONTACT_WIDGET_EDIT_ACCOUNT = 1 << 2,
+       EMPATHY_CONTACT_WIDGET_EDIT_ID      = 1 << 3,
+       EMPATHY_CONTACT_WIDGET_EDIT_GROUPS  = 1 << 4,
+} EmpathyContactWidgetFlags;
+
+GtkWidget *     empathy_contact_widget_new         (EmpathyContact            *contact,
+                                                   EmpathyContactWidgetFlags  flags);
+EmpathyContact *empathy_contact_widget_get_contact (GtkWidget                 *widget);
 
 G_END_DECLS
+
 #endif /*  __EMPATHY_CONTACT_WIDGET_H__ */