1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
3 * Copyright (C) 2004-2007 Imendio AB
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation; either version 2 of the
8 * License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
15 * You should have received a copy of the GNU General Public
16 * License along with this program; if not, write to the
17 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
20 * Authors: Mikael Hallendal <micke@imendio.com>
21 * Martyn Russell <martyn@imendio.com>
24 #ifndef __GOSSIP_CONTACT_LIST_H__
25 #define __GOSSIP_CONTACT_LIST_H__
27 #include <gtk/gtktreeview.h>
29 #include <libempathy/gossip-contact.h>
33 #define GOSSIP_TYPE_CONTACT_LIST (gossip_contact_list_get_type ())
34 #define GOSSIP_CONTACT_LIST(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GOSSIP_TYPE_CONTACT_LIST, GossipContactList))
35 #define GOSSIP_CONTACT_LIST_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GOSSIP_TYPE_CONTACT_LIST, GossipContactListClass))
36 #define GOSSIP_IS_CONTACT_LIST(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GOSSIP_TYPE_CONTACT_LIST))
37 #define GOSSIP_IS_CONTACT_LIST_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GOSSIP_TYPE_CONTACT_LIST))
38 #define GOSSIP_CONTACT_LIST_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GOSSIP_TYPE_CONTACT_LIST, GossipContactListClass))
40 typedef struct _GossipContactList GossipContactList;
41 typedef struct _GossipContactListClass GossipContactListClass;
42 typedef struct _GossipContactListPriv GossipContactListPriv;
44 struct _GossipContactList {
48 struct _GossipContactListClass {
49 GtkTreeViewClass parent_class;
52 GType gossip_contact_list_get_type (void) G_GNUC_CONST;
53 GossipContactList *gossip_contact_list_new (void);
54 GossipContact * gossip_contact_list_get_selected (GossipContactList *list);
55 gchar * gossip_contact_list_get_selected_group (GossipContactList *list);
56 gboolean gossip_contact_list_get_show_offline (GossipContactList *list);
57 void gossip_contact_list_set_show_offline (GossipContactList *list,
58 gboolean show_offline);
59 gboolean gossip_contact_list_get_show_avatars (GossipContactList *list);
60 void gossip_contact_list_set_show_avatars (GossipContactList *list,
61 gboolean show_avatars);
62 gboolean gossip_contact_list_get_is_compact (GossipContactList *list);
63 void gossip_contact_list_set_is_compact (GossipContactList *list,
65 GtkWidget * gossip_contact_list_get_contact_menu (GossipContactList *list,
66 GossipContact *contact);
67 GtkWidget * gossip_contact_list_get_group_menu (GossipContactList *list);
71 #endif /* __GOSSIP_CONTACT_LIST_H__ */