qtinternetradio/irqcommon/inc/irservicedef.h
changeset 11 f683e24efca3
child 12 608f67c22514
equal deleted inserted replaced
8:3b03c28289e6 11:f683e24efca3
       
     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 KIrSettingApplicaton   = "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 
       
    31 // For P&S XQSettingsManager
       
    32 const long int KInternetRadioPSUid = 0xE28364bb;   // Internet Radio's UID3
       
    33 const unsigned long int KInternetRadioStartupKey = 0x00000035;  // a empty slot in internetradio2.0\include\irpubsubkeys.h
       
    34 
       
    35 
       
    36 Q_ENUMS(IrServiceCmd::Type IrServiceNotification::Type IrAppState::Type IrServiceResult::Type)
       
    37 
       
    38 namespace IrServiceCmd
       
    39 {
       
    40     enum Type
       
    41     {
       
    42         Unknown                 = -1,
       
    43         LaunchNormally          = 0,
       
    44         LaunchNowPlayingView    = 1,
       
    45         Play                    = 2,
       
    46         Stop                    = 3,
       
    47         Cancel                  = 4,
       
    48         Foreground              = 5
       
    49     };
       
    50 }
       
    51 
       
    52 namespace IrServiceNotification
       
    53 {
       
    54     enum Type
       
    55     {
       
    56         Unknown       = -1,
       
    57         IrState       = 0,
       
    58         StationLogo   = 1,
       
    59         StationName   = 2,
       
    60         MetaData      = 3
       
    61     };
       
    62 }
       
    63 
       
    64 
       
    65 namespace IrAppState
       
    66 {
       
    67     enum Type
       
    68     {
       
    69         Unknown         = -1,
       
    70         NoRunInit       = 0,  // internet radio is not running, and no station has been played yet
       
    71         NoRunStopped    = 1,  // internet radio is not running, with last played station
       
    72         RunningInit     = 2,  // running, no station has been played yet
       
    73         RunningStopped  = 3,  // running, with last played station
       
    74         Playing         = 4,
       
    75         Loading         = 5
       
    76     };
       
    77 }
       
    78 
       
    79 namespace IrServiceResult
       
    80 {
       
    81     enum Type
       
    82     {
       
    83         Success  = -1,
       
    84         Fail     = 0
       
    85     };
       
    86 }
       
    87 
       
    88 #endif // IRSERVICEDEF_H