Ignore:
Timestamp:
Aug 2, 2010, 9:27:30 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.3 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/dbus/qdbuspendingcall_p.h

    r651 r769  
    5858#include <qpointer.h>
    5959#include <qlist.h>
     60
     61
    6062
    6163#include "qdbusmessage.h"
     
    7274{
    7375public:
    74     QDBusMessage sentMessage;
    75     QDBusMessage replyMessage;
    76 //    QDBusMessage pendingReplyMessage; // used in the local loop
    77     QDBusPendingCallWatcherHelper *watcherHelper;
    78     DBusPendingCall *pending;
    79     QDBusConnectionPrivate *connection;
     76    // {
     77    //     set only during construction:
     78    const QDBusMessage sentMessage;
     79    QDBusConnectionPrivate * const connection;
    8080
    81     QString expectedReplySignature;
    82     int expectedReplyCount;
    83 
    84     // for the callback
     81    // for the callback mechanism (see setReplyCallback and QDBusConnectionPrivate::sendWithReplyAsync)
    8582    QPointer<QObject> receiver;
    8683    QList<int> metaTypes;
     
    8885
    8986    bool autoDelete;
     87
    9088
    91     QDBusPendingCallPrivate() : watcherHelper(0), pending(0), autoDelete(false)
     89    mutable QMutex mutex;
     90    QWaitCondition waitForFinishedCondition;
     91
     92    // {
     93    //    protected by the mutex above:
     94    QDBusPendingCallWatcherHelper *watcherHelper;
     95    QDBusMessage replyMessage;
     96    DBusPendingCall *pending;
     97    volatile bool waitingForFinished;
     98
     99    QString expectedReplySignature;
     100    int expectedReplyCount;
     101    // }
     102
     103    QDBusPendingCallPrivate(const QDBusMessage &sent, QDBusConnectionPrivate *connection)
     104        : sentMessage(sent), connection(connection), autoDelete(false), watcherHelper(0), pending(0), waitingForFinished(false)
    92105    { }
    93106    ~QDBusPendingCallPrivate();
Note: See TracChangeset for help on using the changeset viewer.