00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef _TelepathyQt4_cli_pending_handles_h_HEADER_GUARD_
00023 #define _TelepathyQt4_cli_pending_handles_h_HEADER_GUARD_
00024
00025 #ifndef IN_TELEPATHY_QT4_HEADER
00026 #error IN_TELEPATHY_QT4_HEADER
00027 #endif
00028
00048 namespace Telepathy
00049 {
00050 namespace Client
00051 {
00052 class PendingHandles;
00053 }
00054 }
00055
00056 #include <TelepathyQt4/Client/PendingOperation>
00057
00058 #include <QStringList>
00059
00060 #include <TelepathyQt4/Types>
00061
00062 namespace Telepathy
00063 {
00064 namespace Client
00065 {
00066
00067 class Connection;
00068 class ReferencedHandles;
00069
00080 class PendingHandles : public PendingOperation
00081 {
00082 Q_OBJECT
00083 Q_DISABLE_COPY(PendingHandles)
00084
00085 public:
00089 ~PendingHandles();
00090
00096 Connection* connection() const;
00097
00103 uint handleType() const;
00104
00113 bool isRequest() const;
00114
00123 bool isReference() const;
00124
00132 const QStringList& namesRequested() const;
00133
00141 const UIntList& handlesToReference() const;
00142
00155 ReferencedHandles handles() const;
00156
00157 private Q_SLOTS:
00158 void onCallFinished(QDBusPendingCallWatcher* watcher);
00159
00160 private:
00161 friend class Connection;
00162
00163 PendingHandles(Connection* connection, uint handleType, const QStringList& names);
00164 PendingHandles(Connection* connection, uint handleType, const UIntList& handles, const UIntList& alreadyHeld);
00165
00166 struct Private;
00167 friend struct Private;
00168 Private *mPriv;
00169 };
00170
00171 }
00172 }
00173
00174 #endif