Blame telepathy-account-widgets/tp-account-widgets/tpaw-keyring.h

Packit 79f644
/*
Packit 79f644
 * Copyright (C) 2010 Collabora Ltd.
Packit 79f644
 *
Packit 79f644
 * This library is free software; you can redistribute it and/or
Packit 79f644
 * modify it under the terms of the GNU Lesser General Public
Packit 79f644
 * License as published by the Free Software Foundation; either
Packit 79f644
 * version 2.1 of the License, or (at your option) any later version.
Packit 79f644
 *
Packit 79f644
 * This library is distributed in the hope that it will be useful,
Packit 79f644
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 79f644
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 79f644
 * Lesser General Public License for more details.
Packit 79f644
 *
Packit 79f644
 * You should have received a copy of the GNU Lesser General Public
Packit 79f644
 * License along with this library; if not, write to the Free Software
Packit 79f644
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
Packit 79f644
 */
Packit 79f644
Packit 79f644
#ifndef __TPAW_KEYRING_H__
Packit 79f644
#define __TPAW_KEYRING_H__
Packit 79f644
Packit 79f644
#include <gio/gio.h>
Packit 79f644
#include <telepathy-glib/telepathy-glib.h>
Packit 79f644
Packit 79f644
G_BEGIN_DECLS
Packit 79f644
Packit 79f644
void tpaw_keyring_get_account_password_async (TpAccount *account,
Packit 79f644
    GAsyncReadyCallback callback, gpointer user_data);
Packit 79f644
Packit 79f644
const gchar * tpaw_keyring_get_account_password_finish (TpAccount *account,
Packit 79f644
    GAsyncResult *result, GError **error);
Packit 79f644
Packit 79f644
void tpaw_keyring_get_room_password_async (TpAccount *account,
Packit 79f644
    const gchar *id,
Packit 79f644
    GAsyncReadyCallback callback, gpointer user_data);
Packit 79f644
Packit 79f644
const gchar * tpaw_keyring_get_room_password_finish (TpAccount *account,
Packit 79f644
    GAsyncResult *result, GError **error);
Packit 79f644
Packit 79f644
void tpaw_keyring_set_account_password_async (TpAccount *account,
Packit 79f644
    const gchar *password, gboolean remember, GAsyncReadyCallback callback,
Packit 79f644
    gpointer user_data);
Packit 79f644
Packit 79f644
gboolean tpaw_keyring_set_account_password_finish (TpAccount *account,
Packit 79f644
    GAsyncResult *result, GError **error);
Packit 79f644
Packit 79f644
void tpaw_keyring_set_room_password_async (TpAccount *account,
Packit 79f644
    const gchar *id, const gchar *password, GAsyncReadyCallback callback,
Packit 79f644
    gpointer user_data);
Packit 79f644
Packit 79f644
gboolean tpaw_keyring_set_room_password_finish (TpAccount *account,
Packit 79f644
    GAsyncResult *result, GError **error);
Packit 79f644
Packit 79f644
void tpaw_keyring_delete_account_password_async (TpAccount *account,
Packit 79f644
    GAsyncReadyCallback callback, gpointer user_data);
Packit 79f644
Packit 79f644
gboolean tpaw_keyring_delete_account_password_finish (TpAccount *account,
Packit 79f644
    GAsyncResult *result, GError **error);
Packit 79f644
Packit 79f644
G_END_DECLS
Packit 79f644
Packit 79f644
#endif /* __TPAW_KEYRING_H__ */