-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAlarm.h
More file actions
30 lines (24 loc) · 682 Bytes
/
Alarm.h
File metadata and controls
30 lines (24 loc) · 682 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
//
// Created by seraf on 18.03.2021.
//
#ifndef PROIECTOOP_ALARM_H
#define PROIECTOOP_ALARM_H
#include <string>
#include "DateTime.h"
class Alarm {
DateTime time;
std::string message;
bool recurrent;
public:
Alarm(int hour, int min, std::string msg, bool recurrent);
Alarm(DateTime time, std::string msg, bool recurrent);
Alarm(const Alarm& A);
/*Alarm& recurringAlarm();*/
bool isRecurrent();
void setMessage(std::string message);
void setRecurrence(bool recurrence);
friend std::ostream &operator<<(std::ostream& out, Alarm &A);
DateTime getTime();
/// implement function to "ring" alarm?
};
#endif //PROIECTOOP_ALARM_H