diff options
Diffstat (limited to 'kradio3/src/include/frequencyseekhelper.h')
-rw-r--r-- | kradio3/src/include/frequencyseekhelper.h | 78 |
1 files changed, 0 insertions, 78 deletions
diff --git a/kradio3/src/include/frequencyseekhelper.h b/kradio3/src/include/frequencyseekhelper.h deleted file mode 100644 index 68ffe78..0000000 --- a/kradio3/src/include/frequencyseekhelper.h +++ /dev/null @@ -1,78 +0,0 @@ -/*************************************************************************** - frequencyseekhelper.h - description - ------------------- - begin : Fre Mai 9 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_FREQUENCY_SEEKHELPER_H -#define KRADIO_FREQUENCY_SEEKHELPER_H - -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - -#include <tqobject.h> -#include "radiodevice_interfaces.h" -#include "seekhelper.h" - -class FrequencySeekHelper : public TQObject, - public SeekHelper, - public IFrequencyRadioClient -{ -Q_OBJECT - -public: - - FrequencySeekHelper(ISeekRadio &parent); - virtual ~FrequencySeekHelper(); - -// IFrequencyRadioClient -RECEIVERS: - bool noticeFrequencyChanged(float /*f*/, const RadioStation */*s*/) { return false; } - bool noticeMinMaxFrequencyChanged(float /*min*/, float /*max*/) { return false; } - bool noticeDeviceMinMaxFrequencyChanged(float /*min*/, float /*max*/){ return false; } - bool noticeScanStepChanged(float /*s*/) { return false; } - -public: - - virtual bool connectI (Interface *i); - virtual bool disconnectI(Interface *i); - - virtual void start(const SoundStreamID &, direction_t dir); - -public slots: - - virtual void step() { SeekHelper::step(); } - -protected: - virtual void abort(); - virtual bool isGood() const; - virtual bool isBetter() const; - virtual bool isWorse() const; - virtual bool bestFound() const; - virtual void getData(); - virtual void rememberBest(); - virtual bool nextSeekStep(); - virtual void applyBest(); - -protected: - TQTimer *m_timer; - - float m_currentSignal, m_oldSignal; - bool m_goodSignal; - float m_currentFrequency, m_oldFrequency; - float m_bestFrequency; -}; - -#endif |