diff options
author | Paul Lemire <paul.lemire@kdab.com> | 2016-06-08 12:36:11 +0200 |
---|---|---|
committer | Paul Lemire <paul.lemire@kdab.com> | 2016-07-05 05:47:48 +0000 |
commit | 8e317698fd58d7703332d5aae36a266d2efc026c (patch) | |
tree | 41c6b4538b77a3d82b5f558c7fd8bc5fe3a84ced /src/core/aspects/qabstractaspect.cpp | |
parent | 0b85e7ad6a962ad86b5c6a74ec20980e72ef9a57 (diff) |
Add AspectCommandDebugger
Will allow to send command and replies from remote applications to Qt3D.
Also added the class AsynchronousCommandReply which will behave basically
like QNetworkReply for internal commands;
Change-Id: Ia130f96387fb200658eb46a05e581abe9ef78f63
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/core/aspects/qabstractaspect.cpp')
-rw-r--r-- | src/core/aspects/qabstractaspect.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/core/aspects/qabstractaspect.cpp b/src/core/aspects/qabstractaspect.cpp index 25f1d3fd2..13195a798 100644 --- a/src/core/aspects/qabstractaspect.cpp +++ b/src/core/aspects/qabstractaspect.cpp @@ -323,6 +323,29 @@ void QAbstractAspect::onEngineShutdown() { } +namespace Debug { + +AsynchronousCommandReply::AsynchronousCommandReply(const QString &commandName, QObject *parent) + : QObject(parent) + , m_commandName(commandName) + , m_finished(false) +{ +} + +void AsynchronousCommandReply::setFinished(bool replyFinished) +{ + m_finished = replyFinished; + if (m_finished) + emit finished(this); +} + +void AsynchronousCommandReply::setData(const QByteArray &data) +{ + m_data = data; +} + +} // Debug + } // of namespace Qt3DCore |