gui: add basic gui code.
This commit is contained in:
28
Struct/InfoMsg.h
Normal file
28
Struct/InfoMsg.h
Normal file
@@ -0,0 +1,28 @@
|
||||
#ifndef INFO_MSG_H
|
||||
#define INFO_MSG_H
|
||||
|
||||
#include <QBuffer>
|
||||
#include <QDataStream>
|
||||
#include <QIODevice>
|
||||
#include <QString>
|
||||
#include <QVector>
|
||||
|
||||
struct InfoMsg {
|
||||
qint32 mark{};
|
||||
QString msg;
|
||||
|
||||
void serialize(QDataStream& data) const
|
||||
{
|
||||
data << mark << msg;
|
||||
}
|
||||
|
||||
void deserialize(QDataStream& data)
|
||||
{
|
||||
data >> mark >> msg;
|
||||
}
|
||||
};
|
||||
|
||||
QDataStream& operator<<(QDataStream& data, const InfoMsg& info);
|
||||
QDataStream& operator>>(QDataStream& data, InfoMsg& info);
|
||||
|
||||
#endif // INFO_MSG_H
|
||||
Reference in New Issue
Block a user