diff options
author | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2009-09-07 14:45:50 +0100 |
---|---|---|
committer | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2009-09-07 14:45:50 +0100 |
commit | c26224423bb42c9d4d4b995e9e6611e17907d82c (patch) | |
tree | 79cb02ad73e7ded6bd0c3d5a2aa07a0e7773e89c /telepathy-glib/account-manager.h | |
parent | 89979c78b9dd27159b26bc6168694c27859a62bd (diff) | |
download | telepathy-glib-c26224423bb42c9d4d4b995e9e6611e17907d82c.tar.gz |
account-manager: add functions taken from Empathy and renamed
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
Diffstat (limited to 'telepathy-glib/account-manager.h')
-rw-r--r-- | telepathy-glib/account-manager.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/telepathy-glib/account-manager.h b/telepathy-glib/account-manager.h index f96321ac7..eeaca082d 100644 --- a/telepathy-glib/account-manager.h +++ b/telepathy-glib/account-manager.h @@ -22,6 +22,7 @@ #ifndef TP_ACCOUNT_MANAGER_H #define TP_ACCOUNT_MANAGER_H +#include <telepathy-glib/account.h> #include <telepathy-glib/proxy.h> #include <telepathy-glib/dbus.h> @@ -67,6 +68,38 @@ TpAccountManager *tp_account_manager_new (TpDBusDaemon *bus_daemon); void tp_account_manager_init_known_interfaces (void); +gboolean tp_account_manager_is_ready (TpAccountManager *manager); + +TpAccount *tp_account_manager_get_account_for_connection ( + TpAccountManager *manager, TpConnection *connection); + +TpAccount *tp_account_manager_ensure_account (TpAccountManager *manager, + const gchar *unique_name); + +TpAccount *tp_account_manager_get_account (TpAccountManager *manager, + const gchar *unique_name); + +GList *tp_account_manager_get_accounts (TpAccountManager *manager); + +void tp_account_manager_remove (TpAccountManager *manager, TpAccount *account); + +void tp_account_manager_request_global_presence (TpAccountManager *manager, + TpConnectionPresenceType type, const gchar *status, const gchar *message); + +TpConnectionPresenceType tp_account_manager_get_requested_global_presence ( + TpAccountManager *manager, gchar **status, gchar **message); + +TpConnectionPresenceType tp_account_manager_get_global_presence ( + TpAccountManager *manager, gchar **status, gchar **message); + +void tp_account_manager_create_account_async (TpAccountManager *manager, + const gchar *connection_manager, const gchar *protocol, + const gchar *display_name, GHashTable *parameters, GHashTable *properties, + GAsyncReadyCallback callback, gpointer user_data); + +TpAccount * tp_account_manager_create_account_finish ( + TpAccountManager *settings, GAsyncResult *result, GError **error); + G_END_DECLS #include <telepathy-glib/_gen/tp-cli-account-manager.h> |