1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
24 #ifndef ABSOLUTEVOLUMEAPI_H_
25 #define ABSOLUTEVOLUMEAPI_H_
29 const TInt KRemConAbsoluteVolumeControllerApiUid = 0x1020831E;
30 const TInt KRemConAbsoluteVolumeTargetApiUid = 0x10215bbd;
32 const TInt KErrAbsoluteVolumeInternalError = -6537;
35 Error code(4 bytes) + The relative volume(4 bytes) +
36 The maximum volume against which volume is relative(4 bytes)
38 const TUint KAbsoluteVolumeResponseDataSize = 12;
40 /** Operation Id of set absolute volume */
41 const TUint KRemConSetAbsoluteVolume = 0x1050;
42 /** Operation Id of register volume change notification */
43 const TUint KRemConAbsoluteVolumeNotification = 0x0d31;
46 The relative volume to be set(4 bytes) +
47 The maximum volume against which volume is relative(4 bytes) +
50 const TInt KAbsoluteVolumeRequestDataSize = 12;
53 The absolute volume is represented in one octet. The top bit(bit 7)
54 is reserved for future use.
56 const TUint8 KAbsoluteVolumeMask = 0x7f;
58 /** PDU length of set absolute volume response */
59 const TUint8 KLengthSetAbsoluteVolumeResponse = 11;
60 /** PDU length of notify volume change response */
61 const TUint8 KLengthNotifyVolumeChangeResponse = 12;
63 /** Absolute Volume(1 byte) */
64 const TUint8 KLengthSetAbsoluteVolumeRequestParameter = 1;
65 /** Event ID(1 byte) + Reserved(4 bytes) */
66 const TUint8 KLengthNotifyVolumeChangeRequestParameter = 5;
68 /** Absolute Volume(1 byte) */
69 const TUint8 KLengthSetAbsoluteVolumeResponseParamter = 1;
70 /** Event ID(1 byte) + Absolute Volume(1 byte) */
71 const TUint8 KLengthNotifyVolumeChangeResponseParameter = 2;
73 #endif /*ABSOLUTEVOLUMEAPI_H_*/