/* this slot is used for debugging */ void NetworkService::dbg_connectReply(QDBusPendingCallWatcher *call){ qDebug() << "Got something from service.connect()"; Q_ASSERT(call); QDBusPendingReply<> reply = *call; if (!reply.isFinished()) { qDebug() << "connect() not finished yet"; } if (reply.isError()) { qDebug() << "Reply from service.connect(): " << reply.error().message(); } }
void FileManagerClient::testNewNameJob(const QString &oldFile, const QString &newFile) { QDBusPendingReply<DBusInfoRet> reply = m_fileOperationInterface->NewRenameJob(oldFile, newFile); reply.waitForFinished(); if (reply.isFinished()){ DBusInfoRet result = qdbus_cast<DBusInfoRet>(reply.argumentAt(0)); qDebug() << result; RenameJobInterface* renamejobInterface = new RenameJobInterface(result.ServicePath, result.InterfacePath.path(), QDBusConnection::systemBus()); renamejobInterface->Execute(); }else{ } }
void QOFonoUtil::pendingCheck() { if(pendingNotified) { return; } QDBusPendingReply<> reply = pendingCall; if(!reply.isFinished()) { checkInterval += 10; QTimer::singleShot(checkInterval, this, SLOT(pendingCheck())); } else { pendingNotified = true; emitFinished(pendingReceiver, pendingFinished, pendingCall); } }