2 Copyright 2008 Thomas Steger
3 Copyright 2020 Chris Tallon
5 This file is part of VOMP.
7 VOMP is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 VOMP is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with VOMP. If not, see <https://www.gnu.org/licenses/>.
35 class SleepTimer : public TimerReceiver
40 void timercall(int clientReference);
49 void calcCurrentSec();
52 const char* timerText;
54 std::chrono::system_clock::time_point endTime;
59 * 1 = counting - no displays
60 * 2 = counting - modify display showing
61 * 3 = counting - countdown display showing
62 * 4 - not counting - OFF dialogue showing
65 VSleepTimer* vsleeptimer{};
66 VCountdown* vcountdown{};
69 class VSleepTimer : public Boxx
73 void setTime(const char* text);
78 const char* displaySleeptimer;
81 class VCountdown : public Boxx
85 void setTime(int sec);