Switch to C++ and Qt
This commit is contained in:
22
version3upgrader.h
Normal file
22
version3upgrader.h
Normal 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
|
||||
Reference in New Issue
Block a user