-
Notifications
You must be signed in to change notification settings - Fork 0
/
filetuple.cpp
69 lines (57 loc) · 1.02 KB
/
filetuple.cpp
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#include "filetuple.h"
FileTuple::FileTuple()
{
id = -1;
name = "";
path = "";
type = "";
thumbnail = "";
}
FileTuple::FileTuple(const int& id, const QString& name, const QString& path, const QString& type, const QString& thumbnail)
{
this->id = id;
this->name = name;
this->path = path;
this->type = type;
this->thumbnail = thumbnail;
}
void FileTuple::setId(const int& id)
{
this->id = id;
}
void FileTuple::setName(const QString& name)
{
this->name = name;
}
void FileTuple::setPath(const QString& path)
{
this->path = path;
}
void FileTuple::setType(const QString& type)
{
this->type = type;
}
void FileTuple::setThumbnail(const QString& thumbnail)
{
this->thumbnail = thumbnail;
}
int FileTuple::getId() const
{
return id;
}
QString FileTuple::getName() const
{
return name;
}
QString FileTuple::getPath() const
{
return path;
}
QString FileTuple::getType() const
{
return type;
}
QString FileTuple::getThumbnail() const
{
return thumbnail;
}