From a111ee6b11112295867f36284ef0f85934c44509 Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Mon, 2 Jan 2012 03:39:02 +0100 Subject: initial import --- fmrxcontrol.h | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 fmrxcontrol.h (limited to 'fmrxcontrol.h') diff --git a/fmrxcontrol.h b/fmrxcontrol.h new file mode 100644 index 0000000..20247da --- /dev/null +++ b/fmrxcontrol.h @@ -0,0 +1,61 @@ +#ifndef FMRXCONTROL_H +#define FMRXCONTROL_H + +#include + +class FmRxService; + +class FmRxControl : public QRadioTunerControl +{ + Q_OBJECT +private: + FmRxService *m_service; + +public: + explicit FmRxControl(FmRxService *parent = 0); + + bool isAvailable() const; + QtMultimediaKit::AvailabilityError availabilityError() const; + + QRadioTuner::State state() const; + + QRadioTuner::Band band() const; + void setBand(QRadioTuner::Band b); + bool isBandSupported(QRadioTuner::Band b) const; + + int frequency() const; + int frequencyStep(QRadioTuner::Band b) const; + QPair frequencyRange(QRadioTuner::Band b) const; + void setFrequency(int frequency); + + bool isStereo() const; + QRadioTuner::StereoMode stereoMode() const; + void setStereoMode(QRadioTuner::StereoMode mode); + + int signalStrength() const; + + int volume() const; + void setVolume(int volume); + + bool isMuted() const; + void setMuted(bool muted); + + bool isSearching() const; + void cancelSearch(); + + void searchForward(); + void searchBackward(); + + void start(); + void stop(); + + QRadioTuner::Error error() const; + QString errorString() const; + +private slots: + void handleStarted(); + void handleStopped(); + void handleTuned(double frequency); +}; + +#endif // FMRXCONTROL_H -- cgit v1.2.3