]> git.0d.be Git - empathy.git/blob - libempathy/empathy-uoa-auth-handler.h
Updated Swedish translation
[empathy.git] / libempathy / empathy-uoa-auth-handler.h
1 /*
2  * empathy-auth-uoa.h - Header for Uoa SASL authentication
3  * Copyright (C) 2012 Collabora Ltd.
4  * @author Xavier Claessens <xavier.claessens@collabora.co.uk>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19  */
20
21 #ifndef __EMPATHY_UOA_AUTH_HANDLER_H__
22 #define __EMPATHY_UOA_AUTH_HANDLER_H__
23
24 #include <telepathy-glib/telepathy-glib.h>
25
26 G_BEGIN_DECLS
27
28 typedef struct _EmpathyUoaAuthHandler EmpathyUoaAuthHandler;
29 typedef struct _EmpathyUoaAuthHandlerClass EmpathyUoaAuthHandlerClass;
30 typedef struct _EmpathyUoaAuthHandlerPriv EmpathyUoaAuthHandlerPriv;
31
32 struct _EmpathyUoaAuthHandlerClass {
33     GObjectClass parent_class;
34 };
35
36 struct _EmpathyUoaAuthHandler {
37     GObject parent;
38     EmpathyUoaAuthHandlerPriv *priv;
39 };
40
41 GType empathy_uoa_auth_handler_get_type (void);
42
43 /* TYPE MACROS */
44 #define EMPATHY_TYPE_UOA_AUTH_HANDLER \
45   (empathy_uoa_auth_handler_get_type ())
46 #define EMPATHY_UOA_AUTH_HANDLER(obj) \
47   (G_TYPE_CHECK_INSTANCE_CAST((obj), EMPATHY_TYPE_UOA_AUTH_HANDLER, \
48     EmpathyUoaAuthHandler))
49 #define EMPATHY_UOA_AUTH_HANDLER_CLASS(klass) \
50   (G_TYPE_CHECK_CLASS_CAST((klass), EMPATHY_TYPE_UOA_AUTH_HANDLER, \
51     EmpathyUoaAuthHandlerClass))
52 #define EMPATHY_IS_UOA_AUTH_HANDLER(obj) \
53   (G_TYPE_CHECK_INSTANCE_TYPE((obj), EMPATHY_TYPE_UOA_AUTH_HANDLER))
54 #define EMPATHY_IS_UOA_AUTH_HANDLER_CLASS(klass) \
55   (G_TYPE_CHECK_CLASS_TYPE((klass), EMPATHY_TYPE_UOA_AUTH_HANDLER))
56 #define EMPATHY_UOA_AUTH_HANDLER_GET_CLASS(obj) \
57   (G_TYPE_INSTANCE_GET_CLASS ((obj), EMPATHY_TYPE_UOA_AUTH_HANDLER, \
58     EmpathyUoaAuthHandlerClass))
59
60 EmpathyUoaAuthHandler *empathy_uoa_auth_handler_new (void);
61
62 void empathy_uoa_auth_handler_start (EmpathyUoaAuthHandler *self,
63     TpChannel *channel,
64     TpAccount *account);
65
66 gboolean empathy_uoa_auth_handler_supports (EmpathyUoaAuthHandler *self,
67     TpChannel *channel,
68     TpAccount *account);
69
70 G_END_DECLS
71
72 #endif /* #ifndef __EMPATHY_UOA_AUTH_HANDLER_H__*/