Home · Modules · All Classes · All Namespaces
Signals | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
Tp::Client::AccountInterfaceAvatarInterface Class Reference

#include <TelepathyQt/AccountManager>

Inherits Tp::AbstractInterface.

Signals

void AvatarChanged ()
 
- Signals inherited from Tp::AbstractInterface
void propertiesChanged (const QVariantMap &changedProperties, const QStringList &invalidatedProperties)
 

Public Member Functions

 AccountInterfaceAvatarInterface (const QString &busName, const QString &objectPath, QObject *parent=0)
 
 AccountInterfaceAvatarInterface (const QDBusConnection &connection, const QString &busName, const QString &objectPath, QObject *parent=0)
 
 AccountInterfaceAvatarInterface (Tp::DBusProxy *proxy)
 
 AccountInterfaceAvatarInterface (const Tp::Client::AccountInterface &mainInterface)
 
 AccountInterfaceAvatarInterface (const Tp::Client::AccountInterface &mainInterface, QObject *parent)
 
Tp::PendingVariantrequestPropertyAvatar () const
 
Tp::PendingOperationsetPropertyAvatar (Tp::Avatar newValue)
 
Tp::PendingVariantMaprequestAllProperties () const
 
- Public Member Functions inherited from Tp::AbstractInterface
virtual ~AbstractInterface ()
 
bool isValid () const
 
QString invalidationReason () const
 
QString invalidationMessage () const
 
void setMonitorProperties (bool monitorProperties)
 
bool isMonitoringProperties () const
 

Static Public Member Functions

static QLatin1String staticInterfaceName ()
 

Protected Member Functions

virtual void invalidate (Tp::DBusProxy *, const QString &, const QString &)
 
- Protected Member Functions inherited from Tp::AbstractInterface
 AbstractInterface (DBusProxy *proxy, const QLatin1String &interface)
 
 AbstractInterface (const QString &busName, const QString &path, const QLatin1String &interface, const QDBusConnection &connection, QObject *parent)
 
PendingVariantinternalRequestProperty (const QString &name) const
 
PendingOperationinternalSetProperty (const QString &name, const QVariant &newValue)
 
PendingVariantMapinternalRequestAllProperties () const
 

Additional Inherited Members

- Protected Slots inherited from Tp::AbstractInterface

Detailed Description

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

Constructor & Destructor Documentation

◆ AccountInterfaceAvatarInterface() [1/5]

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

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

Parameters
busNameName of the service the object is on.
objectPathPath to the object on the service.
parentPassed to the parent class constructor.

◆ AccountInterfaceAvatarInterface() [2/5]

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

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

Parameters
connectionThe bus via which the object can be reached.
busNameName of the service the object is on.
objectPathPath to the object on the service.
parentPassed to the parent class constructor.

◆ AccountInterfaceAvatarInterface() [3/5]

Tp::Client::AccountInterfaceAvatarInterface::AccountInterfaceAvatarInterface ( Tp::DBusProxy proxy)

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

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

◆ AccountInterfaceAvatarInterface() [4/5]

Tp::Client::AccountInterfaceAvatarInterface::AccountInterfaceAvatarInterface ( const Tp::Client::AccountInterface mainInterface)
explicit

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

Parameters
mainInterfaceThe proxy to use.

◆ AccountInterfaceAvatarInterface() [5/5]

Tp::Client::AccountInterfaceAvatarInterface::AccountInterfaceAvatarInterface ( const Tp::Client::AccountInterface mainInterface,
QObject *  parent 
)

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

Parameters
mainInterfaceThe proxy to use.
parentPassed to the parent class constructor.

Member Function Documentation

◆ staticInterfaceName()

static QLatin1String Tp::Client::AccountInterfaceAvatarInterface::staticInterfaceName ( )
inlinestatic

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

Returns
The D-Bus interface name.

◆ requestPropertyAvatar()

Tp::PendingVariant* Tp::Client::AccountInterfaceAvatarInterface::requestPropertyAvatar ( ) const
inline

Asynchronous getter for the remote object property Avatar of type Tp::Avatar.

The avatar to set on this account for display to other contacts, represented as a structure containing the bytes of the avatar, and the MIME type as a string; may be set to an empty byte-array and an empty string to indicate no avatar. When the account becomes connected, the account manager SHOULD set this avatar using SetAvatar if appropriate.

Returns
A pending variant which will emit finished when the property has been retrieved.

◆ setPropertyAvatar()

Tp::PendingOperation* Tp::Client::AccountInterfaceAvatarInterface::setPropertyAvatar ( Tp::Avatar  newValue)
inline

Asynchronous setter for the remote object property Avatar of type Tp::Avatar.

The avatar to set on this account for display to other contacts, represented as a structure containing the bytes of the avatar, and the MIME type as a string; may be set to an empty byte-array and an empty string to indicate no avatar. When the account becomes connected, the account manager SHOULD set this avatar using SetAvatar if appropriate.

Returns
A pending operation which will emit finished when the property has been set.

◆ requestAllProperties()

Tp::PendingVariantMap* Tp::Client::AccountInterfaceAvatarInterface::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.

◆ AvatarChanged

void Tp::Client::AccountInterfaceAvatarInterface::AvatarChanged ( )
signal

Represents the signal AvatarChanged on the remote object.

Emitted when the Avatar property changes. The avatar itself is deliberately not included in this signal, to reduce bus traffic in the (likely common) case where no running application cares about the user's own avatar.

◆ invalidate()

void Tp::Client::AccountInterfaceAvatarInterface::invalidate ( Tp::DBusProxy proxy,
const QString &  error,
const QString &  message 
)
protectedvirtual

Reimplemented from Tp::AbstractInterface.