Switch to C++ and Qt
This commit is contained in:
21
version2upgrader.h
Normal file
21
version2upgrader.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#ifndef VERSION2UPGRADER_H
|
||||
#define VERSION2UPGRADER_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QJsonObject>
|
||||
#include <QJsonArray>
|
||||
#include <QDate>
|
||||
|
||||
class Version2Upgrader : QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
private:
|
||||
static QJsonObject UpgradeDay(QJsonObject day, bool validate);
|
||||
static QJsonObject UpgradeTemplate(QJsonObject week);
|
||||
static QJsonArray UpgradeWeeks(QJsonArray weeks);
|
||||
public:
|
||||
Version2Upgrader();
|
||||
static QJsonObject Upgrade(QJsonObject old);
|
||||
};
|
||||
|
||||
#endif // VERSION2UPGRADER_H
|
||||
Reference in New Issue
Block a user