mirror of
https://github.com/YACReader/yacreader
synced 2025-07-21 22:44:56 -04:00
Added tag 6.5 for changeset 19399e8c6157
This commit is contained in:
22
common/folder.h
Normal file
22
common/folder.h
Normal file
@ -0,0 +1,22 @@
|
||||
#ifndef __FOLDER_H
|
||||
#define __FOLDER_H
|
||||
|
||||
#include "library_item.h"
|
||||
|
||||
#include <QList>
|
||||
|
||||
class Folder : public LibraryItem
|
||||
{
|
||||
public:
|
||||
bool knownParent;
|
||||
bool knownId;
|
||||
|
||||
Folder():knownParent(false), knownId(false){};
|
||||
Folder(qulonglong sid, qulonglong pid,QString fn, QString fp):knownParent(true), knownId(true){id = sid; parentId = pid;name = fn; path = fp;};
|
||||
Folder(QString fn, QString fp):knownParent(false), knownId(false){name = fn; path = fp;};
|
||||
void setId(qulonglong sid){id = sid;knownId = true;};
|
||||
void setFather(qulonglong pid){parentId = pid;knownParent = true;};
|
||||
bool isDir(){return true;};
|
||||
};
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user