]> git.0d.be Git - empathy.git/blob - libempathy-gtk/empathy-contact-widget.h
de.po: Updated German translation
[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-2008 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 {
34   EMPATHY_CONTACT_WIDGET_EDIT_NONE    = 0,
35   EMPATHY_CONTACT_WIDGET_EDIT_ALIAS   = 1 << 0,
36   EMPATHY_CONTACT_WIDGET_EDIT_AVATAR  = 1 << 1,
37   EMPATHY_CONTACT_WIDGET_EDIT_ACCOUNT = 1 << 2,
38   EMPATHY_CONTACT_WIDGET_EDIT_ID      = 1 << 3,
39   EMPATHY_CONTACT_WIDGET_EDIT_GROUPS  = 1 << 4,
40   EMPATHY_CONTACT_WIDGET_FOR_TOOLTIP  = 1 << 5,
41 } EmpathyContactWidgetFlags;
42
43 GtkWidget * empathy_contact_widget_new (EmpathyContact *contact,
44     EmpathyContactWidgetFlags flags);
45 EmpathyContact *empathy_contact_widget_get_contact (GtkWidget *widget);
46 void empathy_contact_widget_set_contact (GtkWidget *widget,
47     EmpathyContact *contact);
48 void empathy_contact_widget_set_account_filter (GtkWidget *widget,
49     EmpathyAccountChooserFilterFunc filter, gpointer user_data);
50
51 G_END_DECLS
52
53 #endif /*  __EMPATHY_CONTACT_WIDGET_H__ */