]> git.0d.be Git - empathy.git/blob - libempathy/empathy-server-sasl-handler.h
Updated Swedish translation
[empathy.git] / libempathy / empathy-server-sasl-handler.h
1 /*
2  * empathy-server-sasl-handler.h - Header for EmpathyServerSASLHandler
3  * Copyright (C) 2010 Collabora Ltd.
4  *
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.
9  *
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.
14  *
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
18  */
19
20 #ifndef __EMPATHY_SERVER_SASL_HANDLER_H__
21 #define __EMPATHY_SERVER_SASL_HANDLER_H__
22
23 #include <glib-object.h>
24 #include <gio/gio.h>
25 #include <telepathy-glib/telepathy-glib.h>
26
27 G_BEGIN_DECLS
28
29 typedef struct _EmpathyServerSASLHandler EmpathyServerSASLHandler;
30 typedef struct _EmpathyServerSASLHandlerClass EmpathyServerSASLHandlerClass;
31
32 struct _EmpathyServerSASLHandlerClass {
33     GObjectClass parent_class;
34 };
35
36 struct _EmpathyServerSASLHandler {
37     GObject parent;
38     gpointer priv;
39 };
40
41 GType empathy_server_sasl_handler_get_type (void);
42
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))
58
59 void empathy_server_sasl_handler_new_async (
60     TpAccount *account, TpChannel *channel,
61     GAsyncReadyCallback callback, gpointer user_data);
62
63 EmpathyServerSASLHandler * empathy_server_sasl_handler_new_finish (
64     GAsyncResult *result, GError **error);
65
66 void empathy_server_sasl_handler_provide_password (
67     EmpathyServerSASLHandler *handler, const gchar *password,
68     gboolean remember);
69
70 void empathy_server_sasl_handler_cancel (EmpathyServerSASLHandler *handler);
71
72 TpAccount * empathy_server_sasl_handler_get_account (
73     EmpathyServerSASLHandler *handler);
74
75 TpChannel * empathy_server_sasl_handler_get_channel (
76     EmpathyServerSASLHandler *handler);
77
78 gboolean empathy_server_sasl_handler_has_password (
79     EmpathyServerSASLHandler *handler);
80
81 gboolean empathy_server_sasl_handler_can_save_response_somewhere (
82     EmpathyServerSASLHandler *self);
83
84 G_END_DECLS
85
86 #endif /* #ifndef __EMPATHY_SERVER_SASL_HANDLER_H__*/