|
Packit |
79f644 |
/*
|
|
Packit |
79f644 |
* tpaw-account-settings.h - Header for TpawAccountSettings
|
|
Packit |
79f644 |
* Copyright (C) 2009 Collabora Ltd.
|
|
Packit |
79f644 |
* @author Sjoerd Simons <sjoerd.simons@collabora.co.uk>
|
|
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_ACCOUNT_SETTINGS_H__
|
|
Packit |
79f644 |
#define __TPAW_ACCOUNT_SETTINGS_H__
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
#include <glib-object.h>
|
|
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 |
typedef struct _TpawAccountSettings TpawAccountSettings;
|
|
Packit |
79f644 |
typedef struct _TpawAccountSettingsPriv TpawAccountSettingsPriv;
|
|
Packit |
79f644 |
typedef struct _TpawAccountSettingsClass TpawAccountSettingsClass;
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
struct _TpawAccountSettingsClass {
|
|
Packit |
79f644 |
GObjectClass parent_class;
|
|
Packit |
79f644 |
};
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
struct _TpawAccountSettings {
|
|
Packit |
79f644 |
GObject parent;
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
/*<private>*/
|
|
Packit |
79f644 |
TpawAccountSettingsPriv *priv;
|
|
Packit |
79f644 |
};
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
GType tpaw_account_settings_get_type (void);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
/* TYPE MACROS */
|
|
Packit |
79f644 |
#define TPAW_TYPE_ACCOUNT_SETTINGS \
|
|
Packit |
79f644 |
(tpaw_account_settings_get_type ())
|
|
Packit |
79f644 |
#define TPAW_ACCOUNT_SETTINGS(obj) \
|
|
Packit |
79f644 |
(G_TYPE_CHECK_INSTANCE_CAST((obj), \
|
|
Packit |
79f644 |
TPAW_TYPE_ACCOUNT_SETTINGS, TpawAccountSettings))
|
|
Packit |
79f644 |
#define TPAW_ACCOUNT_SETTINGS_CLASS(klass) \
|
|
Packit |
79f644 |
(G_TYPE_CHECK_CLASS_CAST((klass), TPAW_TYPE_ACCOUNT_SETTINGS, \
|
|
Packit |
79f644 |
TpawAccountSettingsClass))
|
|
Packit |
79f644 |
#define TPAW_IS_ACCOUNT_SETTINGS(obj) \
|
|
Packit |
79f644 |
(G_TYPE_CHECK_INSTANCE_TYPE((obj), TPAW_TYPE_ACCOUNT_SETTINGS))
|
|
Packit |
79f644 |
#define TPAW_IS_ACCOUNT_SETTINGS_CLASS(klass) \
|
|
Packit |
79f644 |
(G_TYPE_CHECK_CLASS_TYPE((klass), TPAW_TYPE_ACCOUNT_SETTINGS))
|
|
Packit |
79f644 |
#define TPAW_ACCOUNT_SETTINGS_GET_CLASS(obj) \
|
|
Packit |
79f644 |
(G_TYPE_INSTANCE_GET_CLASS ((obj), TPAW_TYPE_ACCOUNT_SETTINGS, \
|
|
Packit |
79f644 |
TpawAccountSettingsClass))
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
TpawAccountSettings * tpaw_account_settings_new (
|
|
Packit |
79f644 |
const gchar *connection_manager,
|
|
Packit |
79f644 |
const gchar *protocol,
|
|
Packit |
79f644 |
const gchar *service,
|
|
Packit |
79f644 |
const char *display_name);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
TpawAccountSettings * tpaw_account_settings_new_for_account (
|
|
Packit |
79f644 |
TpAccount *account);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
gboolean tpaw_account_settings_is_ready (TpawAccountSettings *settings);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
const gchar *tpaw_account_settings_get_cm (TpawAccountSettings *settings);
|
|
Packit |
79f644 |
const gchar *tpaw_account_settings_get_protocol (
|
|
Packit |
79f644 |
TpawAccountSettings *settings);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
const gchar *tpaw_account_settings_get_service (
|
|
Packit |
79f644 |
TpawAccountSettings *settings);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
void tpaw_account_settings_set_service (TpawAccountSettings *settings,
|
|
Packit |
79f644 |
const gchar *service);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
TpAccount *tpaw_account_settings_get_account (
|
|
Packit |
79f644 |
TpawAccountSettings *settings);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
gboolean tpaw_account_settings_has_account (
|
|
Packit |
79f644 |
TpawAccountSettings *settings, TpAccount *account);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
GList * tpaw_account_settings_dup_tp_params (
|
|
Packit |
79f644 |
TpawAccountSettings *settings);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
gboolean tpaw_account_settings_have_tp_param (
|
|
Packit |
79f644 |
TpawAccountSettings *settings,
|
|
Packit |
79f644 |
const gchar *param);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
void tpaw_account_settings_unset (TpawAccountSettings *settings,
|
|
Packit |
79f644 |
const gchar *param);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
void tpaw_account_settings_discard_changes (
|
|
Packit |
79f644 |
TpawAccountSettings *settings);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
const gchar *
|
|
Packit |
79f644 |
tpaw_account_settings_get_dbus_signature (TpawAccountSettings *setting,
|
|
Packit |
79f644 |
const gchar *param);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
GVariant *
|
|
Packit |
79f644 |
tpaw_account_settings_dup_default (TpawAccountSettings *settings,
|
|
Packit |
79f644 |
const gchar *param);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
gchar * tpaw_account_settings_dup_string (
|
|
Packit |
79f644 |
TpawAccountSettings *settings,
|
|
Packit |
79f644 |
const gchar *param);
|
|
Packit |
79f644 |
GStrv tpaw_account_settings_dup_strv (
|
|
Packit |
79f644 |
TpawAccountSettings *settings,
|
|
Packit |
79f644 |
const gchar *param);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
gint32 tpaw_account_settings_get_int32 (TpawAccountSettings *settings,
|
|
Packit |
79f644 |
const gchar *param);
|
|
Packit |
79f644 |
gint64 tpaw_account_settings_get_int64 (TpawAccountSettings *settings,
|
|
Packit |
79f644 |
const gchar *param);
|
|
Packit |
79f644 |
guint32 tpaw_account_settings_get_uint32 (TpawAccountSettings *settings,
|
|
Packit |
79f644 |
const gchar *param);
|
|
Packit |
79f644 |
guint64 tpaw_account_settings_get_uint64 (TpawAccountSettings *settings,
|
|
Packit |
79f644 |
const gchar *param);
|
|
Packit |
79f644 |
gboolean tpaw_account_settings_get_boolean (TpawAccountSettings *settings,
|
|
Packit |
79f644 |
const gchar *param);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
void tpaw_account_settings_set (TpawAccountSettings *settings,
|
|
Packit |
79f644 |
const gchar *param,
|
|
Packit |
79f644 |
GVariant *v);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
gchar *tpaw_account_settings_get_icon_name (
|
|
Packit |
79f644 |
TpawAccountSettings *settings);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
void tpaw_account_settings_set_icon_name_async (
|
|
Packit |
79f644 |
TpawAccountSettings *settings,
|
|
Packit |
79f644 |
const gchar *name,
|
|
Packit |
79f644 |
GAsyncReadyCallback callback,
|
|
Packit |
79f644 |
gpointer user_data);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
gboolean tpaw_account_settings_set_icon_name_finish (
|
|
Packit |
79f644 |
TpawAccountSettings *settings,
|
|
Packit |
79f644 |
GAsyncResult *result,
|
|
Packit |
79f644 |
GError **error);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
const gchar *tpaw_account_settings_get_display_name (
|
|
Packit |
79f644 |
TpawAccountSettings *settings);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
void tpaw_account_settings_set_display_name_async (
|
|
Packit |
79f644 |
TpawAccountSettings *settings,
|
|
Packit |
79f644 |
const gchar *name,
|
|
Packit |
79f644 |
GAsyncReadyCallback callback,
|
|
Packit |
79f644 |
gpointer user_data);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
gboolean tpaw_account_settings_set_display_name_finish (
|
|
Packit |
79f644 |
TpawAccountSettings *settings,
|
|
Packit |
79f644 |
GAsyncResult *result,
|
|
Packit |
79f644 |
GError **error);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
void tpaw_account_settings_apply_async (TpawAccountSettings *settings,
|
|
Packit |
79f644 |
GAsyncReadyCallback callback,
|
|
Packit |
79f644 |
gpointer user_data);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
gboolean tpaw_account_settings_apply_finish (
|
|
Packit |
79f644 |
TpawAccountSettings *settings,
|
|
Packit |
79f644 |
GAsyncResult *result,
|
|
Packit |
79f644 |
gboolean *reconnect_required,
|
|
Packit |
79f644 |
GError **error);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
void tpaw_account_settings_set_regex (TpawAccountSettings *settings,
|
|
Packit |
79f644 |
const gchar *param,
|
|
Packit |
79f644 |
const gchar *regex);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
gboolean tpaw_account_settings_parameter_is_valid (
|
|
Packit |
79f644 |
TpawAccountSettings *settings,
|
|
Packit |
79f644 |
const gchar *param);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
gboolean tpaw_account_settings_is_valid (TpawAccountSettings *settings);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
TpProtocol * tpaw_account_settings_get_tp_protocol (
|
|
Packit |
79f644 |
TpawAccountSettings *settings);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
gboolean tpaw_account_settings_supports_sasl (TpawAccountSettings *self);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
gboolean tpaw_account_settings_param_is_supported (
|
|
Packit |
79f644 |
TpawAccountSettings *self,
|
|
Packit |
79f644 |
const gchar *param);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
void tpaw_account_settings_set_uri_scheme_tel (TpawAccountSettings *self,
|
|
Packit |
79f644 |
gboolean associate);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
gboolean tpaw_account_settings_has_uri_scheme_tel (
|
|
Packit |
79f644 |
TpawAccountSettings *self);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
void tpaw_account_settings_set_storage_provider (
|
|
Packit |
79f644 |
TpawAccountSettings *self,
|
|
Packit |
79f644 |
const gchar *storage);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
void tpaw_account_settings_set_remember_password (
|
|
Packit |
79f644 |
TpawAccountSettings *self,
|
|
Packit |
79f644 |
gboolean remember);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
G_END_DECLS
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
#endif /* #ifndef __TPAW_ACCOUNT_SETTINGS_H__*/
|