From 8b1facbbcdecb205dcbe5864af782b584f757f2a Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 31 Oct 2018 17:24:45 +0100 Subject: Read messages from external files --- src/deadlinetype.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/deadlinetype.h (limited to 'src/deadlinetype.h') diff --git a/src/deadlinetype.h b/src/deadlinetype.h new file mode 100644 index 0000000..ccf805d --- /dev/null +++ b/src/deadlinetype.h @@ -0,0 +1,23 @@ +#ifndef DEADLINETYPE_H +#define DEADLINETYPE_H + +#include + +class DeadlineType +{ + +public: + static const DeadlineType *Unknown; + static const DeadlineType *Shutdown; + static const DeadlineType *IdleKill; + static const DeadlineType *NoTimeout; + const QString& headerLine(bool isLocked) const { return _headerLine[isLocked ? 1 : 0]; } + const QString& bodyText(bool isLocked) const { return _bodyText[isLocked ? 1 : 0]; } + +private: + DeadlineType(const QString &name); + QString _headerLine[2]; + QString _bodyText[2]; +}; + +#endif // DEADLINETYPE_H -- cgit v1.2.3-55-g7522