20 #ifndef SYNCMESSAGES_HPP_ 21 #define SYNCMESSAGES_HPP_ 23 #include "SyncProtocol.hpp" 24 #include "StelLocation.hpp" 33 void serialize(QDataStream& stream)
const Q_DECL_OVERRIDE;
34 bool deserialize(QDataStream& stream, SyncProtocol::tPayloadSize dataSize) Q_DECL_OVERRIDE;
46 void serialize(QDataStream &stream)
const Q_DECL_OVERRIDE;
47 bool deserialize(QDataStream &stream, SyncProtocol::tPayloadSize dataSize) Q_DECL_OVERRIDE;
49 quint8 protocolVersion;
50 quint32 remoteSyncVersion;
51 quint32 stellariumVersion;
62 void serialize(QDataStream &stream)
const Q_DECL_OVERRIDE;
63 bool deserialize(QDataStream &stream, SyncProtocol::tPayloadSize dataSize) Q_DECL_OVERRIDE;
66 quint32 remoteSyncVersion;
67 quint32 stellariumVersion;
83 void serialize(QDataStream &stream)
const Q_DECL_OVERRIDE;
84 bool deserialize(QDataStream &stream, SyncProtocol::tPayloadSize dataSize) Q_DECL_OVERRIDE;
88 qint64 lastTimeSyncTime;
101 void serialize(QDataStream &stream)
const Q_DECL_OVERRIDE;
102 bool deserialize(QDataStream &stream, SyncProtocol::tPayloadSize dataSize) Q_DECL_OVERRIDE;
105 double totalDuration;
114 void serialize(QDataStream &stream)
const Q_DECL_OVERRIDE;
115 bool deserialize(QDataStream &stream, SyncProtocol::tPayloadSize dataSize) Q_DECL_OVERRIDE;
117 QList<QString> selectedObjectNames;
SyncProtocol::SyncMessageType getMessageType() const Q_DECL_OVERRIDE
Subclasses must return the message type this message represents.
Store the informations for a location on a planet.
void serialize(QDataStream &stream) const Q_DECL_OVERRIDE
Subclasses should override this to serialize their contents to 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.
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.
bool deserialize(QDataStream &stream, SyncProtocol::tPayloadSize dataSize) Q_DECL_OVERRIDE
Subclasses should override this to load their contents from the data stream.
SyncMessageType
Contains the possible message types.
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.
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.