lolautoaccept/include/champcache.h

19 lines
332 B
C
Raw Permalink Normal View History

2022-07-05 23:45:28 +02:00
#pragma once
#include <string>
#include <QJsonDocument>
// This file caches the champion metadata
class ChampCache {
public:
ChampCache();
2023-05-31 22:22:23 +02:00
QString getVersion();
2022-07-05 23:45:28 +02:00
QJsonDocument getChamps();
2023-05-31 22:22:23 +02:00
void saveChamps(QJsonDocument doc, const QString& version);
2022-07-05 23:45:28 +02:00
private:
2023-05-31 22:22:23 +02:00
QString basefolder;
2022-07-05 23:45:28 +02:00
uint64_t maxage = 86400; // is in seconds
};