diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2022-05-30 19:40:31 +0900 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2022-05-30 21:55:12 +0200 |
commit | 9d7329284fd42187092c829ae6ed030561002776 (patch) | |
tree | 1d53503d17938eca725caee7ff783fccf52ca509 /src/include/standardscandialog.h | |
parent | fac82f62f156c76cb4b23c313111283b30a778b5 (diff) | |
download | tderadio-9d732928.tar.gz tderadio-9d732928.zip |
Standardize folder structure.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit d95a4fea540b371fa86493d069fdbd54f33c5b40)
Diffstat (limited to 'src/include/standardscandialog.h')
-rw-r--r-- | src/include/standardscandialog.h | 101 |
1 files changed, 101 insertions, 0 deletions
diff --git a/src/include/standardscandialog.h b/src/include/standardscandialog.h new file mode 100644 index 0000000..2be7c74 --- /dev/null +++ b/src/include/standardscandialog.h @@ -0,0 +1,101 @@ +/*************************************************************************** + standardscandialog.h - description + ------------------- + begin : Son Aug 3 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_STANDARDSCANDIALOG_H +#define KRADIO_STANDARDSCANDIALOG_H + +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + +#include <standardscandialog-ui.h> +#include "radiodevice_interfaces.h" +#include "radio_interfaces.h" +#include "stationlist.h" + +#include <tqtimer.h> +#include <tqdatetime.h> + +class StandardScanDialog : public StandardScanDialogUI, + public ISeekRadioClient, +// public IRadioSoundClient, + public IRadioClient +{ +Q_OBJECT + +public: + StandardScanDialog(TQWidget *parent); + ~StandardScanDialog(); + + bool connectI (Interface *i); + bool disconnectI (Interface *i); + + void start(); + void stop(); + + const StationList &getStations() const { return m_stations; } + +// ISeekRadioClient + +RECEIVERS: + bool noticeSeekStarted (bool up); + bool noticeSeekStopped (); + bool noticeSeekFinished (const RadioStation &s, bool goodQuality); + bool noticeProgress (float f); + +// // ISoundRadioClient +// +// RECEIVERS: +// bool noticeVolumeChanged(float /*v*/) { return false; } +// bool noticeTrebleChanged(float /*v*/) { return false; } +// bool noticeBassChanged(float /*v*/) { return false; } +// bool noticeBalanceChanged(float /*v*/) { return false; } +// bool noticeSignalQualityChanged(float /*q*/) { return false; } +// bool noticeSignalQualityChanged(bool /*good*/) { return false; } +// bool noticeSignalMinQualityChanged(float /*q*/) { return false; } +// bool noticeStereoChanged(bool /*s*/) { return false; } +// bool noticeMuted(bool /*m*/) { return false; } + +// IRadioClient + +RECEIVERS: + bool noticePowerChanged(bool on); + bool noticeStationChanged (const RadioStation &, int /*idx*/){ return false; } + bool noticeStationsChanged(const StationList &/*sl*/) { return false; } + bool noticePresetFileChanged(const TQString &/*f*/) { return false; } + + bool noticeCurrentSoundStreamIDChanged(SoundStreamID /*id*/) { return false; } + +protected slots: + + void slotCancelDone(); + +protected: + + int m_count; + bool m_running; + bool m_oldPowerOn; + RadioStation *m_oldStation; + TQDateTime m_startTime; + + StationList m_stations; + + bool m_ignorePower; +}; + + +#endif |