18 #ifndef KRADIO_SEEKHELPER_H
19 #define KRADIO_SEEKHELPER_H
25 #include "radiodevice_interfaces.h"
26 #include "seekradio_interfaces.h"
27 #include "soundstreamclient_interfaces.h"
28 #include <kdemacros.h>
32 public ISoundStreamClient
35 typedef enum { off, searchWorse, searchBest } state_t;
36 typedef enum {
up, down } direction_t;
41 virtual bool connectI (Interface *i);
42 virtual bool disconnectI(Interface *i);
49 bool isRunningUp()
const {
return m_state != off && m_direction == up; }
50 bool isRunningDown()
const {
return m_state != off && m_direction == down; }
55 bool noticePowerChanged (
bool ,
const IRadioDevice *) {
return false; }
68 virtual void finish();
70 virtual void abort() = 0;
71 virtual bool isGood()
const = 0;
72 virtual bool isBetter()
const = 0;
73 virtual bool isWorse()
const = 0;
74 virtual bool bestFound()
const = 0;
75 virtual void getData() = 0;
76 virtual void rememberBest() = 0;
77 virtual bool nextSeekStep() = 0;
78 virtual void applyBest() = 0;
RECEIVERS const IRadioDevice *bool noticeStationChanged(const RadioStation &, const IRadioDevice *)
bool noticeRDSRadioTextChanged(const QString &, const IRadioDevice *)
bool noticeCurrentSoundStreamSourceIDChanged(SoundStreamID, const IRadioDevice *)
bool noticeRDSStateChanged(bool, const IRadioDevice *)
SoundStreamID m_SoundStreamID
bool noticeDescriptionChanged(const QString &, const IRadioDevice *)
bool noticeRDSStationNameChanged(const QString &, const IRadioDevice *)
bool noticeCurrentSoundStreamSinkIDChanged(SoundStreamID, const IRadioDevice *)
bool isRunningDown() const