radioapp/commoninc/radio_global.h
changeset 23 a2b50a479edf
parent 19 afea38384506
child 24 6df133bd92e1
equal deleted inserted replaced
19:afea38384506 23:a2b50a479edf
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef RADIO_GLOBAL_H_
       
    19 #define RADIO_GLOBAL_H_
       
    20 
       
    21 // System includes
       
    22 #include <QtGlobal>
       
    23 
       
    24 // Constants
       
    25 
       
    26 /**
       
    27  * Radio frequency multiplier
       
    28  */
       
    29 const int KFrequencyMultiplier = 1000000;
       
    30 
       
    31 const int KOneHertz = KFrequencyMultiplier;
       
    32 
       
    33 /**
       
    34  * Desired amount of steps in the volume control in the UI
       
    35  */
       
    36 const int KMaximumVolumeLevel = 20;
       
    37 
       
    38 /**
       
    39  * Id of the offline profile
       
    40  */
       
    41 const int KOfflineProfileId = 5;
       
    42 
       
    43 /**
       
    44  * Radio Text Plus tag ids
       
    45  */
       
    46 namespace RtPlus
       
    47 {
       
    48     enum Tag { Dummy = 0, Title = 1, Artist = 4, Homepage = 39 };
       
    49 }
       
    50 
       
    51 namespace Seeking
       
    52 {
       
    53     enum Direction
       
    54     {
       
    55         Down,
       
    56         Up
       
    57     };
       
    58 
       
    59     enum State
       
    60     {
       
    61         NotSeeking,
       
    62         SeekingUp,
       
    63         SeekingDown
       
    64     };
       
    65 }
       
    66 
       
    67 namespace StationSkip
       
    68 {
       
    69     enum Mode
       
    70     {
       
    71         Previous,
       
    72         Next,
       
    73         PreviousFavorite,
       
    74         NextFavorite
       
    75     };
       
    76 }
       
    77 
       
    78 namespace TuneReason
       
    79 {
       
    80     enum Reason
       
    81     {
       
    82         Unspecified,
       
    83         FrequencyStrip,
       
    84         StationCarousel,
       
    85         StationsList,
       
    86         Skip,
       
    87         Seek,
       
    88         StationScanInitialization,
       
    89         StationScan,
       
    90     };
       
    91 }
       
    92 
       
    93 namespace RadioRegion
       
    94 {
       
    95     enum Region
       
    96     {
       
    97         None = -1,
       
    98         Default,
       
    99         Japan,
       
   100         America,
       
   101         Poland
       
   102     };
       
   103 }
       
   104 
       
   105 namespace GenreEurope
       
   106 {
       
   107     enum Europe
       
   108     {
       
   109         RdsNone,
       
   110         RdsNews,
       
   111         RdsCurrentAffairs,
       
   112         RdsInformation,
       
   113         RdsSport,
       
   114         RdsEducation,
       
   115         RdsDrama,
       
   116         RdsCulture,
       
   117         RdsScience,
       
   118         RdsVariedSpeech,
       
   119         RdsPopMusic,
       
   120         RdsRockMusic,
       
   121         RdsEasyListening,
       
   122         RdsLightClassical,
       
   123         RdsSeriousClassical,
       
   124         RdsOtherMusic,
       
   125         RdsWeather,
       
   126         RdsFinance,
       
   127         RdsChildrensProgrammes,
       
   128         RdsSocialAffairs,
       
   129         RdsReligion,
       
   130         RdsPhoneIn,
       
   131         RdsTravel,
       
   132         RdsLeisure,
       
   133         RdsJazzMusic,
       
   134         RdsCountryMusic,
       
   135         RdsNationalMusic,
       
   136         RdsOldiesMusic,
       
   137         RdsFolkMusic,
       
   138         RdsDocumentary,
       
   139         RdsAlarmTest,
       
   140         RdsAlarm
       
   141     };
       
   142 }
       
   143 
       
   144 namespace GenreAmerica
       
   145 {
       
   146     enum America
       
   147     {
       
   148         RbdsNone,
       
   149         RbdsNews,
       
   150         RbdsInformation,
       
   151         RbdsSports,
       
   152         RbdsTalk,
       
   153         RbdsRock,
       
   154         RbdsClassicRock,
       
   155         RbdsAdultHits,
       
   156         RbdsSoftRock,
       
   157         RbdsTop40,
       
   158         RbdsCountry,
       
   159         RbdsOldies,
       
   160         RbdsSoft,
       
   161         RbdsNostalgia,
       
   162         RbdsJazz,
       
   163         RbdsClassical,
       
   164         RbdsRhythmAndBlues,
       
   165         RbdsSoftRhythmAndBlues,
       
   166         RbdsLanguage,
       
   167         RbdsReligiousMusic,
       
   168         RbdsReligiousTalk,
       
   169         RbdsPersonality,
       
   170         RbdsPublic,
       
   171         RbdsCollege,
       
   172         RbdsUnassigned1,
       
   173         RbdsUnassigned2,
       
   174         RbdsUnassigned3,
       
   175         RbdsUnassigned4,
       
   176         RbdsUnassigned5,
       
   177         RbdsWeather,
       
   178         RbdsEmergencyTest,
       
   179         RbdsEmergency
       
   180     };
       
   181 }
       
   182 
       
   183 #endif // RADIO_GLOBAL_H_