mmserv/radioutility/radioserver/Inc/RadioClientServer.h
changeset 0 71ca22bcf22a
equal deleted inserted replaced
-1:000000000000 0:71ca22bcf22a
       
     1 /*
       
     2 * Copyright (c) 2002-2004 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:  Defines all constants used by the Radio Server and its clients.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef RADIOCLIENTSERVER_H
       
    21 #define RADIOCLIENTSERVER_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32std.h>
       
    25 #include "RadioServerData.h"
       
    26 
       
    27 // CONSTANTS & DATA TYPES
       
    28 _LIT(KRadioServerName, "RadioServer");
       
    29 _LIT(KRadioServerImg,  "RadioServer");		// DLL/EXE name
       
    30 
       
    31 const TUid KRadioServerUid3 = {0x10207A7E};
       
    32 
       
    33 // Version numbers
       
    34 const TUint KRadioServerVersionMajor = 1;
       
    35 const TUint KRadioServerVersionMinor = 0;
       
    36 const TUint KRadioServerVersionBuild = 0;
       
    37 
       
    38 // Interface ID and destination handle
       
    39 const TUid KRadioServerInterfaceUid = {0x10207A98};
       
    40 const TInt KRadioServerObjectHandle = -3;
       
    41 
       
    42 /**
       
    43 * RadioServer Publish & Subscribe property sub-key
       
    44 */
       
    45 enum TRadioServerPsKey
       
    46 	{
       
    47 	ERadioServPsPlayerState		=	10,
       
    48 	ERadioServPsAntennaStatus,
       
    49 	ERadioServPsOfflineMode,
       
    50 	ERadioServPsTransmitterStatus,
       
    51 	ERadioServPsFrequency,
       
    52 	ERadioServPsFrequencyRange,
       
    53 	ERadioServPsForceMonoReception,
       
    54 	ERadioServPsSquelch,
       
    55 	ERadioServPsVolume,
       
    56 	ERadioServPsMuteStatus,
       
    57 	ERadioServPsBalance,
       
    58 	ERadioServPsRdsSignalStatus,
       
    59 	ERadioServPsAutoSwitchStatus,
       
    60 	ERadioServPsProgrammeIdentification,
       
    61 	ERadioServPsProgrammeType,
       
    62 	ERadioServPsProgrammeService,
       
    63 	ERadioServPsRadioText,
       
    64 	ERadioServPsClockTime,
       
    65 	ERadioServPsTrafficAnnouncementStatus,
       
    66 	ERadioServPsAfSearchBegin,
       
    67 	ERadioServPsAfSearchEnd,
       
    68 	ERadioServPsRadioTextPlusObjects
       
    69 	};
       
    70 
       
    71 /**
       
    72 * Server OP codes
       
    73 */
       
    74 enum TRadioServerRequest
       
    75 	{
       
    76 	ERadioServNone,
       
    77 // Tuner
       
    78 	ERadioServRequestTunerControl,				// 1
       
    79 	ERadioServGetTunerCapabilities,
       
    80 	ERadioServEnableTunerInOfflineMode,
       
    81 	ERadioServSetFrequencyRange,
       
    82 	ERadioServGetFrequencyRange,				// 5
       
    83 	ERadioServSetFrequency,
       
    84 	ERadioServGetFrequency,
       
    85 	ERadioServStationSeek,
       
    86 	ERadioServGetSignalStrength,
       
    87 	ERadioServGetMaxSignalStrength,				// 10
       
    88 	ERadioServGetStereoMode,
       
    89 	ERadioServForceMonoReception,
       
    90 	ERadioServGetForceMonoReception,
       
    91 	ERadioServSetSquelch,
       
    92 	ERadioServGetSquelch,						// 15
       
    93 // Player
       
    94 	ERadioServGetPlayerState,
       
    95 	ERadioServPlay,
       
    96 	ERadioServStop,
       
    97 	ERadioServGetMaxVolume,
       
    98 	ERadioServSetVolume,						// 20
       
    99 	ERadioServGetVolume,
       
   100 	ERadioServSetVolumeRamp,
       
   101 	ERadioServSetMute,
       
   102 	ERadioServGetMuteStatus,
       
   103 	ERadioServSetBalance,						// 25
       
   104 	ERadioServGetBalance,
       
   105 // RDS
       
   106 	ERadioServGetRdsCapabilities,
       
   107 	ERadioServGetRdsSignalStatus,
       
   108 	ERadioServNotifyRdsDataChange,
       
   109 	ERadioServCancelNotifyRdsDataChange,		// 30
       
   110 	ERadioServNotifyRadioTextPlusChange,
       
   111 	ERadioServCancelNotifyRadioTextPlusChange,
       
   112 	ERadioServSetAutomaticSwitching,
       
   113 	ERadioServGetAutomaticSwitching,
       
   114 	ERadioServCancelAFSearch,					// 35
       
   115 	ERadioServStationSeekByPTY,
       
   116 	ERadioServStationSeekByTA,
       
   117 	ERadioServStationSeekByTP,
       
   118 	ERadioServGetFreqByPTY,
       
   119 	ERadioServGetFreqByTA,						// 40
       
   120 	ERadioServGetPSByPTY,
       
   121 	ERadioServGetPSByTA,
       
   122 	ERadioServGetProgrammeIdentification,
       
   123 	ERadioServGetProgrammeType,
       
   124 	ERadioServGetProgrammeService,				// 45
       
   125 	ERadioServGetRadioText,
       
   126 	ERadioServGetRadioTextPlus,
       
   127 	ERadioServGetClockTime,
       
   128 	ERadioServGetTrafficAnnouncementStatus,
       
   129 	ERadioServGetTrafficProgrammeStatus,		// 50
       
   130 // Internal
       
   131 	ERadioServAddPrimaryClient,
       
   132 	ERadioServRemovePrimaryClient,
       
   133 	ERadioServCancel
       
   134 	};
       
   135 
       
   136 #endif      // RADIOCLIENTSERVER_H
       
   137 
       
   138 // End of File