aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/appointment.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/appointment.cpp b/src/appointment.cpp
index a6800dd..e014a85 100644
--- a/src/appointment.cpp
+++ b/src/appointment.cpp
@@ -27,22 +27,22 @@ namespace datetime {
*****
****/
-bool Alarm::operator==(const Alarm& that) const
+Alarm::Alarm()
+ : type(Alarm::None)
{
- return (type==that.type)
- && (text==that.text)
- && (audio_url==that.audio_url)
- && (this->time==that.time);
}
-bool Alarm::has_sound() const
+Alarm::Alarm(int type_, const std::string &text_, const std::string& audio_url_, const DateTime &time_)
+ : type(type_), text(text_), audio_url(audio_url_), time(time_)
{
- return !audio_url.empty();
}
-bool Alarm::has_text() const
+bool Alarm::operator==(const Alarm& that) const
{
- return !text.empty();
+ return (type==that.type)
+ && (text==that.text)
+ && (audio_url==that.audio_url)
+ && (this->time==that.time);
}
bool Appointment::operator==(const Appointment& that) const