Stellarium  0.16.1
List of all members | Public Member Functions | Public Attributes
SyncProtocol::ServerChallenge Class Reference
+ Inheritance diagram for SyncProtocol::ServerChallenge:
+ Collaboration diagram for SyncProtocol::ServerChallenge:

Public Member Functions

 ServerChallenge ()
 Sets all values except clientId to the compile-time values. More...
 
SyncProtocol::SyncMessageType getMessageType () const Q_DECL_OVERRIDE
 Subclasses must return the message type this message represents. More...
 
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...
 

Public Attributes

quint8 protocolVersion
 
quint32 remoteSyncVersion
 
quint32 stellariumVersion
 
QUuid clientId
 

Additional Inherited Members

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

Detailed Description

Definition at line 43 of file SyncMessages.hpp.

Constructor & Destructor Documentation

SyncProtocol::ServerChallenge::ServerChallenge ( )

Sets all values except clientId to the compile-time values.

Member Function Documentation

bool SyncProtocol::ServerChallenge::deserialize ( QDataStream &  stream,
SyncProtocol::tPayloadSize  dataSize 
)
virtual

Subclasses should override this to load their contents from the data stream.

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

Reimplemented from SyncProtocol::SyncMessage.

SyncProtocol::SyncMessageType SyncProtocol::ServerChallenge::getMessageType ( ) const
inlinevirtual

Subclasses must return the message type this message represents.

Implements SyncProtocol::SyncMessage.

Definition at line 49 of file SyncMessages.hpp.

void SyncProtocol::ServerChallenge::serialize ( QDataStream &  stream) const
virtual

Subclasses should override this to serialize their contents to the data stream.

The default implementation writes nothing.

Reimplemented from SyncProtocol::SyncMessage.


The documentation for this class was generated from the following file: