get_self_handle


Description:

[ Version ( deprecated = true , since = "0.7.26" ) ]
public Handle get_self_handle ()

Warning: get_self_handle is deprecated.

Return the CONTACT handle of the local user on this connection, or 0 if the self-handle is not known yet or the connection has become invalid (the TpProxy::invalidated signal).

Note:

Use get_self_contact instead.

The returned handle is not necessarily valid forever (the notify::self-handle signal will be emitted if it changes, which can happen on protocols such as IRC). Construct a Contact object if you want to track the local user's identifier in the protocol, or other information like their presence status, over time.

Parameters:

this

a connection

Returns:

the value of the TpConnection:self-handle property