This file is indexed.

/usr/share/qt5/doc/qtmultimedia/qml-qtmultimedia-radio.html is in qtmultimedia5-doc-html 5.9.5-0ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qdeclarativeradio.cpp -->
  <title>Radio QML Type | Qt Multimedia 5.9</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="main">
    <div class="main-rounded">
      <div class="navigationbar">
        <table><tr>
<td >Qt 5.9</td><td ><a href="qtmultimedia-index.html">Qt Multimedia</a></td><td ><a href="qtmultimedia-qmlmodule.html">QML Types</a></td><td >Radio QML Type</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right">Qt 5.9.5 Reference Documentation</td>
        </tr></table>
      </div>
    </div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#properties">Properties</a></li>
<li class="level1"><a href="#signals">Signals</a></li>
<li class="level1"><a href="#methods">Methods</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">Radio QML Type</h1>
<span class="subtitle"></span>
<!-- $$$Radio-brief -->
<p>Access radio functionality from a QML application. <a href="#details">More...</a></p>
<!-- @@@Radio -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> import QtMultimedia 5.8</td></tr></table></div><ul>
<li><a href="qml-qtmultimedia-radio-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="properties"></a>
<h2 id="properties">Properties</h2>
<ul>
<li class="fn"><b><b><a href="qml-qtmultimedia-radio.html#antennaConnected-prop">antennaConnected</a></b></b> : int</li>
<li class="fn"><b><b><a href="qml-qtmultimedia-radio.html#availability-prop">availability</a></b></b> : enumeration</li>
<li class="fn"><b><b><a href="qml-qtmultimedia-radio.html#band-prop">band</a></b></b> : enumeration</li>
<li class="fn"><b><b><a href="qml-qtmultimedia-radio.html#frequency-prop">frequency</a></b></b> : int</li>
<li class="fn"><b><b><a href="qml-qtmultimedia-radio.html#frequencyStep-prop">frequencyStep</a></b></b> : int</li>
<li class="fn"><b><b><a href="qml-qtmultimedia-radio.html#maximumFrequency-prop">maximumFrequency</a></b></b> : int</li>
<li class="fn"><b><b><a href="qml-qtmultimedia-radio.html#minimumFrequency-prop">minimumFrequency</a></b></b> : int</li>
<li class="fn"><b><b><a href="qml-qtmultimedia-radio.html#muted-prop">muted</a></b></b> : bool</li>
<li class="fn"><b><b><a href="qml-qtmultimedia-radio.html#searching-prop">searching</a></b></b> : bool</li>
<li class="fn"><b><b><a href="qml-qtmultimedia-radio.html#signalStrength-prop">signalStrength</a></b></b> : int</li>
<li class="fn"><b><b><a href="qml-qtmultimedia-radio.html#state-prop">state</a></b></b> : enumeration</li>
<li class="fn"><b><b><a href="qml-qtmultimedia-radio.html#stereo-prop">stereo</a></b></b> : bool</li>
<li class="fn"><b><b><a href="qml-qtmultimedia-radio.html#stereoMode-prop">stereoMode</a></b></b> : enumeration</li>
<li class="fn"><b><b><a href="qml-qtmultimedia-radio.html#volume-prop">volume</a></b></b> : int</li>
</ul>
<a name="signals"></a>
<h2 id="signals">Signals</h2>
<ul>
<li class="fn"><b><b><a href="qml-qtmultimedia-radio.html#stationFound-signal">stationFound</a></b></b>(int <i>frequency</i>, string <i>stationId</i>)</li>
</ul>
<a name="methods"></a>
<h2 id="methods">Methods</h2>
<ul>
<li class="fn"><b><b><a href="qml-qtmultimedia-radio.html#cancelScan-method">cancelScan</a></b></b>()</li>
<li class="fn"><b><b><a href="qml-qtmultimedia-radio.html#scanDown-method">scanDown</a></b></b>()</li>
<li class="fn"><b><b><a href="qml-qtmultimedia-radio.html#scanUp-method">scanUp</a></b></b>()</li>
<li class="fn"><b><b><a href="qml-qtmultimedia-radio.html#searchAllStations-method">searchAllStations</a></b></b>(enumeration <i>searchMode</i>)</li>
<li class="fn"><b><b><a href="qml-qtmultimedia-radio.html#start-method">start</a></b></b>()</li>
<li class="fn"><b><b><a href="qml-qtmultimedia-radio.html#stop-method">stop</a></b></b>()</li>
<li class="fn"><b><b><a href="qml-qtmultimedia-radio.html#tuneDown-method">tuneDown</a></b></b>()</li>
<li class="fn"><b><b><a href="qml-qtmultimedia-radio.html#tuneUp-method">tuneUp</a></b></b>()</li>
</ul>
<!-- $$$Radio-description -->
<a name="details"></a>
<h2 id="details">Detailed Description</h2>
<pre class="qml">

  <span class="type">Rectangle</span> {
      <span class="name">width</span>: <span class="number">320</span>
      <span class="name">height</span>: <span class="number">480</span>

      <span class="type"><a href="qml-qtmultimedia-radio.html">Radio</a></span> {
          <span class="name">id</span>: <span class="name">radio</span>
          <span class="name">band</span>: <span class="name">Radio</span>.<span class="name">FM</span>
      }

      <span class="type">MouseArea</span> {
          <span class="name">x</span>: <span class="number">0</span>; <span class="name">y</span>: <span class="number">0</span>
          <span class="name">height</span>: <span class="name">parent</span>.<span class="name">height</span>
          <span class="name">width</span>: <span class="name">parent</span>.<span class="name">width</span> <span class="operator">/</span> <span class="number">2</span>

          <span class="name">onClicked</span>: <span class="name">radio</span>.<span class="name">scanDown</span>()
      }

      <span class="type">MouseArea</span> {
          <span class="name">x</span>: <span class="name">parent</span>.<span class="name">width</span> <span class="operator">/</span> <span class="number">2</span>; <span class="name">y</span>: <span class="number">0</span>
          <span class="name">height</span>: <span class="name">parent</span>.<span class="name">height</span>
          <span class="name">width</span>: <span class="name">parent</span>.<span class="name">width</span> <span class="operator">/</span> <span class="number">2</span>

          <span class="name">onClicked</span>: <span class="name">radio</span>.<span class="name">scanUp</span>()
      }
  }

</pre>
<p>You can use <code>Radio</code> to tune the radio and get information about the signal. You can also use the Radio to get information about tuning, for instance the frequency steps supported for tuning.</p>
<p>The corresponding <a href="qml-qtmultimedia-radiodata.html">RadioData</a> gives RDS information about the current radio station. The best way to access the <a href="qml-qtmultimedia-radiodata.html">RadioData</a> for the current Radio is to use the <code>radioData</code> property.</p>
<p><b>See also </b><a href="radiooverview.html">Radio Overview</a>.</p>
<!-- @@@Radio -->
<h2>Property Documentation</h2>
<!-- $$$antennaConnected -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="antennaConnected-prop">
<td class="tblQmlPropNode"><p>
<a name="antennaConnected-prop"></a><span class="name">antennaConnected</span> : <span class="type">int</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This property is true if there is an antenna connected. Otherwise it will be false.</p>
</div></div><!-- @@@antennaConnected -->
<br/>
<!-- $$$availability -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="availability-prop">
<td class="tblQmlPropNode"><p>
<a name="availability-prop"></a><span class="name">availability</span> : <span class="type">enumeration</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Returns the availability state of the radio.</p>
<p>This is one of:</p>
<div class="table"><table class="generic">
 <thead><tr class="qt-style"><th >Value</th><th >Description</th></tr></thead>
<tr valign="top" class="odd"><td >Available</td><td >The radio is available to use</td></tr>
<tr valign="top" class="even"><td >Busy</td><td >The radio is usually available to use, but is currently busy. This can happen when some other process needs to use the audio hardware.</td></tr>
<tr valign="top" class="odd"><td >Unavailable</td><td >The radio is not available to use (there may be no radio hardware)</td></tr>
<tr valign="top" class="even"><td >ResourceMissing</td><td >There is one or more resources missing, so the radio cannot be used. It may be possible to try again at a later time. This can occur if there is no antenna connected - see the <a href="qml-qtmultimedia-radio.html#antennaConnected-prop">antennaConnected</a> property as well.</td></tr>
</table></div>
</div></div><!-- @@@availability -->
<br/>
<!-- $$$band -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="band-prop">
<td class="tblQmlPropNode"><p>
<a name="band-prop"></a><span class="name">band</span> : <span class="type">enumeration</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This property holds the frequency band used for the radio, which can be specified as any one of the values in the table below.</p>
<div class="table"><table class="generic">
 <thead><tr class="qt-style"><th >Value</th><th >Description</th></tr></thead>
<tr valign="top" class="odd"><td >AM</td><td >520 to 1610 kHz, 9 or 10kHz channel spacing, extended 1610 to 1710 kHz</td></tr>
<tr valign="top" class="even"><td >FM</td><td >87.5 to 108.0 MHz, except Japan 76-90 MHz</td></tr>
<tr valign="top" class="odd"><td >SW</td><td >1.711 to 30.0 MHz, divided into 15 bands. 5kHz channel spacing</td></tr>
<tr valign="top" class="even"><td >LW</td><td >148.5 to 283.5 kHz, 9kHz channel spacing (Europe, Africa, Asia)</td></tr>
<tr valign="top" class="odd"><td >FM2</td><td >range not defined, used when area supports more than one FM range</td></tr>
</table></div>
</div></div><!-- @@@band -->
<br/>
<!-- $$$frequency -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="frequency-prop">
<td class="tblQmlPropNode"><p>
<a name="frequency-prop"></a><span class="name">frequency</span> : <span class="type">int</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Sets the frequency in Hertz that the radio is tuned to. The frequency must be within the frequency range for the current band, otherwise it will be changed to be within the frequency range.</p>
<p><b>See also </b><a href="qml-qtmultimedia-radio.html#maximumFrequency-prop">maximumFrequency</a> and <a href="qml-qtmultimedia-radio.html#minimumFrequency-prop">minimumFrequency</a>.</p>
</div></div><!-- @@@frequency -->
<br/>
<!-- $$$frequencyStep -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="frequencyStep-prop">
<td class="tblQmlPropNode"><p>
<a name="frequencyStep-prop"></a><span class="name">frequencyStep</span> : <span class="type">int</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>The number of Hertz for each step when tuning the radio manually. The value is for the current <a href="qml-qtmultimedia-radio.html#band-prop">band</a>.</p>
</div></div><!-- @@@frequencyStep -->
<br/>
<!-- $$$maximumFrequency -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="maximumFrequency-prop">
<td class="tblQmlPropNode"><p>
<a name="maximumFrequency-prop"></a><span class="name">maximumFrequency</span> : <span class="type">int</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>The maximum frequency for the current <a href="qml-qtmultimedia-radio.html#band-prop">band</a>.</p>
</div></div><!-- @@@maximumFrequency -->
<br/>
<!-- $$$minimumFrequency -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="minimumFrequency-prop">
<td class="tblQmlPropNode"><p>
<a name="minimumFrequency-prop"></a><span class="name">minimumFrequency</span> : <span class="type">int</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>The minimum frequency for the current <a href="qml-qtmultimedia-radio.html#band-prop">band</a>.</p>
</div></div><!-- @@@minimumFrequency -->
<br/>
<!-- $$$muted -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="muted-prop">
<td class="tblQmlPropNode"><p>
<a name="muted-prop"></a><span class="name">muted</span> : <span class="type">bool</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This property reflects whether the radio is muted or not.</p>
</div></div><!-- @@@muted -->
<br/>
<!-- $$$searching -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="searching-prop">
<td class="tblQmlPropNode"><p>
<a name="searching-prop"></a><span class="name">searching</span> : <span class="type">bool</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This property is true if the radio is currently searching for radio stations, for instance using the <a href="qml-qtmultimedia-radio.html#scanUp-method">scanUp</a>, <a href="qml-qtmultimedia-radio.html#scanDown-method">scanDown</a>, and <a href="qml-qtmultimedia-radio.html#searchAllStations-method">searchAllStations</a> methods. Once the search completes, or if it is cancelled using <a href="qml-qtmultimedia-radio.html#cancelScan-method">cancelScan</a>, this property will be false.</p>
</div></div><!-- @@@searching -->
<br/>
<!-- $$$signalStrength -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="signalStrength-prop">
<td class="tblQmlPropNode"><p>
<a name="signalStrength-prop"></a><span class="name">signalStrength</span> : <span class="type">int</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>The strength of the current radio signal as a percentage where 0% equals no signal, and 100% is a very good signal.</p>
</div></div><!-- @@@signalStrength -->
<br/>
<!-- $$$state -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="state-prop">
<td class="tblQmlPropNode"><p>
<a name="state-prop"></a><span class="name">state</span> : <span class="type">enumeration</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This property holds the current state of the Radio.</p>
<div class="table"><table class="generic">
 <thead><tr class="qt-style"><th >Value</th><th >Description</th></tr></thead>
<tr valign="top" class="odd"><td >ActiveState</td><td >The radio is started and active</td></tr>
<tr valign="top" class="even"><td >StoppedState</td><td >The radio is stopped</td></tr>
</table></div>
<p><b>See also </b><a href="qml-qtmultimedia-radio.html#start-method">start</a> and <a href="qml-qtmultimedia-radio.html#stop-method">stop</a>.</p>
</div></div><!-- @@@state -->
<br/>
<!-- $$$stereo -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="stereo-prop">
<td class="tblQmlPropNode"><p>
<a name="stereo-prop"></a><span class="name">stereo</span> : <span class="type">bool</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This property holds whether the radio is receiving a stereo signal or not. If <a href="qml-qtmultimedia-radio.html#stereoMode-prop">stereoMode</a> is set to ForceMono the value will always be false. Likewise, it will always be true if <a href="qml-qtmultimedia-radio.html#stereoMode-prop">stereoMode</a> is set to ForceStereo.</p>
<p><b>See also </b><a href="qml-qtmultimedia-radio.html#stereoMode-prop">stereoMode</a>.</p>
</div></div><!-- @@@stereo -->
<br/>
<!-- $$$stereoMode -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="stereoMode-prop">
<td class="tblQmlPropNode"><p>
<a name="stereoMode-prop"></a><span class="name">stereoMode</span> : <span class="type">enumeration</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This property holds the stereo mode of the radio, which can be set to any one of the values in the table below.</p>
<div class="table"><table class="generic">
 <thead><tr class="qt-style"><th >Value</th><th >Description</th></tr></thead>
<tr valign="top" class="odd"><td >Auto</td><td >Uses stereo mode matching the station</td></tr>
<tr valign="top" class="even"><td >ForceStereo</td><td >Forces the radio to play the station in stereo, converting the sound signal if necessary</td></tr>
<tr valign="top" class="odd"><td >ForceMono</td><td >Forces the radio to play the station in mono, converting the sound signal if necessary</td></tr>
</table></div>
</div></div><!-- @@@stereoMode -->
<br/>
<!-- $$$volume -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="volume-prop">
<td class="tblQmlPropNode"><p>
<a name="volume-prop"></a><span class="name">volume</span> : <span class="type">int</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Set this property to control the volume of the radio. The valid range of the volume is from 0 to 100.</p>
</div></div><!-- @@@volume -->
<br/>
<h2>Signal Documentation</h2>
<!-- $$$stationFound -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="stationFound-signal">
<td class="tblQmlFuncNode"><p>
<a name="stationFound-signal"></a><span class="name">stationFound</span>(<span class="type">int</span> <i>frequency</i>, <span class="type">string</span> <i>stationId</i>)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This signal is emitted when a new radio station is found. This signal is only emitted if <a href="qml-qtmultimedia-radio.html#searchAllStations-method">searchAllStations</a> is called with <code>SearchGetStationId</code>.</p>
<p>The <i>frequency</i> is returned in Hertz, and the <i>stationId</i> corresponds to the station Id in the <a href="qml-qtmultimedia-radiodata.html">RadioData</a> for this radio station.</p>
<p>The corresponding handler is <code>onStationFound</code>.</p>
</div></div><!-- @@@stationFound -->
<br/>
<h2>Method Documentation</h2>
<!-- $$$cancelScan -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="cancelScan-method">
<td class="tblQmlFuncNode"><p>
<a name="cancelScan-method"></a><span class="name">cancelScan</span>()</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Cancel the current scan. Will also cancel a search started with <a href="qml-qtmultimedia-radio.html#searchAllStations-method">searchAllStations</a>.</p>
</div></div><!-- @@@cancelScan -->
<br/>
<!-- $$$scanDown -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="scanDown-method">
<td class="tblQmlFuncNode"><p>
<a name="scanDown-method"></a><span class="name">scanDown</span>()</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Searches backward in the frequency range for the current band.</p>
</div></div><!-- @@@scanDown -->
<br/>
<!-- $$$scanUp -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="scanUp-method">
<td class="tblQmlFuncNode"><p>
<a name="scanUp-method"></a><span class="name">scanUp</span>()</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Searches forward in the frequency range for the current band.</p>
</div></div><!-- @@@scanUp -->
<br/>
<!-- $$$searchAllStations -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="searchAllStations-method">
<td class="tblQmlFuncNode"><p>
<a name="searchAllStations-method"></a><span class="name">searchAllStations</span>(<span class="type">enumeration</span> <i>searchMode</i>)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Start searching the complete frequency range for the current band, and save all the radio stations found. The search mode can be either of the values described in the table below.</p>
<div class="table"><table class="generic">
 <thead><tr class="qt-style"><th >Value</th><th >Description</th></tr></thead>
<tr valign="top" class="odd"><td >SearchFast</td><td >Stores each radio station for later retrival and tuning</td></tr>
<tr valign="top" class="even"><td >SearchGetStationId</td><td >Does the same as SearchFast, but also emits the station Id with the <a href="qml-qtmultimedia-radio.html#stationFound-signal">stationFound</a> signal.</td></tr>
</table></div>
<p>The snippet below uses <code>searchAllStations</code> with <code>SearchGetStationId</code> to receive all the radio stations in the current band, and store them in a ListView. The station Id is shown to the user and if the user presses a station, the radio is tuned to this station.</p>
<pre class="qml">

  <span class="type">Item</span> {
      <span class="name">width</span>: <span class="number">640</span>
      <span class="name">height</span>: <span class="number">360</span>

      <span class="type"><a href="qml-qtmultimedia-radio.html">Radio</a></span> {
          <span class="name">id</span>: <span class="name">radio</span>
          <span class="name">onStationFound</span>: <span class="name">radioStations</span>.<span class="name">append</span>({&quot;frequency&quot;: <span class="name">frequency</span>, &quot;stationId&quot;: <span class="name">stationId</span>})
      }

      <span class="type">ListModel</span> {
          <span class="name">id</span>: <span class="name">radioStations</span>
      }

      <span class="type">ListView</span> {
          <span class="name">model</span>: <span class="name">radioStations</span>
          <span class="name">delegate</span>: <span class="name">Rectangle</span> {
                  <span class="type">MouseArea</span> {
                      <span class="name">anchors</span>.fill: <span class="name">parent</span>
                      <span class="name">onClicked</span>: <span class="name">radio</span>.<span class="name">frequency</span> <span class="operator">=</span> <span class="name">frequency</span>
                  }

                  <span class="type">Text</span> {
                      <span class="name">anchors</span>.fill: <span class="name">parent</span>
                      <span class="name">text</span>: <span class="name">stationId</span>
                  }
              }
      }

      <span class="type">Rectangle</span> {
          <span class="type">MouseArea</span> {
              <span class="name">anchors</span>.fill: <span class="name">parent</span>
              <span class="name">onClicked</span>: <span class="name">radio</span>.<span class="name">searchAllStations</span>(<span class="name">Radio</span>.<span class="name">SearchGetStationId</span>)
          }
      }
  }

</pre>
</div></div><!-- @@@searchAllStations -->
<br/>
<!-- $$$start -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="start-method">
<td class="tblQmlFuncNode"><p>
<a name="start-method"></a><span class="name">start</span>()</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Starts the radio. If the radio is available, as determined by the <a href="qml-qtmultimedia-radio.html#availability-prop">availability</a> property, this will result in the <a href="qml-qtmultimedia-radio.html#state-prop">state</a> becoming <code>ActiveState</code>.</p>
</div></div><!-- @@@start -->
<br/>
<!-- $$$stop -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="stop-method">
<td class="tblQmlFuncNode"><p>
<a name="stop-method"></a><span class="name">stop</span>()</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Stops the radio. After calling this method the <a href="qml-qtmultimedia-radio.html#state-prop">state</a> will be <code>StoppedState</code>.</p>
</div></div><!-- @@@stop -->
<br/>
<!-- $$$tuneDown -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="tuneDown-method">
<td class="tblQmlFuncNode"><p>
<a name="tuneDown-method"></a><span class="name">tuneDown</span>()</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Decrements the frequency by the frequency step for the current band. If the frequency is already set to the minimum frequency, calling this function has no effect.</p>
<p><b>See also </b><a href="qml-qtmultimedia-radio.html#band-prop">band</a>, <a href="qml-qtmultimedia-radio.html#frequencyStep-prop">frequencyStep</a>, and <a href="qml-qtmultimedia-radio.html#minimumFrequency-prop">minimumFrequency</a>.</p>
</div></div><!-- @@@tuneDown -->
<br/>
<!-- $$$tuneUp -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="tuneUp-method">
<td class="tblQmlFuncNode"><p>
<a name="tuneUp-method"></a><span class="name">tuneUp</span>()</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Increments the frequency by the frequency step for the current band. If the frequency is already set to the maximum frequency, calling this function has no effect.</p>
<p><b>See also </b><a href="qml-qtmultimedia-radio.html#band-prop">band</a>, <a href="qml-qtmultimedia-radio.html#frequencyStep-prop">frequencyStep</a>, and <a href="qml-qtmultimedia-radio.html#maximumFrequency-prop">maximumFrequency</a>.</p>
</div></div><!-- @@@tuneUp -->
<br/>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2017 The Qt Company Ltd.
   Documentation contributions included herein are the copyrights of
   their respective owners.<br>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br>    Qt and respective logos are trademarks of The Qt Company Ltd.     in Finland and/or other countries worldwide. All other trademarks are property
   of their respective owners. </p>
</div>
</body>
</html>