Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Classes principales  ·  Annotées  ·  Classes groupées  ·  Modules  ·  Fonctions  · 

RadioData

The RadioData type allows you to access RDS data from a QML application. More...

Inherits Item

Properties

Detailed Description

This type is part of the QtMultimedia 5.0 module.

RadioData is your gateway to all the data available through RDS. RDS is the Radio Data System which allows radio stations to broadcast information like the stationId, programType, programTypeName, stationName, and radioText. This information can be read from the RadioData. It also allows you to set whether the radio should tune to alternative frequencies if the current signal strength falls too much.

 import QtQuick 2.0
 import QtMultimedia 5.0

 Rectangle {
     width: 480
     height: 320

     Radio {
         id: radio
         band: Radio.FM
     }

     Column {
         Text {
             text: radio.radioData.stationName
         }

         Text {
             text: radio.radioData.programTypeName
         }

         Text {
             text: radio.radioData.radioText
         }
     }
 }

You use RadioData together with a Radio, either by accessing the radioData property of the Radio, or creating a separate RadioData. The properties of the RadioData type will reflect the information broadcast by the radio station the Radio is currently tuned to.

See also Radio Overview.

Property Documentation

alternativeFrequenciesEnabled : bool

This property allows you to specify whether the radio should try and tune to alternative frequencies if the signal strength of the current station becomes too weak. The alternative frequencies are emitted over RDS by the radio station, and the tuning happens automatically.


read-onlyavailability : enumeration

Returns the availability state of the radio data interface.

This is one of:

ValueDescription
AvailableThe radio data interface is available to use
BusyThe radio data interface is usually available to use, but is currently busy.
UnavailableThe radio data interface is not available to use (there may be no radio hardware)
ResourceMissingThere is one or more resources missing, so the radio cannot be used. It may be possible to try again at a later time.

read-onlyprogramType : enumeration

This property holds the type of the currently playing program as transmitted by the radio station. The value can be any one of the values defined in the table below.

Value
Undefined
News
CurrentAffairs
Information
Sport
Education
Drama
Culture
Science
Varied
PopMusic
RockMusic
EasyListening
LightClassical
SeriousClassical
OtherMusic
Weather
Finance
ChildrensProgrammes
SocialAffairs
Religion
PhoneIn
Travel
Leisure
JazzMusic
CountryMusic
NationalMusic
OldiesMusic
FolkMusic
Documentary
AlarmTest
Alarm
Talk
ClassicRock
AdultHits
SoftRock
Top40
Soft
Nostalgia
Classical
RhythmAndBlues
SoftRhythmAndBlues
Language
ReligiousMusic
ReligiousTalk
Personality
Public
College

read-onlyprogramTypeName : string

This property holds a string representation of the programType.


read-onlyradioText : string

This property holds free-text transmitted by the radio station. This is typically used to show supporting information for the currently playing content, for instance song title or artist name.


read-onlystationId : string

This property allows you to read the station Id of the currently tuned radio station.


read-onlystationName : string

This property has the name of the currently tuned radio station.


Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. Qt 5.0-snapshot
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP !
 
 
 
 
Partenaires

Hébergement Web