summaryrefslogtreecommitdiffstats
path: root/src/remoteobjects/qremoteobjectreplica_p.h
diff options
context:
space:
mode:
authorBrett Stottlemyer <bstottle@ford.com>2015-08-29 20:36:39 -0400
committerBrett Stottlemyer <bstottle@ford.com>2015-08-31 11:58:49 +0000
commit18ab3ee759701c7eff0b824bbc051f0292d71755 (patch)
tree052186f7ec5d01b1a6874ea495abdd3beea64ca1 /src/remoteobjects/qremoteobjectreplica_p.h
parent2a78b851436b5731744184246335f3d3ae446363 (diff)
[internal] Don't use QRemoteObjectPacket
This is a large change, but it is the same thing repeated. QRemoteObjectPacket was a set of types for (de-)serializing QtRO changes to send over the wire. But it required copying the changes to/from the packet before using those changes. This goes directly to/from QDataStream instead. I think it also makes the InitPacket/InitDynamic steps a bit easier to read, and should improve the init performance. Change-Id: I62b1776858ff74a8532c8f2682aa94ac7248a803 Reviewed-by: Björn Breitmeyer <bjoern.breitmeyer@kdab.com>
Diffstat (limited to 'src/remoteobjects/qremoteobjectreplica_p.h')
-rw-r--r--src/remoteobjects/qremoteobjectreplica_p.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/remoteobjects/qremoteobjectreplica_p.h b/src/remoteobjects/qremoteobjectreplica_p.h
index b98b959..2c3d1aa 100644
--- a/src/remoteobjects/qremoteobjectreplica_p.h
+++ b/src/remoteobjects/qremoteobjectreplica_p.h
@@ -82,7 +82,7 @@ public:
virtual bool isReplicaValid() const { return true; }
virtual bool waitForSource(int) { return true; }
virtual bool waitForFinished(const QRemoteObjectPendingCall &, int) { return true; }
- virtual void notifyAboutReply(const QRemoteObjectPackets::QInvokeReplyPacket *) {}
+ virtual void notifyAboutReply(int, const QVariant &) {}
virtual void configurePrivate(QRemoteObjectReplica *);
void emitValidChanged();
void emitInitialized();
@@ -91,7 +91,7 @@ public:
virtual QRemoteObjectPendingCall _q_sendWithReply(QMetaObject::Call call, int index, const QVariantList &args) = 0;
//Dynamic replica functions
- virtual void initializeMetaObject(const QRemoteObjectPackets::QInitDynamicPacket *packet);
+ virtual void initializeMetaObject(const QMetaObjectBuilder &builder, const QVariantList &values);
QString m_objectName;
const QMetaObject *m_metaObject;
@@ -115,20 +115,20 @@ public:
bool isInitialized() const Q_DECL_OVERRIDE;
bool isReplicaValid() const Q_DECL_OVERRIDE;
bool waitForSource(int timeout) Q_DECL_OVERRIDE;
- void initialize(const QByteArray &);
+ void initialize(const QVariantList &values);
void configurePrivate(QRemoteObjectReplica *) Q_DECL_OVERRIDE;
void requestRemoteObjectSource();
bool sendCommand();
QRemoteObjectPendingCall sendCommandWithReply(int serialId);
bool waitForFinished(const QRemoteObjectPendingCall &call, int timeout);
- void notifyAboutReply(const QRemoteObjectPackets::QInvokeReplyPacket* replyPacket);
+ void notifyAboutReply(int ackedSerialId, const QVariant &value);
void setConnection(ClientIoDevice *conn);
void setDisconnected();
void _q_send(QMetaObject::Call call, int index, const QVariantList &args) Q_DECL_OVERRIDE;
QRemoteObjectPendingCall _q_sendWithReply(QMetaObject::Call call, int index, const QVariantList& args) Q_DECL_OVERRIDE;
- void initializeMetaObject(const QRemoteObjectPackets::QInitDynamicPacket *packet) Q_DECL_OVERRIDE;
+ void initializeMetaObject(const QMetaObjectBuilder&, const QVariantList&) Q_DECL_OVERRIDE;
QAtomicInt isSet;
QVector<QRemoteObjectReplica *> m_parentsNeedingConnect;
QVariantList m_propertyStorage;