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; }
56 bool noticeStationChanged (
const RadioStation &,
const IRadioDevice *) {
return false; }
57 bool noticeDescriptionChanged (
const QString &,
const IRadioDevice *) {
return false; }
59 bool noticeRDSStateChanged (
bool ,
const IRadioDevice *) {
return false; }
60 bool noticeRDSRadioTextChanged (
const QString &,
const IRadioDevice *) {
return false; }
61 bool noticeRDSStationNameChanged(
const QString &,
const IRadioDevice *) {
return false; }
63 bool noticeCurrentSoundStreamSourceIDChanged(
SoundStreamID ,
const IRadioDevice *) {
return false; }
64 bool noticeCurrentSoundStreamSinkIDChanged (
SoundStreamID ,
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;