diff options
Diffstat (limited to 'noannounce.h')
-rw-r--r-- | noannounce.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/noannounce.h b/noannounce.h index 60b5bac..7fab41d 100644 --- a/noannounce.h +++ b/noannounce.h @@ -31,7 +31,8 @@ using std::string; // --- cNoAnnouce -------------------------------------------------------- // an event that should not be announced again -class cNoAnnounce : public cListObject { +class cNoAnnounce : public cListObject +{ public: string title; // Title of this event string shortText; // Short description of this event @@ -50,11 +51,14 @@ public: bool Parse(const char *s); const char *ToText(void) const; bool Save(FILE *f); - bool Valid() { return startTime > 0; } + bool Valid() { + return startTime > 0; + } }; -class cNoAnnounces : public cConfig<cNoAnnounce> { - public: +class cNoAnnounces : public cConfig<cNoAnnounce> +{ +public: cNoAnnounce* InList(const cEvent* e); void ClearOutdated(void); void UpdateNextAnnounce(const cEvent* e, time_t NextAnnounce); |