1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
3 * Copyright (C) 2007 Collabora Ltd.
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.
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.
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
19 * Authors: Xavier Claessens <xclaesse@gmail.com>
22 #ifndef __EMPATHY_CONTACT_WIDGET_H__
23 #define __EMPATHY_CONTACT_WIDGET_H__
27 #include <libempathy/empathy-contact.h>
28 #include "empathy-account-chooser.h"
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;
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_account_filter (GtkWidget *widget,
45 EmpathyAccountChooserFilterFunc filter,
50 #endif /* __EMPATHY_CONTACT_WIDGET_H__ */