summaryrefslogtreecommitdiffstats
path: root/src/scripttools/debugging/qscriptdebuggervalueproperty.cpp
diff options
context:
space:
mode:
authorKent Hansen <khansen@trolltech.com>2009-06-12 11:03:59 (GMT)
committerKent Hansen <khansen@trolltech.com>2009-06-12 11:05:57 (GMT)
commit643e58248a22e54134c99d2ba70371f7f57b4040 (patch)
tree022717cfd3898003897f80ccb8acfce49a1a2f94 /src/scripttools/debugging/qscriptdebuggervalueproperty.cpp
parent6a408b6c6d00a76c74a4d612d85996d7ad3f03ba (diff)
downloadQt-643e58248a22e54134c99d2ba70371f7f57b4040.zip
Qt-643e58248a22e54134c99d2ba70371f7f57b4040.tar.gz
Qt-643e58248a22e54134c99d2ba70371f7f57b4040.tar.bz2
add streaming ops for scriptdebugger object deltas
Needed for remote debugging.
Diffstat (limited to 'src/scripttools/debugging/qscriptdebuggervalueproperty.cpp')
-rw-r--r--src/scripttools/debugging/qscriptdebuggervalueproperty.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/scripttools/debugging/qscriptdebuggervalueproperty.cpp b/src/scripttools/debugging/qscriptdebuggervalueproperty.cpp
index 723e304..51133bc 100644
--- a/src/scripttools/debugging/qscriptdebuggervalueproperty.cpp
+++ b/src/scripttools/debugging/qscriptdebuggervalueproperty.cpp
@@ -41,6 +41,7 @@
#include "qscriptdebuggervalueproperty_p.h"
#include "qscriptdebuggervalue_p.h"
+#include "qscriptdebuggerobjectsnapshotdelta_p.h"
#include <QtCore/qatomic.h>
#include <QtCore/qdatastream.h>
@@ -225,4 +226,20 @@ QDataStream &operator>>(QDataStream &in, QScriptDebuggerValueProperty &property)
return in;
}
+QDataStream &operator<<(QDataStream &out, const QScriptDebuggerObjectSnapshotDelta &delta)
+{
+ out << delta.removedProperties;
+ out << delta.changedProperties;
+ out << delta.addedProperties;
+ return out;
+}
+
+QDataStream &operator>>(QDataStream &in, QScriptDebuggerObjectSnapshotDelta &delta)
+{
+ in >> delta.removedProperties;
+ in >> delta.changedProperties;
+ in >> delta.addedProperties;
+ return in;
+}
+
QT_END_NAMESPACE