2 * Copyright (C) 2005-2007 Imendio AB
3 * Copyright (C) 2007-2008, 2010 Collabora Ltd.
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., 51 Franklin St, Fifth Floor,
18 * Boston, MA 02110-1301 USA
20 * Authors: Mikael Hallendal <micke@imendio.com>
21 * Martyn Russell <martyn@imendio.com>
22 * Xavier Claessens <xclaesse@gmail.com>
23 * Philip Withnall <philip.withnall@collabora.co.uk>
25 * Based off EmpathyContactListView.
28 #ifndef __EMPATHY_PERSONA_VIEW_H__
29 #define __EMPATHY_PERSONA_VIEW_H__
33 #include <folks/folks.h>
35 #include "empathy-persona-store.h"
41 EMPATHY_PERSONA_VIEW_FEATURE_NONE = 0,
42 EMPATHY_PERSONA_VIEW_FEATURE_ALL = (1 << 0) - 1,
43 } EmpathyPersonaViewFeatureFlags;
45 #define EMPATHY_TYPE_PERSONA_VIEW (empathy_persona_view_get_type ())
46 #define EMPATHY_PERSONA_VIEW(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), \
47 EMPATHY_TYPE_PERSONA_VIEW, EmpathyPersonaView))
48 #define EMPATHY_PERSONA_VIEW_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), \
49 EMPATHY_TYPE_PERSONA_VIEW, EmpathyPersonaViewClass))
50 #define EMPATHY_IS_PERSONA_VIEW(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), \
51 EMPATHY_TYPE_PERSONA_VIEW))
52 #define EMPATHY_IS_PERSONA_VIEW_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), \
53 EMPATHY_TYPE_PERSONA_VIEW))
54 #define EMPATHY_PERSONA_VIEW_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), \
55 EMPATHY_TYPE_PERSONA_VIEW, EmpathyPersonaViewClass))
65 GtkTreeViewClass parent_class;
66 } EmpathyPersonaViewClass;
68 GType empathy_persona_view_get_type (void) G_GNUC_CONST;
70 EmpathyPersonaView *empathy_persona_view_new (EmpathyPersonaStore *store,
71 EmpathyPersonaViewFeatureFlags features);
73 FolksPersona *empathy_persona_view_dup_selected (EmpathyPersonaView *self);
75 gboolean empathy_persona_view_get_show_offline (EmpathyPersonaView *self);
76 void empathy_persona_view_set_show_offline (EmpathyPersonaView *self,
77 gboolean show_offline);
81 #endif /* __EMPATHY_PERSONA_VIEW_H__ */