2 * empathy-local-xmpp-assistant-widget.h - Source for
3 * EmpathyLocalXmppAssistantWidget
5 * Copyright (C) 2012 - Collabora Ltd.
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.
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.
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/>.
21 #ifndef __EMPATHY_LOCAL_XMPP_ASSISTANT_WIDGET_H__
22 #define __EMPATHY_LOCAL_XMPP_ASSISTANT_WIDGET_H__
25 #include <telepathy-glib/telepathy-glib.h>
29 #define EMPATHY_TYPE_LOCAL_XMPP_ASSISTANT_WIDGET (empathy_local_xmpp_assistant_widget_get_type ())
30 #define EMPATHY_LOCAL_XMPP_ASSISTANT_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EMPATHY_TYPE_LOCAL_XMPP_ASSISTANT_WIDGET, EmpathyLocalXmppAssistantWidget))
31 #define EMPATHY_LOCAL_XMPP_ASSISTANT_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EMPATHY_TYPE_LOCAL_XMPP_ASSISTANT_WIDGET, EmpathyLocalXmppAssistantWidgetClass))
32 #define EMPATHY_IS_LOCAL_XMPP_ASSISTANT_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EMPATHY_TYPE_LOCAL_XMPP_ASSISTANT_WIDGET))
33 #define EMPATHY_IS_LOCAL_XMPP_ASSISTANT_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EMPATHY_TYPE_LOCAL_XMPP_ASSISTANT_WIDGET))
34 #define EMPATHY_LOCAL_XMPP_ASSISTANT_WIDGET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EMPATHY_TYPE_LOCAL_XMPP_ASSISTANT_WIDGET, EmpathyLocalXmppAssistantWidgetClass))
36 typedef struct _EmpathyLocalXmppAssistantWidget EmpathyLocalXmppAssistantWidget;
37 typedef struct _EmpathyLocalXmppAssistantWidgetClass EmpathyLocalXmppAssistantWidgetClass;
38 typedef struct _EmpathyLocalXmppAssistantWidgetPrivate EmpathyLocalXmppAssistantWidgetPrivate;
40 struct _EmpathyLocalXmppAssistantWidget {
43 EmpathyLocalXmppAssistantWidgetPrivate *priv;
46 struct _EmpathyLocalXmppAssistantWidgetClass {
47 GtkGridClass parent_class;
50 GType empathy_local_xmpp_assistant_widget_get_type (void) G_GNUC_CONST;
52 GtkWidget * empathy_local_xmpp_assistant_widget_new (void);
54 void empathy_local_xmpp_assistant_widget_create_account (
55 EmpathyLocalXmppAssistantWidget *self);
57 gboolean empathy_local_xmpp_assistant_widget_should_create_account (
58 TpAccountManager *manager);
60 gboolean empathy_local_xmpp_assistant_widget_is_valid (
61 EmpathyLocalXmppAssistantWidget *self);
65 #endif /* __EMPATHY_LOCAL_XMPP_ASSISTANT_WIDGET_H__ */