]> git.0d.be Git - empathy.git/blobdiff - libempathy/empathy-contact-list.h
add myself to AUTHORS
[empathy.git] / libempathy / empathy-contact-list.h
index 35575e1127b84eec2c8ab63205ff1c4a08ef2bc5..28238e44a16e6b89eb6654344b1f8f326d8e02fc 100644 (file)
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*
- * Copyright (C) 2007 Collabora Ltd.
+ * Copyright (C) 2007-2008 Collabora Ltd.
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -24,8 +24,8 @@
 
 #include <glib-object.h>
 
+#include "empathy-types.h"
 #include "empathy-contact.h"
-#include "empathy-tp-group.h"
 
 G_BEGIN_DECLS
 
@@ -34,7 +34,13 @@ G_BEGIN_DECLS
 #define EMPATHY_IS_CONTACT_LIST(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), EMPATHY_TYPE_CONTACT_LIST))
 #define EMPATHY_CONTACT_LIST_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), EMPATHY_TYPE_CONTACT_LIST, EmpathyContactListIface))
 
-typedef struct _EmpathyContactList      EmpathyContactList;
+typedef enum {
+       EMPATHY_CONTACT_LIST_CAN_ADD            = 1 << 0,
+       EMPATHY_CONTACT_LIST_CAN_REMOVE         = 1 << 1,
+       EMPATHY_CONTACT_LIST_CAN_ALIAS          = 1 << 2,
+       EMPATHY_CONTACT_LIST_CAN_GROUP          = 1 << 3,
+} EmpathyContactListFlags;
+
 typedef struct _EmpathyContactListIface EmpathyContactListIface;
 
 struct _EmpathyContactListIface {
@@ -63,6 +69,10 @@ struct _EmpathyContactListIface {
                                               const gchar        *new_group);
        void             (*remove_group)      (EmpathyContactList *list,
                                               const gchar        *group);
+       EmpathyContactMonitor *
+                        (*get_monitor)       (EmpathyContactList *list);
+       EmpathyContactListFlags
+                        (*get_flags)         (EmpathyContactList *list);
 };
 
 GType    empathy_contact_list_get_type          (void) G_GNUC_CONST;
@@ -88,6 +98,11 @@ void     empathy_contact_list_rename_group      (EmpathyContactList *list,
                                                 const gchar        *new_group);
 void    empathy_contact_list_remove_group      (EmpathyContactList *list,
                                                 const gchar        *group);
+EmpathyContactMonitor *
+         empathy_contact_list_get_monitor       (EmpathyContactList *list);
+
+EmpathyContactListFlags
+         empathy_contact_list_get_flags                (EmpathyContactList *list);
 
 G_END_DECLS