telepathy-glib API Reference Manual | ||||
---|---|---|---|---|
Top | Description |
Connection Balance interfaceConnection Balance interface — client-side wrappers for the Balance interface |
#include <telepathy-glib/telepathy-glib-dbus.h> TpProxySignalConnection * tp_cli_connection_interface_balance_connect_to_balance_changed (TpConnection *proxy
,tp_cli_connection_interface_balance_signal_callback_balance_changed callback
,gpointer user_data
,GDestroyNotify destroy
,GObject *weak_object
,GError **error
); void (*tp_cli_connection_interface_balance_signal_callback_balance_changed) (TpConnection *proxy
,const GValueArray *arg_Balance
,gpointer user_data
,GObject *weak_object
);
In some real-time communication services the user can pay for certain services, typically calls to the PSTN, in advance. In (at least) Skype, it's possible to query the current balance in a machine-readable way.
This section documents the auto-generated C wrappers for the Balance interface, used with TpConnection objects.
TpProxySignalConnection * tp_cli_connection_interface_balance_connect_to_balance_changed (TpConnection *proxy
,tp_cli_connection_interface_balance_signal_callback_balance_changed callback
,gpointer user_data
,GDestroyNotify destroy
,GObject *weak_object
,GError **error
);
Connect a handler to the signal BalanceChanged.
<tp:docstring xmlns="http://www.w3.org/1999/xhtml"> <p>Emitted when the user's balance has changed.</p>
|
A TpConnection or subclass |
|
Callback to be called when the signal is received |
|
User-supplied data for the callback |
|
Destructor for the user-supplied data, which
will be called when this signal is disconnected, or
before this function returns NULL
|
|
A GObject which will be weakly referenced; if it is destroyed, this callback will automatically be disconnected |
|
If not NULL , used to raise an error if NULL is
returned |
Returns : |
a TpProxySignalConnection containing all of the
above, which can be used to disconnect the signal; or
NULL if the proxy does not have the desired interface
or has become invalid. |
void (*tp_cli_connection_interface_balance_signal_callback_balance_changed) (TpConnection *proxy
,const GValueArray *arg_Balance
,gpointer user_data
,GObject *weak_object
);
Represents the signature of a callback for the signal BalanceChanged.
|
The proxy on which tp_cli_connection_interface_balance_connect_to_balance_changed()
was called |
|
<tp:docstring xmlns="http://www.w3.org/1999/xhtml"> <p>The new value of the <tp:member-ref>AccountBalance</tp:member-ref> property.</p> |
|
User-supplied data |
|
User-supplied weakly referenced object |