2 * empathy-account-settings.h - Header for EmpathyAccountSettings
3 * Copyright (C) 2009 Collabora Ltd.
4 * @author Sjoerd Simons <sjoerd.simons@collabora.co.uk>
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.
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.
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
21 #ifndef __EMPATHY_ACCOUNT_SETTINGS_H__
22 #define __EMPATHY_ACCOUNT_SETTINGS_H__
24 #include <glib-object.h>
26 #include <telepathy-glib/telepathy-glib.h>
30 typedef struct _EmpathyAccountSettings EmpathyAccountSettings;
31 typedef struct _EmpathyAccountSettingsClass EmpathyAccountSettingsClass;
33 struct _EmpathyAccountSettingsClass {
34 GObjectClass parent_class;
37 struct _EmpathyAccountSettings {
42 GType empathy_account_settings_get_type (void);
45 #define EMPATHY_TYPE_ACCOUNT_SETTINGS \
46 (empathy_account_settings_get_type ())
47 #define EMPATHY_ACCOUNT_SETTINGS(obj) \
48 (G_TYPE_CHECK_INSTANCE_CAST((obj), \
49 EMPATHY_TYPE_ACCOUNT_SETTINGS, EmpathyAccountSettings))
50 #define EMPATHY_ACCOUNT_SETTINGS_CLASS(klass) \
51 (G_TYPE_CHECK_CLASS_CAST((klass), EMPATHY_TYPE_ACCOUNT_SETTINGS, \
52 EmpathyAccountSettingsClass))
53 #define EMPATHY_IS_ACCOUNT_SETTINGS(obj) \
54 (G_TYPE_CHECK_INSTANCE_TYPE((obj), EMPATHY_TYPE_ACCOUNT_SETTINGS))
55 #define EMPATHY_IS_ACCOUNT_SETTINGS_CLASS(klass) \
56 (G_TYPE_CHECK_CLASS_TYPE((klass), EMPATHY_TYPE_ACCOUNT_SETTINGS))
57 #define EMPATHY_ACCOUNT_SETTINGS_GET_CLASS(obj) \
58 (G_TYPE_INSTANCE_GET_CLASS ((obj), EMPATHY_TYPE_ACCOUNT_SETTINGS, \
59 EmpathyAccountSettingsClass))
61 EmpathyAccountSettings * empathy_account_settings_new (
62 const gchar *connection_manager,
63 const gchar *protocol,
65 const char *display_name);
67 EmpathyAccountSettings * empathy_account_settings_new_for_account (
70 gboolean empathy_account_settings_is_ready (EmpathyAccountSettings *settings);
72 const gchar *empathy_account_settings_get_cm (EmpathyAccountSettings *settings);
73 const gchar *empathy_account_settings_get_protocol (
74 EmpathyAccountSettings *settings);
76 const gchar *empathy_account_settings_get_service (
77 EmpathyAccountSettings *settings);
79 void empathy_account_settings_set_service (EmpathyAccountSettings *settings,
80 const gchar *service);
82 TpAccount *empathy_account_settings_get_account (
83 EmpathyAccountSettings *settings);
85 gboolean empathy_account_settings_has_account (
86 EmpathyAccountSettings *settings, TpAccount *account);
88 GList * empathy_account_settings_dup_tp_params (
89 EmpathyAccountSettings *settings);
91 gboolean empathy_account_settings_have_tp_param (
92 EmpathyAccountSettings *settings,
95 void empathy_account_settings_unset (EmpathyAccountSettings *settings,
98 void empathy_account_settings_discard_changes (
99 EmpathyAccountSettings *settings);
102 empathy_account_settings_get_dbus_signature (EmpathyAccountSettings *setting,
106 empathy_account_settings_dup_default (EmpathyAccountSettings *settings,
109 gchar * empathy_account_settings_dup_string (
110 EmpathyAccountSettings *settings,
112 GStrv empathy_account_settings_dup_strv (
113 EmpathyAccountSettings *settings,
116 gint32 empathy_account_settings_get_int32 (EmpathyAccountSettings *settings,
118 gint64 empathy_account_settings_get_int64 (EmpathyAccountSettings *settings,
120 guint32 empathy_account_settings_get_uint32 (EmpathyAccountSettings *settings,
122 guint64 empathy_account_settings_get_uint64 (EmpathyAccountSettings *settings,
124 gboolean empathy_account_settings_get_boolean (EmpathyAccountSettings *settings,
127 void empathy_account_settings_set (EmpathyAccountSettings *settings,
131 gchar *empathy_account_settings_get_icon_name (
132 EmpathyAccountSettings *settings);
134 void empathy_account_settings_set_icon_name_async (
135 EmpathyAccountSettings *settings,
137 GAsyncReadyCallback callback,
140 gboolean empathy_account_settings_set_icon_name_finish (
141 EmpathyAccountSettings *settings,
142 GAsyncResult *result,
145 const gchar *empathy_account_settings_get_display_name (
146 EmpathyAccountSettings *settings);
148 void empathy_account_settings_set_display_name_async (
149 EmpathyAccountSettings *settings,
151 GAsyncReadyCallback callback,
154 gboolean empathy_account_settings_set_display_name_finish (
155 EmpathyAccountSettings *settings,
156 GAsyncResult *result,
159 void empathy_account_settings_apply_async (EmpathyAccountSettings *settings,
160 GAsyncReadyCallback callback,
163 gboolean empathy_account_settings_apply_finish (
164 EmpathyAccountSettings *settings,
165 GAsyncResult *result,
166 gboolean *reconnect_required,
169 void empathy_account_settings_set_regex (EmpathyAccountSettings *settings,
173 gboolean empathy_account_settings_parameter_is_valid (
174 EmpathyAccountSettings *settings,
177 gboolean empathy_account_settings_is_valid (EmpathyAccountSettings *settings);
179 TpProtocol * empathy_account_settings_get_tp_protocol (
180 EmpathyAccountSettings *settings);
182 gboolean empathy_account_settings_supports_sasl (EmpathyAccountSettings *self);
184 gboolean empathy_account_settings_param_is_supported (
185 EmpathyAccountSettings *self,
188 void empathy_account_settings_set_uri_scheme_tel (EmpathyAccountSettings *self,
191 gboolean empathy_account_settings_has_uri_scheme_tel (
192 EmpathyAccountSettings *self);
194 void empathy_account_settings_set_storage_provider (
195 EmpathyAccountSettings *self,
196 const gchar *storage);
198 void empathy_account_settings_set_remember_password (
199 EmpathyAccountSettings *self,
204 #endif /* #ifndef __EMPATHY_ACCOUNT_SETTINGS_H__*/