1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/mw/absolutevolumeapi.h Wed Mar 31 12:33:34 2010 +0100
1.3 @@ -0,0 +1,73 @@
1.4 +// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +//
1.18 +
1.19 +
1.20 +
1.21 +/**
1.22 + @file
1.23 + @publishedAll
1.24 + @released
1.25 +*/
1.26 +
1.27 +#ifndef ABSOLUTEVOLUMEAPI_H_
1.28 +#define ABSOLUTEVOLUMEAPI_H_
1.29 +
1.30 +#include <e32base.h>
1.31 +
1.32 +const TInt KRemConAbsoluteVolumeControllerApiUid = 0x1020831E;
1.33 +const TInt KRemConAbsoluteVolumeTargetApiUid = 0x10215bbd;
1.34 +
1.35 +const TInt KErrAbsoluteVolumeInternalError = -6537;
1.36 +
1.37 +/**
1.38 +Error code(4 bytes) + The relative volume(4 bytes) +
1.39 +The maximum volume against which volume is relative(4 bytes)
1.40 +*/
1.41 +const TUint KAbsoluteVolumeResponseDataSize = 12;
1.42 +
1.43 +/** Operation Id of set absolute volume */
1.44 +const TUint KRemConSetAbsoluteVolume = 0x1050;
1.45 +/** Operation Id of register volume change notification */
1.46 +const TUint KRemConAbsoluteVolumeNotification = 0x0d31;
1.47 +
1.48 +/**
1.49 +The relative volume to be set(4 bytes) +
1.50 +The maximum volume against which volume is relative(4 bytes) +
1.51 +Reserved(4 bytes)
1.52 +*/
1.53 +const TInt KAbsoluteVolumeRequestDataSize = 12;
1.54 +
1.55 +/**
1.56 +The absolute volume is represented in one octet. The top bit(bit 7)
1.57 +is reserved for future use.
1.58 +*/
1.59 +const TUint8 KAbsoluteVolumeMask = 0x7f;
1.60 +
1.61 +/** PDU length of set absolute volume response */
1.62 +const TUint8 KLengthSetAbsoluteVolumeResponse = 11;
1.63 +/** PDU length of notify volume change response */
1.64 +const TUint8 KLengthNotifyVolumeChangeResponse = 12;
1.65 +
1.66 +/** Absolute Volume(1 byte) */
1.67 +const TUint8 KLengthSetAbsoluteVolumeRequestParameter = 1;
1.68 +/** Event ID(1 byte) + Reserved(4 bytes) */
1.69 +const TUint8 KLengthNotifyVolumeChangeRequestParameter = 5;
1.70 +
1.71 +/** Absolute Volume(1 byte) */
1.72 +const TUint8 KLengthSetAbsoluteVolumeResponseParamter = 1;
1.73 +/** Event ID(1 byte) + Absolute Volume(1 byte) */
1.74 +const TUint8 KLengthNotifyVolumeChangeResponseParameter = 2;
1.75 +
1.76 +#endif /*ABSOLUTEVOLUMEAPI_H_*/