20 #ifndef SYNCMESSAGES_HPP_ 21 #define SYNCMESSAGES_HPP_ 23 #include "SyncProtocol.hpp" 24 #include "StelLocation.hpp" 25 #include "VecMath.hpp" 37 void serialize(QDataStream& stream)
const Q_DECL_OVERRIDE;
38 bool deserialize(QDataStream& stream, SyncProtocol::tPayloadSize dataSize) Q_DECL_OVERRIDE;
50 void serialize(QDataStream &stream)
const Q_DECL_OVERRIDE;
51 bool deserialize(QDataStream &stream, SyncProtocol::tPayloadSize dataSize) Q_DECL_OVERRIDE;
53 quint8 protocolVersion;
54 quint32 remoteSyncVersion;
55 quint32 stellariumVersion;
66 void serialize(QDataStream &stream)
const Q_DECL_OVERRIDE;
67 bool deserialize(QDataStream &stream, SyncProtocol::tPayloadSize dataSize) Q_DECL_OVERRIDE;
70 quint32 remoteSyncVersion;
71 quint32 stellariumVersion;
87 void serialize(QDataStream &stream)
const Q_DECL_OVERRIDE;
88 bool deserialize(QDataStream &stream, SyncProtocol::tPayloadSize dataSize) Q_DECL_OVERRIDE;
92 qint64 lastTimeSyncTime;
105 void serialize(QDataStream &stream)
const Q_DECL_OVERRIDE;
106 bool deserialize(QDataStream &stream, SyncProtocol::tPayloadSize dataSize) Q_DECL_OVERRIDE;
109 double totalDuration;
118 void serialize(QDataStream &stream)
const Q_DECL_OVERRIDE;
119 bool deserialize(QDataStream &stream, SyncProtocol::tPayloadSize dataSize) Q_DECL_OVERRIDE;
123 return dbg<<selectedObjects;
127 QList< QPair<QString,QString> > selectedObjects;
141 void serialize(QDataStream &stream)
const Q_DECL_OVERRIDE;
142 bool deserialize(QDataStream &stream, SyncProtocol::tPayloadSize dataSize) Q_DECL_OVERRIDE;
146 return dbg<<propId<<value;
158 void serialize(QDataStream& stream)
const Q_DECL_OVERRIDE;
159 bool deserialize(QDataStream &stream, tPayloadSize dataSize) Q_DECL_OVERRIDE;
169 void serialize(QDataStream& stream)
const Q_DECL_OVERRIDE;
170 bool deserialize(QDataStream &stream, tPayloadSize dataSize) Q_DECL_OVERRIDE;
Store the informations for a location on a planet.
QDebug debugOutput(QDebug dbg) const Q_DECL_OVERRIDE
Subclasses can override this to provide proper debug output.
bool deserialize(QDataStream &stream, SyncProtocol::tPayloadSize dataSize) Q_DECL_OVERRIDE
Subclasses should override this to load their contents from the data stream.
SyncProtocol::SyncMessageType getMessageType() const Q_DECL_OVERRIDE
Subclasses must return the message type this message represents.
SyncProtocol::SyncMessageType getMessageType() const Q_DECL_OVERRIDE
Subclasses must return the message type this message represents.
Base interface for the messages themselves, allowing to serialize/deserialize them.
SyncProtocol::SyncMessageType getMessageType() const Q_DECL_OVERRIDE
Subclasses must return the message type this message represents.
Contains sync protocol data definitions shared between client and server.
SyncMessageType getMessageType() const Q_DECL_OVERRIDE
Subclasses must return the message type this message represents.
SyncProtocol::SyncMessageType getMessageType() const Q_DECL_OVERRIDE
Subclasses must return the message type this message represents.
SyncMessageType getMessageType() const Q_DECL_OVERRIDE
Subclasses must return the message type this message represents.
SyncMessageType getMessageType() const Q_DECL_OVERRIDE
Subclasses must return the message type this message represents.
SyncProtocol::SyncMessageType getMessageType() const Q_DECL_OVERRIDE
Subclasses must return the message type this message represents.
QDebug debugOutput(QDebug dbg) const Q_DECL_OVERRIDE
Subclasses can override this to provide proper debug output.
SyncMessageType
Contains the possible message types.
SyncProtocol::SyncMessageType getMessageType() const Q_DECL_OVERRIDE
Subclasses must return the message type this message represents.
This is just a notify message with no data, so no serialize/deserialize.
SyncProtocol::SyncMessageType getMessageType() const Q_DECL_OVERRIDE
Subclasses must return the message type this message represents.
SyncProtocol::SyncMessageType getMessageType() const Q_DECL_OVERRIDE
Subclasses must return the message type this message represents.
void serialize(QDataStream &stream) const Q_DECL_OVERRIDE
Subclasses should override this to serialize their contents to the data stream.