radioengine/utils/api/radiointernalcrkeys.h
branchGCC_SURGE
changeset 37 451b2e1545b2
parent 28 075425b8d9a4
equal deleted inserted replaced
26:6bcf277166c1 37:451b2e1545b2
    18 #ifndef RADIOINTERNALCRKEYS_H
    18 #ifndef RADIOINTERNALCRKEYS_H
    19 #define RADIOINTERNALCRKEYS_H
    19 #define RADIOINTERNALCRKEYS_H
    20 
    20 
    21 #include <e32cmn.h>
    21 #include <e32cmn.h>
    22 
    22 
    23 /** The UID of the category we use. Must be the same as Visual Radio's UID3 ( SID ). */
    23 /** The UID of the category we use. Must be the same as FM Radio's UID3 ( SID ). */
    24 const TUid KRadioCRUid = { 0x101FF976 };
    24 const TUid KRadioCRUid = { 0x2002FF52 };
    25 
    25 
    26 /**
       
    27 * The service mode of Visual Radio.
       
    28 *
       
    29 * @see TVRCRServiceMode
       
    30 */
       
    31 const TUint32 KRadioCRServiceMode = 0x00000000;
       
    32 
       
    33 /**
       
    34 * Possible Visual Radio service modes.
       
    35 */
       
    36 enum TVRCRServiceMode
       
    37     {
       
    38     EVRCRServiceNone,   /**< Visual Radio has neither SDS nor visual service enabled. */
       
    39     EVRCRServiceSds,    /**< Visual Radio has SDS service enabled. */
       
    40     };
       
    41 
       
    42 /////////////////////////////////////////////////////////////////////////////////////
       
    43 // When adding a new key, add it also to CVRRepositoryManager::CheckRepositoryKeysL()
       
    44 // to make sure that SIS installation updates cenrep keys.
       
    45 /////////////////////////////////////////////////////////////////////////////////////
       
    46 
    26 
    47 // APPLICATION SETTINGS
    27 // APPLICATION SETTINGS
    48 
    28 
    49 /** The base value for application setting keys. */
    29 /** The base value for application setting keys. */
    50 const TUint32 KRadioCRApplicationSettingsBase                  = { 0x00000010 };
    30 const TUint32 KRadioCRApplicationSettingsBase                   = { 0x100 };
    51 
       
    52 /** The key associated with the active focus location setting. */
       
    53 const TUint32 KRadioCRActiveFocusLocation                      = { KRadioCRApplicationSettingsBase + 0x00000000 };
       
    54 
       
    55 /** Removed. Do not use. */
       
    56 const TUint32 KRadioCRRemoved1                                 = { KRadioCRApplicationSettingsBase + 0x00000001 };
       
    57 
       
    58 /** Removed. Do not use. */
       
    59 const TUint32 KRadioCRRemoved2                                 = { KRadioCRApplicationSettingsBase + 0x00000002 };
       
    60 
    31 
    61 /** The key associated with the http cache limit setting. */
    32 /** The key associated with the http cache limit setting. */
    62 const TUint32 KRadioCRUiFlags                                  = { KRadioCRApplicationSettingsBase + 0x00000003 };
    33 const TUint32 KRadioCRUiFlags                                   = { KRadioCRApplicationSettingsBase + 0x0 };
    63 
       
    64 /** Removed. Do not use. */
       
    65 const TUint32 KRadioCRRemoved3                                 = { KRadioCRApplicationSettingsBase + 0x00000004 };
       
    66 
       
    67 /** Removed. Do not use. */
       
    68 const TUint32 KRadioCRRemoved4                                 = { KRadioCRApplicationSettingsBase + 0x00000005 };
       
    69 
       
    70 /** Removed. Do not use. */
       
    71 const TUint32 KRadioCRRemoved5                                 = { KRadioCRApplicationSettingsBase + 0x00000006 };
       
    72 
       
    73 /** Removed. Do not use. */
       
    74 const TUint32 KRadioCRRemoved6                                 = { KRadioCRApplicationSettingsBase + 0x00000007 };
       
    75 
       
    76 /** Removed. Do not use. */
       
    77 const TUint32 KRadioCRRemoved7                                 = { KRadioCRApplicationSettingsBase + 0x0000000B };
       
    78 
       
    79 /** Removed. Do not use. */
       
    80 const TUint32 KRadioCRRemoved8                                 = { KRadioCRApplicationSettingsBase + 0x0000000C };
       
    81 
       
    82 /** Removed. Do not use. */
       
    83 const TUint32 KRadioCRRemoved9                                 = { KRadioCRApplicationSettingsBase + 0x0000000D };
       
    84 
       
    85 /** Removed. Do not use. */
       
    86 const TUint32 KRadioCRRemoved10                                = { KRadioCRApplicationSettingsBase + 0x0000000E };
       
    87 
       
    88 /** Removed. Do not use. */
       
    89 const TUint32 KRadioCRRemoved11                                = { KRadioCRApplicationSettingsBase + 0x0000000F };
       
    90 
    34 
    91 /* The key associated with the application launch count setting */
    35 /* The key associated with the application launch count setting */
    92 const TUint32 KRadioCRLaunchCount                              = { KRadioCRApplicationSettingsBase + 0x00000010 };
    36 const TUint32 KRadioCRLaunchCount                               = { KRadioCRApplicationSettingsBase + 0x1 };
    93 
       
    94 /* The key associated with the application offline mode usability. */
       
    95 const TUint32 KRadioCROfflineModeFunctionality                 = { KRadioCRApplicationSettingsBase + 0x00000011 };
       
    96 
       
    97 /** Removed. Do not use. */
       
    98 const TUint32 KRadioCRRemoved12                                = { KRadioCRApplicationSettingsBase + 0x00000012 };
       
    99 
       
   100 /* User audio history */
       
   101 const TUint32 KRadioCRAudioPlayHistory                         = { KRadioCRApplicationSettingsBase + 0x00000014 };
       
   102 
       
   103 
       
   104 /**
       
   105 * Removed. Do not use.
       
   106 */
       
   107 enum TVRCRRemoved
       
   108     {
       
   109     EVRCRRemoved13,
       
   110     EVRCRRemoved14
       
   111     };
       
   112 
    37 
   113 
    38 
   114 // RADIO SETTINGS
    39 // RADIO SETTINGS
   115 
    40 
   116 /** The base value for radio setting keys. */
    41 /** The base value for radio setting keys. */
   117 const TUint32 KRadioCRRadioSettingsBase                        = { 0x00000100 };
    42 const TUint32 KRadioCRRadioSettingsBase                         = { 0x200 };
   118 
    43 
   119 /** The key associated with the headset volume setting. */
    44 /** The key associated with the headset volume setting. */
   120 const TUint32 KRadioCRHeadsetVolume                            = { KRadioCRRadioSettingsBase + 0x00000000 };
    45 const TUint32 KRadioCRHeadsetVolume                             = { KRadioCRRadioSettingsBase + 0x0 };
   121 
    46 
   122 /** The key associated with the speaker volume setting. */
    47 /** The key associated with the speaker volume setting. */
   123 const TUint32 KRadioCRSpeakerVolume                            = { KRadioCRRadioSettingsBase + 0x00000001 };
    48 const TUint32 KRadioCRSpeakerVolume                             = { KRadioCRRadioSettingsBase + 0x1 };
   124 
    49 
   125 /** The key associated with the output mode setting. */
    50 /** The key associated with the output mode setting. */
   126 const TUint32 KRadioCROutputMode                               = { KRadioCRRadioSettingsBase + 0x00000002 };
    51 const TUint32 KRadioCROutputMode                                = { KRadioCRRadioSettingsBase + 0x2 };
   127 
    52 
   128 /** The key associated with the audio route setting. */
    53 /** The key associated with the audio route setting. */
   129 const TUint32 KRadioCRAudioRoute                               = { KRadioCRRadioSettingsBase + 0x00000003 };
    54 const TUint32 KRadioCRAudioRoute                                = { KRadioCRRadioSettingsBase + 0x3 };
   130 
    55 
   131 /** The key associated with the headset volume mute setting. */
    56 /** The key associated with the headset volume mute setting. */
   132 const TUint32 KRadioCRHeadsetMuteState                         = { KRadioCRRadioSettingsBase + 0x00000004 };
    57 const TUint32 KRadioCRHeadsetMuteState                          = { KRadioCRRadioSettingsBase + 0x4 };
   133 
    58 
   134 /** The key associated with the speaker volume mute setting. */
    59 /** The key associated with the speaker volume mute setting. */
   135 const TUint32 KRadioCRSpeakerMuteState                         = { KRadioCRRadioSettingsBase + 0x00000005 };
    60 const TUint32 KRadioCRSpeakerMuteState                          = { KRadioCRRadioSettingsBase + 0x5 };
   136 
    61 
   137 /** The key associated with the radio power state. */
    62 /** The key associated with the radio power state. */
   138 const TUint32 KRadioCRVisualRadioPowerState                    = { KRadioCRRadioSettingsBase + 0x00000006 };
    63 const TUint32 KRadioCRRadioPowerState                           = { KRadioCRRadioSettingsBase + 0x6 };
   139 
    64 
   140 /** The key associated with the tuned frequency setting.  */
    65 /** The key associated with the tuned frequency setting.  */
   141 const TUint32 KRadioCRTunedFrequency                           = { KRadioCRRadioSettingsBase + 0x00000007 };
    66 const TUint32 KRadioCRTunedFrequency                            = { KRadioCRRadioSettingsBase + 0x7 };
   142 
    67 
   143 /** The key associated with the default minimum volume level setting.  */
    68 /** The key associated with the default minimum volume level setting.  */
   144 const TUint32 KRadioCRDefaultMinVolumeLevel                    = { KRadioCRRadioSettingsBase + 0x00000008 };
    69 const TUint32 KRadioCRDefaultMinVolumeLevel                     = { KRadioCRRadioSettingsBase + 0x8 };
   145 
    70 
   146 /** The key associated with the current region setting. */
    71 /** The key associated with the current region setting. */
   147 const TUint32 KRadioCRCurrentRegion                            = { KRadioCRRadioSettingsBase + 0x0000000A };
    72 const TUint32 KRadioCRCurrentRegion                             = { KRadioCRRadioSettingsBase + 0x9 };
   148 
       
   149 /** Removed. Do not use. */
       
   150 const TUint32 KRadioCRRemoved15                                = { KRadioCRRadioSettingsBase + 0x0000000B };
       
   151 
       
   152 /** The key associated with the RDS support setting */
       
   153 const TUint32 KRadioCRRdsSupport                               = { KRadioCRRadioSettingsBase + 0x0000000C };
       
   154 
       
   155 /** The key associated with the alternate frequency search setting */
       
   156 const TUint32 KRadioCRRdsAfSearch                              = { KRadioCRRadioSettingsBase + 0x0000000D };
       
   157 
    73 
   158 /*** Region Japan allowed. */
    74 /*** Region Japan allowed. */
   159 const TUint32 KRadioCRRegionAllowedJapan                       = { KRadioCRRadioSettingsBase + 0x0000000E };
    75 const TUint32 KRadioCRRegionAllowedJapan                        = { KRadioCRRadioSettingsBase + 0xA };
   160 
       
   161 /*** Region America allowed. */
       
   162 const TUint32 KRadioCRRegionAllowedAmerica                     = { KRadioCRRadioSettingsBase + 0x0000000F };
       
   163 
       
   164 /*** Region Other allowed. */
       
   165 const TUint32 KRadioCRRegionAllowedDefault                     = { KRadioCRRadioSettingsBase + 0x00000010 };
       
   166 
    76 
   167 /*** Default region. */
    77 /*** Default region. */
   168 const TUint32 KRadioCRDefaultRegion                            = { KRadioCRRadioSettingsBase + 0x00000011 };
    78 const TUint32 KRadioCRDefaultRegion                             = { KRadioCRRadioSettingsBase + 0xB };
   169 
       
   170 
       
   171 // PRESET SETTINGS
       
   172 
       
   173 /** The base value for preset setting keys. */
       
   174 const TUint32 KRadioCRPresetSettingsBase                       = { 0x00001000 };
       
   175 
       
   176 /** The key associated with the maximum preset count setting. */
       
   177 const TUint32 KRadioCRPresetCount                              = { KRadioCRPresetSettingsBase + 0x00000000 };
       
   178 
       
   179 // CORE SETTINGS
       
   180 
       
   181 /** The base value for core setting keys. */
       
   182 const TUint32 KRadioCRCoreSettingsBase                         = { 0x00010000 };
       
   183 
       
   184 /** The key associated with the global name server address setting. */
       
   185 const TUint32 KRadioCRGlobalNameServer                         = { KRadioCRCoreSettingsBase + 0x00000000 };
       
   186 
       
   187 /** The key associated with the default global name server address setting. */
       
   188 const TUint32 KRadioCRDefaultGlobalNameServer                  = { KRadioCRCoreSettingsBase + 0x00000001 };
       
   189 
       
   190 /** The key associated with the local name server address setting. */
       
   191 const TUint32 KRadioCRLocalNameServer                          = { KRadioCRCoreSettingsBase + 0x00000002 };
       
   192 
       
   193 /** The key associated with the default local name server address setting. */
       
   194 const TUint32 KRadioCRDefaultLocalNameServer                   = { KRadioCRCoreSettingsBase + 0x00000003 };
       
   195 
       
   196 /** The key associated with the directory server url setting. */
       
   197 const TUint32 KRadioCRDirectoryServerUrl                       = { KRadioCRCoreSettingsBase + 0x00000004 };
       
   198 
       
   199 /** The key associated with the directory server base url setting. */
       
   200 const TUint32 KRadioCRDirectoryServerBaseUrl                   = { KRadioCRCoreSettingsBase + 0x00000005 };
       
   201 
       
   202 /** The key associated with the directory server country code setting. */
       
   203 const TUint32 KRadioCRDirectoryServerCountryCode               = { KRadioCRCoreSettingsBase + 0x00000006 };
       
   204 
       
   205 /** The key associated with the directory server network id setting. */
       
   206 const TUint32 KRadioCRDirectoryServerNetworkId                 = { KRadioCRCoreSettingsBase + 0x00000007 };
       
   207 
       
   208 /** The key associated with the default directory server url setting. */
       
   209 const TUint32 KRadioCRDefaultDirectoryServerUrl                = { KRadioCRCoreSettingsBase + 0x00000008 };
       
   210 
       
   211 /** The key associated with the default directory server base url setting. */
       
   212 const TUint32 KRadioCRDefaultDirectoryServerBaseUrl            = { KRadioCRCoreSettingsBase + 0x00000009 };
       
   213 
       
   214 /** The key associated with the internet access point setting. */
       
   215 const TUint32 KRadioCRInternetAccessPoint                      = { KRadioCRCoreSettingsBase + 0x0000000A };
       
   216 
       
   217 /** The key associated with the default internet access point setting. */
       
   218 const TUint32 KRadioCRDefaultInternetAccessPoint               = { KRadioCRCoreSettingsBase + 0x0000000B };
       
   219 
       
   220 /** The key associated with application id setting.  */
       
   221 const TUint32 KRadioCRApplicationId                            = { KRadioCRCoreSettingsBase + 0x0000000C };
       
   222 
    79 
   223 /** The key associated with the network id setting. */
    80 /** The key associated with the network id setting. */
   224 const TUint32 KRadioCRNetworkId                                = { KRadioCRCoreSettingsBase + 0x0000000D };
    81 const TUint32 KRadioCRNetworkId                                 = { KRadioCRRadioSettingsBase + 0xC };
   225 
       
   226 /** The key associated with the subscriber id setting. */
       
   227 const TUint32 KRadioCRSubscriberId                             = { KRadioCRCoreSettingsBase + 0x0000000E };
       
   228 
       
   229 /** The key associated with the connection destination setting. */
       
   230 const TUint32 KRadioCRConnectionDestinationId                  = { KRadioCRCoreSettingsBase + 0x0000000F };
       
   231 
    82 
   232 /** The key associated with the country code setting. */
    83 /** The key associated with the country code setting. */
   233 const TUint32 KRadioCRCountryCode                              = { KRadioCRCoreSettingsBase + 0x00000010 };
    84 const TUint32 KRadioCRCountryCode                               = { KRadioCRRadioSettingsBase + 0xD };
   234 
    85 
   235 #endif // RADIOINTERNALCRKEYS_H
    86 #endif // RADIOINTERNALCRKEYS_H