remotecontrol/remotecontrolfw/client/extapi1/public/remconextapi1.h
changeset 51 20ac952a623c
equal deleted inserted replaced
48:22de2e391156 51:20ac952a623c
       
     1 // Copyright (c) 2004-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  @file
       
    18  @publishedPartner
       
    19  @released
       
    20 */
       
    21 
       
    22 #ifndef REMCONEXTAPI1_H
       
    23 #define REMCONEXTAPI1_H
       
    24 
       
    25 #include <e32base.h>
       
    26 
       
    27 // 'ExtApi1' constants apply to both interfaces within the ExtApi1 DLL, i.e. 
       
    28 // both the TrackInfo and AbsVol APIs.
       
    29 
       
    30 /** Offset in the operation-specific data of the 'result' (this field exists 
       
    31 in both commands and responses, but logically only applies to responses). */
       
    32 const TUint KRemConExtApi1ResultDataOffset = 0;
       
    33 
       
    34 /** Length of the results data/field in bytes. */
       
    35 const TUint KRemConExtApi1ResultDataLength = 4;
       
    36 
       
    37 /** Used for checking operation-specific data. The operation-specific data of 
       
    38 an ExtApi1 message must always contain at least a results field, so the length 
       
    39 of the results field is the minimum length of this 'packet'. */
       
    40 const TUint KRemConExtApi1MinimumDataLength = KRemConExtApi1ResultDataLength;
       
    41 
       
    42 /**
       
    43 The UID identifying the Track Info outer-layer RemCon interface.
       
    44 */
       
    45 const TInt KRemConTrackInfoApiUid = 0x10206863;
       
    46 
       
    47 /**
       
    48 Operation ids belonging to the Track Info interface.
       
    49 These are public so bearers/converters can access them.
       
    50 */
       
    51 enum TRemConTrackInfoOperationId
       
    52 	{
       
    53 	/** Get track name. */
       
    54 	ERemConGetTrackName			= 0x00,
       
    55 	/** Set track name. */
       
    56 	ERemConSetTrackName			= 0x01,
       
    57 	/** Get artist. */
       
    58 	ERemConGetArtist 			= 0x02,
       
    59 	/** Get track duration. */
       
    60 	ERemConGetTrackDuration		= 0x03,
       
    61 	};
       
    62 
       
    63 /**
       
    64 The UID identifying the Abs Vol outer-layer RemCon interface.
       
    65 */
       
    66 const TInt KRemConAbsVolApiUid = 0x1020831D;
       
    67 
       
    68 /**
       
    69 Operation ids belonging to the Abs Vol interface.
       
    70 These are public so bearers/converters can access them.
       
    71 */
       
    72 enum TRemConAbsVolOperationId
       
    73 	{
       
    74 	/** Get absolute volume. */
       
    75 	ERemConGetAbsoluteVolume 	= 0x00,
       
    76 	/** Set absolute volume. */
       
    77 	ERemConSetAbsoluteVolume 	= 0x01,
       
    78 	};
       
    79 
       
    80 #endif // REMCONEXTAPI1_H