![]() |
![]() |
![]() |
[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_profiles (TpaManager *self); GPtrArray* tpa_manager_get_connections (TpaManager *self); TpaProfile* tpa_manager_get_profile (TpaManager *self, const gchar *profile); gboolean tpa_manager_is_running (TpaManager *self); TpaConnection* tpa_manager_request_connection (TpaManager *self, TpaProfile *profile); gboolean tpa_manager_supports (TpaManager *self, const gchar *profile);
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_profiles (TpaManager *self);
Get profiles supported by the connection manager instance.
self : |
TpaManager instance. |
Returns : | GPtrArray with all profiles supported. |
GPtrArray* tpa_manager_get_connections (TpaManager *self);
Get all current connections.
self : |
TpaManager instance. |
Returns : | GPtrArray with all connections. |
TpaProfile* tpa_manager_get_profile (TpaManager *self, const gchar *profile);
Get a list of the parameters for the given profiles that is necessary for the RequestConnection method.
self : |
TpaManager instance. |
profile : |
|
Returns : | a instance of TpaProfile. |
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, TpaProfile *profile);
Request a new TpaConnection instance. The instance state is disconnected to connect it call tpa_connection_connect.
self : |
TpaManager instance. |
profile : |
|
Returns : | TpaConnection instance or NULL if fail. |
gboolean tpa_manager_supports (TpaManager *self, const gchar *profile);
Checks wether TpaManager instance support the givin protocol.
self : |
TpaManager instance. |
profile : |
Profile name |
Returns : | TRUE if the instance support the protocol otherwise FALSE. |