From 0492e95dbf6a1f6285a4701379adb6b7d8553d6b Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Thu, 28 Oct 2021 06:06:45 +0200 Subject: Drop the 'ubuntu' prefix from the alarm types and functions --- include/datetime/appointment.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include/datetime/appointment.h') diff --git a/include/datetime/appointment.h b/include/datetime/appointment.h index faf8a18..c563f33 100644 --- a/include/datetime/appointment.h +++ b/include/datetime/appointment.h @@ -1,5 +1,6 @@ /* * Copyright 2013 Canonical Ltd. + * Copyright 2021 Robert Tari * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published @@ -15,6 +16,7 @@ * * Authors: * Charles Kerr + * Robert Tari */ #ifndef INDICATOR_DATETIME_APPOINTMENT_H @@ -51,9 +53,9 @@ struct Alarm struct Appointment { public: - enum Type { EVENT, UBUNTU_ALARM }; + enum Type { EVENT, ALARM }; Type type = EVENT; - bool is_ubuntu_alarm() const { return type == UBUNTU_ALARM; } + bool is_alarm() const { return type == ALARM; } std::string uid; std::string source_uid; -- cgit v1.2.3