epoc32/include/mw/absolutevolumeapi.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
     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".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 //
    15 
    16 
    17 
    18 /**
    19  @file
    20  @publishedAll
    21  @released
    22 */
    23 
    24 #ifndef ABSOLUTEVOLUMEAPI_H_
    25 #define ABSOLUTEVOLUMEAPI_H_
    26 
    27 #include <e32base.h>
    28 
    29 const TInt KRemConAbsoluteVolumeControllerApiUid = 0x1020831E;
    30 const TInt KRemConAbsoluteVolumeTargetApiUid = 0x10215bbd;
    31 
    32 const TInt KErrAbsoluteVolumeInternalError     = -6537;
    33 
    34 /**
    35 Error code(4 bytes) + The relative volume(4 bytes) + 
    36 The maximum volume against which volume is relative(4 bytes)
    37 */
    38 const TUint KAbsoluteVolumeResponseDataSize = 12;
    39 
    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;
    44 
    45 /**
    46 The relative volume to be set(4 bytes) + 
    47 The maximum volume against which volume is relative(4 bytes) + 
    48 Reserved(4 bytes)
    49 */
    50 const TInt KAbsoluteVolumeRequestDataSize = 12;
    51 
    52 /**
    53 The absolute volume is represented in one octet. The top bit(bit 7)
    54 is reserved for future use.
    55 */
    56 const TUint8 KAbsoluteVolumeMask = 0x7f;
    57 
    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;
    62 
    63 /** Absolute Volume(1 byte) */
    64 const TUint8 KLengthSetAbsoluteVolumeRequestParameter = 1;
    65 /** Event ID(1 byte) + Reserved(4 bytes) */
    66 const TUint8 KLengthNotifyVolumeChangeRequestParameter = 5;
    67 
    68 /** Absolute Volume(1 byte) */
    69 const TUint8 KLengthSetAbsoluteVolumeResponseParamter = 1;
    70 /** Event ID(1 byte) + Absolute Volume(1 byte) */
    71 const TUint8 KLengthNotifyVolumeChangeResponseParameter = 2;
    72 	
    73 #endif /*ABSOLUTEVOLUMEAPI_H_*/