blob: 20247dac80c71d33430539d72fb5ddfe2ef13dce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
#ifndef FMRXCONTROL_H
#define FMRXCONTROL_H
#include <QRadioTunerControl>
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<int, int> 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
|