mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
46 lines
968 B
C++
46 lines
968 B
C++
#include "folder.h"
|
|
|
|
Folder::Folder()
|
|
: knownParent(false),
|
|
knownId(false),
|
|
numChildren(-1)
|
|
{
|
|
}
|
|
|
|
Folder::Folder(qulonglong folderId, qulonglong parentId, const QString &folderName, const QString &folderPath)
|
|
: knownParent(true),
|
|
knownId(true),
|
|
numChildren(-1)
|
|
{
|
|
this->id = folderId;
|
|
this->parentId = parentId;
|
|
this->name = folderName;
|
|
this->path = folderPath;
|
|
}
|
|
|
|
Folder::Folder(const Folder &folder)
|
|
{
|
|
operator=(folder);
|
|
}
|
|
|
|
Folder &Folder::operator=(const Folder &other)
|
|
{
|
|
LibraryItem::operator=(other);
|
|
|
|
this->knownParent = other.knownParent;
|
|
this->knownId = other.knownId;
|
|
this->finished = other.finished;
|
|
this->completed = other.completed;
|
|
this->manga = other.manga;
|
|
|
|
return *this;
|
|
}
|
|
Folder::Folder(const QString &folderName, const QString &folderPath)
|
|
: knownParent(false),
|
|
knownId(false),
|
|
numChildren(-1)
|
|
{
|
|
this->name = folderName;
|
|
this->path = folderPath;
|
|
}
|