common/radioservicedef.h
branchRCL_3
changeset 20 93c594350b9a
parent 19 cce62ebc198e
equal deleted inserted replaced
19:cce62ebc198e 20:93c594350b9a
     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 RADIOSERVICES_H
       
    19 #define RADIOSERVICES_H
       
    20 
       
    21 #include <QLatin1String>
       
    22 
       
    23 static const QLatin1String RADIO_SERVICE( "fmradio" );
       
    24 static const QLatin1String RADIO_CONTROL_SERVICE( "com.nokia.symbian.IRadioControl" );
       
    25 static const QLatin1String RADIO_CONTROL_SERVICE_OPERATION( "command(int)" );
       
    26 static const QLatin1String RADIO_MONITOR_SERVICE( "com.nokia.symbian.IRadioMonitor" );
       
    27 static const QLatin1String RADIO_MONITOR_SERVICE_OPERATION( "requestNotifications()" );
       
    28 static const QLatin1String RADIO_MONITOR_SERVICE_REFRESH_OPERATION( "requestAllData()" );
       
    29 
       
    30 
       
    31 const long KRadioPSUid = 0x101FF976;
       
    32 const unsigned long KRadioStartupKey = 0x00000014;
       
    33 
       
    34 const quint32 NOKIA_VENDORID = VID_DEFAULT;
       
    35 
       
    36 namespace RadioServiceCommand
       
    37 {
       
    38     enum CommandId
       
    39     {
       
    40         PowerOn,
       
    41         PowerOff,
       
    42         Previous,
       
    43         Next,
       
    44         SeekUp,
       
    45         SeekDown,
       
    46         Foreground,
       
    47         Background,
       
    48         Mute,
       
    49         UnMute
       
    50     };
       
    51 }
       
    52 
       
    53 namespace RadioServiceNotification
       
    54 {
       
    55     enum Type {
       
    56         FavoriteCount = 1,
       
    57         CurrentIsFavorite,
       
    58         RadioStatus,
       
    59         Frequency,
       
    60         Name,
       
    61         Genre,
       
    62         RadioText,
       
    63         DynamicPS
       
    64     };
       
    65 }
       
    66 
       
    67 namespace RadioStatus
       
    68 {
       
    69     enum Status {
       
    70         UnSpecified,
       
    71         Playing,
       
    72         Muted,
       
    73         Seeking,
       
    74         NoAntenna,
       
    75         PoweringOff
       
    76     };
       
    77 }
       
    78 
       
    79 #endif // RADIOSERVICES_H