Home · All Classes · All Namespaces · Modules · Functions · Files |
The PendingContactAttributes class represents the parameters of and the reply to an asynchronous request for raw contact attributes, as used in the ConnectionLowlevel::contactAttributes() low-level convenience method wrapping the Client::ConnectionInterfaceContactsInterface::GetContactAttributes() D-Bus method. More...
#include <TelepathyQt/PendingContactAttributes>
Inherits Tp::PendingOperation.
Public Member Functions | |
~PendingContactAttributes () | |
ConnectionPtr | connection () const |
const UIntList & | contactsRequested () const |
const QStringList & | interfacesRequested () const |
bool | shouldReference () const |
ReferencedHandles | validHandles () const |
UIntList | invalidHandles () const |
ContactAttributesMap | attributes () const |
Public Member Functions inherited from Tp::PendingOperation | |
virtual | ~PendingOperation () |
bool | isFinished () const |
bool | isValid () const |
bool | isError () const |
QString | errorName () const |
QString | errorMessage () const |
Additional Inherited Members | |
Signals inherited from Tp::PendingOperation | |
void | finished (Tp::PendingOperation *operation) |
Protected Slots inherited from Tp::PendingOperation | |
void | setFinished () |
void | setFinishedWithError (const QString &name, const QString &message) |
void | setFinishedWithError (const QDBusError &error) |
Protected Member Functions inherited from Tp::PendingOperation | |
PendingOperation (const SharedPtr< RefCounted > &object) | |
SharedPtr< RefCounted > | object () const |
The PendingContactAttributes class represents the parameters of and the reply to an asynchronous request for raw contact attributes, as used in the ConnectionLowlevel::contactAttributes() low-level convenience method wrapping the Client::ConnectionInterfaceContactsInterface::GetContactAttributes() D-Bus method.
Tp::PendingContactAttributes::~PendingContactAttributes | ( | ) |
Class destructor.
ConnectionPtr Tp::PendingContactAttributes::connection | ( | ) | const |
Return the connection through which the request was made.
const UIntList & Tp::PendingContactAttributes::contactsRequested | ( | ) | const |
Return the contacts for which attributes were requested.
const QStringList & Tp::PendingContactAttributes::interfacesRequested | ( | ) | const |
Return the interfaces the corresponding attributes of which were requested.
bool Tp::PendingContactAttributes::shouldReference | ( | ) | const |
Return whether it was requested that the contact handles should be referenced in addition to fetching their attributes. This corresponds to the reference
argument to Connection::contactAttributes().
ReferencedHandles Tp::PendingContactAttributes::validHandles | ( | ) | const |
If referencing the handles was requested (as indicated by shouldReference()), returns the now-referenced handles resulting from the operation. If the operation has not (yet) finished successfully (isFinished() returns false
), or referencing was not requested, the return value is undefined.
Even if referencing was requested, the list will not always contain all of the handles in contactsRequested(), only the ones which were valid. The valid handles will be in the same order as in contactsRequested(), though.
UIntList Tp::PendingContactAttributes::invalidHandles | ( | ) | const |
Return the handles which were found to be invalid while processing the operation. If the operation has not (yet) finished successfully (isFinished() returns false
), the return value is undefined.
ContactAttributesMap Tp::PendingContactAttributes::attributes | ( | ) | const |
Return a dictionary mapping the valid contact handles in contactsRequested() (when also referencing, this means the contents of validHandles()) to contact attributes. If the operation has not (yet) finished successfully (isFinished() returns false
), the return value is undefined.
Copyright © 2008-2011 Collabora Ltd. and Nokia Corporation | Telepathy-Qt 0.9.7 |