Copyright (C) 2007 Collabora Limited

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

A dictionary mapping information names to the desired values. This replaces any existing buddy properties completely: any keys which were previously present, but are not present in this dictionary, are deleted.

Set the information of the local user for this connection.

This method may be called before Connect(), in which case the given properties will be advertised as soon as possible after connection (possibly immediately).

An integer handle for the contact to request his properties for A dictionary mapping information names to their values Get the properties of a particular contact. An integer handle representing the contact A dictionary mapping property names to their new values. All properties are included, not just those that have changed. Signal emitted when the properties of a contact from your 'subscribe' contact list are changed. A struct containing:
  • the identifier of the activity
  • the room handle of the activity channel
An array of structs containing:
  • the identifier of the activity
  • the room handle of the activity channel
Set the activities of the local user for this connection.
An activity id A room handle Advertise an activity associated to a muc room

Once an activity shares itself, needs to be advertised if it's not private. SetActivities could be used for this but it would mean that the activity would need to call GetActivities then add itself.

An integer handle for the contact whose activities are to be returned An array of structs containing:
  • the identifier of the activity
  • the room handle of the activity channel
Get the activities of a particular contact.
An integer handle representing the contact An array of structs containing:
  • the identifier of the activity
  • the handle of the activity channel
Signal emitted when the activities of a contact from your 'subscribe' contact list are changed.
The identifier of the activity, or the empty string if there is no current activity The room handle of the activity channel, or 0 if there is no current activity Set the current activity of the local user for this connection. An integer handle for the contact whose current activity is to be returned The identifier of the activity, or "" if there is no current activity The room handle of the activity, or 0 if there is no current activity Get the current activity of a particular contact. An integer handle representing the contact The identifier of the activity, or "" if there is no current activity The room handle of the activity channel, or 0 if there is no current activity Signal emitted when the current activity of a contact from your 'subscribe' contact list is changed.

An interface on connections to associate OLPC buddy information with contacts, providing methods for the user to set their own information and retrieve information of contacts. The user is automatically notified when information of contacts that are in his 'subscribe' contact list change.

The following types and names are used to request and set information (except for activities):

s:color
The color name of the buddy. Format used is #RRGGBB,#RRGGBB (stroke,fill).
ay:key
The public key of the buddy.
s:jid
For link-local connections, the JID of the buddy's server account.

Activities are represented by a struct containing:

  • the identifier of the activity
  • the handle of the activity channel