pending-contact-attributes.h Source File

| Home · All Classes · All Namespaces · Modules · Functions · Files

pending-contact-attributes.h
1
23 #ifndef _TelepathyQt_pending_contact_attributes_h_HEADER_GUARD_
24 #define _TelepathyQt_pending_contact_attributes_h_HEADER_GUARD_
25
26 #ifndef IN_TP_QT_HEADER
27 #error IN_TP_QT_HEADER
28 #endif
29
30 #include <TelepathyQt/PendingOperation>
31 #include <TelepathyQt/Types>
32 #include <TelepathyQt/Constants>
33 #include <TelepathyQt/Types>
34
35 namespace Tp
36 {
37
38 class ReferencedHandles;
39
40 class TP_QT_EXPORT PendingContactAttributes : public PendingOperation
41 {
42 Q_OBJECT
43 Q_DISABLE_COPY(PendingContactAttributes)
44
45 public:
46 ~PendingContactAttributes();
47
48 ConnectionPtr connection() const;
49
50 const UIntList &contactsRequested() const;
51 const QStringList &interfacesRequested() const;
52 bool shouldReference() const;
53
54 ReferencedHandles validHandles() const;
55 UIntList invalidHandles() const;
56 ContactAttributesMap attributes() const;
57
58 private Q_SLOTS:
59 TP_QT_NO_EXPORT void onCallFinished(QDBusPendingCallWatcher *watcher);
60
61 private:
62 friend class ConnectionLowlevel;
63
64 TP_QT_NO_EXPORT PendingContactAttributes(const ConnectionPtr &connection,
65 const UIntList &handles,
66 const QStringList &interfaces, bool reference);
67
68 TP_QT_NO_EXPORT void failImmediately(const QString &error, const QString &errorMessage);
69
70 struct Private;
71 friend struct Private;
72 Private *mPriv;
73 };
74
75 } // Tp
76
77 #endif
Tp::PendingOperation
The PendingOperation class is a base class for pending asynchronous operations.
Definition: pending-operation.h:45
Tp::UIntList
Definition: build/TelepathyQt/_gen/types.h:101
Tp::ReferencedHandles
Helper container for safe management of handle lifetimes. Every handle in a ReferencedHandles contain...
Definition: referenced-handles.h:47
Tp::ContactAttributesMap
Definition: build/TelepathyQt/_gen/types.h:950
Tp::ConnectionLowlevel
The ConnectionLowlevel class extends Connection with support to low-level features.
Definition: connection-lowlevel.h:43
Tp::PendingContactAttributes
The PendingContactAttributes class represents the parameters of and the reply to an asynchronous requ...
Definition: pending-contact-attributes.h:40