telepathy-glib API Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Signals |
Service-side Account interfacesService-side Account interfaces — GInterfaces for Telepathy Account objects |
#include <telepathy-glib/telepathy-glib-dbus.h> TpSvcAccount; TpSvcAccountClass; void tp_svc_account_emit_account_property_changed (gpointer instance
,GHashTable *arg_Properties
); void tp_svc_account_emit_removed (gpointer instance
); void (*tp_svc_account_reconnect_impl) (TpSvcAccount *self
,DBusGMethodInvocation *context
); void tp_svc_account_return_from_reconnect (DBusGMethodInvocation *context
); void tp_svc_account_implement_reconnect (TpSvcAccountClass *klass
,tp_svc_account_reconnect_impl impl
); void (*tp_svc_account_remove_impl) (TpSvcAccount *self
,DBusGMethodInvocation *context
); void tp_svc_account_return_from_remove (DBusGMethodInvocation *context
); void tp_svc_account_implement_remove (TpSvcAccountClass *klass
,tp_svc_account_remove_impl impl
); void (*tp_svc_account_update_parameters_impl) (TpSvcAccount *self
,GHashTable *in_Set
,const gchar **in_Unset
,DBusGMethodInvocation *context
); void tp_svc_account_return_from_update_parameters (DBusGMethodInvocation *context
,const gchar **out_Reconnect_Required
); void tp_svc_account_implement_update_parameters (TpSvcAccountClass *klass
,tp_svc_account_update_parameters_impl impl
); TpSvcAccountInterfaceAvatar; TpSvcAccountInterfaceAvatarClass; void tp_svc_account_interface_avatar_emit_avatar_changed (gpointer instance
); TpSvcAccountInterfaceStorage; TpSvcAccountInterfaceStorageClass; TpSvcAccountInterfaceAddressing; TpSvcAccountInterfaceAddressingClass; void tp_svc_account_interface_addressing_implement_set_uri_scheme_association (TpSvcAccountInterfaceAddressingClass *klass
,tp_svc_account_interface_addressing_set_uri_scheme_association_impl impl
); void tp_svc_account_interface_addressing_return_from_set_uri_scheme_association (DBusGMethodInvocation *context
); void (*tp_svc_account_interface_addressing_set_uri_scheme_association_impl) (TpSvcAccountInterfaceAddressing *self
,const gchar *in_URI_Scheme
,gboolean in_Association
,DBusGMethodInvocation *context
);
GInterface +----TpSvcAccount
GInterface +----TpSvcAccountInterfaceAvatar
GInterface +----TpSvcAccountInterfaceStorage
GInterface +----TpSvcAccountInterfaceAddressing
"account-property-changed" :Has Details
"removed" :Has Details
"avatar-changed" :Has Details
These interfaces (auto-generated from the Telepathy spec) make it easier to export objects implementing the Telepathy Account and its optional interfaces, with the correct method and signal signatures, and emit signals from those objects in a type-safe way.
You don't need these interfaces unless you're implementing a Telepathy AccountManager, such as Mission Control.
typedef struct _TpSvcAccount TpSvcAccount;
Dummy typedef representing any implementation of this interface.
typedef struct _TpSvcAccountClass TpSvcAccountClass;
The class of TpSvcAccount.
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 (gpointer klass, gpointer unused G_GNUC_UNUSED) { #define IMPLEMENT(x) tp_svc_account_implement_##x (\ klass, my_object_##x) IMPLEMENT (remove); IMPLEMENT (update_parameters); IMPLEMENT (reconnect); #undef IMPLEMENT }
void tp_svc_account_emit_account_property_changed (gpointer instance
,GHashTable *arg_Properties
);
Type-safe wrapper around g_signal_emit to emit the AccountPropertyChanged signal on interface org.freedesktop.Telepathy.Account.
|
The object implementing this interface |
|
GHashTable * (FIXME, generate documentation) |
void tp_svc_account_emit_removed (gpointer instance
);
Type-safe wrapper around g_signal_emit to emit the Removed signal on interface org.freedesktop.Telepathy.Account.
|
The object implementing this interface |
void (*tp_svc_account_reconnect_impl) (TpSvcAccount *self
,DBusGMethodInvocation *context
);
The signature of an implementation of the D-Bus method Reconnect on interface org.freedesktop.Telepathy.Account.
|
The object implementing this interface |
|
Used to return values or throw an error |
void tp_svc_account_return_from_reconnect
(DBusGMethodInvocation *context
);
Return successfully by calling dbus_g_method_return()
.
This inline function exists only to provide type-safety.
|
The D-Bus method invocation context |
void tp_svc_account_implement_reconnect (TpSvcAccountClass *klass
,tp_svc_account_reconnect_impl impl
);
Register an implementation for the Reconnect 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 Reconnect D-Bus method |
void (*tp_svc_account_remove_impl) (TpSvcAccount *self
,DBusGMethodInvocation *context
);
The signature of an implementation of the D-Bus method Remove on interface org.freedesktop.Telepathy.Account.
|
The object implementing this interface |
|
Used to return values or throw an error |
void tp_svc_account_return_from_remove (DBusGMethodInvocation *context
);
Return successfully by calling dbus_g_method_return()
.
This inline function exists only to provide type-safety.
|
The D-Bus method invocation context |
void tp_svc_account_implement_remove (TpSvcAccountClass *klass
,tp_svc_account_remove_impl impl
);
Register an implementation for the Remove 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 Remove D-Bus method |
void (*tp_svc_account_update_parameters_impl) (TpSvcAccount *self
,GHashTable *in_Set
,const gchar **in_Unset
,DBusGMethodInvocation *context
);
The signature of an implementation of the D-Bus method UpdateParameters on interface org.freedesktop.Telepathy.Account.
|
The object implementing this interface |
|
GHashTable * (FIXME, generate documentation) |
|
const gchar ** (FIXME, generate documentation) |
|
Used to return values or throw an error |
void tp_svc_account_return_from_update_parameters (DBusGMethodInvocation *context
,const gchar **out_Reconnect_Required
);
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_implement_update_parameters (TpSvcAccountClass *klass
,tp_svc_account_update_parameters_impl impl
);
Register an implementation for the UpdateParameters 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 UpdateParameters D-Bus method |
typedef struct _TpSvcAccountInterfaceAvatar TpSvcAccountInterfaceAvatar;
Dummy typedef representing any implementation of this interface.
typedef struct _TpSvcAccountInterfaceAvatarClass TpSvcAccountInterfaceAvatarClass;
The class of TpSvcAccountInterfaceAvatar.
This interface has no D-Bus methods, so an
implementation can typically pass NULL
to
G_IMPLEMENT_INTERFACE()
as the interface
initialization function.
void tp_svc_account_interface_avatar_emit_avatar_changed
(gpointer instance
);
Type-safe wrapper around g_signal_emit to emit the AvatarChanged signal on interface org.freedesktop.Telepathy.Account.Interface.Avatar.
|
The object implementing this interface |
typedef struct _TpSvcAccountInterfaceStorage TpSvcAccountInterfaceStorage;
Dummy typedef representing any implementation of this interface.
typedef struct _TpSvcAccountInterfaceStorageClass TpSvcAccountInterfaceStorageClass;
The class of TpSvcAccountInterfaceStorage.
This interface has no D-Bus methods, so an
implementation can typically pass NULL
to
G_IMPLEMENT_INTERFACE()
as the interface
initialization function.
typedef struct _TpSvcAccountInterfaceAddressing TpSvcAccountInterfaceAddressing;
Dummy typedef representing any implementation of this interface.
typedef struct _TpSvcAccountInterfaceAddressingClass TpSvcAccountInterfaceAddressingClass;
The class of TpSvcAccountInterfaceAddressing.
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_interface_addressing (gpointer klass, gpointer unused G_GNUC_UNUSED) { #define IMPLEMENT(x) tp_svc_account_interface_addressing_implement_##x (\ klass, my_object_##x) IMPLEMENT (set_uri_scheme_association); #undef IMPLEMENT }
void tp_svc_account_interface_addressing_implement_set_uri_scheme_association (TpSvcAccountInterfaceAddressingClass *klass
,tp_svc_account_interface_addressing_set_uri_scheme_association_impl impl
);
Register an implementation for the SetURISchemeAssociation 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 SetURISchemeAssociation D-Bus method |
void tp_svc_account_interface_addressing_return_from_set_uri_scheme_association
(DBusGMethodInvocation *context
);
Return successfully by calling dbus_g_method_return()
.
This inline function exists only to provide type-safety.
|
The D-Bus method invocation context |
void (*tp_svc_account_interface_addressing_set_uri_scheme_association_impl) (TpSvcAccountInterfaceAddressing *self
,const gchar *in_URI_Scheme
,gboolean in_Association
,DBusGMethodInvocation *context
);
The signature of an implementation of the D-Bus method SetURISchemeAssociation on interface org.freedesktop.Telepathy.Account.Interface.Addressing.
|
The object implementing this interface |
|
const gchar * (FIXME, generate documentation) |
|
gboolean (FIXME, generate documentation) |
|
Used to return values or throw an error |
"account-property-changed"
signalvoid user_function (TpSvcAccount *self,
gpointer user_data) : Has Details
The AccountPropertyChanged D-Bus signal is emitted whenever this GObject signal is.
|
an object |
|
GHashTable * (FIXME, generate documentation) |
|
user data set when the signal handler was connected. |
"removed"
signalvoid user_function (TpSvcAccount *self,
gpointer user_data) : Has Details
The Removed D-Bus signal is emitted whenever this GObject signal is.
|
an object |
|
user data set when the signal handler was connected. |
"avatar-changed"
signalvoid user_function (TpSvcAccountInterfaceAvatar *self,
gpointer user_data) : Has Details
The AvatarChanged D-Bus signal is emitted whenever this GObject signal is.
|
an object |
|
user data set when the signal handler was connected. |