williamr@2: // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). williamr@2: // All rights reserved. williamr@2: // This component and the accompanying materials are made available williamr@2: // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members williamr@2: // which accompanies this distribution, and is available williamr@2: // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". williamr@2: // williamr@2: // Initial Contributors: williamr@2: // Nokia Corporation - initial contribution. williamr@2: // williamr@2: // Contributors: williamr@2: // williamr@2: // Description: williamr@2: // williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: @file williamr@2: @publishedPartner williamr@2: @released williamr@2: */ williamr@2: williamr@2: #ifndef REMCONEXTAPI1_H williamr@2: #define REMCONEXTAPI1_H williamr@2: williamr@2: #include williamr@2: williamr@2: // 'ExtApi1' constants apply to both interfaces within the ExtApi1 DLL, i.e. williamr@2: // both the TrackInfo and AbsVol APIs. williamr@2: williamr@2: /** Offset in the operation-specific data of the 'result' (this field exists williamr@2: in both commands and responses, but logically only applies to responses). */ williamr@2: const TUint KRemConExtApi1ResultDataOffset = 0; williamr@2: williamr@2: /** Length of the results data/field in bytes. */ williamr@2: const TUint KRemConExtApi1ResultDataLength = 4; williamr@2: williamr@2: /** Used for checking operation-specific data. The operation-specific data of williamr@2: an ExtApi1 message must always contain at least a results field, so the length williamr@2: of the results field is the minimum length of this 'packet'. */ williamr@2: const TUint KRemConExtApi1MinimumDataLength = KRemConExtApi1ResultDataLength; williamr@2: williamr@2: /** williamr@2: The UID identifying the Track Info outer-layer RemCon interface. williamr@2: */ williamr@2: const TInt KRemConTrackInfoApiUid = 0x10206863; williamr@2: williamr@2: /** williamr@2: Operation ids belonging to the Track Info interface. williamr@2: These are public so bearers/converters can access them. williamr@2: */ williamr@2: enum TRemConTrackInfoOperationId williamr@2: { williamr@2: /** Get track name. */ williamr@2: ERemConGetTrackName = 0x00, williamr@2: /** Set track name. */ williamr@2: ERemConSetTrackName = 0x01, williamr@2: /** Get artist. */ williamr@2: ERemConGetArtist = 0x02, williamr@2: /** Get track duration. */ williamr@2: ERemConGetTrackDuration = 0x03, williamr@2: }; williamr@2: williamr@2: /** williamr@2: The UID identifying the Abs Vol outer-layer RemCon interface. williamr@2: */ williamr@2: const TInt KRemConAbsVolApiUid = 0x1020831D; williamr@2: williamr@2: /** williamr@2: Operation ids belonging to the Abs Vol interface. williamr@2: These are public so bearers/converters can access them. williamr@2: */ williamr@2: enum TRemConAbsVolOperationId williamr@2: { williamr@2: /** Get absolute volume. */ williamr@2: ERemConGetAbsoluteVolume = 0x00, williamr@2: /** Set absolute volume. */ williamr@2: ERemConSetAbsoluteVolume = 0x01, williamr@2: }; williamr@2: williamr@2: #endif // REMCONEXTAPI1_H