telepathy-glib API Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Signals |
Service-side Account Manager interfaceService-side Account Manager interface — GInterface for Telepathy AccountManager objects |
#include <telepathy-glib/telepathy-glib-dbus.h> TpSvcAccountManager; TpSvcAccountManagerClass; void tp_svc_account_manager_emit_account_removed (gpointer instance
,const gchar *arg_Account
); void tp_svc_account_manager_emit_account_validity_changed (gpointer instance
,const gchar *arg_Account
,gboolean arg_Valid
); void (*tp_svc_account_manager_create_account_impl) (TpSvcAccountManager *self
,const gchar *in_Connection_Manager
,const gchar *in_Protocol
,const gchar *in_Display_Name
,GHashTable *in_Parameters
,GHashTable *in_Properties
,DBusGMethodInvocation *context
); void tp_svc_account_manager_return_from_create_account (DBusGMethodInvocation *context
,const gchar *out_Account
); void tp_svc_account_manager_implement_create_account (TpSvcAccountManagerClass *klass
,tp_svc_account_manager_create_account_impl impl
);
The TpSvcAccountManager interface (auto-generated from the Telepathy spec) makes it easier to export an object implementing the Telepathy AccountManager interface, with the correct method and signal signatures, and emit signals from that object in a type-safe way.
You don't need these interfaces unless you're implementing a Telepathy AccountManager, such as Mission Control.
typedef struct _TpSvcAccountManager TpSvcAccountManager;
Dummy typedef representing any implementation of this interface.
typedef struct _TpSvcAccountManagerClass TpSvcAccountManagerClass;
The class of TpSvcAccountManager.
In a full implementation of this interface (i.e. all
methods implemented), the interface initialization
function used in G_IMPLEMENT_INTERFACE()
would
typically look like this:
static void implement_account_manager (gpointer klass, gpointer unused G_GNUC_UNUSED) { #define IMPLEMENT(x) tp_svc_account_manager_implement_##x (\ klass, my_object_##x) IMPLEMENT (create_account); #undef IMPLEMENT }
void tp_svc_account_manager_emit_account_removed (gpointer instance
,const gchar *arg_Account
);
Type-safe wrapper around g_signal_emit to emit the AccountRemoved signal on interface org.freedesktop.Telepathy.AccountManager.
|
The object implementing this interface |
|
const gchar * (FIXME, generate documentation) |
void tp_svc_account_manager_emit_account_validity_changed (gpointer instance
,const gchar *arg_Account
,gboolean arg_Valid
);
Type-safe wrapper around g_signal_emit to emit the AccountValidityChanged signal on interface org.freedesktop.Telepathy.AccountManager.
|
The object implementing this interface |
|
const gchar * (FIXME, generate documentation) |
|
gboolean (FIXME, generate documentation) |
void (*tp_svc_account_manager_create_account_impl) (TpSvcAccountManager *self
,const gchar *in_Connection_Manager
,const gchar *in_Protocol
,const gchar *in_Display_Name
,GHashTable *in_Parameters
,GHashTable *in_Properties
,DBusGMethodInvocation *context
);
The signature of an implementation of the D-Bus method CreateAccount on interface org.freedesktop.Telepathy.AccountManager.
|
The object implementing this interface |
|
const gchar * (FIXME, generate documentation) |
|
const gchar * (FIXME, generate documentation) |
|
const gchar * (FIXME, generate documentation) |
|
GHashTable * (FIXME, generate documentation) |
|
GHashTable * (FIXME, generate documentation) |
|
Used to return values or throw an error |
void tp_svc_account_manager_return_from_create_account (DBusGMethodInvocation *context
,const gchar *out_Account
);
Return successfully by calling dbus_g_method_return()
.
This inline function exists only to provide type-safety.
|
The D-Bus method invocation context |
|
const gchar * (FIXME, generate documentation) |
void tp_svc_account_manager_implement_create_account (TpSvcAccountManagerClass *klass
,tp_svc_account_manager_create_account_impl impl
);
Register an implementation for the CreateAccount method in the vtable of an implementation of this interface. To be called from the interface init function.
|
A class whose instances implement this interface |
|
A callback used to implement the CreateAccount D-Bus method |
"account-removed"
signalvoid user_function (TpSvcAccountManager *self,
DBusGObjectPath *arg_Account,
gpointer user_data) : Has Details
The AccountRemoved D-Bus signal is emitted whenever this GObject signal is.
|
an object |
|
const gchar * (FIXME, generate documentation) |
|
user data set when the signal handler was connected. |
"account-validity-changed"
signalvoid user_function (TpSvcAccountManager *self,
DBusGObjectPath *arg_Account,
gboolean arg_Valid,
gpointer user_data) : Has Details
The AccountValidityChanged D-Bus signal is emitted whenever this GObject signal is.
|
an object |
|
const gchar * (FIXME, generate documentation) |
|
gboolean (FIXME, generate documentation) |
|
user data set when the signal handler was connected. |