Switch to C++ and Qt

This commit is contained in:
Aurélie Delhaie
2021-10-25 22:49:07 +02:00
parent 720ae427e7
commit fad936e21b
13 changed files with 545 additions and 685 deletions

21
version2upgrader.h Normal file
View 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