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__
26 #include <telepathy-glib/telepathy-glib.h>
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))
37 typedef struct _EmpathyLocalXmppAssistantWidget EmpathyLocalXmppAssistantWidget;
38 typedef struct _EmpathyLocalXmppAssistantWidgetClass EmpathyLocalXmppAssistantWidgetClass;
39 typedef struct _EmpathyLocalXmppAssistantWidgetPrivate EmpathyLocalXmppAssistantWidgetPrivate;
41 struct _EmpathyLocalXmppAssistantWidget {
44 EmpathyLocalXmppAssistantWidgetPrivate *priv;
47 struct _EmpathyLocalXmppAssistantWidgetClass {
48 GtkGridClass parent_class;
51 GType empathy_local_xmpp_assistant_widget_get_type (void) G_GNUC_CONST;
53 GtkWidget * empathy_local_xmpp_assistant_widget_new (void);
55 void empathy_local_xmpp_assistant_widget_create_account (
56 EmpathyLocalXmppAssistantWidget *self);
58 gboolean empathy_local_xmpp_assistant_widget_should_create_account (
59 TpAccountManager *manager);
61 gboolean empathy_local_xmpp_assistant_widget_is_valid (
62 EmpathyLocalXmppAssistantWidget *self);
66 #endif /* __EMPATHY_LOCAL_XMPP_ASSISTANT_WIDGET_H__ */