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

pending-string.h

    00001
    00023 #ifndef _TelepathyQt_pending_string_h_HEADER_GUARD_
    00024 #define _TelepathyQt_pending_string_h_HEADER_GUARD_
    00025
    00026 #ifndef IN_TP_QT_HEADER
    00027 #error IN_TP_QT_HEADER
    00028 #endif
    00029
    00030 #include <TelepathyQt/PendingOperation>
    00031
    00032 #include <QString>
    00033
    00034 namespace Tp
    00035 {
    00036
    00037 class TP_QT_EXPORT PendingString : public PendingOperation
    00038 {
    00039     Q_OBJECT
    00040     Q_DISABLE_COPY(PendingString);
    00041
    00042 public:
    00043     PendingString(QDBusPendingCall call, const SharedPtr<RefCounted> &object);
    00044     ~PendingString();
    00045
    00046     QString result() const;
    00047
    00048 protected:
    00049     void setResult(const QString &result);
    00050
    00051 private Q_SLOTS:
    00052     TP_QT_NO_EXPORT void watcherFinished(QDBusPendingCallWatcher *watcher);
    00053
    00054 private:
    00055     friend class ProtocolInfo;
    00056
    00057     TP_QT_NO_EXPORT PendingString(const QString &errorName, const QString &errorMessage);
    00058
    00059     struct Private;
    00060     friend struct Private;
    00061     Private *mPriv;
    00062 };
    00063
    00064 } // Tp
    00065
    00066 #endif