Home · All Classes · All Namespaces · Modules · Functions · Files
pending-string.h
1 
23 #ifndef _TelepathyQt_pending_string_h_HEADER_GUARD_
24 #define _TelepathyQt_pending_string_h_HEADER_GUARD_
25 
26 #ifndef IN_TP_QT_HEADER
27 #error IN_TP_QT_HEADER
28 #endif
29 
30 #include <TelepathyQt/PendingOperation>
31 
32 #include <QString>
33 
34 namespace Tp
35 {
36 
37 class TP_QT_EXPORT PendingString : public PendingOperation
38 {
39  Q_OBJECT
40  Q_DISABLE_COPY(PendingString);
41 
42 public:
43  PendingString(QDBusPendingCall call, const SharedPtr<RefCounted> &object);
44  ~PendingString();
45 
46  QString result() const;
47 
48 protected:
49  void setResult(const QString &result);
50 
51 private Q_SLOTS:
52  TP_QT_NO_EXPORT void watcherFinished(QDBusPendingCallWatcher *watcher);
53 
54 private:
55  friend class ProtocolInfo;
56 
57  TP_QT_NO_EXPORT PendingString(const QString &errorName, const QString &errorMessage);
58 
59  struct Private;
60  friend struct Private;
61  Private *mPriv;
62 };
63 
64 } // Tp
65 
66 #endif
The PendingOperation class is a base class for pending asynchronous operations.
Definition: pending-operation.h:45
The PendingString class is a generic subclass of PendingOperation representing a pending D-Bus method...
Definition: pending-string.h:37
The ProtocolInfo class represents a Telepathy Protocol.
Definition: protocol-info.h:46
Definition: abstract-adaptor.cpp:31
The SharedPtr class is a pointer to an explicitly shared object.
Definition: shared-ptr.h:39


Copyright © 2008-2011 Collabora Ltd. and Nokia Corporation
Telepathy-Qt 0.9.7