From 48906a623383ab5222541ae048e99dd039b62a9a Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 1 Feb 2013 17:25:34 -0600 Subject: Fix FTBFS --- kradio3/plugins/timecontrol/Makefile.am | 17 - kradio3/plugins/timecontrol/icons/Makefile.am | 2 - .../icons/hi16-action-kradio_kalarm.png | Bin 497 -> 0 bytes .../timecontrol/icons/hi16-action-kradio_zzz.png | Bin 348 -> 0 bytes .../icons/hi22-action-kradio_kalarm.png | Bin 831 -> 0 bytes .../timecontrol/icons/hi22-action-kradio_zzz.png | Bin 866 -> 0 bytes .../icons/hi32-action-kradio_kalarm.png | Bin 1516 -> 0 bytes .../timecontrol/icons/hi32-action-kradio_zzz.png | Bin 1477 -> 0 bytes .../timecontrol/icons/hi330-action-kradio_zzz.png | Bin 17713 -> 0 bytes .../icons/hi48-action-kradio_kalarm.png | Bin 1990 -> 0 bytes .../timecontrol/icons/hi48-action-kradio_zzz.png | Bin 2348 -> 0 bytes kradio3/plugins/timecontrol/po/Makefile.am | 2 - kradio3/plugins/timecontrol/po/de.po | 129 ------ kradio3/plugins/timecontrol/po/ru.po | 129 ------ .../timecontrol/timecontrol-configuration-ui.ui | 452 --------------------- .../timecontrol/timecontrol-configuration.cpp | 425 ------------------- .../timecontrol/timecontrol-configuration.h | 91 ----- kradio3/plugins/timecontrol/timecontrol.cpp | 301 -------------- kradio3/plugins/timecontrol/timecontrol.h | 96 ----- 19 files changed, 1644 deletions(-) delete mode 100644 kradio3/plugins/timecontrol/Makefile.am delete mode 100644 kradio3/plugins/timecontrol/icons/Makefile.am delete mode 100644 kradio3/plugins/timecontrol/icons/hi16-action-kradio_kalarm.png delete mode 100644 kradio3/plugins/timecontrol/icons/hi16-action-kradio_zzz.png delete mode 100644 kradio3/plugins/timecontrol/icons/hi22-action-kradio_kalarm.png delete mode 100644 kradio3/plugins/timecontrol/icons/hi22-action-kradio_zzz.png delete mode 100644 kradio3/plugins/timecontrol/icons/hi32-action-kradio_kalarm.png delete mode 100644 kradio3/plugins/timecontrol/icons/hi32-action-kradio_zzz.png delete mode 100644 kradio3/plugins/timecontrol/icons/hi330-action-kradio_zzz.png delete mode 100644 kradio3/plugins/timecontrol/icons/hi48-action-kradio_kalarm.png delete mode 100644 kradio3/plugins/timecontrol/icons/hi48-action-kradio_zzz.png delete mode 100644 kradio3/plugins/timecontrol/po/Makefile.am delete mode 100644 kradio3/plugins/timecontrol/po/de.po delete mode 100644 kradio3/plugins/timecontrol/po/ru.po delete mode 100644 kradio3/plugins/timecontrol/timecontrol-configuration-ui.ui delete mode 100644 kradio3/plugins/timecontrol/timecontrol-configuration.cpp delete mode 100644 kradio3/plugins/timecontrol/timecontrol-configuration.h delete mode 100644 kradio3/plugins/timecontrol/timecontrol.cpp delete mode 100644 kradio3/plugins/timecontrol/timecontrol.h (limited to 'kradio3/plugins/timecontrol') diff --git a/kradio3/plugins/timecontrol/Makefile.am b/kradio3/plugins/timecontrol/Makefile.am deleted file mode 100644 index 0ac954f..0000000 --- a/kradio3/plugins/timecontrol/Makefile.am +++ /dev/null @@ -1,17 +0,0 @@ -SUBDIRS = po icons . - -INCLUDES = $(all_includes) -METASOURCES = AUTO - -libkradio_LTLIBRARIES = libtimecontrol.la -libtimecontrol_la_SOURCES = timecontrol-configuration.cpp \ - timecontrol-configuration-ui.ui timecontrol.cpp -libtimecontrol_la_LDFLAGS = -module -avoid-version $(KDE_RPATH) $(all_libraries) -noinst_HEADERS = timecontrol-configuration.h timecontrol.h - -#messages: rc.cpp -# $(XGETTEXT) *.cpp *.h -o po/kradio-timecontrol.pot - -messages: rc.cpp - $(EXTRACTRC) *.rc *.ui >> rc.cpp - $(XGETTEXT) rc.cpp *.h *.cpp -o po/kradio-timecontrol.pot diff --git a/kradio3/plugins/timecontrol/icons/Makefile.am b/kradio3/plugins/timecontrol/icons/Makefile.am deleted file mode 100644 index b3f2583..0000000 --- a/kradio3/plugins/timecontrol/icons/Makefile.am +++ /dev/null @@ -1,2 +0,0 @@ -icons_ICON = AUTO -iconsdir = $(kde_datadir)/kradio/icons diff --git a/kradio3/plugins/timecontrol/icons/hi16-action-kradio_kalarm.png b/kradio3/plugins/timecontrol/icons/hi16-action-kradio_kalarm.png deleted file mode 100644 index eb5683b..0000000 Binary files a/kradio3/plugins/timecontrol/icons/hi16-action-kradio_kalarm.png and /dev/null differ diff --git a/kradio3/plugins/timecontrol/icons/hi16-action-kradio_zzz.png b/kradio3/plugins/timecontrol/icons/hi16-action-kradio_zzz.png deleted file mode 100644 index f832469..0000000 Binary files a/kradio3/plugins/timecontrol/icons/hi16-action-kradio_zzz.png and /dev/null differ diff --git a/kradio3/plugins/timecontrol/icons/hi22-action-kradio_kalarm.png b/kradio3/plugins/timecontrol/icons/hi22-action-kradio_kalarm.png deleted file mode 100644 index a880e8f..0000000 Binary files a/kradio3/plugins/timecontrol/icons/hi22-action-kradio_kalarm.png and /dev/null differ diff --git a/kradio3/plugins/timecontrol/icons/hi22-action-kradio_zzz.png b/kradio3/plugins/timecontrol/icons/hi22-action-kradio_zzz.png deleted file mode 100644 index 2c69332..0000000 Binary files a/kradio3/plugins/timecontrol/icons/hi22-action-kradio_zzz.png and /dev/null differ diff --git a/kradio3/plugins/timecontrol/icons/hi32-action-kradio_kalarm.png b/kradio3/plugins/timecontrol/icons/hi32-action-kradio_kalarm.png deleted file mode 100644 index f312e3f..0000000 Binary files a/kradio3/plugins/timecontrol/icons/hi32-action-kradio_kalarm.png and /dev/null differ diff --git a/kradio3/plugins/timecontrol/icons/hi32-action-kradio_zzz.png b/kradio3/plugins/timecontrol/icons/hi32-action-kradio_zzz.png deleted file mode 100644 index 89ce212..0000000 Binary files a/kradio3/plugins/timecontrol/icons/hi32-action-kradio_zzz.png and /dev/null differ diff --git a/kradio3/plugins/timecontrol/icons/hi330-action-kradio_zzz.png b/kradio3/plugins/timecontrol/icons/hi330-action-kradio_zzz.png deleted file mode 100644 index 42efc76..0000000 Binary files a/kradio3/plugins/timecontrol/icons/hi330-action-kradio_zzz.png and /dev/null differ diff --git a/kradio3/plugins/timecontrol/icons/hi48-action-kradio_kalarm.png b/kradio3/plugins/timecontrol/icons/hi48-action-kradio_kalarm.png deleted file mode 100644 index 476d55a..0000000 Binary files a/kradio3/plugins/timecontrol/icons/hi48-action-kradio_kalarm.png and /dev/null differ diff --git a/kradio3/plugins/timecontrol/icons/hi48-action-kradio_zzz.png b/kradio3/plugins/timecontrol/icons/hi48-action-kradio_zzz.png deleted file mode 100644 index a2e0b6c..0000000 Binary files a/kradio3/plugins/timecontrol/icons/hi48-action-kradio_zzz.png and /dev/null differ diff --git a/kradio3/plugins/timecontrol/po/Makefile.am b/kradio3/plugins/timecontrol/po/Makefile.am deleted file mode 100644 index 35fe6fd..0000000 --- a/kradio3/plugins/timecontrol/po/Makefile.am +++ /dev/null @@ -1,2 +0,0 @@ -PACKAGE = kradio-timecontrol -POFILES = AUTO diff --git a/kradio3/plugins/timecontrol/po/de.po b/kradio3/plugins/timecontrol/po/de.po deleted file mode 100644 index 71a84f6..0000000 --- a/kradio3/plugins/timecontrol/po/de.po +++ /dev/null @@ -1,129 +0,0 @@ -# translation of de.po to -# translation of kradio-timecontrol.po to -# This file is put in the public domain. -# -# Ernst Martin Witte , 2006. -msgid "" -msgstr "" -"Project-Id-Version: de\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2006-11-11 18:43+0100\n" -"PO-Revision-Date: 2006-11-06 01:16+0100\n" -"Last-Translator: Ernst Martin Witte \n" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Generator: KBabel 1.11.4\n" - -#. i18n: file timecontrol-configuration-ui.ui line 32 -#: rc.cpp:3 rc.cpp:68 timecontrol-configuration-ui.cpp:189 -#, no-c-format -msgid "sleep countdown" -msgstr "Schlummermodus" - -#. i18n: file timecontrol-configuration-ui.ui line 40 -#: rc.cpp:6 rc.cpp:71 timecontrol-configuration-ui.cpp:190 -#, no-c-format -msgid " min" -msgstr " min" - -#. i18n: file timecontrol-configuration-ui.ui line 117 -#: rc.cpp:9 rc.cpp:74 timecontrol-configuration-ui.cpp:191 timecontrol.cpp:270 -#, no-c-format -msgid "Alarms" -msgstr "Wecker" - -#. i18n: file timecontrol-configuration-ui.ui line 180 -#: rc.cpp:14 rc.cpp:79 timecontrol-configuration-ui.cpp:194 -#, no-c-format -msgid "Date" -msgstr "Datum" - -#. i18n: file timecontrol-configuration-ui.ui line 203 -#: rc.cpp:17 rc.cpp:82 timecontrol-configuration-ui.cpp:195 -#, no-c-format -msgid "Time" -msgstr "Uhrzeit" - -#. i18n: file timecontrol-configuration-ui.ui line 226 -#: rc.cpp:20 rc.cpp:85 timecontrol-configuration-ui.cpp:196 -#, no-c-format -msgid "Volume" -msgstr "Lautstärke" - -#. i18n: file timecontrol-configuration-ui.ui line 234 -#: rc.cpp:23 rc.cpp:88 timecontrol-configuration-ui.cpp:197 -#, no-c-format -msgid " %" -msgstr " %" - -#. i18n: file timecontrol-configuration-ui.ui line 263 -#: rc.cpp:26 rc.cpp:91 timecontrol-configuration-ui.cpp:198 -#, no-c-format -msgid "enabled" -msgstr "aktiv" - -#. i18n: file timecontrol-configuration-ui.ui line 331 -#: rc.cpp:50 rc.cpp:115 timecontrol-configuration-ui.cpp:207 -#, no-c-format -msgid "daily" -msgstr "täglich" - -#. i18n: file timecontrol-configuration-ui.ui line 341 -#: rc.cpp:53 rc.cpp:118 timecontrol-configuration-ui.cpp:208 -#, no-c-format -msgid "Radio Station" -msgstr "Sender" - -#. i18n: file timecontrol-configuration-ui.ui line 393 -#: rc.cpp:56 rc.cpp:121 timecontrol-configuration-ui.cpp:210 -#, no-c-format -msgid "Start Playing" -msgstr "Radio einschalten" - -#. i18n: file timecontrol-configuration-ui.ui line 401 -#: rc.cpp:59 rc.cpp:124 timecontrol-configuration-ui.cpp:211 -#, no-c-format -msgid "Stop Playing" -msgstr "Radio ausschalten" - -#. i18n: file timecontrol-configuration-ui.ui line 409 -#: rc.cpp:62 rc.cpp:127 timecontrol-configuration-ui.cpp:212 -#, no-c-format -msgid "Start Recording" -msgstr "Aufnahme starten" - -#. i18n: file timecontrol-configuration-ui.ui line 417 -#: rc.cpp:65 rc.cpp:130 timecontrol-configuration-ui.cpp:213 -#, no-c-format -msgid "Stop Recording" -msgstr "Aufnahme beenden" - -#: _translatorinfo.cpp:1 -msgid "" -"_: NAME OF TRANSLATORS\n" -"Your names" -msgstr "Ernst Martin Witte" - -#: _translatorinfo.cpp:3 -msgid "" -"_: EMAIL OF TRANSLATORS\n" -"Your emails" -msgstr "emw@nocabal.de" - -#: timecontrol-configuration.cpp:181 -msgid "" -msgstr "" - -#: timecontrol.cpp:42 -msgid "Time Control and Alarm Functions" -msgstr "Zeitsteurungs- und Weckfunktionen" - -#: timecontrol.cpp:48 -msgid "TimeControl Plugin" -msgstr "Zeitsteuerungs-Plugin" - -#: timecontrol.cpp:270 -msgid "Setup Alarms" -msgstr "Wecker einrichten" diff --git a/kradio3/plugins/timecontrol/po/ru.po b/kradio3/plugins/timecontrol/po/ru.po deleted file mode 100644 index 6f95f37..0000000 --- a/kradio3/plugins/timecontrol/po/ru.po +++ /dev/null @@ -1,129 +0,0 @@ -# translation of ru.po to -# translation of kradio-timecontrol.po to -# This file is put in the public domain. -# Алексей Кузнецов , 2006. -# -msgid "" -msgstr "" -"Project-Id-Version: ru\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2006-11-11 18:43+0100\n" -"PO-Revision-Date: 2006-11-08 12:57+0300\n" -"Last-Translator: Алексей Кузнецов \n" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Generator: KBabel 1.10\n" - -#. i18n: file timecontrol-configuration-ui.ui line 32 -#: rc.cpp:3 rc.cpp:68 timecontrol-configuration-ui.cpp:189 -#, no-c-format -msgid "sleep countdown" -msgstr "Период таймера отключения" - -#. i18n: file timecontrol-configuration-ui.ui line 40 -#: rc.cpp:6 rc.cpp:71 timecontrol-configuration-ui.cpp:190 -#, no-c-format -msgid " min" -msgstr " мин" - -#. i18n: file timecontrol-configuration-ui.ui line 117 -#: rc.cpp:9 rc.cpp:74 timecontrol-configuration-ui.cpp:191 timecontrol.cpp:270 -#, no-c-format -msgid "Alarms" -msgstr "Расписание" - -#. i18n: file timecontrol-configuration-ui.ui line 180 -#: rc.cpp:14 rc.cpp:79 timecontrol-configuration-ui.cpp:194 -#, no-c-format -msgid "Date" -msgstr "Дата" - -#. i18n: file timecontrol-configuration-ui.ui line 203 -#: rc.cpp:17 rc.cpp:82 timecontrol-configuration-ui.cpp:195 -#, no-c-format -msgid "Time" -msgstr "Время" - -#. i18n: file timecontrol-configuration-ui.ui line 226 -#: rc.cpp:20 rc.cpp:85 timecontrol-configuration-ui.cpp:196 -#, no-c-format -msgid "Volume" -msgstr "Громкость" - -#. i18n: file timecontrol-configuration-ui.ui line 234 -#: rc.cpp:23 rc.cpp:88 timecontrol-configuration-ui.cpp:197 -#, no-c-format -msgid " %" -msgstr " %" - -#. i18n: file timecontrol-configuration-ui.ui line 263 -#: rc.cpp:26 rc.cpp:91 timecontrol-configuration-ui.cpp:198 -#, no-c-format -msgid "enabled" -msgstr "Включено" - -#. i18n: file timecontrol-configuration-ui.ui line 331 -#: rc.cpp:50 rc.cpp:115 timecontrol-configuration-ui.cpp:207 -#, no-c-format -msgid "daily" -msgstr "Ежедневно" - -#. i18n: file timecontrol-configuration-ui.ui line 341 -#: rc.cpp:53 rc.cpp:118 timecontrol-configuration-ui.cpp:208 -#, no-c-format -msgid "Radio Station" -msgstr "Радиостанция" - -#. i18n: file timecontrol-configuration-ui.ui line 393 -#: rc.cpp:56 rc.cpp:121 timecontrol-configuration-ui.cpp:210 -#, no-c-format -msgid "Start Playing" -msgstr "Начать воспроизведение" - -#. i18n: file timecontrol-configuration-ui.ui line 401 -#: rc.cpp:59 rc.cpp:124 timecontrol-configuration-ui.cpp:211 -#, no-c-format -msgid "Stop Playing" -msgstr "Остановить воспроизведение" - -#. i18n: file timecontrol-configuration-ui.ui line 409 -#: rc.cpp:62 rc.cpp:127 timecontrol-configuration-ui.cpp:212 -#, no-c-format -msgid "Start Recording" -msgstr "Начать запись" - -#. i18n: file timecontrol-configuration-ui.ui line 417 -#: rc.cpp:65 rc.cpp:130 timecontrol-configuration-ui.cpp:213 -#, no-c-format -msgid "Stop Recording" -msgstr "Остановить запись" - -#: _translatorinfo.cpp:1 -msgid "" -"_: NAME OF TRANSLATORS\n" -"Your names" -msgstr "Алексей Кузнецов" - -#: _translatorinfo.cpp:3 -msgid "" -"_: EMAIL OF TRANSLATORS\n" -"Your emails" -msgstr "Alexey.Kouznetsov@GMail.com" - -#: timecontrol-configuration.cpp:181 -msgid "" -msgstr "<не менять>" - -#: timecontrol.cpp:42 -msgid "Time Control and Alarm Functions" -msgstr "Функции таймера и работы по расписанию" - -#: timecontrol.cpp:48 -msgid "TimeControl Plugin" -msgstr "Модуль ремени" - -#: timecontrol.cpp:270 -msgid "Setup Alarms" -msgstr "Расписание" diff --git a/kradio3/plugins/timecontrol/timecontrol-configuration-ui.ui b/kradio3/plugins/timecontrol/timecontrol-configuration-ui.ui deleted file mode 100644 index b240218..0000000 --- a/kradio3/plugins/timecontrol/timecontrol-configuration-ui.ui +++ /dev/null @@ -1,452 +0,0 @@ - -TimeControlConfigurationUI - - - TimeControlConfigurationUI - - - - 0 - 0 - 374 - 261 - - - - - unnamed - - - - layout13 - - - - unnamed - - - - labelSleep - - - sleep countdown - - - - - editSleep - - - min - - - 200 - - - 1 - - - 5 - - - 30 - - - - - spacer6_2 - - - Horizontal - - - Expanding - - - - 40 - 20 - - - - - - - - line1 - - - HLine - - - Sunken - - - Horizontal - - - - - layout15 - - - - unnamed - - - - layout14 - - - - unnamed - - - - labelAlarmList - - - - 7 - 5 - 0 - 0 - - - - Alarms - - - - - buttonAlarmNew - - - - - - "filenew2" - - - - - buttonDeleteAlarm - - - - - - "editdelete" - - - - - - - listAlarms - - - - - - - layout17 - - - - unnamed - - - - layout28 - - - - unnamed - - - - layout27 - - - - unnamed - - - - labelAlarmDate - - - Date - - - - - editAlarmDate - - - - - - - layout28 - - - - unnamed - - - - labelAlarmTime - - - Time - - - - - editAlarmTime - - - - - - - layout29 - - - - unnamed - - - - labelAlarmVolume - - - Volume - - - - - editAlarmVolume - - - % - - - 100 - - - -1 - - - -1 - - - - - - - - - layout16 - - - - unnamed - - - - checkboxAlarmEnable - - - enabled - - - - - spacer6 - - - Vertical - - - Expanding - - - - 20 - 100 - - - - - - - Monday - - - - - Tuesday - - - - - Wednesday - - - - - Thursday - - - - - Friday - - - - - Saturday - - - - - Sunday - - - - listWeekdays - - - Multi - - - - - checkboxAlarmDaily - - - daily - - - - - - - labelStationSelection - - - Radio Station - - - - - comboStationSelection - - - - - layout20 - - - - unnamed - - - - pixmapAlarmStation - - - - 20 - 20 - - - - true - - - - - spacer8 - - - Horizontal - - - Expanding - - - - 150 - 20 - - - - - - - - - Start Playing - - - "kradio_muteoff" - - - - - Stop Playing - - - "kradio_muteon" - - - - - Start Recording - - - "kradio_record" - - - - - Stop Recording - - - "kradio_muteon" - - - - comboAlarmType - - - - - - - - - - listAlarms - buttonAlarmNew - buttonDeleteAlarm - editAlarmDate - editAlarmTime - editAlarmVolume - checkboxAlarmDaily - checkboxAlarmEnable - comboStationSelection - - - kiconloader.h - -SmallIcon - - - klistbox.h - - diff --git a/kradio3/plugins/timecontrol/timecontrol-configuration.cpp b/kradio3/plugins/timecontrol/timecontrol-configuration.cpp deleted file mode 100644 index c72aa5e..0000000 --- a/kradio3/plugins/timecontrol/timecontrol-configuration.cpp +++ /dev/null @@ -1,425 +0,0 @@ -/*************************************************************************** - timecontrol-configuration.cpp - description - ------------------- - begin : Sam Aug 2 2003 - copyright : (C) 2003 by Martin Witte - email : witte@kawo1.rwth-aachen.de - ***************************************************************************/ - -/*************************************************************************** - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - ***************************************************************************/ - -#include -#include -using std::sort; - -#include -#include -#include -#include -#include -#include -#include -#include - -#include -#include - -#include "../../src/include/stationlist.h" -#include "../../src/include/alarm.h" -#include "../../src/include/errorlog-interfaces.h" -#include "../../src/include/radiostation.h" - -#include "timecontrol-configuration.h" - -class DateTimeCmp -{ -public: - bool operator() (const Alarm &a, const Alarm &b) { - return a.nextAlarm(true) < b.nextAlarm(true); - } - -}; - -TimeControlConfiguration::TimeControlConfiguration (TQWidget *parent) - : TimeControlConfigurationUI(parent), - ITimeControlClient(), - IRadioClient(), - ignoreChanges(false), - m_dirty(false) -{ - - TQObject::connect(checkboxAlarmDaily, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotDailyChanged(bool))); - TQObject::connect(listWeekdays, TQT_SIGNAL(highlighted(int)), this, TQT_SLOT(slotWeekdaysChanged())); - TQObject::connect(checkboxAlarmEnable, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotEnabledChanged(bool))); - TQObject::connect(comboStationSelection, TQT_SIGNAL(highlighted(int)), this, TQT_SLOT(slotStationChanged(int))); - TQObject::connect(listAlarms, TQT_SIGNAL(highlighted(int)), this, TQT_SLOT(slotAlarmSelectChanged(int))); - TQObject::connect(editAlarmDate, TQT_SIGNAL(valueChanged(const TQDate &)), this, TQT_SLOT(slotDateChanged(const TQDate &))); - TQObject::connect(editAlarmTime, TQT_SIGNAL(valueChanged(const TQTime &)), this, TQT_SLOT(slotTimeChanged(const TQTime &))); - TQObject::connect(editAlarmVolume, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotVolumeChanged(int))); - TQObject::connect(buttonAlarmNew, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotNewAlarm())); - TQObject::connect(buttonDeleteAlarm, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotDeleteAlarm())); - TQObject::connect(comboAlarmType, TQT_SIGNAL(highlighted(int)), this, TQT_SLOT(slotAlarmTypeChanged(int))); - - TQObject::connect(checkboxAlarmDaily, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotSetDirty())); - TQObject::connect(listWeekdays, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(slotSetDirty())); - TQObject::connect(checkboxAlarmEnable, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotSetDirty())); - TQObject::connect(comboStationSelection, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotSetDirty())); - TQObject::connect(editAlarmDate, TQT_SIGNAL(valueChanged(const TQDate &)), this, TQT_SLOT(slotSetDirty())); - TQObject::connect(editAlarmTime, TQT_SIGNAL(valueChanged(const TQTime &)), this, TQT_SLOT(slotSetDirty())); - TQObject::connect(editAlarmVolume, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotSetDirty())); - TQObject::connect(buttonAlarmNew, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotSetDirty())); - TQObject::connect(buttonDeleteAlarm, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotSetDirty())); - TQObject::connect(comboAlarmType, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotSetDirty())); - TQObject::connect(editSleep, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotSetDirty())); -} - -TimeControlConfiguration::~TimeControlConfiguration () -{ -} - -bool TimeControlConfiguration::connectI (Interface *i) -{ - bool a = ITimeControlClient::connectI(i); - bool b = IRadioClient::connectI(i); - return a || b; -} - - -bool TimeControlConfiguration::disconnectI (Interface *i) -{ - bool a = ITimeControlClient::disconnectI(i); - bool b = IRadioClient::disconnectI(i); - return a || b; -} - - -// ITimeControlClient - -bool TimeControlConfiguration::noticeAlarmsChanged(const AlarmVector &sl) -{ - int idx = listAlarms->currentItem(); - int currentID = (idx >= 0 && (unsigned)idx < alarms.size()) ? alarms[idx].ID() : -1; - - alarms = sl; - sort(alarms.begin(), alarms.end(), DateTimeCmp()); - - bool oldBlock = listAlarms->signalsBlocked(); - listAlarms->blockSignals(true); - - listAlarms->clear(); - idx = -1; - int k = 0; - for (ciAlarmVector i = alarms.begin(); i != alarms.end(); ++i, ++k) { - listAlarms->insertItem(i->nextAlarm(true).toString()); - if (i->ID() == currentID) - idx = k; - } - listAlarms->setCurrentItem(idx); - - listAlarms->blockSignals(oldBlock); - - slotAlarmSelectChanged(idx); - return true; -} - -bool TimeControlConfiguration::noticeAlarm(const Alarm &) -{ - return false; -} - -bool TimeControlConfiguration::noticeNextAlarmChanged(const Alarm *) -{ - noticeAlarmsChanged(alarms); - return true; -} - -bool TimeControlConfiguration::noticeCountdownStarted(const TQDateTime &/*end*/) -{ - return false; -} - -bool TimeControlConfiguration::noticeCountdownStopped() -{ - return false; -} - -bool TimeControlConfiguration::noticeCountdownZero() -{ - return false; -} - -bool TimeControlConfiguration::noticeCountdownSecondsChanged(int n) -{ - editSleep->setValue((int)rint(n / 60)); - return false; -} - - -// IRadioClient - -bool TimeControlConfiguration::noticePowerChanged(bool /*on*/) -{ - return false; -} - -bool TimeControlConfiguration::noticeStationChanged (const RadioStation &, int /*idx*/) -{ - return false; -} - -bool TimeControlConfiguration::noticeStationsChanged(const StationList &sl) -{ - comboStationSelection->clear(); - stationIDs.clear(); - comboStationSelection->insertItem(i18n("")); - stationIDs.push_back(TQString()); - - for (RawStationList::Iterator i(sl.all()); i.current(); ++i) { - comboStationSelection->insertItem(i.current()->iconName(), - i.current()->longName()); - stationIDs.push_back(i.current()->stationID()); - } - return true; -} - - -// Slots - - -void TimeControlConfiguration::slotDateChanged( const TQDate &d ) -{ - if (ignoreChanges) return; - - int idx = listAlarms->currentItem(); - if (idx >= 0 && (unsigned)idx < alarms.size()) { - Alarm &a = alarms[idx]; - a.setDate(d); - - ignoreChanges = true; - bool oldBlock = listAlarms->signalsBlocked(); - listAlarms->blockSignals(true); - noticeAlarmsChanged(alarms); - listAlarms->blockSignals(oldBlock); - ignoreChanges = false; - } -} - - -void TimeControlConfiguration::slotTimeChanged(const TQTime &t) -{ - if (ignoreChanges) return; - - int idx = listAlarms->currentItem(); - if (idx >= 0 && (unsigned)idx < alarms.size()) { - Alarm &a = alarms[idx]; - a.setTime(t); - - ignoreChanges = true; - bool oldBlock = listAlarms->signalsBlocked(); - listAlarms->blockSignals(true); - noticeAlarmsChanged(alarms); - listAlarms->blockSignals(oldBlock); - ignoreChanges = false; - } -} - - -void TimeControlConfiguration::slotDailyChanged (bool b) -{ - if (ignoreChanges) return; - - int idx = listAlarms->currentItem(); - if (idx >= 0 && (unsigned)idx < alarms.size()) { - Alarm &a = alarms[idx]; - a.setDaily(b); - - ignoreChanges = true; - bool oldBlock = listAlarms->signalsBlocked(); - listAlarms->blockSignals(true); - noticeAlarmsChanged(alarms); - listAlarms->blockSignals(oldBlock); - ignoreChanges = false; - - editAlarmDate ->setDisabled(b); - labelAlarmDate->setDisabled(b); - listWeekdays ->setDisabled(!b); - } -} - - -void TimeControlConfiguration::slotWeekdaysChanged () -{ - if (ignoreChanges) return; - - int mask = 0; - for (int i = 0; i < 7; ++i) { - if (listWeekdays->isSelected(i)) { - mask |= (1 << i); - } - } - - int idx = listAlarms->currentItem(); - if (idx >= 0 && (unsigned)idx < alarms.size()) { - Alarm &a = alarms[idx]; - a.setWeekdayMask(mask); - - ignoreChanges = true; - bool oldBlock = listAlarms->signalsBlocked(); - listAlarms->blockSignals(true); - noticeAlarmsChanged(alarms); - listAlarms->blockSignals(oldBlock); - ignoreChanges = false; - } -} - - -void TimeControlConfiguration::slotEnabledChanged( bool b) -{ - int idx = listAlarms->currentItem(); - if (idx >= 0 && (unsigned)idx < alarms.size()) { - alarms[idx].setEnabled(b); - } -} - - -void TimeControlConfiguration::slotStationChanged( int i ) -{ - int idx = listAlarms->currentItem(); - if ( idx >= 0 && (unsigned)idx < alarms.size() - && i >= 0 && (unsigned)i < stationIDs.size()) - { - alarms[idx].setStationID( stationIDs[i] ); - } -} - - -void TimeControlConfiguration::slotVolumeChanged( int v ) -{ - int idx = listAlarms->currentItem(); - if (idx >= 0 && (unsigned)idx < alarms.size()) { - alarms[idx].setVolumePreset(0.01 * (float)v); - } -} - - -void TimeControlConfiguration::slotAlarmTypeChanged(int t) -{ - int idx = listAlarms->currentItem(); - if (idx >= 0 && (unsigned)idx < alarms.size()) { - alarms[idx].setAlarmType((Alarm::AlarmType)t); - } -} - - -void TimeControlConfiguration::slotAlarmSelectChanged(int idx) -{ - if (ignoreChanges) return; - ignoreChanges = true; - - Alarm a; - bool valid = false; - - if (idx >= 0 && (unsigned)idx < alarms.size()) { - - a = alarms[idx]; - valid = true; - - } - - editAlarmDate ->setDisabled(!valid || a.isDaily()); - labelAlarmDate ->setDisabled(!valid || a.isDaily()); - listWeekdays ->setDisabled(!valid ||!a.isDaily()); - editAlarmTime ->setDisabled(!valid); - labelAlarmTime ->setDisabled(!valid); - labelAlarmVolume ->setDisabled(!valid); - editAlarmVolume ->setDisabled(!valid); - checkboxAlarmDaily ->setDisabled(!valid); - checkboxAlarmEnable ->setDisabled(!valid); - comboStationSelection->setDisabled(!valid); - labelStationSelection->setDisabled(!valid); - buttonDeleteAlarm ->setDisabled(!valid); - comboAlarmType ->setDisabled(!valid); - - editAlarmDate ->setDate(a.alarmTime().date()); - editAlarmTime ->setTime(a.alarmTime().time()); - checkboxAlarmDaily ->setChecked(a.isDaily()); - checkboxAlarmEnable ->setChecked(a.isEnabled()); - editAlarmVolume ->setValue((int)rint(a.volumePreset() * 100)); - comboAlarmType ->setCurrentItem(a.alarmType()); - - int k = 0; - const TQString &sID = a.stationID(); - for (int i = 0; !k && i < (int)stationIDs.size(); ++i) - if (stationIDs[i] == sID) k = i; - comboStationSelection->setCurrentItem(k); - - int m = a.weekdayMask(); - for (int i = 0; i < 7; ++i) { - listWeekdays->setSelected(i, m & (1 << i)); - } - - ignoreChanges = false; -} - - -void TimeControlConfiguration::slotNewAlarm() -{ - TQDateTime dt(TQDateTime::currentDateTime()); - Alarm a(dt, false, false); - alarms.push_back(a); - listAlarms->insertItem(a.alarmTime().toString()); - listAlarms->setSelected(listAlarms->count() - 1, true); - noticeAlarmsChanged(alarms); -} - - -void TimeControlConfiguration::slotDeleteAlarm() -{ - int idx = listAlarms->currentItem(); - - if (idx >= 0 && (unsigned)idx < alarms.size()) { - // unfortunately a function vector<>::erase(idx) does not exist - iAlarmVector i = alarms.begin(); - for (int k = 0; k < idx; ++k) - ++i; - if (i != alarms.end()) - alarms.erase(i); - listAlarms->removeItem(idx); - } -} - - -void TimeControlConfiguration::slotOK() -{ - if (m_dirty) { - sendAlarms(alarms); - sendCountdownSeconds(editSleep->value() * 60); - m_dirty = false; - } -} - -void TimeControlConfiguration::slotCancel() -{ - if (m_dirty) { - noticeAlarmsChanged(queryAlarms()); - noticeCountdownSecondsChanged(queryCountdownSeconds()); - m_dirty = false; - } -} - -void TimeControlConfiguration::slotSetDirty() -{ - if (!ignoreChanges) { - m_dirty = true; - } -} - - -#include "timecontrol-configuration.moc" diff --git a/kradio3/plugins/timecontrol/timecontrol-configuration.h b/kradio3/plugins/timecontrol/timecontrol-configuration.h deleted file mode 100644 index b53747e..0000000 --- a/kradio3/plugins/timecontrol/timecontrol-configuration.h +++ /dev/null @@ -1,91 +0,0 @@ -/*************************************************************************** - timecontro-configuration.h - description - ------------------- - begin : Sam Aug 2 2003 - copyright : (C) 2003 by Martin Witte - email : witte@kawo1.rwth-aachen.de - ***************************************************************************/ - -/*************************************************************************** - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - ***************************************************************************/ -#ifndef KRADIO_TIMECONTROL_CONFIGURATION_H -#define KRADIO_TIMECONTROL_CONFIGURATION_H - -#ifdef HAVE_CONFIG_H -#include -#endif - -#include "../../src/include/radio_interfaces.h" -#include "../../src/include/timecontrol_interfaces.h" -#include "timecontrol-configuration-ui.h" - -class TimeControl; -class TQWidget; - -class TimeControlConfiguration : public TimeControlConfigurationUI, - public ITimeControlClient, - public IRadioClient -{ -Q_OBJECT - -public : - TimeControlConfiguration (TQWidget *parent); - ~TimeControlConfiguration (); - - bool connectI (Interface *i); - bool disconnectI (Interface *i); - -// ITimeControlClient - - bool noticeAlarmsChanged(const AlarmVector &sl); - bool noticeAlarm(const Alarm &); - bool noticeNextAlarmChanged(const Alarm *); - bool noticeCountdownStarted(const TQDateTime &end); - bool noticeCountdownStopped(); - bool noticeCountdownZero(); - bool noticeCountdownSecondsChanged(int n); - -// IRadioClient - - bool noticePowerChanged(bool on); - bool noticeStationChanged (const RadioStation &, int idx); - bool noticeStationsChanged(const StationList &sl); - bool noticePresetFileChanged(const TQString &/*f*/) { return false; } - - bool noticeCurrentSoundStreamIDChanged(SoundStreamID /*id*/) { return false; } - -protected slots: - - void slotDailyChanged (bool daily); - void slotWeekdaysChanged (); - void slotEnabledChanged (bool enable); - void slotStationChanged (int idx); - void slotAlarmSelectChanged(int idx); - void slotDateChanged(const TQDate &d); - void slotTimeChanged(const TQTime &d); - void slotVolumeChanged(int v); - void slotAlarmTypeChanged(int idx); - - void slotNewAlarm(); - void slotDeleteAlarm(); - - void slotOK(); - void slotCancel(); - void slotSetDirty(); - -protected: - - AlarmVector alarms; - vector stationIDs; - - bool ignoreChanges; - bool m_dirty; -}; - -#endif diff --git a/kradio3/plugins/timecontrol/timecontrol.cpp b/kradio3/plugins/timecontrol/timecontrol.cpp deleted file mode 100644 index 15f0bde..0000000 --- a/kradio3/plugins/timecontrol/timecontrol.cpp +++ /dev/null @@ -1,301 +0,0 @@ -/*************************************************************************** - timecontrol.cpp - description - ------------------- - begin : Son Jan 12 2003 - copyright : (C) 2003 by Martin Witte - email : witte@kawo1.rwth-aachen.de - ***************************************************************************/ - -/*************************************************************************** - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - ***************************************************************************/ - -#include -#include - -#include "timecontrol.h" -#include "timecontrol-configuration.h" -#include "../../src/include/pluginmanager.h" -#include "../../src/include/aboutwidget.h" - -//const char *AlarmListElement = "alarmlist"; -//const char *AlarmElement = "alarm"; -const char *AlarmDateElement = "date"; -const char *AlarmTimeElement = "time"; -const char *AlarmDailyElement = "daily"; -const char *AlarmWeekdayMaskElement = "weekdayMask"; -const char *AlarmEnabledElement = "enabled"; -const char *AlarmStationIDElement = "stationID"; -//const char *AlarmFrequencyElement = "frequency"; -const char *AlarmVolumeElement = "volume"; -const char *AlarmTypeElement = "type"; - - -/////////////////////////////////////////////////////////////////////// -//// plugin library functions - -PLUGIN_LIBRARY_FUNCTIONS(TimeControl, "kradio-timecontrol", i18n("Time Control and Alarm Functions")); - -/////////////////////////////////////////////////////////////////////// - - -TimeControl::TimeControl (const TQString &n) - : PluginBase(n, i18n("TimeControl Plugin")), - m_waitingFor(NULL), - m_countdownSeconds(0), - m_alarmTimer(this), - m_countdownTimer(this) -{ - TQObject::connect(&m_alarmTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotQTimerAlarmTimeout())); - TQObject::connect(&m_countdownTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotQTimerCountdownTimeout())); -} - - -TimeControl::~TimeControl () -{ - m_waitingFor = NULL; -} - -bool TimeControl::connectI (Interface *i) -{ - bool a = ITimeControl::connectI(i); - bool b = PluginBase::connectI(i); - return a || b; -} - -bool TimeControl::disconnectI (Interface *i) -{ - bool a = ITimeControl::disconnectI(i); - bool b = PluginBase::disconnectI(i); - return a || b; -} - -bool TimeControl::setAlarms (const AlarmVector &al) -{ - if (m_alarms != al) { - m_waitingFor = NULL; - - m_alarms = al; - - slotQTimerAlarmTimeout(); - - notifyAlarmsChanged(m_alarms); - } - return true; -} - - -bool TimeControl::setCountdownSeconds(int n) -{ - int old = m_countdownSeconds; - m_countdownSeconds = n; - if (old != n) - notifyCountdownSecondsChanged(n); - return true; -} - - -bool TimeControl::startCountdown() -{ - m_countdownEnd = TQDateTime::currentDateTime().addSecs(m_countdownSeconds); - m_countdownTimer.start(m_countdownSeconds * 1000, true); - - notifyCountdownStarted(getCountdownEnd()); - - return true; -} - - -bool TimeControl::stopCountdown() -{ - m_countdownTimer.stop(); - m_countdownEnd = TQDateTime(); - - notifyCountdownStopped(); - - return true; -} - - -TQDateTime TimeControl::getNextAlarmTime() const -{ - const Alarm *a = getNextAlarm(); - if (a) - return a->nextAlarm(); - else - return TQDateTime(); -} - - -const Alarm *TimeControl::getNextAlarm () const -{ - TQDateTime now = TQDateTime::currentDateTime(), - next; - - const Alarm *retval = NULL; - - for (ciAlarmVector i = m_alarms.begin(); i != m_alarms.end(); ++i) { - TQDateTime n = i->nextAlarm(); - if (n.isValid() && n > now && ( ! next.isValid() || n < next)) { - next = n; - retval = &(*i); - } - } - - TQDateTime old = m_nextAlarm_tmp; - m_nextAlarm_tmp = next; - if (old != m_nextAlarm_tmp) { - notifyNextAlarmChanged(retval); - } - - return retval; -} - - -TQDateTime TimeControl::getCountdownEnd () const -{ - if (m_countdownTimer.isActive()) - return m_countdownEnd; - else - return TQDateTime(); -} - - -void TimeControl::slotQTimerCountdownTimeout() -{ - stopCountdown(); - - notifyCountdownZero(); -} - - -void TimeControl::slotQTimerAlarmTimeout() -{ - if (m_waitingFor) { - notifyAlarm(*m_waitingFor); - } - - TQDateTime now = TQDateTime::currentDateTime(); - Alarm const *n = getNextAlarm(); - TQDateTime na = getNextAlarmTime(); - - m_waitingFor = NULL; - - if (na.isValid()) { - - int days = now.daysTo(na); - int msecs = now.time().msecsTo(na.time()); - - if (days > 1) { - m_alarmTimer.start(24 * 3600 * 1000, true); - - } else if (days >= 0) { - - if (days > 0) - msecs += days * 24 * 3600 * 1000; - - if (msecs > 0) { - m_waitingFor = n; - m_alarmTimer.start(msecs, true); - } - } - } -} - - -void TimeControl::restoreState (TDEConfig *config) -{ - AlarmVector al; - - config->setGroup(TQString("timecontrol-") + name()); - - int nAlarms = config->readNumEntry ("nAlarms", 0); - for (int idx = 1; idx <= nAlarms; ++idx) { - - TQString num = TQString().setNum(idx); - TQDateTime d = config->readDateTimeEntry(AlarmTimeElement + num); - bool enable = config->readBoolEntry(AlarmEnabledElement + num, false); - bool daily = config->readBoolEntry(AlarmDailyElement + num, false); - int weekdayMask = config->readNumEntry(AlarmWeekdayMaskElement + num, 0x7F); - float vol = config->readDoubleNumEntry(AlarmVolumeElement + num, 1); - TQString sid = config->readEntry(AlarmStationIDElement + num, TQString()); - int type = config->readNumEntry(AlarmTypeElement + num, 0); - - enable &= d.isValid(); - - Alarm a ( d, daily, enable); - a.setVolumePreset(vol); - a.setWeekdayMask(weekdayMask); - a.setStationID(sid); - a.setAlarmType((Alarm::AlarmType)type); - al.push_back(a); - } - - setAlarms(al); - setCountdownSeconds(config->readNumEntry("countdownSeconds", 30*60)); -} - - -void TimeControl::saveState (TDEConfig *config) const -{ - config->setGroup(TQString("timecontrol-") + name()); - - config->writeEntry("nAlarms", m_alarms.size()); - int idx = 1; - ciAlarmVector end = m_alarms.end(); - for (ciAlarmVector i = m_alarms.begin(); i != end; ++i, ++idx) { - TQString num = TQString().setNum(idx); - config->writeEntry (AlarmTimeElement + num, i->alarmTime()); - config->writeEntry (AlarmEnabledElement + num, i->isEnabled()); - config->writeEntry (AlarmDailyElement + num, i->isDaily()); - config->writeEntry (AlarmWeekdayMaskElement + num, i->weekdayMask()); - config->writeEntry (AlarmVolumeElement + num, i->volumePreset()); - config->writeEntry (AlarmStationIDElement + num, i->stationID()); - config->writeEntry (AlarmTypeElement + num, i->alarmType()); - } - - config->writeEntry("countdownSeconds", m_countdownSeconds); -} - - -ConfigPageInfo TimeControl::createConfigurationPage() -{ - TimeControlConfiguration *conf = new TimeControlConfiguration(NULL); - connectI(conf); - return ConfigPageInfo (conf, i18n("Alarms"), i18n("Setup Alarms"), "kradio_kalarm"); -} - - -AboutPageInfo TimeControl::createAboutPage() -{ -/* TDEAboutData aboutData("kradio", - NULL, - NULL, - I18N_NOOP("Time Control Plugin for TDERadio." - "

" - "Provides Alarms and Sleep Countdown" - "

"), - TDEAboutData::License_GPL, - "(c) 2002-2005 Martin Witte, Klas Kalass", - 0, - "http://sourceforge.net/projects/kradio", - 0); - aboutData.addAuthor("Martin Witte", "", "witte@kawo1.rwth-aachen.de"); - aboutData.addAuthor("Klas Kalass", "", "klas.kalass@gmx.de"); - - return AboutPageInfo( - new TDERadioAboutWidget(aboutData, TDERadioAboutWidget::AbtTabbed), - i18n("Alarms"), - i18n("Time Control Plugin"), - "kradio_kalarm" - );*/ - return AboutPageInfo(); -} - - -#include "timecontrol.moc" diff --git a/kradio3/plugins/timecontrol/timecontrol.h b/kradio3/plugins/timecontrol/timecontrol.h deleted file mode 100644 index 933d8f2..0000000 --- a/kradio3/plugins/timecontrol/timecontrol.h +++ /dev/null @@ -1,96 +0,0 @@ -/*************************************************************************** - timecontrol.h - description - ------------------- - begin : Son Jan 12 2003 - copyright : (C) 2003 by Martin Witte - email : witte@kawo1.rwth-aachen.de - ***************************************************************************/ - -/*************************************************************************** - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - ***************************************************************************/ - -#ifndef KRADIO_TIMECONTROL_H -#define KRADIO_TIMECONTROL_H - -#include -#include - -#include "../../src/include/alarm.h" -#include "../../src/include/plugins.h" -#include "../../src/include/timecontrol_interfaces.h" - -// well, it has to be a TQObject :( , but only for -// receiving TQTimer - timeouts - -class TimeControl : public TQObject, - public PluginBase, - public ITimeControl -{ - Q_OBJECT - -protected: - AlarmVector m_alarms; - Alarm const * m_waitingFor; // m_alarmTimer is exactly for this date/time - - int m_countdownSeconds; // in seconds - TQDateTime m_countdownEnd; - - TQTimer m_alarmTimer; - TQTimer m_countdownTimer; - - mutable TQDateTime m_nextAlarm_tmp; // used to recognize nextAlarm changes - -public: - TimeControl (const TQString &name); - ~TimeControl(); - - virtual TQString pluginClassName() const { return "TimeControl"; } - - virtual const TQString &name() const { return PluginBase::name(); } - virtual TQString &name() { return PluginBase::name(); } - - virtual bool connectI (Interface *i); - virtual bool disconnectI (Interface *i); - - // PluginBase - -public: - virtual void saveState (TDEConfig *) const; - virtual void restoreState (TDEConfig *); - - virtual ConfigPageInfo createConfigurationPage(); - virtual AboutPageInfo createAboutPage(); - - - // ITimeControl Interface methods - -RECEIVERS: - bool setAlarms(const AlarmVector &sl); - bool setCountdownSeconds(int n); - bool startCountdown(); - bool stopCountdown(); - -ANSWERS: - TQDateTime getNextAlarmTime () const; - const Alarm* getNextAlarm () const; - const AlarmVector & getAlarms () const { return m_alarms; } - int getCountdownSeconds () const { return m_countdownSeconds; } - TQDateTime getCountdownEnd () const; - - - // slots for receiving timeout messages of timers - -protected slots: - virtual void slotQTimerAlarmTimeout(); - virtual void slotQTimerCountdownTimeout(); - -}; - - -#endif -- cgit v1.2.1