Add a output parameter to know if a comic is found in the DB when we try to load it

This commit is contained in:
Luis Ángel San Martín
2022-10-15 11:42:20 +02:00
parent c576140e6a
commit 61458b966c
3 changed files with 31 additions and 15 deletions

View File

@ -93,7 +93,7 @@ public:
// load
static Folder loadFolder(qulonglong id, QSqlDatabase &db);
static Folder loadFolder(const QString &folderName, qulonglong parentId, QSqlDatabase &db);
static ComicDB loadComic(qulonglong id, QSqlDatabase &db);
static ComicDB loadComic(qulonglong id, QSqlDatabase &db, bool &found);
static ComicDB loadComic(QString cname, QString cpath, QString chash, QSqlDatabase &database);
static ComicInfo loadComicInfo(QString hash, QSqlDatabase &db);
static ComicInfo getComicInfoFromQuery(QSqlQuery &query, const QString &idKey = "id");