tpa-connection

tpa-connection

Synopsis




                    TpaIConnection;
void                tpa_connection_init                 (TpaIConnection *iface,
                                                         gpointer data);
void                tpa_connection_finalize             (GObject *obj);
gchar*              tpa_connection_get_string           (GObject *obj,
                                                         guint handle);
TpaHandle*          tpa_connection_get_handle           (GObject *obj,
                                                         TpaConnectionHandleType type,
                                                         const gchar *string);
#define             tpa_connection_get_contact_handle   (conn, string)
#define             tpa_connection_get_list_handle      (conn, string)
#define             tpa_connection_get_room_handle      (conn, string)
void                tpa_connection_signal_new_channel   (GObject *obj,
                                                         const gchar *obj_path,
                                                         TpaChannelType type,
                                                         const gchar *string,
                                                         gboolean suppress_handler);
void                tpa_connection_signal_status_changed
                                                        (GObject *obj,
                                                         TpaConnectionStatus status,
                                                         TpaConnectionStatusReason reason);

Object Hierarchy


  GInterface
   +----TpaIConnection

Known Implementations

TpaIConnection is implemented by TpaAccount.

Signals


  "disconnected"                                   : Run Last / Has Details
  "new-channel"                                    : Run Last / Has Details
  "status-changed"                                 : Run Last / Has Details

Description

Details

TpaIConnection

typedef struct _TpaIConnection TpaIConnection;


tpa_connection_init ()

void                tpa_connection_init                 (TpaIConnection *iface,
                                                         gpointer data);

iface :
data :

tpa_connection_finalize ()

void                tpa_connection_finalize             (GObject *obj);

obj :

tpa_connection_get_string ()

gchar*              tpa_connection_get_string           (GObject *obj,
                                                         guint handle);

Returned string must be freed.

obj :
handle :
Returns :

tpa_connection_get_handle ()

TpaHandle*          tpa_connection_get_handle           (GObject *obj,
                                                         TpaConnectionHandleType type,
                                                         const gchar *string);

Get handle for given string, if it is not available yet create one. Given string must be normalized to protocol.

obj :
type :
string :
Returns :

tpa_connection_get_contact_handle()

#define             tpa_connection_get_contact_handle(conn, string)

conn :
string :

tpa_connection_get_list_handle()

#define             tpa_connection_get_list_handle(conn, string)

conn :
string :

tpa_connection_get_room_handle()

#define             tpa_connection_get_room_handle(conn, string)

conn :
string :

tpa_connection_signal_new_channel ()

void                tpa_connection_signal_new_channel   (GObject *obj,
                                                         const gchar *obj_path,
                                                         TpaChannelType type,
                                                         const gchar *string,
                                                         gboolean suppress_handler);

Implements DBus signal NewChannel on interface org.freedesktop.Telepathy.Connection

obj :
obj_path :
type :
string :
suppress_handler :

tpa_connection_signal_status_changed ()

void                tpa_connection_signal_status_changed
                                                        (GObject *obj,
                                                         TpaConnectionStatus status,
                                                         TpaConnectionStatusReason reason);

Implements DBus signal StatusChanged on interface org.freedesktop.Telepathy.Connection

obj :
status :
reason :

Signal Details

The "disconnected" signal

void                user_function                      (TpaIConnection *tpaiconnection,
                                                        gpointer        user_data)           : Run Last / Has Details

tpaiconnection : the object which received the signal.
user_data : user data set when the signal handler was connected.

The "new-channel" signal

void                user_function                      (TpaIConnection  *tpaiconnection,
                                                        DBusGObjectPath *arg1,
                                                        gchar           *arg2,
                                                        guint            arg3,
                                                        guint            arg4,
                                                        gboolean         arg5,
                                                        gpointer         user_data)           : Run Last / Has Details

tpaiconnection : the object which received the signal.
arg1 :
arg2 :
arg3 :
arg4 :
arg5 :
user_data : user data set when the signal handler was connected.

The "status-changed" signal

void                user_function                      (TpaIConnection *tpaiconnection,
                                                        guint           arg1,
                                                        guint           arg2,
                                                        gpointer        user_data)           : Run Last / Has Details

tpaiconnection : the object which received the signal.
arg1 :
arg2 :
user_data : user data set when the signal handler was connected.