![]() |
![]() |
![]() |
[Insert name here] Reference Manual | ![]() |
---|---|---|---|---|
#define TPA_MANAGER_GET_PRIVATE (obj) TpaManagerPrivate; TpaManager; gchar* tpa_manager_get_name (TpaManager *self); GPtrArray* tpa_manager_get_supported_protocols (TpaManager *self); GPtrArray* tpa_manager_get_connections (TpaManager *self); TpaParameters* tpa_manager_get_protocol_parameters (TpaManager *self, const gchar *protocol); gboolean tpa_manager_is_running (TpaManager *self); TpaConnection* tpa_manager_request_connection (TpaManager *self, const gchar *protocol, TpaParameters *parameters); gboolean tpa_manager_supports (TpaManager *self, const gchar *protocol);
"file" gchararray : Read / Write / Construct Only "services" gpointer : Read / Write / Construct Only
gchar* tpa_manager_get_name (TpaManager *self);
Get name of the connection manager instance.
self : |
TpaManager instance. |
Returns : | Connection manager's name. |
GPtrArray* tpa_manager_get_supported_protocols (TpaManager *self);
Get protocols supported by the connection manager instance.
self : |
TpaManager instance. |
Returns : | GPtrArray with all protocols supported. |
GPtrArray* tpa_manager_get_connections (TpaManager *self);
Get all current connections.
self : |
TpaManager instance. |
Returns : | GPtrArray with all connections. |
TpaParameters* tpa_manager_get_protocol_parameters (TpaManager *self, const gchar *protocol);
Get a list of the parameters for the given protocol that is necessary for the RequestConnection method.
self : |
TpaManager instance. |
protocol : |
protocol that will be used. |
Returns : | a instance of TpaParameters with all parameters. |
gboolean tpa_manager_is_running (TpaManager *self);
Checks if the connection manager is active.
self : |
TpaManager instance. |
Returns : | TRUE if it is active otherwise FALSE. |
TpaConnection* tpa_manager_request_connection (TpaManager *self, const gchar *protocol, TpaParameters *parameters);
Request a new TpaConnection instance. The instance state is disconnected to connect it call tpa_connection_connect.
self : |
TpaManager instance. |
protocol : |
protocol that will be used. |
parameters : |
list of params for connection. |
Returns : | TpaConnection instance or NULL if fail. |
gboolean tpa_manager_supports (TpaManager *self, const gchar *protocol);
Checks wether TpaManager instance support the givin protocol.
self : |
TpaManager instance. |
protocol : |
Protocol name |
Returns : | TRUE if the instance support the protocol otherwise FALSE. |
void user_function (TpaManager *tpamanager, gpointer arg1, gpointer user_data) : Run Last / Has Details
tpamanager : |
the object which received the signal. |
arg1 : |
|
user_data : |
user data set when the signal handler was connected. |