6#ifndef ATLASGAMEMANAGER_IMPORT_HPP
7#define ATLASGAMEMANAGER_IMPORT_HPP
11#include <QNetworkAccessManager>
12#include <QNetworkReply>
29 void saveImage(
const QByteArray& byteArray,
const std::filesystem::path& dest );
31 [[nodiscard]] std::filesystem::path
importImage(
const std::filesystem::path& path,
const RecordID game_id );
33 [[nodiscard]] std::filesystem::path
importPixmap(
const QPixmap pixmap,
const RecordID game_id );
std::uint32_t RecordID
Definition Types.hpp:11
RecordID id() const
Returns the record id for this game.
Definition Game.hpp:65
QFuture< std::filesystem::path > importImage(const std::filesystem::path &path, const RecordID game_id)
Stores the image located at path in the data folder.
Definition import.cpp:149
QFuture< std::filesystem::path > importPixmap(const QPixmap pixmap, const RecordID game_id)
QFuture< std::filesystem::path > importImageFromURL(const QString url, const RecordID record_id)
Definition import.cpp:142
Definition blurhash.cpp:16
std::filesystem::path importPixmap(const QPixmap pixmap, const RecordID game_id)
Definition import.cpp:96
void saveImage(const QByteArray &byteArray, const std::filesystem::path &dest)
Definition import.cpp:23
std::filesystem::path importImage(const std::filesystem::path &path, const RecordID game_id)
Definition import.cpp:53