-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTodo.h
46 lines (38 loc) · 799 Bytes
/
Todo.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
#ifndef _TODO_H_
#define _TODO_H_
#include <iostream>
#include <ostream>
#include <string>
#include <vector>
#include "Model.h"
#include "Date.h"
using namespace std;
class Todo : public Model {
friend ostream &operator<<(ostream &, Todo &);
public:
const Todo &operator=(const Todo &);
bool operator==(const Todo &) const;
bool operator!=(const Todo &right) const;
Todo();
Todo(unsigned int);
Todo(const string &);
Todo(const Todo &);
~Todo();
static bool has(int);
bool save();
bool remove();
bool update();
string getTitle();
void setTitle(const string &);
void finish();
bool finished();
const string resource();
private:
string title;
Date* start;
Date* end;
int revisionCount;
string *revisions;
const static string RESOURCE;
};
#endif