/usr/include/telepathy-1.0/telepathy-glib/account.h is in libtelepathy-glib-dev 0.24.1-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 | /*
* account-manager.h - proxy for an account in the Telepathy account manager
*
* Copyright (C) 2009-2012 Collabora Ltd. <http://www.collabora.co.uk/>
* Copyright (C) 2009 Nokia Corporation
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#if defined (TP_DISABLE_SINGLE_INCLUDE) && !defined (_TP_IN_META_HEADER) && !defined (_TP_COMPILATION)
#error "Only <telepathy-glib/telepathy-glib.h> and <telepathy-glib/telepathy-glib-dbus.h> can be included directly."
#endif
#ifndef TP_ACCOUNT_H
#define TP_ACCOUNT_H
#include <gio/gio.h>
#include <telepathy-glib/connection.h>
#include <telepathy-glib/dbus.h>
#include <telepathy-glib/defs.h>
#include <telepathy-glib/proxy.h>
G_BEGIN_DECLS
/* TpAccount is forward-declared in connection.h */
typedef struct _TpAccountClass TpAccountClass;
typedef struct _TpAccountPrivate TpAccountPrivate;
typedef struct _TpAccountClassPrivate TpAccountClassPrivate;
struct _TpAccount {
/*<private>*/
TpProxy parent;
TpAccountPrivate *priv;
};
struct _TpAccountClass {
/*<private>*/
TpProxyClass parent_class;
GCallback _padding[7];
TpAccountClassPrivate *priv;
};
GType tp_account_get_type (void);
#define TP_TYPE_ACCOUNT \
(tp_account_get_type ())
#define TP_ACCOUNT(obj) \
(G_TYPE_CHECK_INSTANCE_CAST ((obj), TP_TYPE_ACCOUNT, \
TpAccount))
#define TP_ACCOUNT_CLASS(klass) \
(G_TYPE_CHECK_CLASS_CAST ((klass), TP_TYPE_ACCOUNT, \
TpAccountClass))
#define TP_IS_ACCOUNT(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), TP_TYPE_ACCOUNT))
#define TP_IS_ACCOUNT_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE ((klass), TP_TYPE_ACCOUNT))
#define TP_ACCOUNT_GET_CLASS(obj) \
(G_TYPE_INSTANCE_GET_CLASS ((obj), TP_TYPE_ACCOUNT, \
TpAccountClass))
#define TP_ACCOUNT_FEATURE_CORE \
tp_account_get_feature_quark_core ()
#define TP_ACCOUNT_FEATURE_CONNECTION \
tp_account_get_feature_quark_connection ()
#define TP_ACCOUNT_FEATURE_STORAGE \
tp_account_get_feature_quark_storage ()
#define TP_ACCOUNT_FEATURE_ADDRESSING \
tp_account_get_feature_quark_addressing ()
GQuark tp_account_get_feature_quark_core (void) G_GNUC_CONST;
_TP_AVAILABLE_IN_0_16
GQuark tp_account_get_feature_quark_connection (void) G_GNUC_CONST;
GQuark tp_account_get_feature_quark_storage (void) G_GNUC_CONST;
GQuark tp_account_get_feature_quark_addressing (void) G_GNUC_CONST;
_TP_DEPRECATED_IN_0_20_FOR(tp_simple_client_factory_ensure_account)
TpAccount *tp_account_new (TpDBusDaemon *bus_daemon, const gchar *object_path,
GError **error) G_GNUC_WARN_UNUSED_RESULT;
#ifndef TP_DISABLE_DEPRECATED
_TP_DEPRECATED_IN_0_20_FOR(tp_account_get_protocol)
gboolean tp_account_parse_object_path (const gchar *object_path,
gchar **cm, gchar **protocol, gchar **account_id, GError **error);
#endif
const gchar *tp_account_get_path_suffix (TpAccount *account);
void tp_account_init_known_interfaces (void);
TpConnection *tp_account_get_connection (TpAccount *account);
#ifndef TP_DISABLE_DEPRECATED
_TP_DEPRECATED_IN_0_20_FOR(tp_simple_client_factory_ensure_connection)
TpConnection *tp_account_ensure_connection (TpAccount *account,
const gchar *path);
#endif
const gchar *tp_account_get_display_name (TpAccount *account);
#ifndef TP_DISABLE_DEPRECATED
_TP_DEPRECATED_IN_0_20_FOR(tp_account_get_cm_name)
const gchar *tp_account_get_connection_manager (TpAccount *account);
_TP_DEPRECATED_IN_0_20_FOR(tp_account_get_protocol_name)
const gchar *tp_account_get_protocol (TpAccount *account);
#endif
_TP_AVAILABLE_IN_0_20
const gchar *tp_account_get_cm_name (TpAccount *account);
_TP_AVAILABLE_IN_0_20
const gchar *tp_account_get_protocol_name (TpAccount *account);
const gchar *tp_account_get_service (TpAccount *self);
const gchar *tp_account_get_icon_name (TpAccount *account);
const gchar *tp_account_get_normalized_name (TpAccount *self);
void tp_account_set_enabled_async (TpAccount *account,
gboolean enabled, GAsyncReadyCallback callback, gpointer user_data);
gboolean tp_account_set_enabled_finish (TpAccount *account,
GAsyncResult *result, GError **error);
void tp_account_reconnect_async (TpAccount *account,
GAsyncReadyCallback callback, gpointer user_data);
gboolean tp_account_reconnect_finish (TpAccount *account,
GAsyncResult *result, GError **error);
gboolean tp_account_is_enabled (TpAccount *account);
gboolean tp_account_is_valid (TpAccount *account);
void tp_account_update_parameters_async (TpAccount *account,
GHashTable *parameters, const gchar **unset_parameters,
GAsyncReadyCallback callback, gpointer user_data);
gboolean tp_account_update_parameters_finish (TpAccount *account,
GAsyncResult *result, gchar ***reconnect_required, GError **error);
_TP_AVAILABLE_IN_0_18
void tp_account_update_parameters_vardict_async (TpAccount *account,
GVariant *parameters, const gchar **unset_parameters,
GAsyncReadyCallback callback, gpointer user_data);
_TP_AVAILABLE_IN_0_18
gboolean tp_account_update_parameters_vardict_finish (TpAccount *account,
GAsyncResult *result, gchar ***reconnect_required, GError **error);
void tp_account_remove_async (TpAccount *account,
GAsyncReadyCallback callback, gpointer user_data);
gboolean tp_account_remove_finish (TpAccount *account,
GAsyncResult *result, GError **error);
void tp_account_set_display_name_async (TpAccount *account,
const gchar *display_name, GAsyncReadyCallback callback,
gpointer user_data);
gboolean tp_account_set_display_name_finish (TpAccount *account,
GAsyncResult *result, GError **error);
void tp_account_set_icon_name_async (TpAccount *account,
const gchar *icon_name, GAsyncReadyCallback callback,
gpointer user_data);
gboolean tp_account_set_icon_name_finish (TpAccount *account,
GAsyncResult *result, GError **error);
void tp_account_set_service_async (TpAccount *self,
const gchar *service, GAsyncReadyCallback callback,
gpointer user_data);
gboolean tp_account_set_service_finish (TpAccount *self,
GAsyncResult *result, GError **error);
void tp_account_request_presence_async (TpAccount *account,
TpConnectionPresenceType type, const gchar *status, const gchar *message,
GAsyncReadyCallback callback, gpointer user_data);
gboolean tp_account_request_presence_finish (TpAccount *account,
GAsyncResult *result, GError **error);
void tp_account_set_automatic_presence_async (TpAccount *account,
TpConnectionPresenceType type, const gchar *status, const gchar *message,
GAsyncReadyCallback callback, gpointer user_data);
gboolean tp_account_set_automatic_presence_finish (TpAccount *account,
GAsyncResult *result, GError **error);
gboolean tp_account_get_connect_automatically (TpAccount *account);
void tp_account_set_connect_automatically_async (TpAccount *account,
gboolean connect_automatically, GAsyncReadyCallback callback,
gpointer user_data);
gboolean tp_account_set_connect_automatically_finish (TpAccount *account,
GAsyncResult *result, GError **error);
gboolean tp_account_get_has_been_online (TpAccount *account);
TpConnectionStatus tp_account_get_connection_status (TpAccount *account,
TpConnectionStatusReason *reason);
const gchar *tp_account_get_detailed_error (TpAccount *self,
const GHashTable **details);
_TP_AVAILABLE_IN_0_18
gchar *tp_account_dup_detailed_error_vardict (TpAccount *self,
GVariant **details);
TpConnectionPresenceType tp_account_get_current_presence (TpAccount *account,
gchar **status, gchar **status_message);
TpConnectionPresenceType tp_account_get_requested_presence (
TpAccount *account, gchar **status, gchar **status_message);
TpConnectionPresenceType tp_account_get_automatic_presence (
TpAccount *self, gchar **status, gchar **status_message);
const GHashTable *tp_account_get_parameters (TpAccount *account);
_TP_AVAILABLE_IN_0_18
GVariant *tp_account_dup_parameters_vardict (TpAccount *account);
const gchar *tp_account_get_nickname (TpAccount *account);
void tp_account_set_nickname_async (TpAccount *account,
const gchar *nickname, GAsyncReadyCallback callback, gpointer user_data);
gboolean tp_account_set_nickname_finish (TpAccount *account,
GAsyncResult *result, GError **error);
_TP_AVAILABLE_IN_0_18
const gchar * const *
/* ugh, gtk-doc */
tp_account_get_supersedes (TpAccount *self);
void tp_account_get_avatar_async (TpAccount *account,
GAsyncReadyCallback callback, gpointer user_data);
const GArray *tp_account_get_avatar_finish (TpAccount *account,
GAsyncResult *result, GError **error);
#ifndef TP_DISABLE_DEPRECATED
_TP_DEPRECATED_IN_0_24_FOR(tp_proxy_is_prepared)
gboolean tp_account_is_prepared (TpAccount *account, GQuark feature);
#endif
#ifndef TP_DISABLE_DEPRECATED
_TP_DEPRECATED_IN_0_16_FOR (tp_proxy_prepare_async)
void tp_account_prepare_async (TpAccount *account,
const GQuark *features,
GAsyncReadyCallback callback,
gpointer user_data);
_TP_DEPRECATED_IN_0_16_FOR (tp_proxy_prepare_finish)
gboolean tp_account_prepare_finish (TpAccount *account,
GAsyncResult *result,
GError **error);
#endif
void tp_account_set_avatar_async (TpAccount *self,
const guchar *avatar,
gsize len,
const gchar *mime_type,
GAsyncReadyCallback callback,
gpointer user_data);
gboolean tp_account_set_avatar_finish (TpAccount *self,
GAsyncResult *result,
GError **error);
gboolean tp_account_get_changing_presence (TpAccount *self);
const gchar *tp_account_get_storage_provider (TpAccount *self);
const GValue *tp_account_get_storage_identifier (TpAccount *self);
GVariant *tp_account_dup_storage_identifier_variant (TpAccount *self);
TpStorageRestrictionFlags tp_account_get_storage_restrictions (TpAccount *self);
void tp_account_get_storage_specific_information_async (TpAccount *self,
GAsyncReadyCallback callback, gpointer user_data);
GHashTable *tp_account_get_storage_specific_information_finish (TpAccount *self,
GAsyncResult *result, GError **error);
_TP_AVAILABLE_IN_0_18
void tp_account_dup_storage_specific_information_vardict_async (
TpAccount *self,
GAsyncReadyCallback callback,
gpointer user_data);
_TP_AVAILABLE_IN_0_18
GVariant *tp_account_dup_storage_specific_information_vardict_finish (
TpAccount *self,
GAsyncResult *result,
GError **error);
const gchar * const *
/* ugh, gtk-doc */
tp_account_get_uri_schemes (TpAccount *self);
gboolean tp_account_associated_with_uri_scheme (TpAccount *self,
const gchar *scheme);
void tp_account_set_uri_scheme_association_async (TpAccount *self,
const gchar *scheme, gboolean associate,
GAsyncReadyCallback callback, gpointer user_data);
gboolean tp_account_set_uri_scheme_association_finish (TpAccount *self,
GAsyncResult *result, GError **error);
GBinding *tp_account_bind_connection_status_to_property (TpAccount *self,
gpointer target, const char *target_property, gboolean invert);
G_END_DECLS
#include <telepathy-glib/_gen/tp-cli-account.h>
#endif
|