diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 84da08d7b7fcda12c85caeb5a10b4903770a6f69 (patch) | |
tree | 2a6aea76f2dfffb4cc04bb907c4725af94f70e72 /noatun-plugins/alarm/wakeup.h | |
download | tdeaddons-84da08d7b7fcda12c85caeb5a10b4903770a6f69.tar.gz tdeaddons-84da08d7b7fcda12c85caeb5a10b4903770a6f69.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'noatun-plugins/alarm/wakeup.h')
-rw-r--r-- | noatun-plugins/alarm/wakeup.h | 103 |
1 files changed, 103 insertions, 0 deletions
diff --git a/noatun-plugins/alarm/wakeup.h b/noatun-plugins/alarm/wakeup.h new file mode 100644 index 0000000..e2992a8 --- /dev/null +++ b/noatun-plugins/alarm/wakeup.h @@ -0,0 +1,103 @@ +/*************************************************************************** + wakeup.h - alarm plugin for noatun + ------------------- + begin : Wed Apr 11 CEST 2000 + copyright: (C) 2001 by Mickael Marchand <mikmak@freenux.org> + + ***************************************************************************/ +/*************************************************************************** + * * + * 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 WAKEUP_H +#define WAKEUP_H + +#include <noatun/pref.h> +#include <noatun/plugin.h> +#include <qradiobutton.h> +#include <qbuttongroup.h> +#include <qpushbutton.h> + +class QSpinBox; +class QCheckBox; +class KMinuteSpinBox; +class KPercentSpinBox; + +class Wakeup : public QObject, public Plugin +{ + Q_OBJECT + NOATUNPLUGIND + +public: + Wakeup(); + ~Wakeup(); + static Wakeup *wakeme; + void PlayerAct(); + void update(); + +public slots: + void slotVolumeChange(); + void slotCheckTime(); + +private: + QStringList *day_list; +// QString songlist; + int hour[7]; + int minute[7]; + bool days[7]; + QTimer *volTimer; + int volEndVal; + int modeAlarm; +}; + + +class WakeupPrefs : public CModule +{ + Q_OBJECT + +public: + WakeupPrefs( QObject *parent ); + virtual void save(); + virtual void load(); +public slots: + void slotViewFrame(int); + void slotApplyAll(); + +private: + QCheckBox *monday; + QCheckBox *tuesday; + QCheckBox *wednesday; + QCheckBox *thursday; + QCheckBox *friday; + QCheckBox *saturday; + QCheckBox *sunday; + KMinuteSpinBox *minute1; + KMinuteSpinBox *minute2; + KMinuteSpinBox *minute3; + KMinuteSpinBox *minute4; + KMinuteSpinBox *minute5; + KMinuteSpinBox *minute6; + KMinuteSpinBox *minute7; + QSpinBox *hour1; + QSpinBox *hour2; + QSpinBox *hour3; + QSpinBox *hour4; + QSpinBox *hour5; + QSpinBox *hour6; + QSpinBox *hour7; + + KPercentSpinBox *volEndValue; + QRadioButton *alarmmode; + QRadioButton *morningmode; + QRadioButton *nightmode; + QFrame *volFrame; + QPushButton *applyall; +}; + +#endif // WAKEUP_H |