1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
3 * Copyright (C) 2006-2007 Imendio AB
4 * Copyright (C) 2007-2008 Collabora Ltd.
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation; either version 2 of the
9 * License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
16 * You should have received a copy of the GNU General Public
17 * License along with this program; if not, write to the
18 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19 * Boston, MA 02110-1301 USA
21 * Authors: Xavier Claessens <xclaesse@gmail.com>
22 * Martyn Russell <martyn@imendio.com>
25 #ifndef __EMPATHY_ACCOUNT_WIDGET_H__
26 #define __EMPATHY_ACCOUNT_WIDGET_H__
30 #include <libempathy/empathy-account-settings.h>
34 #define EMPATHY_TYPE_ACCOUNT_WIDGET empathy_account_widget_get_type()
35 #define EMPATHY_ACCOUNT_WIDGET(obj) \
36 (G_TYPE_CHECK_INSTANCE_CAST ((obj), EMPATHY_TYPE_ACCOUNT_WIDGET, EmpathyAccountWidget))
37 #define EMPATHY_ACCOUNT_WIDGET_CLASS(klass) \
38 (G_TYPE_CHECK_CLASS_CAST ((klass), EMPATHY_TYPE_ACCOUNT_WIDGET, EmpathyAccountWidgetClass))
39 #define EMPATHY_IS_ACCOUNT_WIDGET(obj) \
40 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EMPATHY_TYPE_ACCOUNT_WIDGET))
41 #define EMPATHY_IS_ACCOUNT_WIDGET_CLASS(klass) \
42 (G_TYPE_CHECK_CLASS_TYPE ((klass), EMPATHY_TYPE_ACCOUNT_WIDGET))
43 #define EMPATHY_ACCOUNT_WIDGET_GET_CLASS(obj) \
44 (G_TYPE_INSTANCE_GET_CLASS ((obj), EMPATHY_TYPE_ACCOUNT_WIDGET, EmpathyAccountWidgetClass))
46 typedef struct _EmpathyAccountWidgetUIDetails EmpathyAccountWidgetUIDetails;
51 EmpathyAccountWidgetUIDetails *ui_details;
55 } EmpathyAccountWidget;
58 GObjectClass parent_class;
59 } EmpathyAccountWidgetClass;
61 GType empathy_account_widget_get_type (void);
63 GtkWidget *empathy_account_widget_new_for_protocol (const char *protocol,
64 EmpathyAccountSettings *settings);
65 GtkWidget * empathy_account_widget_simple_new_for_protocol
66 (const char *protocol,
67 EmpathyAccountSettings *settings,
68 EmpathyAccountWidget **object);
72 #endif /* __EMPATHY_ACCOUNT_WIDGET_H__ */