1// qradiodata.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 QRadioData : QObject, QMediaBindableInterface
24{
25%TypeHeaderCode
26#include <qradiodata.h>
27%End
28
29public:
30    enum Error
31    {
32        NoError,
33        ResourceError,
34        OpenError,
35        OutOfRangeError,
36    };
37
38    enum ProgramType
39    {
40        Undefined,
41        News,
42        CurrentAffairs,
43        Information,
44        Sport,
45        Education,
46        Drama,
47        Culture,
48        Science,
49        Varied,
50        PopMusic,
51        RockMusic,
52        EasyListening,
53        LightClassical,
54        SeriousClassical,
55        OtherMusic,
56        Weather,
57        Finance,
58        ChildrensProgrammes,
59        SocialAffairs,
60        Religion,
61        PhoneIn,
62        Travel,
63        Leisure,
64        JazzMusic,
65        CountryMusic,
66        NationalMusic,
67        OldiesMusic,
68        FolkMusic,
69        Documentary,
70        AlarmTest,
71        Alarm,
72        Talk,
73        ClassicRock,
74        AdultHits,
75        SoftRock,
76        Top40,
77        Soft,
78        Nostalgia,
79        Classical,
80        RhythmAndBlues,
81        SoftRhythmAndBlues,
82        Language,
83        ReligiousMusic,
84        ReligiousTalk,
85        Personality,
86        Public,
87        College,
88    };
89
90    QRadioData(QMediaObject *mediaObject, QObject *parent /TransferThis/ = 0);
91    virtual ~QRadioData();
92    virtual QMediaObject *mediaObject() const;
93    QMultimedia::AvailabilityStatus availability() const;
94    QString stationId() const;
95    QRadioData::ProgramType programType() const;
96    QString programTypeName() const;
97    QString stationName() const;
98    QString radioText() const;
99    bool isAlternativeFrequenciesEnabled() const;
100    QRadioData::Error error() const;
101    QString errorString() const;
102
103public slots:
104    void setAlternativeFrequenciesEnabled(bool enabled);
105
106signals:
107    void stationIdChanged(QString stationId);
108    void programTypeChanged(QRadioData::ProgramType programType);
109    void programTypeNameChanged(QString programTypeName);
110    void stationNameChanged(QString stationName);
111    void radioTextChanged(QString radioText);
112    void alternativeFrequenciesEnabledChanged(bool enabled);
113    void error(QRadioData::Error error);
114
115protected:
116    virtual bool setMediaObject(QMediaObject *);
117};
118