build: remove -enumtypes rules
[empathy-mirror.git] / libempathy / empathy-server-sasl-handler.h
blob94be69b10f2da9fd0cc5e9696d00e8f8ea0565b6
1 /*
2 * empathy-server-sasl-handler.h - Header for EmpathyServerSASLHandler
3 * Copyright (C) 2010 Collabora Ltd.
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 #ifndef __EMPATHY_SERVER_SASL_HANDLER_H__
21 #define __EMPATHY_SERVER_SASL_HANDLER_H__
23 #include <glib-object.h>
24 #include <gio/gio.h>
26 #include <telepathy-glib/account.h>
27 #include <telepathy-glib/channel.h>
29 G_BEGIN_DECLS
31 typedef struct _EmpathyServerSASLHandler EmpathyServerSASLHandler;
32 typedef struct _EmpathyServerSASLHandlerClass EmpathyServerSASLHandlerClass;
34 struct _EmpathyServerSASLHandlerClass {
35 GObjectClass parent_class;
38 struct _EmpathyServerSASLHandler {
39 GObject parent;
40 gpointer priv;
43 GType empathy_server_sasl_handler_get_type (void);
45 #define EMPATHY_TYPE_SERVER_SASL_HANDLER \
46 (empathy_server_sasl_handler_get_type ())
47 #define EMPATHY_SERVER_SASL_HANDLER(obj) \
48 (G_TYPE_CHECK_INSTANCE_CAST((obj), EMPATHY_TYPE_SERVER_SASL_HANDLER, \
49 EmpathyServerSASLHandler))
50 #define EMPATHY_SERVER_SASL_HANDLER_CLASS(klass) \
51 (G_TYPE_CHECK_CLASS_CAST((klass), EMPATHY_TYPE_SERVER_SASL_HANDLER, \
52 EmpathyServerSASLHandlerClass))
53 #define EMPATHY_IS_SERVER_SASL_HANDLER(obj) \
54 (G_TYPE_CHECK_INSTANCE_TYPE((obj), EMPATHY_TYPE_SERVER_SASL_HANDLER))
55 #define EMPATHY_IS_SERVER_SASL_HANDLER_CLASS(klass) \
56 (G_TYPE_CHECK_CLASS_TYPE((klass), EMPATHY_TYPE_SERVER_SASL_HANDLER))
57 #define EMPATHY_SERVER_SASL_HANDLER_GET_CLASS(obj) \
58 (G_TYPE_INSTANCE_GET_CLASS ((obj), EMPATHY_TYPE_SERVER_SASL_HANDLER, \
59 EmpathyServerSASLHandlerClass))
61 void empathy_server_sasl_handler_new_async (
62 TpAccount *account, TpChannel *channel,
63 GAsyncReadyCallback callback, gpointer user_data);
65 EmpathyServerSASLHandler * empathy_server_sasl_handler_new_finish (
66 GAsyncResult *result, GError **error);
68 void empathy_server_sasl_handler_provide_password (
69 EmpathyServerSASLHandler *handler, const gchar *password,
70 gboolean remember);
72 void empathy_server_sasl_handler_cancel (EmpathyServerSASLHandler *handler);
74 TpAccount * empathy_server_sasl_handler_get_account (
75 EmpathyServerSASLHandler *handler);
77 TpChannel * empathy_server_sasl_handler_get_channel (
78 EmpathyServerSASLHandler *handler);
80 gboolean empathy_server_sasl_handler_has_password (
81 EmpathyServerSASLHandler *handler);
83 gboolean empathy_server_sasl_handler_can_save_response_somewhere (
84 EmpathyServerSASLHandler *self);
86 G_END_DECLS
88 #endif /* #ifndef __EMPATHY_SERVER_SASL_HANDLER_H__*/