2016-09-07 04:50:47 +01:00
|
|
|
#ifndef BLOCKDATA_H
|
|
|
|
#define BLOCKDATA_H
|
|
|
|
|
|
|
|
#include "block.h"
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
#include <QByteArray>
|
|
|
|
|
|
|
|
class Blockdata : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit Blockdata(QObject *parent = 0);
|
|
|
|
|
|
|
|
public:
|
2017-11-28 04:46:27 +00:00
|
|
|
QList<Block> *blocks = NULL;
|
2016-09-07 04:50:47 +01:00
|
|
|
void addBlock(uint16_t);
|
|
|
|
void addBlock(Block);
|
|
|
|
QByteArray serialize();
|
|
|
|
void copyFrom(Blockdata*);
|
|
|
|
Blockdata* copy();
|
2017-11-28 04:46:27 +00:00
|
|
|
bool equals(Blockdata *);
|
2016-09-07 04:50:47 +01:00
|
|
|
|
|
|
|
signals:
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // BLOCKDATA_H
|