Stellarium 0.15.2
List of all members | Public Member Functions | Public Attributes
Time Class Reference
+ Inheritance diagram for Time:
+ Collaboration diagram for Time:

Public Member Functions

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 SyncMessage
qint64 createFullMessage (QByteArray &target) const
 Writes a full message (with header) to the specified byte array. More...
 

Public Attributes

qint64 lastTimeSyncTime
 
double jDay
 
double timeRate
 

Additional Inherited Members

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

Detailed Description

Definition at line 78 of file SyncMessages.hpp.

Member Function Documentation

bool Time::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 SyncMessage.

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

Subclasses must return the message type this message represents.

Implements SyncMessage.

Definition at line 81 of file SyncMessages.hpp.

void Time::serialize ( QDataStream &  stream) const
virtual

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

The default implementation writes nothing.

Reimplemented from SyncMessage.


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