![]() |
![]() |
![]() |
[Insert name here] Reference Manual | ![]() |
---|---|---|---|---|
#define TPA_CONNECTION_GET_PRIVATE (obj) TpaConnectionPrivate; TpaConnection; const gchar* tpa_connection_get_protocol (TpaConnection *self); void tpa_connection_connect (TpaConnection *self); void tpa_connection_disconnect (TpaConnection *self); void tpa_connection_create_channel (TpaConnection *self, TpaChannelType type, TpaChannelTarget *target); TpaConnectionStatus tpa_connection_get_status (TpaConnection *self); TpaContactList* tpa_connection_get_contactlist (TpaConnection *self); GPtrArray* tpa_connection_get_open_channels (TpaConnection *self); TpaUserContact* tpa_connection_get_user_contact (TpaConnection *self);
const gchar* tpa_connection_get_protocol (TpaConnection *self);
Return the connection's protocol.
self : |
TpaConnection instance. |
Returns : |
void tpa_connection_connect (TpaConnection *self);
Request the connection establishment. Result will be return asynchronously by signal status-changed.
self : |
TpaConnection instance. |
void tpa_connection_disconnect (TpaConnection *self);
Closes the connection.
self : |
TpaConnection instance. |
void tpa_connection_create_channel (TpaConnection *self, TpaChannelType type, TpaChannelTarget *target);
Create a new channel of the given type to the given target.
self : |
TpaConnection instance. |
type : |
TpaChannelType type. |
target : |
TpaChannelTarget instance. |
TpaConnectionStatus tpa_connection_get_status (TpaConnection *self);
Return the connection status.
self : |
TpaConnection instance. |
Returns : | TpaConnectionStatus status. |
TpaContactList* tpa_connection_get_contactlist (TpaConnection *self);
Return connection's contact list.
self : |
TpaConnection instance. |
Returns : |
GPtrArray* tpa_connection_get_open_channels (TpaConnection *self);
Return all currently open channels on the connection.
self : |
TpaConnection instance. |
Returns : | GPtrArray array of TpaChannel channels. |
TpaUserContact* tpa_connection_get_user_contact (TpaConnection *self);
Return connection's user contact.
self : |
TpaConnection instance. |
Returns : |
void user_function (TpaConnection *tpaconnection, TpaChannel *arg1, gpointer user_data) : Run Last / Has Details
tpaconnection : |
the object which received the signal. |
arg1 : |
|
user_data : |
user data set when the signal handler was connected. |
void user_function (TpaConnection *tpaconnection, guint arg1, guint arg2, gpointer user_data) : Run Last / Has Details
tpaconnection : |
the object which received the signal. |
arg1 : |
|
arg2 : |
|
user_data : |
user data set when the signal handler was connected. |