updated Folder class

This commit is contained in:
Luis Ángel San Martín
2016-01-24 17:41:26 +01:00
parent 37328edc64
commit bac7fe1351
7 changed files with 125 additions and 26 deletions

View File

@ -0,0 +1,30 @@
#include "folder.h"
Folder::Folder()
:knownParent(false),
knownId(false),
numChildren(-1),
firstChildId(0)
{}
Folder::Folder(qulonglong folderId, qulonglong parentId, const QString &folderName, const QString &folderPath)
:knownParent(true),
knownId(true),
numChildren(-1),
firstChildId(0)
{
this->id = folderId;
this->parentId = parentId;
this->name = folderName;
this->path = folderPath;
}
Folder::Folder(const QString & folderName, const QString & folderPath)
:knownParent(false),
knownId(false),
numChildren(-1),
firstChildId(0)
{
this->name = folderName;
this->path = folderPath;
}