radioapp/commoninc/radio_global.h
changeset 16 f54ebcfc1b80
child 19 afea38384506
equal deleted inserted replaced
14:63aabac4416d 16:f54ebcfc1b80
       
     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 { 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 TuneReason
       
    68 {
       
    69     enum Reason
       
    70     {
       
    71         Unspecified,
       
    72         FrequencyStrip,
       
    73         StationCarousel,
       
    74         Seek,
       
    75         StationScanInitialization,
       
    76         StationScan,
       
    77     };
       
    78 }
       
    79 
       
    80 namespace RadioRegion
       
    81 {
       
    82     enum Region
       
    83     {
       
    84         None = -1,
       
    85         Default,
       
    86         Japan,
       
    87         America,
       
    88         Poland
       
    89     };
       
    90 }
       
    91 
       
    92 namespace GenreEurope
       
    93 {
       
    94     enum Europe
       
    95     {
       
    96         RdsNone,
       
    97         RdsNews,
       
    98         RdsCurrentAffairs,
       
    99         RdsInformation,
       
   100         RdsSport,
       
   101         RdsEducation,
       
   102         RdsDrama,
       
   103         RdsCulture,
       
   104         RdsScience,
       
   105         RdsVariedSpeech,
       
   106         RdsPopMusic,
       
   107         RdsRockMusic,
       
   108         RdsEasyListening,
       
   109         RdsLightClassical,
       
   110         RdsSeriousClassical,
       
   111         RdsOtherMusic,
       
   112         RdsWeather,
       
   113         RdsFinance,
       
   114         RdsChildrensProgrammes,
       
   115         RdsSocialAffairs,
       
   116         RdsReligion,
       
   117         RdsPhoneIn,
       
   118         RdsTravel,
       
   119         RdsLeisure,
       
   120         RdsJazzMusic,
       
   121         RdsCountryMusic,
       
   122         RdsNationalMusic,
       
   123         RdsOldiesMusic,
       
   124         RdsFolkMusic,
       
   125         RdsDocumentary,
       
   126         RdsAlarmTest,
       
   127         RdsAlarm
       
   128     };
       
   129 }
       
   130 
       
   131 namespace GenreAmerica
       
   132 {
       
   133     enum America
       
   134     {
       
   135         RbdsNone,
       
   136         RbdsNews,
       
   137         RbdsInformation,
       
   138         RbdsSports,
       
   139         RbdsTalk,
       
   140         RbdsRock,
       
   141         RbdsClassicRock,
       
   142         RbdsAdultHits,
       
   143         RbdsSoftRock,
       
   144         RbdsTop40,
       
   145         RbdsCountry,
       
   146         RbdsOldies,
       
   147         RbdsSoft,
       
   148         RbdsNostalgia,
       
   149         RbdsJazz,
       
   150         RbdsClassical,
       
   151         RbdsRhythmAndBlues,
       
   152         RbdsSoftRhythmAndBlues,
       
   153         RbdsLanguage,
       
   154         RbdsReligiousMusic,
       
   155         RbdsReligiousTalk,
       
   156         RbdsPersonality,
       
   157         RbdsPublic,
       
   158         RbdsCollege,
       
   159         RbdsUnassigned1,
       
   160         RbdsUnassigned2,
       
   161         RbdsUnassigned3,
       
   162         RbdsUnassigned4,
       
   163         RbdsUnassigned5,
       
   164         RbdsWeather,
       
   165         RbdsEmergencyTest,
       
   166         RbdsEmergency
       
   167     };
       
   168 }
       
   169 
       
   170 #endif // RADIO_GLOBAL_H_