]> git.0d.be Git - empathy.git/blob - libempathy-gtk/empathy-contact-widget.h
Updatre python binding
[empathy.git] / libempathy-gtk / empathy-contact-widget.h
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3  * Copyright (C) 2007 Collabora Ltd.
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library 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  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18  *
19  * Authors: Xavier Claessens <xclaesse@gmail.com>
20  */
21
22 #ifndef __EMPATHY_CONTACT_WIDGET_H__
23 #define __EMPATHY_CONTACT_WIDGET_H__
24
25 #include <gtk/gtk.h>
26
27 #include <libempathy/empathy-contact.h>
28 #include "empathy-account-chooser.h"
29
30 G_BEGIN_DECLS
31
32 typedef enum {
33         EMPATHY_CONTACT_WIDGET_EDIT_NONE    = 0,
34         EMPATHY_CONTACT_WIDGET_EDIT_ALIAS   = 1 << 0,
35         EMPATHY_CONTACT_WIDGET_EDIT_AVATAR  = 1 << 1,
36         EMPATHY_CONTACT_WIDGET_EDIT_ACCOUNT = 1 << 2,
37         EMPATHY_CONTACT_WIDGET_EDIT_ID      = 1 << 3,
38         EMPATHY_CONTACT_WIDGET_EDIT_GROUPS  = 1 << 4,
39 } EmpathyContactWidgetFlags;
40
41 GtkWidget *     empathy_contact_widget_new                (EmpathyContact                  *contact,
42                                                            EmpathyContactWidgetFlags        flags);
43 EmpathyContact *empathy_contact_widget_get_contact        (GtkWidget                       *widget);
44 void            empathy_contact_widget_set_contact        (GtkWidget                       *widget,
45                                                            EmpathyContact                  *contact);
46 void            empathy_contact_widget_set_account_filter (GtkWidget                       *widget,
47                                                            EmpathyAccountChooserFilterFunc  filter,
48                                                            gpointer                         user_data);
49
50 G_END_DECLS
51
52 #endif /*  __EMPATHY_CONTACT_WIDGET_H__ */