common/radioservicedef.h
changeset 28 075425b8d9a4
child 32 189d20c34778
equal deleted inserted replaced
24:6df133bd92e1 28:075425b8d9a4
       
     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_CONTROL_SERVICE( "com.nokia.services.Radio.IRadioControl" );
       
    24 static const QLatin1String RADIO_MONITOR_SERVICE( "com.nokia.services.Radio.IRadioMonitor" );
       
    25 
       
    26 const long KRadioPSUid = 0x101FF976;
       
    27 const unsigned long KRadioStartupKey = 0x00000014;
       
    28 
       
    29 const quint32 NOKIA_VENDORID = VID_DEFAULT;
       
    30 
       
    31 namespace RadioServiceCommand
       
    32 {
       
    33     enum CommandId
       
    34     {
       
    35         PowerOn,
       
    36         PowerOff,
       
    37         Previous,
       
    38         Next,
       
    39         SeekUp,
       
    40         SeekDown,
       
    41         Foreground,
       
    42         Background,
       
    43         Mute,
       
    44         UnMute
       
    45     };
       
    46 }
       
    47 
       
    48 namespace RadioServiceNotification
       
    49 {
       
    50     enum Type {
       
    51         FavoriteCount = 1,
       
    52         CurrentIsFavorite,
       
    53         RadioStatus,
       
    54         Frequency,
       
    55         Name,
       
    56         Genre,
       
    57         RadioText,
       
    58         DynamicPS
       
    59     };
       
    60 }
       
    61 
       
    62 namespace RadioStatus
       
    63 {
       
    64     enum Status {
       
    65         UnSpecified,
       
    66         Playing,
       
    67         Muted,
       
    68         Seeking,
       
    69         NoAntenna,
       
    70         PoweringOff
       
    71     };
       
    72 }
       
    73 
       
    74 #endif // RADIOSERVICES_H