2018-01-20 17:44:28 +03:00
|
|
|
#ifndef SAVER_H
|
|
|
|
#define SAVER_H
|
|
|
|
#include <QObject>
|
|
|
|
#include <QFile>
|
|
|
|
#define SAVE "save"
|
2018-04-11 20:27:22 +03:00
|
|
|
class BackEnd: public QObject
|
2018-01-20 17:44:28 +03:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
Q_PROPERTY(short reed READ read WRITE save)
|
2018-04-11 20:27:22 +03:00
|
|
|
private:
|
|
|
|
|
2018-01-20 17:44:28 +03:00
|
|
|
public:
|
2018-04-11 20:27:22 +03:00
|
|
|
BackEnd();
|
2018-01-20 17:44:28 +03:00
|
|
|
public slots:
|
|
|
|
void save(const short &lvl)const;
|
2018-04-11 20:27:22 +03:00
|
|
|
unsigned short getMinSteps(const unsigned short lvl)const;
|
2018-01-20 17:44:28 +03:00
|
|
|
short read()const;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // SAVER_H
|