]> git.0d.be Git - empathy.git/blob - libempathy-gtk/empathy-account-widget.h
ab4e62b45135ac479e9528f8edfcac7419b3123e
[empathy.git] / libempathy-gtk / empathy-account-widget.h
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3  * Copyright (C) 2006-2007 Imendio AB
4  * Copyright (C) 2007-2008 Collabora Ltd.
5  *
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.
10  *
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.
15  *
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
20  *
21  * Authors: Xavier Claessens <xclaesse@gmail.com>
22  *          Martyn Russell <martyn@imendio.com>
23  */
24
25 #ifndef __EMPATHY_ACCOUNT_WIDGET_H__
26 #define __EMPATHY_ACCOUNT_WIDGET_H__
27
28 #include <gtk/gtk.h>
29
30 #include <libempathy/empathy-account-settings.h>
31
32 G_BEGIN_DECLS
33
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))
45
46 typedef struct _EmpathyAccountWidgetUIDetails EmpathyAccountWidgetUIDetails;
47
48 typedef struct {
49   GObject parent;
50
51   EmpathyAccountWidgetUIDetails *ui_details;
52
53   /* private */
54   gpointer priv;
55 } EmpathyAccountWidget;
56
57 typedef struct {
58   GObjectClass parent_class;
59 } EmpathyAccountWidgetClass;
60
61 GType empathy_account_widget_get_type (void);
62
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);
69
70 G_END_DECLS
71
72 #endif /* __EMPATHY_ACCOUNT_WIDGET_H__ */