aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@canonical.com>2016-03-31 10:55:01 -0300
committerRobert Tari <robert@tari.in>2021-07-05 00:44:12 +0200
commit6874753bfba638ab819bfa92ad8cd7a878ae7701 (patch)
treede4e5d496f56811ce4e38f57a74e46d62a641c4a /src
parent0b5b8b3d31eaff2302c2fd3eb11e68be96f1d219 (diff)
downloadayatana-indicator-datetime-6874753bfba638ab819bfa92ad8cd7a878ae7701.tar.gz
ayatana-indicator-datetime-6874753bfba638ab819bfa92ad8cd7a878ae7701.tar.bz2
ayatana-indicator-datetime-6874753bfba638ab819bfa92ad8cd7a878ae7701.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