1#ifndef CLIENT_PROTOTYPE_CACHE_MANAGER_H
2#define CLIENT_PROTOTYPE_CACHE_MANAGER_H
5#include <QStandardPaths>
9namespace cache_manager {
11 QDir(QStandardPaths::writableLocation(QStandardPaths::AppLocalDataLocation))
12 .filePath(
"cavoke-client");
13const QDir APPS_DIR = CACHE_DIR.filePath(
"apps");
14const int BUFFER_SIZE = 1'000'000;
16QUrl get_cached_app_path(
const QString &gameId);
18QUrl save_zip_to_cache(
const QFile *archive,
19 const QString &gameId =
"local-qml");
21void unzip_to_folder(
const QFile &archive,
const QDir &dest);