Telepathy::Client::ConnectionInterfacePresenceInterface Class Reference
[Connection proxies]

#include <TelepathyQt4/Client/Connection>

Inheritance diagram for Telepathy::Client::ConnectionInterfacePresenceInterface:

Inheritance graph
[legend]
Collaboration diagram for Telepathy::Client::ConnectionInterfacePresenceInterface:

Collaboration graph
[legend]

List of all members.

Public Slots

QDBusPendingReply AddStatus (const QString &status, const QVariantMap &parameters)
QDBusPendingReply ClearStatus ()
QDBusPendingReply
< Telepathy::ContactPresences
GetPresence (const Telepathy::UIntList &contacts)
QDBusPendingReply
< Telepathy::StatusSpecMap
GetStatuses ()
QDBusPendingReply RemoveStatus (const QString &status)
QDBusPendingReply RequestPresence (const Telepathy::UIntList &contacts)
QDBusPendingReply SetLastActivityTime (uint time)
QDBusPendingReply SetStatus (const Telepathy::MultipleStatusMap &statuses)

Signals

void PresenceUpdate (const Telepathy::ContactPresences &presence)

Public Member Functions

 ConnectionInterfacePresenceInterface (const QString &serviceName, const QString &objectPath, QObject *parent=0)
 ConnectionInterfacePresenceInterface (const QDBusConnection &connection, const QString &serviceName, const QString &objectPath, QObject *parent=0)
 ConnectionInterfacePresenceInterface (Telepathy::Client::DBusProxy *proxy)
 ConnectionInterfacePresenceInterface (const Telepathy::Client::ConnectionInterface &mainInterface)
 ConnectionInterfacePresenceInterface (const Telepathy::Client::ConnectionInterface &mainInterface, QObject *parent)

Static Public Member Functions

static const char * staticInterfaceName ()

Protected Member Functions

virtual void invalidate (Telepathy::Client::DBusProxy *, const QString &, const QString &)


Detailed Description

Proxy class providing a 1:1 mapping of the D-Bus interface "org.freedesktop.Telepathy.Connection.Interface.Presence."

Constructor & Destructor Documentation

Telepathy::Client::ConnectionInterfacePresenceInterface::ConnectionInterfacePresenceInterface ( const QString &  serviceName,
const QString &  objectPath,
QObject *  parent = 0 
)

Creates a ConnectionInterfacePresenceInterface associated with the given object on the session bus.

Parameters:
serviceName Name of the service the object is on.
objectPath Path to the object on the service.
parent Passed to the parent class constructor.

Telepathy::Client::ConnectionInterfacePresenceInterface::ConnectionInterfacePresenceInterface ( const QDBusConnection &  connection,
const QString &  serviceName,
const QString &  objectPath,
QObject *  parent = 0 
)

Creates a ConnectionInterfacePresenceInterface associated with the given object on the given bus.

Parameters:
connection The bus via which the object can be reached.
serviceName Name of the service the object is on.
objectPath Path to the object on the service.
parent Passed to the parent class constructor.

Telepathy::Client::ConnectionInterfacePresenceInterface::ConnectionInterfacePresenceInterface ( Telepathy::Client::DBusProxy proxy  ) 

Creates a ConnectionInterfacePresenceInterface associated with the same object as the given proxy.

Parameters:
proxy The proxy to use. It will also be the QObject::parent() for this object.

Telepathy::Client::ConnectionInterfacePresenceInterface::ConnectionInterfacePresenceInterface ( const Telepathy::Client::ConnectionInterface mainInterface  )  [explicit]

Creates a ConnectionInterfacePresenceInterface associated with the same object as the given proxy. Additionally, the created proxy will have the same parent as the given proxy.

Parameters:
mainInterface The proxy to use.

Telepathy::Client::ConnectionInterfacePresenceInterface::ConnectionInterfacePresenceInterface ( const Telepathy::Client::ConnectionInterface mainInterface,
QObject *  parent 
)

Creates a ConnectionInterfacePresenceInterface associated with the same object as the given proxy. However, a different parent object can be specified.

Parameters:
mainInterface The proxy to use.
parent Passed to the parent class constructor.


Member Function Documentation

QDBusPendingReply Telepathy::Client::ConnectionInterfacePresenceInterface::AddStatus ( const QString &  status,
const QVariantMap &  parameters 
) [inline, slot]

Begins a call to the D-Bus method "AddStatus" on the remote object.

Request that a single presence status is published for the user, along with any desired parameters. Changes will be indicated by PresenceUpdate signals being emitted.

Parameters:
status The string identifier of the desired status
parameters A dictionary of optional parameter names mapped to their variant-boxed values

References Telepathy::Client::AbstractInterface::invalidationMessage(), and Telepathy::Client::AbstractInterface::invalidationReason().

QDBusPendingReply Telepathy::Client::ConnectionInterfacePresenceInterface::ClearStatus (  )  [inline, slot]

Begins a call to the D-Bus method "ClearStatus" on the remote object.

Request that all of a user's presence statuses be removed. Be aware that this request may simply result in the statuses being replaced by a default available status. Changes will be indicated by PresenceUpdate signals being emitted.

References Telepathy::Client::AbstractInterface::invalidationMessage(), and Telepathy::Client::AbstractInterface::invalidationReason().

QDBusPendingReply<Telepathy::ContactPresences> Telepathy::Client::ConnectionInterfacePresenceInterface::GetPresence ( const Telepathy::UIntList contacts  )  [inline, slot]

Begins a call to the D-Bus method "GetPresence" on the remote object.

Get presence previously emitted by PresenceUpdate for the given contacts. Data is returned in the same structure as the PresenceUpdate signal. Using this method in favour of RequestPresence has the advantage that it will not wake up each client connected to the PresenceUpdate signal.

Parameters:
contacts An array of the contacts whose presence should be obtained
Returns:
Presence information in the same format as for the PresenceUpdate signal

References Telepathy::Client::AbstractInterface::invalidationMessage(), and Telepathy::Client::AbstractInterface::invalidationReason().

QDBusPendingReply<Telepathy::StatusSpecMap> Telepathy::Client::ConnectionInterfacePresenceInterface::GetStatuses (  )  [inline, slot]

Begins a call to the D-Bus method "GetStatuses" on the remote object.

Get a dictionary of the valid presence statuses for this connection. This is only available when online because only some statuses will be available on some servers.

Returns:
A dictionary of string identifiers mapped to a struct for each status, containing: a type value from one of the values above a boolean to indicate if this status may be set on yourself a boolean to indicate if this is an exclusive status which you may not set alongside any other a dictionary of valid optional string argument names mapped to their types

References Telepathy::Client::AbstractInterface::invalidationMessage(), and Telepathy::Client::AbstractInterface::invalidationReason().

virtual void Telepathy::Client::ConnectionInterfacePresenceInterface::invalidate ( Telepathy::Client::DBusProxy ,
const QString &  ,
const QString &   
) [protected, virtual]

void Telepathy::Client::ConnectionInterfacePresenceInterface::PresenceUpdate ( const Telepathy::ContactPresences presence  )  [signal]

Represents the signal "PresenceUpdate" on the remote object.

This signal should be emitted when your own presence has been changed, or the presence of the member of any of the connection's channels has been changed, or when the presence requested by RequestPresence is available.

Parameters:
presence A dictionary of contact handles mapped to a struct containing a UNIX timestamp of the last activity time (in UTC), and a dictionary mapping the contact's current status identifiers to a dictionary of optional parameter names mapped to their variant-boxed values

QDBusPendingReply Telepathy::Client::ConnectionInterfacePresenceInterface::RemoveStatus ( const QString &  status  )  [inline, slot]

Begins a call to the D-Bus method "RemoveStatus" on the remote object.

Request that the given presence status is no longer published for the user. Changes will be indicated by PresenceUpdate signals being emitted. As with ClearStatus, removing a status may actually result in it being replaced by a default available status.

Parameters:
status The string identifier of the status not to publish anymore for the user

References Telepathy::Client::AbstractInterface::invalidationMessage(), and Telepathy::Client::AbstractInterface::invalidationReason().

QDBusPendingReply Telepathy::Client::ConnectionInterfacePresenceInterface::RequestPresence ( const Telepathy::UIntList contacts  )  [inline, slot]

Begins a call to the D-Bus method "RequestPresence" on the remote object.

Request the presence for contacts on this connection. A PresenceUpdate signal will be emitted when they are received. This is not the same as subscribing to the presence of a contact, which must be done using the 'subscription' ContactList, and on some protocols presence information may not be available unless a subscription exists.

Parameters:
contacts An array of the contacts whose presence should be obtained

References Telepathy::Client::AbstractInterface::invalidationMessage(), and Telepathy::Client::AbstractInterface::invalidationReason().

QDBusPendingReply Telepathy::Client::ConnectionInterfacePresenceInterface::SetLastActivityTime ( uint  time  )  [inline, slot]

Begins a call to the D-Bus method "SetLastActivityTime" on the remote object.

Request that the recorded last activity time for the user be updated on the server.

Parameters:
time A UNIX timestamp of the user's last activity time (in UTC)

References Telepathy::Client::AbstractInterface::invalidationMessage(), and Telepathy::Client::AbstractInterface::invalidationReason().

QDBusPendingReply Telepathy::Client::ConnectionInterfacePresenceInterface::SetStatus ( const Telepathy::MultipleStatusMap statuses  )  [inline, slot]

Begins a call to the D-Bus method "SetStatus" on the remote object.

Request that the user's presence be changed to the given statuses and desired parameters. Changes will be reflected by PresenceUpdate signals being emitted. On certain protocols, this method may be called on a newly-created connection which is still in the DISCONNECTED state, and will sign on with the requested status. If the requested status is not available after signing on, NotAvailable will be returned and the connection will remain offline, or if the protocol does not support signing on with a certain status, Disconnected will be returned.

Parameters:
statuses A dictionary mapping status identifiers to dictionaries, which map optional parameter names to their variant-boxed values

References Telepathy::Client::AbstractInterface::invalidationMessage(), and Telepathy::Client::AbstractInterface::invalidationReason().

static const char* Telepathy::Client::ConnectionInterfacePresenceInterface::staticInterfaceName (  )  [inline, static]

Returns the name of the interface "org.freedesktop.Telepathy.Connection.Interface.Presence", which this class represents.

Returns:
The D-Bus interface name.


Generated on Thu Mar 5 18:52:02 2009 for TelepathyQt4-0.1.1 by  doxygen 1.5.8