]> git.0d.be Git - empathy.git/blob - libempathy-gtk/empathy-local-xmpp-assistant-widget.h
local-xmpp-assistant-widget: inherit from a GtkGrid
[empathy.git] / libempathy-gtk / empathy-local-xmpp-assistant-widget.h
1 /*
2  * empathy-local-xmpp-assistant-widget.h - Source for
3  * EmpathyLocalXmppAssistantWidget
4  *
5  * Copyright (C) 2012 - Collabora Ltd.
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2.1 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public License
18  * along with This library. If not, see <http://www.gnu.org/licenses/>.
19  */
20
21 #ifndef __EMPATHY_LOCAL_XMPP_ASSISTANT_WIDGET_H__
22 #define __EMPATHY_LOCAL_XMPP_ASSISTANT_WIDGET_H__
23
24 #include <gtk/gtk.h>
25
26 #include <telepathy-glib/telepathy-glib.h>
27
28 G_BEGIN_DECLS
29
30 #define EMPATHY_TYPE_LOCAL_XMPP_ASSISTANT_WIDGET (empathy_local_xmpp_assistant_widget_get_type ())
31 #define EMPATHY_LOCAL_XMPP_ASSISTANT_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EMPATHY_TYPE_LOCAL_XMPP_ASSISTANT_WIDGET, EmpathyLocalXmppAssistantWidget))
32 #define EMPATHY_LOCAL_XMPP_ASSISTANT_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EMPATHY_TYPE_LOCAL_XMPP_ASSISTANT_WIDGET, EmpathyLocalXmppAssistantWidgetClass))
33 #define EMPATHY_IS_LOCAL_XMPP_ASSISTANT_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EMPATHY_TYPE_LOCAL_XMPP_ASSISTANT_WIDGET))
34 #define EMPATHY_IS_LOCAL_XMPP_ASSISTANT_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EMPATHY_TYPE_LOCAL_XMPP_ASSISTANT_WIDGET))
35 #define EMPATHY_LOCAL_XMPP_ASSISTANT_WIDGET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EMPATHY_TYPE_LOCAL_XMPP_ASSISTANT_WIDGET, EmpathyLocalXmppAssistantWidgetClass))
36
37 typedef struct _EmpathyLocalXmppAssistantWidget EmpathyLocalXmppAssistantWidget;
38 typedef struct _EmpathyLocalXmppAssistantWidgetClass EmpathyLocalXmppAssistantWidgetClass;
39 typedef struct _EmpathyLocalXmppAssistantWidgetPrivate EmpathyLocalXmppAssistantWidgetPrivate;
40
41 struct _EmpathyLocalXmppAssistantWidget {
42   GtkGrid parent;
43
44   EmpathyLocalXmppAssistantWidgetPrivate *priv;
45 };
46
47 struct _EmpathyLocalXmppAssistantWidgetClass {
48   GtkGridClass parent_class;
49 };
50
51 GType empathy_local_xmpp_assistant_widget_get_type (void) G_GNUC_CONST;
52
53 GtkWidget * empathy_local_xmpp_assistant_widget_new (void);
54
55 void empathy_local_xmpp_assistant_widget_create_account (
56     EmpathyLocalXmppAssistantWidget *self);
57
58 gboolean empathy_local_xmpp_assistant_widget_should_create_account (
59     TpAccountManager *manager);
60
61 G_END_DECLS
62
63 #endif /* __EMPATHY_LOCAL_XMPP_ASSISTANT_WIDGET_H__ */