2 * Copyright (C) 2010 Collabora Ltd.
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.
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.
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
19 #ifndef __TPAW_KEYRING_H__
20 #define __TPAW_KEYRING_H__
23 #include <telepathy-glib/telepathy-glib.h>
27 void tpaw_keyring_get_account_password_async (TpAccount *account,
28 GAsyncReadyCallback callback, gpointer user_data);
30 const gchar * tpaw_keyring_get_account_password_finish (TpAccount *account,
31 GAsyncResult *result, GError **error);
33 void tpaw_keyring_get_room_password_async (TpAccount *account,
35 GAsyncReadyCallback callback, gpointer user_data);
37 const gchar * tpaw_keyring_get_room_password_finish (TpAccount *account,
38 GAsyncResult *result, GError **error);
40 void tpaw_keyring_set_account_password_async (TpAccount *account,
41 const gchar *password, gboolean remember, GAsyncReadyCallback callback,
44 gboolean tpaw_keyring_set_account_password_finish (TpAccount *account,
45 GAsyncResult *result, GError **error);
47 void tpaw_keyring_set_room_password_async (TpAccount *account,
48 const gchar *id, const gchar *password, GAsyncReadyCallback callback,
51 gboolean tpaw_keyring_set_room_password_finish (TpAccount *account,
52 GAsyncResult *result, GError **error);
54 void tpaw_keyring_delete_account_password_async (TpAccount *account,
55 GAsyncReadyCallback callback, gpointer user_data);
57 gboolean tpaw_keyring_delete_account_password_finish (TpAccount *account,
58 GAsyncResult *result, GError **error);
62 #endif /* __TPAW_KEYRING_H__ */