-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtask.h
More file actions
42 lines (35 loc) · 870 Bytes
/
Copy pathtask.h
File metadata and controls
42 lines (35 loc) · 870 Bytes
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
#ifndef TASK_H_
#define TASK_H_
#include <string>
class Task
{
public:
enum Status
{
UNFINISHED,
FINISHED
};
private:
std::string name;
int priority;
std::string description;
Status status;
public:
// Constructors
Task();
Task(const std::string &name, int priority, const std::string &description, Status status = UNFINISHED);
Task(const Task &taskToCopy);
Task &operator=(const Task &taskToCopy);
// Destructor not needed
// Getter functions
std::string getName() const;
int getPriority() const;
std::string getDescription() const;
Status getStatus() const;
// Setter functions
void setName(const std::string &newName);
void setPriority(int newPriority);
void setDescription(const std::string &newDescription);
void setStatus(Status newStatus);
};
#endif