Stellarium  0.17.0
Public Member Functions | Data Fields
SyncProtocol::Location Class Reference

Public Member Functions

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. More...
bool deserialize (QDataStream &stream, SyncProtocol::tPayloadSize dataSize) Q_DECL_OVERRIDE
 Subclasses should override this to load their contents from the data stream. More...
- Public Member Functions inherited from SyncProtocol::SyncMessage
qint64 createFullMessage (QByteArray &target) const
 Writes a full message (with header) to the specified byte array. More...
virtual QDebug debugOutput (QDebug dbg) const
 Subclasses can override this to provide proper debug output. More...

Data Fields

StelLocation stelLocation
double totalDuration
double timeToGo

Additional Inherited Members

- Static Protected Member Functions inherited from SyncProtocol::SyncMessage
static void writeString (QDataStream &stream, const QString &str)
static QString readString (QDataStream &stream)

Member Function Documentation

bool SyncProtocol::Location::deserialize ( QDataStream &  stream,
SyncProtocol::tPayloadSize  dataSize 

The default implementation expects a zero dataSize, and reads nothing.

Reimplemented from SyncProtocol::SyncMessage.

void SyncProtocol::Location::serialize ( QDataStream &  stream) const

The default implementation writes nothing.

Reimplemented from SyncProtocol::SyncMessage.