1// qradiotunercontrol.sip generated by MetaSIP
2//
3// This file is part of the QtMultimedia Python extension module.
4//
5// Copyright (c) 2021 Riverbank Computing Limited <info@riverbankcomputing.com>
6//
7// This file is part of PyQt5.
8//
9// This file may be used under the terms of the GNU General Public License
10// version 3.0 as published by the Free Software Foundation and appearing in
11// the file LICENSE included in the packaging of this file.  Please review the
12// following information to ensure the GNU General Public License version 3.0
13// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
14//
15// If you do not wish to use this file under the terms of the GPL version 3.0
16// then you may purchase a commercial license.  For more information contact
17// info@riverbankcomputing.com.
18//
19// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
20// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
21
22
23class QRadioTunerControl : QMediaControl
24{
25%TypeHeaderCode
26#include <qradiotunercontrol.h>
27%End
28
29public:
30    virtual ~QRadioTunerControl();
31    virtual QRadioTuner::State state() const = 0;
32    virtual QRadioTuner::Band band() const = 0;
33    virtual void setBand(QRadioTuner::Band b) = 0;
34    virtual bool isBandSupported(QRadioTuner::Band b) const = 0;
35    virtual int frequency() const = 0;
36    virtual int frequencyStep(QRadioTuner::Band b) const = 0;
37    virtual QPair<int, int> frequencyRange(QRadioTuner::Band b) const = 0;
38    virtual void setFrequency(int frequency) = 0;
39    virtual bool isStereo() const = 0;
40    virtual QRadioTuner::StereoMode stereoMode() const = 0;
41    virtual void setStereoMode(QRadioTuner::StereoMode mode) = 0;
42    virtual int signalStrength() const = 0;
43    virtual int volume() const = 0;
44    virtual void setVolume(int volume) = 0;
45    virtual bool isMuted() const = 0;
46    virtual void setMuted(bool muted) = 0;
47    virtual bool isSearching() const = 0;
48    virtual bool isAntennaConnected() const;
49    virtual void searchForward() = 0;
50    virtual void searchBackward() = 0;
51    virtual void searchAllStations(QRadioTuner::SearchMode searchMode = QRadioTuner::SearchFast) = 0;
52    virtual void cancelSearch() = 0;
53    virtual void start() = 0;
54    virtual void stop() = 0;
55    virtual QRadioTuner::Error error() const = 0;
56    virtual QString errorString() const = 0;
57
58signals:
59    void stateChanged(QRadioTuner::State state);
60    void bandChanged(QRadioTuner::Band band);
61    void frequencyChanged(int frequency);
62    void stereoStatusChanged(bool stereo);
63    void searchingChanged(bool searching);
64    void signalStrengthChanged(int signalStrength);
65    void volumeChanged(int volume);
66    void mutedChanged(bool muted);
67    void error(QRadioTuner::Error err);
68    void stationFound(int frequency, QString stationId);
69    void antennaConnectedChanged(bool connectionStatus);
70
71protected:
72    explicit QRadioTunerControl(QObject *parent /TransferThis/ = 0);
73};
74