]> git.0d.be Git - empathy.git/blob - libempathy/empathy-keyring.h
Clean up #include directives in headers
[empathy.git] / libempathy / empathy-keyring.h
1 /*
2  * Copyright (C) 2010 Collabora Ltd.
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
17  */
18
19 #ifndef __EMPATHY_KEYRING_H__
20 #define __EMPATHY_KEYRING_H__
21
22 #include <gio/gio.h>
23 #include <telepathy-glib/telepathy-glib.h>
24
25 G_BEGIN_DECLS
26
27 gboolean empathy_keyring_is_available (void);
28
29 void empathy_keyring_get_account_password_async (TpAccount *account,
30     GAsyncReadyCallback callback, gpointer user_data);
31
32 const gchar * empathy_keyring_get_account_password_finish (TpAccount *account,
33     GAsyncResult *result, GError **error);
34
35 void empathy_keyring_get_room_password_async (TpAccount *account,
36     const gchar *id,
37     GAsyncReadyCallback callback, gpointer user_data);
38
39 const gchar * empathy_keyring_get_room_password_finish (TpAccount *account,
40     GAsyncResult *result, GError **error);
41
42 void empathy_keyring_set_account_password_async (TpAccount *account,
43     const gchar *password, gboolean remember, GAsyncReadyCallback callback,
44     gpointer user_data);
45
46 gboolean empathy_keyring_set_account_password_finish (TpAccount *account,
47     GAsyncResult *result, GError **error);
48
49 void empathy_keyring_set_room_password_async (TpAccount *account,
50     const gchar *id, const gchar *password, GAsyncReadyCallback callback,
51     gpointer user_data);
52
53 gboolean empathy_keyring_set_room_password_finish (TpAccount *account,
54     GAsyncResult *result, GError **error);
55
56 void empathy_keyring_delete_account_password_async (TpAccount *account,
57     GAsyncReadyCallback callback, gpointer user_data);
58
59 gboolean empathy_keyring_delete_account_password_finish (TpAccount *account,
60     GAsyncResult *result, GError **error);
61
62 G_END_DECLS
63
64 #endif /* __EMPATHY_KEYRING_H__ */
65