Home · All Classes · All Namespaces · Modules · Functions · Files
Public Slots | Signals | Public Member Functions | Static Public Member Functions | Protected Member Functions | Properties

Tp::Client::ConnectionInterfaceAvatarsInterface Class Reference
[Connection proxies]

#include <TelepathyQt4/Connection>

Inherits Tp::AbstractInterface.

List of all members.

Public Slots

Signals

Public Member Functions

Static Public Member Functions

Protected Member Functions

Properties


Detailed Description

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


Constructor & Destructor Documentation

Tp::Client::ConnectionInterfaceAvatarsInterface::ConnectionInterfaceAvatarsInterface ( const QString &  busName,
const QString &  objectPath,
QObject *  parent = 0 
)

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

Parameters:
busName Name of the service the object is on.
objectPath Path to the object on the service.
parent Passed to the parent class constructor.
Tp::Client::ConnectionInterfaceAvatarsInterface::ConnectionInterfaceAvatarsInterface ( const QDBusConnection &  connection,
const QString &  busName,
const QString &  objectPath,
QObject *  parent = 0 
)

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

Parameters:
connection The bus via which the object can be reached.
busName Name of the service the object is on.
objectPath Path to the object on the service.
parent Passed to the parent class constructor.
Tp::Client::ConnectionInterfaceAvatarsInterface::ConnectionInterfaceAvatarsInterface ( Tp::DBusProxy proxy  ) 

Creates a ConnectionInterfaceAvatarsInterface 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.
Tp::Client::ConnectionInterfaceAvatarsInterface::ConnectionInterfaceAvatarsInterface ( const Tp::Client::ConnectionInterface mainInterface  )  [explicit]

Creates a ConnectionInterfaceAvatarsInterface 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.
Tp::Client::ConnectionInterfaceAvatarsInterface::ConnectionInterfaceAvatarsInterface ( const Tp::Client::ConnectionInterface mainInterface,
QObject *  parent 
)

Creates a ConnectionInterfaceAvatarsInterface 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

static const char* Tp::Client::ConnectionInterfaceAvatarsInterface::staticInterfaceName (  )  [inline, static]

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

Returns:
The D-Bus interface name.
TELEPATHY_QT4_DEPRECATED QStringList Tp::Client::ConnectionInterfaceAvatarsInterface::SupportedAvatarMIMETypes (  )  const [inline]

Getter for the remote object property "SupportedAvatarMIMETypes".

Don't use this: it blocks the main loop. Use the asynchronous requestPropertySupportedAvatarMIMETypes() instead.

Returns:
The value of the property, or a default-constructed value if the property is not readable.
Tp::PendingVariant* Tp::Client::ConnectionInterfaceAvatarsInterface::requestPropertySupportedAvatarMIMETypes (  )  const [inline]

Asynchronous getter for the remote object property "SupportedAvatarMIMETypes" of type QStringList.

An array of supported MIME types (e.g. "image/jpeg"). Clients MAY assume that the first type in this array is preferred. This property cannot change after the Connection goes to the Connected state.

Returns:
A pending variant which will emit finished when the property has been retrieved.
TELEPATHY_QT4_DEPRECATED uint Tp::Client::ConnectionInterfaceAvatarsInterface::MinimumAvatarHeight (  )  const [inline]

Getter for the remote object property "MinimumAvatarHeight".

Don't use this: it blocks the main loop. Use the asynchronous requestPropertyMinimumAvatarHeight() instead.

Returns:
The value of the property, or a default-constructed value if the property is not readable.
Tp::PendingVariant* Tp::Client::ConnectionInterfaceAvatarsInterface::requestPropertyMinimumAvatarHeight (  )  const [inline]

Asynchronous getter for the remote object property "MinimumAvatarHeight" of type uint.

The minimum height in pixels of an avatar on this protocol, which MAY be 0. This property cannot change after the Connection goes to the Connected state.

Returns:
A pending variant which will emit finished when the property has been retrieved.
TELEPATHY_QT4_DEPRECATED uint Tp::Client::ConnectionInterfaceAvatarsInterface::MinimumAvatarWidth (  )  const [inline]

Getter for the remote object property "MinimumAvatarWidth".

Don't use this: it blocks the main loop. Use the asynchronous requestPropertyMinimumAvatarWidth() instead.

Returns:
The value of the property, or a default-constructed value if the property is not readable.
Tp::PendingVariant* Tp::Client::ConnectionInterfaceAvatarsInterface::requestPropertyMinimumAvatarWidth (  )  const [inline]

Asynchronous getter for the remote object property "MinimumAvatarWidth" of type uint.

The minimum width in pixels of an avatar on this protocol, which MAY be 0. This property cannot change after the Connection goes to the Connected state.

Returns:
A pending variant which will emit finished when the property has been retrieved.
TELEPATHY_QT4_DEPRECATED uint Tp::Client::ConnectionInterfaceAvatarsInterface::RecommendedAvatarHeight (  )  const [inline]

Getter for the remote object property "RecommendedAvatarHeight".

Don't use this: it blocks the main loop. Use the asynchronous requestPropertyRecommendedAvatarHeight() instead.

Returns:
The value of the property, or a default-constructed value if the property is not readable.
Tp::PendingVariant* Tp::Client::ConnectionInterfaceAvatarsInterface::requestPropertyRecommendedAvatarHeight (  )  const [inline]

Asynchronous getter for the remote object property "RecommendedAvatarHeight" of type uint.

The recommended height in pixels of an avatar on this protocol, or 0 if there is no preferred height. This property cannot change after the Connection goes to the Connected state. In XMPP a recommended width is given by the protocol specification; in proprietary protocols, using the same avatar size as the proprietary client is likely to lead to the best display to other users.

Returns:
A pending variant which will emit finished when the property has been retrieved.
TELEPATHY_QT4_DEPRECATED uint Tp::Client::ConnectionInterfaceAvatarsInterface::RecommendedAvatarWidth (  )  const [inline]

Getter for the remote object property "RecommendedAvatarWidth".

Don't use this: it blocks the main loop. Use the asynchronous requestPropertyRecommendedAvatarWidth() instead.

Returns:
The value of the property, or a default-constructed value if the property is not readable.
Tp::PendingVariant* Tp::Client::ConnectionInterfaceAvatarsInterface::requestPropertyRecommendedAvatarWidth (  )  const [inline]

Asynchronous getter for the remote object property "RecommendedAvatarWidth" of type uint.

The recommended width in pixels of an avatar on this protocol, or 0 if there is no preferred width. This property cannot change after the Connection goes to the Connected state. The rationale is the same as for RecommendedAvatarHeight.

Returns:
A pending variant which will emit finished when the property has been retrieved.
TELEPATHY_QT4_DEPRECATED uint Tp::Client::ConnectionInterfaceAvatarsInterface::MaximumAvatarHeight (  )  const [inline]

Getter for the remote object property "MaximumAvatarHeight".

Don't use this: it blocks the main loop. Use the asynchronous requestPropertyMaximumAvatarHeight() instead.

Returns:
The value of the property, or a default-constructed value if the property is not readable.
Tp::PendingVariant* Tp::Client::ConnectionInterfaceAvatarsInterface::requestPropertyMaximumAvatarHeight (  )  const [inline]

Asynchronous getter for the remote object property "MaximumAvatarHeight" of type uint.

The maximum height in pixels of an avatar on this protocol, or 0 if there is no limit. This property cannot change after the Connection goes to the Connected state.

Returns:
A pending variant which will emit finished when the property has been retrieved.
TELEPATHY_QT4_DEPRECATED uint Tp::Client::ConnectionInterfaceAvatarsInterface::MaximumAvatarWidth (  )  const [inline]

Getter for the remote object property "MaximumAvatarWidth".

Don't use this: it blocks the main loop. Use the asynchronous requestPropertyMaximumAvatarWidth() instead.

Returns:
The value of the property, or a default-constructed value if the property is not readable.
Tp::PendingVariant* Tp::Client::ConnectionInterfaceAvatarsInterface::requestPropertyMaximumAvatarWidth (  )  const [inline]

Asynchronous getter for the remote object property "MaximumAvatarWidth" of type uint.

The maximum width in pixels of an avatar on this protocol, or 0 if there is no limit. This property cannot change after the Connection goes to the Connected state.

Returns:
A pending variant which will emit finished when the property has been retrieved.
TELEPATHY_QT4_DEPRECATED uint Tp::Client::ConnectionInterfaceAvatarsInterface::MaximumAvatarBytes (  )  const [inline]

Getter for the remote object property "MaximumAvatarBytes".

Don't use this: it blocks the main loop. Use the asynchronous requestPropertyMaximumAvatarBytes() instead.

Returns:
The value of the property, or a default-constructed value if the property is not readable.
Tp::PendingVariant* Tp::Client::ConnectionInterfaceAvatarsInterface::requestPropertyMaximumAvatarBytes (  )  const [inline]

Asynchronous getter for the remote object property "MaximumAvatarBytes" of type uint.

The maximum size in bytes of an avatar on this protocol, or 0 if there is no limit. This property cannot change after the Connection goes to the Connected state.

Returns:
A pending variant which will emit finished when the property has been retrieved.
Tp::PendingVariantMap* Tp::Client::ConnectionInterfaceAvatarsInterface::requestAllProperties (  )  const [inline]

Request all of the DBus properties on the interface.

Returns:
A pending variant map which will emit finished when the properties have been retrieved.
QDBusPendingReply<QStringList, ushort, ushort, ushort, ushort, uint> Tp::Client::ConnectionInterfaceAvatarsInterface::GetAvatarRequirements (  )  [inline, slot]

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

Get the required format of avatars on this connection.

Returns:

An array of supported MIME types (eg image/jpeg)

Returns:

The minimum image width in pixels

Returns:

The minimum image height in pixels

Returns:

The maximum image width in pixels, or 0 if there is no limit

Returns:

The maximum image height in pixels, or 0 if there is no limit

Returns:

The maximum image size in bytes, or 0 if there is no limit

QDBusPendingReply<QStringList> Tp::Client::ConnectionInterfaceAvatarsInterface::GetAvatarTokens ( const Tp::UIntList contacts  )  [inline, slot]

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

Get the unique tokens for all of the given contacts' avatars. Using this method in new Telepathy clients is deprecated; use GetKnownAvatarTokens instead.

Parameters:
contacts An array of handles representing contacts
Returns:

An array of avatar tokens or empty strings (if no avatar is set) in the same order as the given array of contact handles

QDBusPendingReply<Tp::AvatarTokenMap> Tp::Client::ConnectionInterfaceAvatarsInterface::GetKnownAvatarTokens ( const Tp::UIntList contacts  )  [inline, slot]

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

Get the unique tokens for the given contacts' avatars. These tokens can be persisted across connections, and should be used by the client to check whether the avatars have been updated. For handles other than the self handle, only tokens that are already known are returned; an empty token means the given contact has no avatar. However, a CM must always have the tokens for the self handle if one is set (even if it is set to no avatar). On protocols where the avatar does not persist between connections, a CM should omit the self handle from the returned map until an avatar is explicitly set or cleared.

Parameters:
contacts An array of handles representing contacts
Returns:

A dictionary of handles mapped to avatar tokens, containing only the known avatar tokens.

QDBusPendingReply<QByteArray, QString> Tp::Client::ConnectionInterfaceAvatarsInterface::RequestAvatar ( uint  contact  )  [inline, slot]

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

Request the avatar for a given contact. Using this method in new Telepathy clients is deprecated; use RequestAvatars instead.

Parameters:
contact An integer handle for the contact to request the avatar for
Returns:

An array of bytes containing the image data

Returns:

A string containing the image MIME type (eg image/jpeg), or empty if unknown

QDBusPendingReply Tp::Client::ConnectionInterfaceAvatarsInterface::RequestAvatars ( const Tp::UIntList contacts  )  [inline, slot]

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

Request avatars for a number of contacts. The AvatarRetrieved signal is emitted for each avatar retrieved. If the handles are valid but retrieving an avatar fails (for any reason, including the contact not having an avatar) the AvatarRetrieved signal is not emitted for that contact.

Parameters:
contacts The contacts to retrieve avatars for
QDBusPendingReply<QString> Tp::Client::ConnectionInterfaceAvatarsInterface::SetAvatar ( const QByteArray &  avatar,
const QString &  MIMEType 
) [inline, slot]

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

Set a new avatar image for this connection. The avatar image must respect the requirements obtained by GetAvatarRequirements.

Parameters:
avatar An array of bytes representing the avatar image data
MIMEType A string representing the image MIME type
Returns:

The string token of the new avatar

QDBusPendingReply Tp::Client::ConnectionInterfaceAvatarsInterface::ClearAvatar (  )  [inline, slot]

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

Remove the avatar image for this connection.

void Tp::Client::ConnectionInterfaceAvatarsInterface::AvatarUpdated ( uint  contact,
const QString &  newAvatarToken 
) [signal]

Represents the signal "AvatarUpdated" on the remote object.

Emitted when the avatar for a contact has been updated, or first discovered on this connection. If the token differs from the token associated with the client's cached avatar for this contact, the new avatar should be requested with RequestAvatars.

Parameters:
contact An integer handle for the contact whose avatar has changed
newAvatarToken Unique token for their new avatar
void Tp::Client::ConnectionInterfaceAvatarsInterface::AvatarRetrieved ( uint  contact,
const QString &  token,
const QByteArray &  avatar,
const QString &  type 
) [signal]

Represents the signal "AvatarRetrieved" on the remote object.

Emitted when the avatar for a contact has been retrieved.

Parameters:
contact The contact whose avatar has been retrieved
token The token corresponding to the avatar
avatar An array of bytes containing the image data
type A string containing the image MIME type (eg image/jpeg), or empty if unknown
void Tp::Client::ConnectionInterfaceAvatarsInterface::invalidate ( Tp::DBusProxy proxy,
const QString &  error,
const QString &  message 
) [protected, virtual]

Reimplemented from Tp::AbstractInterface.


Property Documentation

QStringList Tp::Client::ConnectionInterfaceAvatarsInterface::SupportedAvatarMIMETypes [read]

Represents property "SupportedAvatarMIMETypes" on the remote object.

An array of supported MIME types (e.g. "image/jpeg"). Clients MAY assume that the first type in this array is preferred. This property cannot change after the Connection goes to the Connected state.

uint Tp::Client::ConnectionInterfaceAvatarsInterface::MinimumAvatarHeight [read]

Represents property "MinimumAvatarHeight" on the remote object.

The minimum height in pixels of an avatar on this protocol, which MAY be 0. This property cannot change after the Connection goes to the Connected state.

uint Tp::Client::ConnectionInterfaceAvatarsInterface::MinimumAvatarWidth [read]

Represents property "MinimumAvatarWidth" on the remote object.

The minimum width in pixels of an avatar on this protocol, which MAY be 0. This property cannot change after the Connection goes to the Connected state.

uint Tp::Client::ConnectionInterfaceAvatarsInterface::RecommendedAvatarHeight [read]

Represents property "RecommendedAvatarHeight" on the remote object.

The recommended height in pixels of an avatar on this protocol, or 0 if there is no preferred height. This property cannot change after the Connection goes to the Connected state. In XMPP a recommended width is given by the protocol specification; in proprietary protocols, using the same avatar size as the proprietary client is likely to lead to the best display to other users.

uint Tp::Client::ConnectionInterfaceAvatarsInterface::RecommendedAvatarWidth [read]

Represents property "RecommendedAvatarWidth" on the remote object.

The recommended width in pixels of an avatar on this protocol, or 0 if there is no preferred width. This property cannot change after the Connection goes to the Connected state. The rationale is the same as for RecommendedAvatarHeight.

uint Tp::Client::ConnectionInterfaceAvatarsInterface::MaximumAvatarHeight [read]

Represents property "MaximumAvatarHeight" on the remote object.

The maximum height in pixels of an avatar on this protocol, or 0 if there is no limit. This property cannot change after the Connection goes to the Connected state.

uint Tp::Client::ConnectionInterfaceAvatarsInterface::MaximumAvatarWidth [read]

Represents property "MaximumAvatarWidth" on the remote object.

The maximum width in pixels of an avatar on this protocol, or 0 if there is no limit. This property cannot change after the Connection goes to the Connected state.

uint Tp::Client::ConnectionInterfaceAvatarsInterface::MaximumAvatarBytes [read]

Represents property "MaximumAvatarBytes" on the remote object.

The maximum size in bytes of an avatar on this protocol, or 0 if there is no limit. This property cannot change after the Connection goes to the Connected state.


Copyright © 2008-2010 Collabora Ltd. and Nokia Corporation
Telepathy-Qt4 0.4.4