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

Base class for implementations of Connection.Interface.Avatars. More...

#include <TelepathyQt/BaseConnection>

Inherits Tp::AbstractConnectionInterface.

Public Types

typedef Callback2< Tp::AvatarTokenMap, const Tp::UIntList &, DBusError * > GetKnownAvatarTokensCallback
typedef Callback2< void, const Tp::UIntList &, DBusError * > RequestAvatarsCallback
typedef Callback3< QString, const QByteArray &, const QString &, DBusError * > SetAvatarCallback
typedef Callback1< void, DBusError * > ClearAvatarCallback

Public Member Functions

virtual ~BaseConnectionAvatarsInterface ()
AvatarSpec avatarDetails () const
void setAvatarDetails (const AvatarSpec &spec)
void setGetKnownAvatarTokensCallback (const GetKnownAvatarTokensCallback &cb)
Tp::AvatarTokenMap getKnownAvatarTokens (const Tp::UIntList &contacts, DBusError *error)
void setRequestAvatarsCallback (const RequestAvatarsCallback &cb)
void requestAvatars (const Tp::UIntList &contacts, DBusError *error)
void setSetAvatarCallback (const SetAvatarCallback &cb)
QString setAvatar (const QByteArray &avatar, const QString &mimeType, DBusError *error)
void setClearAvatarCallback (const ClearAvatarCallback &cb)
void clearAvatar (DBusError *error)
void avatarUpdated (uint contact, const QString &newAvatarToken)
void avatarRetrieved (uint contact, const QString &token, const QByteArray &avatar, const QString &type)
- Public Member Functions inherited from Tp::AbstractConnectionInterface
 AbstractConnectionInterface (const QString &interfaceName)
virtual ~AbstractConnectionInterface ()
- Public Member Functions inherited from Tp::AbstractDBusServiceInterface
 AbstractDBusServiceInterface (const QString &interfaceName)
virtual ~AbstractDBusServiceInterface ()
QString interfaceName () const
virtual QVariantMap immutableProperties () const
DBusObjectdbusObject () const
bool isRegistered () const
bool notifyPropertyChanged (const QString &propertyName, const QVariant &propertyValue)
- Public Member Functions inherited from Tp::Object
virtual ~Object ()
- Public Member Functions inherited from Tp::RefCounted
 RefCounted ()
virtual ~RefCounted ()

Static Public Member Functions

static BaseConnectionAvatarsInterfacePtr create ()
template<typename BaseConnectionAvatarsInterfaceSubclass >
static SharedPtr< BaseConnectionAvatarsInterfaceSubclass > create ()

Protected Member Functions

 BaseConnectionAvatarsInterface ()
- Protected Member Functions inherited from Tp::AbstractConnectionInterface
virtual void setBaseConnection (BaseConnection *connection)
- Protected Member Functions inherited from Tp::AbstractDBusServiceInterface
virtual bool registerInterface (DBusObject *dbusObject)
- Protected Member Functions inherited from Tp::Object
 Object ()
void notify (const char *propertyName)

Additional Inherited Members

- Signals inherited from Tp::Object
void propertyChanged (const QString &propertyName)

Detailed Description

Base class for implementations of Connection.Interface.Avatars.

Member Typedef Documentation

◆ GetKnownAvatarTokensCallback

◆ RequestAvatarsCallback

◆ SetAvatarCallback

typedef Callback3<QString, const QByteArray &, const QString &, DBusError*> Tp::BaseConnectionAvatarsInterface::SetAvatarCallback

◆ ClearAvatarCallback

Constructor & Destructor Documentation

◆ ~BaseConnectionAvatarsInterface()

Tp::BaseConnectionAvatarsInterface::~BaseConnectionAvatarsInterface ( )

Class destructor.

◆ BaseConnectionAvatarsInterface()

Tp::BaseConnectionAvatarsInterface::BaseConnectionAvatarsInterface ( )

Class constructor.

Member Function Documentation

◆ create() [1/2]

static BaseConnectionAvatarsInterfacePtr Tp::BaseConnectionAvatarsInterface::create ( )

◆ create() [2/2]

template<typename BaseConnectionAvatarsInterfaceSubclass >
static SharedPtr<BaseConnectionAvatarsInterfaceSubclass> Tp::BaseConnectionAvatarsInterface::create ( )

◆ avatarDetails()

AvatarSpec Tp::BaseConnectionAvatarsInterface::avatarDetails ( ) const

◆ setAvatarDetails()

void Tp::BaseConnectionAvatarsInterface::setAvatarDetails ( const AvatarSpec spec)

◆ setGetKnownAvatarTokensCallback()

void Tp::BaseConnectionAvatarsInterface::setGetKnownAvatarTokensCallback ( const GetKnownAvatarTokensCallback cb)

◆ getKnownAvatarTokens()

Tp::AvatarTokenMap Tp::BaseConnectionAvatarsInterface::getKnownAvatarTokens ( const Tp::UIntList contacts,
DBusError error 

◆ setRequestAvatarsCallback()

void Tp::BaseConnectionAvatarsInterface::setRequestAvatarsCallback ( const RequestAvatarsCallback cb)

◆ requestAvatars()

void Tp::BaseConnectionAvatarsInterface::requestAvatars ( const Tp::UIntList contacts,
DBusError error 

◆ setSetAvatarCallback()

void Tp::BaseConnectionAvatarsInterface::setSetAvatarCallback ( const SetAvatarCallback cb)

◆ setAvatar()

QString Tp::BaseConnectionAvatarsInterface::setAvatar ( const QByteArray &  avatar,
const QString &  mimeType,
DBusError error 

◆ setClearAvatarCallback()

void Tp::BaseConnectionAvatarsInterface::setClearAvatarCallback ( const ClearAvatarCallback cb)

◆ clearAvatar()

void Tp::BaseConnectionAvatarsInterface::clearAvatar ( DBusError error)

◆ avatarUpdated()

void Tp::BaseConnectionAvatarsInterface::avatarUpdated ( uint  contact,
const QString &  newAvatarToken 

◆ avatarRetrieved()

void Tp::BaseConnectionAvatarsInterface::avatarRetrieved ( uint  contact,
const QString &  token,
const QByteArray &  avatar,
const QString &  type