#include <TelepathyQt4/Client/PendingContactAttributes>
Public Member Functions | |
~PendingContactAttributes () | |
Connection * | connection () const |
const UIntList & | contactsRequested () const |
const QStringList & | interfacesRequested () const |
bool | shouldReference () const |
ReferencedHandles | validHandles () const |
UIntList | invalidHandles () const |
ContactAttributesMap | attributes () const |
Friends | |
class | Connection |
struct | Private |
Telepathy::Client::PendingContactAttributes::~PendingContactAttributes | ( | ) |
Class destructor.
ContactAttributesMap Telepathy::Client::PendingContactAttributes::attributes | ( | ) | const |
Returns 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.
References Telepathy::Client::PendingOperation::isError(), Telepathy::Client::PendingOperation::isFinished(), and Telepathy::warning().
Connection * Telepathy::Client::PendingContactAttributes::connection | ( | ) | const |
Returns the Connection object through which the request was made.
const UIntList & Telepathy::Client::PendingContactAttributes::contactsRequested | ( | ) | const |
Returns the contacts for which attributes were requested.
const QStringList & Telepathy::Client::PendingContactAttributes::interfacesRequested | ( | ) | const |
Returns the interfaces the corresponding attributes of which were requested.
UIntList Telepathy::Client::PendingContactAttributes::invalidHandles | ( | ) | const |
Returns 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.
References Telepathy::Client::PendingOperation::isError(), Telepathy::Client::PendingOperation::isFinished(), and Telepathy::warning().
bool Telepathy::Client::PendingContactAttributes::shouldReference | ( | ) | const |
Returns 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::getContactAttributes().
Referenced by validHandles().
ReferencedHandles Telepathy::Client::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.
References Telepathy::Client::PendingOperation::isError(), Telepathy::Client::PendingOperation::isFinished(), shouldReference(), and Telepathy::warning().
friend class Connection [friend] |
friend struct Private [friend] |