Stellarium  HEAD
Public Member Functions | Data Fields
SyncProtocol::Selection Class Reference

Public Member Functions

SyncProtocol::SyncMessageType getMessageType () const override
 Subclasses must return the message type this message represents.
 
void serialize (QDataStream &stream) const override
 Subclasses should override this to serialize their contents to the data stream. More...
 
bool deserialize (QDataStream &stream, SyncProtocol::tPayloadSize dataSize) override
 Subclasses should override this to load their contents from the data stream. More...
 
QString toString () const override
 Subclasses can override this to provide proper debug output. 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...
 

Data Fields

QList< QPair< QString, QString > > selectedObjects
 

Additional Inherited Members

- Static Public Member Functions inherited from SyncProtocol::SyncMessage
static QString toString (SyncMessageType type)
 Print enum name for SyncMessageType type.
 
- Static Protected Member Functions inherited from SyncProtocol::SyncMessage
static void writeString (QDataStream &stream, const QString &str)
 
static QString readString (QDataStream &stream)
 

Member Function Documentation

◆ deserialize()

bool SyncProtocol::Selection::deserialize ( QDataStream &  stream,
SyncProtocol::tPayloadSize  dataSize 
)
overridevirtual

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.

◆ serialize()

void SyncProtocol::Selection::serialize ( QDataStream &  stream) const
overridevirtual

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

The default implementation writes nothing.

Reimplemented from SyncProtocol::SyncMessage.

◆ toString()

QString SyncProtocol::Selection::toString ( ) const
inlineoverridevirtual

Subclasses can override this to provide proper debug output.

The default just prints the message type.

Reimplemented from SyncProtocol::SyncMessage.