Whitespace fix
[empathy-mirror.git] / libempathy-gtk / empathy-persona-view.h
blob11fe039eb81fed122e80102336a7a29801254503
1 /*
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__
31 #include <gtk/gtk.h>
33 #include <folks/folks.h>
35 #include "empathy-persona-store.h"
37 G_BEGIN_DECLS
39 #define EMPATHY_TYPE_PERSONA_VIEW (empathy_persona_view_get_type ())
40 #define EMPATHY_PERSONA_VIEW(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), \
41 EMPATHY_TYPE_PERSONA_VIEW, EmpathyPersonaView))
42 #define EMPATHY_PERSONA_VIEW_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), \
43 EMPATHY_TYPE_PERSONA_VIEW, EmpathyPersonaViewClass))
44 #define EMPATHY_IS_PERSONA_VIEW(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), \
45 EMPATHY_TYPE_PERSONA_VIEW))
46 #define EMPATHY_IS_PERSONA_VIEW_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), \
47 EMPATHY_TYPE_PERSONA_VIEW))
48 #define EMPATHY_PERSONA_VIEW_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), \
49 EMPATHY_TYPE_PERSONA_VIEW, EmpathyPersonaViewClass))
51 typedef struct
53 GtkTreeView parent;
54 gpointer priv;
55 } EmpathyPersonaView;
57 typedef struct
59 GtkTreeViewClass parent_class;
60 } EmpathyPersonaViewClass;
62 GType empathy_persona_view_get_type (void) G_GNUC_CONST;
64 EmpathyPersonaView *empathy_persona_view_new (EmpathyPersonaStore *store);
66 FolksPersona *empathy_persona_view_dup_selected (EmpathyPersonaView *self);
68 gboolean empathy_persona_view_get_show_offline (EmpathyPersonaView *self);
69 void empathy_persona_view_set_show_offline (EmpathyPersonaView *self,
70 gboolean show_offline);
72 G_END_DECLS
74 #endif /* __EMPATHY_PERSONA_VIEW_H__ */