mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 04:54:29 -04:00
Add new fields to the DB and make then available to be used in the apps
This commit is contained in:
@ -20,7 +20,19 @@ Folder::Folder(qulonglong folderId, qulonglong parentId, const QString &folderNa
|
||||
this->path = folderPath;
|
||||
}
|
||||
|
||||
Folder::Folder(qulonglong folderId, qulonglong parentId, const QString &folderName, const QString &folderPath, bool completed, bool finished, bool manga)
|
||||
Folder::Folder(qulonglong folderId,
|
||||
qulonglong parentId,
|
||||
const QString &folderName,
|
||||
const QString &folderPath,
|
||||
bool completed,
|
||||
bool finished,
|
||||
bool manga,
|
||||
int numChildren,
|
||||
const QString &firstChildHash,
|
||||
const QString &customImage,
|
||||
YACReader::FileType type,
|
||||
qint64 added,
|
||||
qint64 updated)
|
||||
: knownParent(true),
|
||||
knownId(true),
|
||||
numChildren(-1)
|
||||
@ -32,6 +44,12 @@ Folder::Folder(qulonglong folderId, qulonglong parentId, const QString &folderNa
|
||||
this->completed = completed;
|
||||
this->finished = finished;
|
||||
this->manga = manga;
|
||||
this->numChildren = numChildren;
|
||||
this->firstChildHash = firstChildHash;
|
||||
this->customImage = customImage;
|
||||
this->type = type;
|
||||
this->added = added;
|
||||
this->updated = updated;
|
||||
}
|
||||
|
||||
Folder::Folder(const Folder &folder)
|
||||
@ -51,6 +69,9 @@ Folder &Folder::operator=(const Folder &other)
|
||||
this->numChildren = other.numChildren;
|
||||
this->firstChildHash = other.firstChildHash;
|
||||
this->customImage = other.customImage;
|
||||
this->type = other.type;
|
||||
this->added = other.added;
|
||||
this->updated = other.updated;
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
Reference in New Issue
Block a user