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>
27 #include <telepathy-glib/account.h>
28 #include <telepathy-glib/connection-manager.h>
32 typedef struct _EmpathyAccountSettings EmpathyAccountSettings;
33 typedef struct _EmpathyAccountSettingsClass EmpathyAccountSettingsClass;
35 struct _EmpathyAccountSettingsClass {
36 GObjectClass parent_class;
39 struct _EmpathyAccountSettings {
44 GType empathy_account_settings_get_type (void);
47 #define EMPATHY_TYPE_ACCOUNT_SETTINGS \
48 (empathy_account_settings_get_type ())
49 #define EMPATHY_ACCOUNT_SETTINGS(obj) \
50 (G_TYPE_CHECK_INSTANCE_CAST((obj), \
51 EMPATHY_TYPE_ACCOUNT_SETTINGS, EmpathyAccountSettings))
52 #define EMPATHY_ACCOUNT_SETTINGS_CLASS(klass) \
53 (G_TYPE_CHECK_CLASS_CAST((klass), EMPATHY_TYPE_ACCOUNT_SETTINGS, \
54 EmpathyAccountSettingsClass))
55 #define EMPATHY_IS_ACCOUNT_SETTINGS(obj) \
56 (G_TYPE_CHECK_INSTANCE_TYPE((obj), EMPATHY_TYPE_ACCOUNT_SETTINGS))
57 #define EMPATHY_IS_ACCOUNT_SETTINGS_CLASS(klass) \
58 (G_TYPE_CHECK_CLASS_TYPE((klass), EMPATHY_TYPE_ACCOUNT_SETTINGS))
59 #define EMPATHY_ACCOUNT_SETTINGS_GET_CLASS(obj) \
60 (G_TYPE_INSTANCE_GET_CLASS ((obj), EMPATHY_TYPE_ACCOUNT_SETTINGS, \
61 EmpathyAccountSettingsClass))
63 EmpathyAccountSettings * empathy_account_settings_new (
64 const gchar *connection_manager,
65 const gchar *protocol,
67 const char *display_name);
69 EmpathyAccountSettings * empathy_account_settings_new_for_account (
72 gboolean empathy_account_settings_is_ready (EmpathyAccountSettings *settings);
74 const gchar *empathy_account_settings_get_cm (EmpathyAccountSettings *settings);
75 const gchar *empathy_account_settings_get_protocol (
76 EmpathyAccountSettings *settings);
78 const gchar *empathy_account_settings_get_service (
79 EmpathyAccountSettings *settings);
81 void empathy_account_settings_set_service (EmpathyAccountSettings *settings,
82 const gchar *service);
84 TpAccount *empathy_account_settings_get_account (
85 EmpathyAccountSettings *settings);
87 gboolean empathy_account_settings_has_account (
88 EmpathyAccountSettings *settings, TpAccount *account);
90 GList * empathy_account_settings_dup_tp_params (
91 EmpathyAccountSettings *settings);
93 gboolean empathy_account_settings_have_tp_param (
94 EmpathyAccountSettings *settings,
97 void empathy_account_settings_unset (EmpathyAccountSettings *settings,
100 void empathy_account_settings_discard_changes (
101 EmpathyAccountSettings *settings);
104 empathy_account_settings_get_dbus_signature (EmpathyAccountSettings *setting,
108 empathy_account_settings_dup_default (EmpathyAccountSettings *settings,
111 gchar * empathy_account_settings_dup_string (
112 EmpathyAccountSettings *settings,
114 GStrv empathy_account_settings_dup_strv (
115 EmpathyAccountSettings *settings,
118 gint32 empathy_account_settings_get_int32 (EmpathyAccountSettings *settings,
120 gint64 empathy_account_settings_get_int64 (EmpathyAccountSettings *settings,
122 guint32 empathy_account_settings_get_uint32 (EmpathyAccountSettings *settings,
124 guint64 empathy_account_settings_get_uint64 (EmpathyAccountSettings *settings,
126 gboolean empathy_account_settings_get_boolean (EmpathyAccountSettings *settings,
129 void empathy_account_settings_set (EmpathyAccountSettings *settings,
133 gchar *empathy_account_settings_get_icon_name (
134 EmpathyAccountSettings *settings);
136 void empathy_account_settings_set_icon_name_async (
137 EmpathyAccountSettings *settings,
139 GAsyncReadyCallback callback,
142 gboolean empathy_account_settings_set_icon_name_finish (
143 EmpathyAccountSettings *settings,
144 GAsyncResult *result,
147 const gchar *empathy_account_settings_get_display_name (
148 EmpathyAccountSettings *settings);
150 void empathy_account_settings_set_display_name_async (
151 EmpathyAccountSettings *settings,
153 GAsyncReadyCallback callback,
156 gboolean empathy_account_settings_set_display_name_finish (
157 EmpathyAccountSettings *settings,
158 GAsyncResult *result,
161 void empathy_account_settings_apply_async (EmpathyAccountSettings *settings,
162 GAsyncReadyCallback callback,
165 gboolean empathy_account_settings_apply_finish (
166 EmpathyAccountSettings *settings,
167 GAsyncResult *result,
168 gboolean *reconnect_required,
171 void empathy_account_settings_set_regex (EmpathyAccountSettings *settings,
175 gboolean empathy_account_settings_parameter_is_valid (
176 EmpathyAccountSettings *settings,
179 gboolean empathy_account_settings_is_valid (EmpathyAccountSettings *settings);
181 TpProtocol * empathy_account_settings_get_tp_protocol (
182 EmpathyAccountSettings *settings);
184 gboolean empathy_account_settings_supports_sasl (EmpathyAccountSettings *self);
186 gboolean empathy_account_settings_param_is_supported (
187 EmpathyAccountSettings *self,
190 void empathy_account_settings_set_uri_scheme_tel (EmpathyAccountSettings *self,
193 gboolean empathy_account_settings_has_uri_scheme_tel (
194 EmpathyAccountSettings *self);
196 void empathy_account_settings_set_storage_provider (
197 EmpathyAccountSettings *self,
198 const gchar *storage);
200 void empathy_account_settings_set_remember_password (
201 EmpathyAccountSettings *self,
206 #endif /* #ifndef __EMPATHY_ACCOUNT_SETTINGS_H__*/