-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathReminder.h
More file actions
33 lines (28 loc) · 833 Bytes
/
Reminder.h
File metadata and controls
33 lines (28 loc) · 833 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
//
// Created by seraf on 16.03.2021.
//
#ifndef PROIECTOOP_REMINDER_H
#define PROIECTOOP_REMINDER_H
#include <memory>
#include "DateTime.h"
class Reminder {
protected:
std::string message;
DateTime remindTime;
bool isImportant;
public:
Reminder(std::string message, DateTime time, bool isImportant = false);
Reminder(const Reminder& R);
virtual ~Reminder();
Reminder& operator=(const Reminder& R);
friend std::ostream &operator<<(std::ostream &out, const Reminder &R);
virtual void delay();
virtual void print(std::ostream& os);
void setMessage(std::string msg);
void setDate(DateTime timeChange);
void setImportant(bool important);
virtual std::unique_ptr <Reminder> clone();
std::string getMessage() const;
DateTime getDate();
};
#endif //PROIECTOOP_REMINDER_H