aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@canonical.com>2016-03-31 10:55:01 -0300
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-08-29 14:37:39 +0200
commited2c8341c2fbf527e99cd6b56f6ae637ea6c76a8 (patch)
treefe195134b4d2384348094134c74685b1a54c25c3 /src
parent406aa751ab0a66c909a7ce60345aed42cda8f147 (diff)
downloadayatana-indicator-datetime-ed2c8341c2fbf527e99cd6b56f6ae637ea6c76a8.tar.gz
ayatana-indicator-datetime-ed2c8341c2fbf527e99cd6b56f6ae637ea6c76a8.tar.bz2
ayatana-indicator-datetime-ed2c8341c2fbf527e99cd6b56f6ae637ea6c76a8.zip
Update tests.
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