-
Notifications
You must be signed in to change notification settings - Fork 0
/
TFV_Classes.h
106 lines (82 loc) · 1.85 KB
/
TFV_Classes.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
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
#ifndef TFV_CLASSES_H
#define TFV_CLASSES_H
#include <iostream>
#include <QString>
#include <vector>
#include <string>
#include <QStringList>
#include <QWidget>
#include <QGridLayout>
#include <QTabWidget>
using std::string;
using std::vector;
class priority
{
public:
priority() : priorities {"ASAP","URGENT","HIGH","NORMAL/HIGH","NORMAL/MEDIUM","NORMAL/LOW","LOW"}{}
void clear();
string GetPriority();
int GetPriorityIndex();
void SetPriority(string priorityInput);
void SetPriority(int inputIndex);
private:
int index;
string priorities[7];
};
class item
{
public:
void SetName(string name);
string GetName();
void SetDescription(string newDescription);
string GetDesc();
void SetStatPrimary(string newStatPrim);
string GetStatPrimary();
void SetStatSec(string newStatSec);
string GetStatSec();
void SetPriority(priority newPriority);
string ReadPriority();
priority GetPriority();
void ClearAll();
void SetMTOD(bool newState);
bool GetMTOD();
string GetMTODAnswer();
void PrintCurrentItem();
bool operator<(item& i);
void SetProject(string newProject);
string GetProject();
private:
string fromName;
string descr;
string statusPrimary;
string statusSecondary;
priority currentPriority;
bool movedToOtherDay;
string project;
};
class tab
{
public:
QString GetFile();
void SetFile(QString newFile);
string GetName();
void SetTabName(QString newFile);
vector<item> items;
bool operator<(const tab& t) const;
private:
QString matchingFile;
string tabName;
};
class taskFeedFile
{
public:
vector<tab> GetTabsVector();
void setTabsVector(vector<tab> inputtedTabsVector);
QStringList GetFileLocations();
void setFileLocations(QStringList inputtedFileLocations);
bool emptyTabs();
private:
vector<tab> tabsVector;
QStringList fileLocations;
};
#endif // TFV_CLASSES_H