src/dbus/qdbuspendingreply.cpp
changeset 30 5dc02b23752f
parent 29 b72c6db6890b
child 33 3e2da88830cd
equal deleted inserted replaced
29:b72c6db6890b 30:5dc02b23752f
    41 
    41 
    42 #include "qdbuspendingreply.h"
    42 #include "qdbuspendingreply.h"
    43 #include "qdbuspendingcall_p.h"
    43 #include "qdbuspendingcall_p.h"
    44 #include "qdbusmetatype.h"
    44 #include "qdbusmetatype.h"
    45 
    45 
       
    46 #ifndef QT_NO_DBUS
       
    47 
    46 /*!
    48 /*!
    47     \class QDBusPendingReply
    49     \class QDBusPendingReply
    48     \inmodule QtDBus
    50     \inmodule QtDBus
    49     \since 4.5
    51     \since 4.5
    50 
    52 
   250     QDBusPendingCall::operator=(other);
   252     QDBusPendingCall::operator=(other);
   251 }
   253 }
   252 
   254 
   253 void QDBusPendingReplyData::assign(const QDBusMessage &message)
   255 void QDBusPendingReplyData::assign(const QDBusMessage &message)
   254 {
   256 {
   255     d = new QDBusPendingCallPrivate(QDBusMessage(), 0); // drops the reference to the old one
   257     d = new QDBusPendingCallPrivate; // drops the reference to the old one
   256     d->replyMessage = message;
   258     d->replyMessage = message;
   257 }
   259 }
   258 
   260 
   259 QVariant QDBusPendingReplyData::argumentAt(int index) const
   261 QVariant QDBusPendingReplyData::argumentAt(int index) const
   260 {
   262 {
   269 }
   271 }
   270 
   272 
   271 void QDBusPendingReplyData::setMetaTypes(int count, const int *types)
   273 void QDBusPendingReplyData::setMetaTypes(int count, const int *types)
   272 {
   274 {
   273     Q_ASSERT(d);
   275     Q_ASSERT(d);
   274     QMutexLocker locker(&d->mutex);
       
   275     d->setMetaTypes(count, types);
   276     d->setMetaTypes(count, types);
   276     d->checkReceivedSignature();
   277     d->checkReceivedSignature();
   277 }
   278 }
   278 
   279 
       
   280 #endif // QT_NO_DBUS