From 7ba46141a7bfd7469ed1dba1d2938b2b62a10f85 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Fri, 20 Sep 2013 15:51:27 -0400 Subject: TpBaseConnection: Implement SelfID and SelfContactChanged --- spec/Channel.xml | 2 +- spec/Connection.xml | 42 +++++++++++++++++++++++++++++++++++++++++- 2 files changed, 42 insertions(+), 2 deletions(-) (limited to 'spec') diff --git a/spec/Channel.xml b/spec/Channel.xml index e0fa76594..12a486e4c 100644 --- a/spec/Channel.xml +++ b/spec/Channel.xml @@ -390,7 +390,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

On some protocols, the SelfHandle may change (as signalled by Connection.SelfHandleChanged), + namespace="org.freedesktop.Telepathy">Connection.SelfContactChanged), but this property is immutable. Hence, locally-requested channels' InitiatorHandle and InitiatorID may not match the current SelfHandle; Requested can be used to diff --git a/spec/Connection.xml b/spec/Connection.xml index 6a560fc30..ed0243786 100644 --- a/spec/Connection.xml +++ b/spec/Connection.xml @@ -145,6 +145,8 @@ USA.

Clients MAY assume that if the SelfHandle property exists, this signal will be emitted when necessary. + Use SelfContactChanged to get the + new SelfID at the same time @@ -153,13 +155,38 @@ USA.

+ + + Emitted whenever the SelfHandle and + SelfID property + changes. If the connection + is not yet in the CONNECTED state, this signal is not guaranteed + to be emitted. + + Clients MAY assume that if the + SelfHandle and SelfID property exists, this signal will be emitted when + necessary. + + + + The new value of the SelfHandle property. + + + + + The new value of the SelfID property. + + + + The handle which represents the user on this connection, which will remain valid for the lifetime of this connection, or until a change in the user's identifier is signalled by the - SelfHandleChanged signal. + SelfContactChanged signal. If the connection is not yet in the CONNECTED state, the value of this property MAY be zero. @@ -169,6 +196,19 @@ USA.

method.
+ + + The identifier which represents the user on this connection, which will + remain valid for the lifetime of this connection, or until a change + in the user's identifier is signalled by the + SelfContactChanged signal. + If the connection is not yet in the CONNECTED state, the value of + this property MAY be empty string. + + + + -- cgit v1.2.3