qtinternetradio/irqcommon/inc/irservicedef.h
branchGCC_SURGE
changeset 13 c9471d26c7f2
parent 12 608f67c22514
child 14 896e9dbc5f19
equal deleted inserted replaced
9:bfc95e24a059 13:c9471d26c7f2
       
     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 IRSERVICEDEF_H
       
    19 #define IRSERVICEDEF_H
       
    20 
       
    21 #include <QString>
       
    22 
       
    23 // For settings via QSetting
       
    24 static const QString KIrSettingOrganization = "nokia.s60.mymex";
       
    25 static const QString KIrSettingApplication  = "internetradio";
       
    26 static const QString KIrSettingStationName  = "lastplayedinfo/station_name";
       
    27 static const QString KIrDefaultStationName  = "no_station_played_yet";
       
    28 static const QString KIrSettingStationLogo  = "lastplayedinfo/station_logo";
       
    29 static const QString KIrSettingStationLogoAvailable  = "lastplayedinfo/station_logo_available";
       
    30 static const QString KIrSettingSplashNowplaying = "splash/is_nowplaying_view";
       
    31 
       
    32 // For P&S XQSettingsManager
       
    33 const long int KInternetRadioPSUid = 0xE28364bb;   // Internet Radio's UID3
       
    34 const unsigned long int KInternetRadioStartupKey = 0x00000035;  // a empty slot in internetradio2.0\include\irpubsubkeys.h
       
    35 
       
    36 
       
    37 Q_ENUMS(IrServiceCmd::Type IrServiceNotification::Type IrAppState::Type IrServiceResult::Type)
       
    38 
       
    39 namespace IrServiceCmd
       
    40 {
       
    41     enum Type
       
    42     {
       
    43         Unknown                 = -1,
       
    44         LaunchNormally          = 0,
       
    45         LaunchNowPlayingView    = 1,
       
    46         Play                    = 2,
       
    47         Stop                    = 3,
       
    48         Cancel                  = 4,
       
    49         Foreground              = 5
       
    50     };
       
    51 }
       
    52 
       
    53 namespace IrServiceNotification
       
    54 {
       
    55     enum Type
       
    56     {
       
    57         Unknown       = -1,
       
    58         IrState       = 0,
       
    59         StationLogo   = 1,
       
    60         StationName   = 2,
       
    61         MetaData      = 3
       
    62     };
       
    63 }
       
    64 
       
    65 
       
    66 namespace IrAppState
       
    67 {
       
    68     enum Type
       
    69     {
       
    70         Unknown         = -1,
       
    71         NoRunInit       = 0,  // internet radio is not running, and no station has been played yet
       
    72         NoRunStopped    = 1,  // internet radio is not running, with last played station
       
    73         RunningInit     = 2,  // running, no station has been played yet
       
    74         RunningStopped  = 3,  // running, with last played station
       
    75         Playing         = 4,
       
    76         Loading         = 5
       
    77     };
       
    78 }
       
    79 
       
    80 namespace IrServiceResult
       
    81 {
       
    82     enum Type
       
    83     {
       
    84         Success  = -1,
       
    85         Fail     = 0
       
    86     };
       
    87 }
       
    88 
       
    89 #endif // IRSERVICEDEF_H