-
Notifications
You must be signed in to change notification settings - Fork 2
/
item.h
39 lines (32 loc) · 914 Bytes
/
item.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef ITEM_H
#define ITEM_H
#include <QString>
typedef enum {ITEM_FILE, ITEM_FOLDER, ITEM_SYSTEM} ITEM_TYPE;
typedef enum {LOCKED, UNLOCKED} ITEM_GUARDIAN_STATE;
class Item
{
private:
QString name;
QString path;
ITEM_TYPE type;
ITEM_GUARDIAN_STATE state;
bool isProtected;
QString guardianName;
public:
Item();
Item(QString name, QString path, ITEM_TYPE type, ITEM_GUARDIAN_STATE state, bool isProtected, QString guardianName);
~Item();
QString getName();
void setName(QString name);
QString getPath();
void setPath(QString path);
ITEM_TYPE getType();
void setType(ITEM_TYPE type);
ITEM_GUARDIAN_STATE getItemGuardianState();
void setItemGuardianState(ITEM_GUARDIAN_STATE state);
QString getGuardianName();
void setGuardianName(QString &value);
bool getIsProtected();
void setIsProtected(bool value);
};
#endif // ITEM_H