Update German translation
[empathy-mirror.git] / libempathy / empathy-server-sasl-handler.h
blob8bf7e3b7f7c15611b1d524ee1810e280f8d0ed03
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>
25 #include <telepathy-glib/telepathy-glib.h>
27 G_BEGIN_DECLS
29 typedef struct _EmpathyServerSASLHandler EmpathyServerSASLHandler;
30 typedef struct _EmpathyServerSASLHandlerClass EmpathyServerSASLHandlerClass;
32 struct _EmpathyServerSASLHandlerClass {
33 GObjectClass parent_class;
36 struct _EmpathyServerSASLHandler {
37 GObject parent;
38 gpointer priv;
41 GType empathy_server_sasl_handler_get_type (void);
43 #define EMPATHY_TYPE_SERVER_SASL_HANDLER \
44 (empathy_server_sasl_handler_get_type ())
45 #define EMPATHY_SERVER_SASL_HANDLER(obj) \
46 (G_TYPE_CHECK_INSTANCE_CAST((obj), EMPATHY_TYPE_SERVER_SASL_HANDLER, \
47 EmpathyServerSASLHandler))
48 #define EMPATHY_SERVER_SASL_HANDLER_CLASS(klass) \
49 (G_TYPE_CHECK_CLASS_CAST((klass), EMPATHY_TYPE_SERVER_SASL_HANDLER, \
50 EmpathyServerSASLHandlerClass))
51 #define EMPATHY_IS_SERVER_SASL_HANDLER(obj) \
52 (G_TYPE_CHECK_INSTANCE_TYPE((obj), EMPATHY_TYPE_SERVER_SASL_HANDLER))
53 #define EMPATHY_IS_SERVER_SASL_HANDLER_CLASS(klass) \
54 (G_TYPE_CHECK_CLASS_TYPE((klass), EMPATHY_TYPE_SERVER_SASL_HANDLER))
55 #define EMPATHY_SERVER_SASL_HANDLER_GET_CLASS(obj) \
56 (G_TYPE_INSTANCE_GET_CLASS ((obj), EMPATHY_TYPE_SERVER_SASL_HANDLER, \
57 EmpathyServerSASLHandlerClass))
59 void empathy_server_sasl_handler_new_async (
60 TpAccount *account, TpChannel *channel,
61 GAsyncReadyCallback callback, gpointer user_data);
63 EmpathyServerSASLHandler * empathy_server_sasl_handler_new_finish (
64 GAsyncResult *result, GError **error);
66 void empathy_server_sasl_handler_provide_password (
67 EmpathyServerSASLHandler *handler, const gchar *password,
68 gboolean remember);
70 void empathy_server_sasl_handler_cancel (EmpathyServerSASLHandler *handler);
72 TpAccount * empathy_server_sasl_handler_get_account (
73 EmpathyServerSASLHandler *handler);
75 TpChannel * empathy_server_sasl_handler_get_channel (
76 EmpathyServerSASLHandler *handler);
78 gboolean empathy_server_sasl_handler_has_password (
79 EmpathyServerSASLHandler *handler);
81 gboolean empathy_server_sasl_handler_can_save_response_somewhere (
82 EmpathyServerSASLHandler *self);
84 G_END_DECLS
86 #endif /* #ifndef __EMPATHY_SERVER_SASL_HANDLER_H__*/