1 | /**************************************************************************** |
2 | ** |
3 | ** Copyright (C) 2016 The Qt Company Ltd. |
4 | ** Contact: https://www.qt.io/licensing/ |
5 | ** |
6 | ** This file is part of the Qt Toolkit. |
7 | ** |
8 | ** $QT_BEGIN_LICENSE:LGPL$ |
9 | ** Commercial License Usage |
10 | ** Licensees holding valid commercial Qt licenses may use this file in |
11 | ** accordance with the commercial license agreement provided with the |
12 | ** Software or, alternatively, in accordance with the terms contained in |
13 | ** a written agreement between you and The Qt Company. For licensing terms |
14 | ** and conditions see https://www.qt.io/terms-conditions. For further |
15 | ** information use the contact form at https://www.qt.io/contact-us. |
16 | ** |
17 | ** GNU Lesser General Public License Usage |
18 | ** Alternatively, this file may be used under the terms of the GNU Lesser |
19 | ** General Public License version 3 as published by the Free Software |
20 | ** Foundation and appearing in the file LICENSE.LGPL3 included in the |
21 | ** packaging of this file. Please review the following information to |
22 | ** ensure the GNU Lesser General Public License version 3 requirements |
23 | ** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. |
24 | ** |
25 | ** GNU General Public License Usage |
26 | ** Alternatively, this file may be used under the terms of the GNU |
27 | ** General Public License version 2.0 or (at your option) the GNU General |
28 | ** Public license version 3 or any later version approved by the KDE Free |
29 | ** Qt Foundation. The licenses are as published by the Free Software |
30 | ** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 |
31 | ** included in the packaging of this file. Please review the following |
32 | ** information to ensure the GNU General Public License requirements will |
33 | ** be met: https://www.gnu.org/licenses/gpl-2.0.html and |
34 | ** https://www.gnu.org/licenses/gpl-3.0.html. |
35 | ** |
36 | ** $QT_END_LICENSE$ |
37 | ** |
38 | ****************************************************************************/ |
39 | |
40 | #include <qtmultimediaglobal.h> |
41 | #include "qradiodatacontrol.h" |
42 | #include "qmediacontrol_p.h" |
43 | |
44 | QT_BEGIN_NAMESPACE |
45 | |
46 | |
47 | /*! |
48 | \class QRadioDataControl |
49 | \obsolete |
50 | \inmodule QtMultimedia |
51 | |
52 | |
53 | \ingroup multimedia_control |
54 | |
55 | |
56 | \brief The QRadioDataControl class provides access to the RDS functionality of the |
57 | radio in the QMediaService. |
58 | |
59 | The functionality provided by this control is exposed to application code |
60 | through the QRadioData class. |
61 | |
62 | The interface name of QRadioDataControl is \c org.qt-project.qt.radiodatacontrol/5.0 as |
63 | defined in QRadioDataControl_iid. |
64 | |
65 | \sa QMediaService::requestControl(), QRadioData |
66 | */ |
67 | |
68 | /*! |
69 | \macro QRadioDataControl_iid |
70 | |
71 | \c org.qt-project.qt.radiodatacontrol/5.0 |
72 | |
73 | Defines the interface name of the QRadioDataControl class. |
74 | |
75 | \relates QRadioDataControl |
76 | */ |
77 | |
78 | /*! |
79 | Constructs a radio data control with the given \a parent. |
80 | */ |
81 | |
82 | QRadioDataControl::QRadioDataControl(QObject *parent): |
83 | QMediaControl(*new QMediaControlPrivate, parent) |
84 | { |
85 | } |
86 | |
87 | /*! |
88 | Destroys a radio data control. |
89 | */ |
90 | |
91 | QRadioDataControl::~QRadioDataControl() |
92 | { |
93 | } |
94 | |
95 | /*! |
96 | \fn QRadioData::Error QRadioDataControl::error() const |
97 | |
98 | Returns the error state of a radio data. |
99 | */ |
100 | |
101 | /*! |
102 | \fn QString QRadioDataControl::errorString() const |
103 | |
104 | Returns a string describing a radio data's error state. |
105 | */ |
106 | |
107 | /*! |
108 | \fn void QRadioDataControl::error(QRadioData::Error error) |
109 | |
110 | Signals that an \a error has occurred. |
111 | */ |
112 | |
113 | /*! |
114 | \fn QString QRadioDataControl::stationId() const |
115 | |
116 | Returns the current Program Identification |
117 | */ |
118 | |
119 | /*! |
120 | \fn QRadioData::ProgramType QRadioDataControl::programType() const |
121 | |
122 | Returns the current Program Type |
123 | */ |
124 | |
125 | /*! |
126 | \fn QString QRadioDataControl::programTypeName() const |
127 | |
128 | Returns the current Program Type Name |
129 | */ |
130 | |
131 | /*! |
132 | \fn QString QRadioDataControl::stationName() const |
133 | |
134 | Returns the current Program Service |
135 | */ |
136 | |
137 | /*! |
138 | \fn QString QRadioDataControl::radioText() const |
139 | |
140 | Returns the current Radio Text |
141 | */ |
142 | |
143 | /*! |
144 | \fn void QRadioDataControl::setAlternativeFrequenciesEnabled(bool enabled) |
145 | |
146 | Sets the Alternative Frequency to \a enabled |
147 | */ |
148 | |
149 | /*! |
150 | \fn bool QRadioDataControl::isAlternativeFrequenciesEnabled() const |
151 | |
152 | Returns true if Alternative Frequency is currently enabled |
153 | */ |
154 | |
155 | /*! |
156 | \fn QRadioDataControl::alternativeFrequenciesEnabledChanged(bool enabled) |
157 | |
158 | Signals that the alternative frequencies setting has changed to the value of \a enabled. |
159 | */ |
160 | |
161 | /*! |
162 | \fn void QRadioDataControl::stationIdChanged(QString stationId) |
163 | |
164 | Signals that the Program Identification \a stationId has changed |
165 | */ |
166 | |
167 | /*! |
168 | \fn void QRadioDataControl::programTypeChanged(QRadioData::ProgramType programType) |
169 | |
170 | Signals that the Program Type \a programType has changed |
171 | */ |
172 | |
173 | /*! |
174 | \fn void QRadioDataControl::programTypeNameChanged(QString programTypeName) |
175 | |
176 | Signals that the Program Type Name \a programTypeName has changed |
177 | */ |
178 | |
179 | /*! |
180 | \fn void QRadioDataControl::stationNameChanged(QString stationName) |
181 | |
182 | Signals that the Program Service \a stationName has changed |
183 | */ |
184 | |
185 | /*! |
186 | \fn void QRadioDataControl::radioTextChanged(QString radioText) |
187 | |
188 | Signals that the Radio Text \a radioText has changed |
189 | */ |
190 | |
191 | QT_END_NAMESPACE |
192 | |
193 | #include "moc_qradiodatacontrol.cpp" |
194 | |