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

22
version3upgrader.h Normal file
View File

@@ -0,0 +1,22 @@
#ifndef VERSION3UPGRADER_H
#define VERSION3UPGRADER_H
#include <QObject>
#include <QJsonObject>
#include <QJsonArray>
#include <QDate>
#include <QTime>
class Version3Upgrader : QObject
{
Q_OBJECT
private:
static QJsonObject UpgradeDay(QJsonObject day);
static QJsonObject UpgradeTemplate(QJsonObject week);
static QJsonArray UpgradeWeeks(QJsonArray weeks);
public:
Version3Upgrader();
static QJsonObject Upgrade(QJsonObject old);
};
#endif // VERSION3UPGRADER_H