bluetoothappprofiles/avrcp/common/mediainformation.h
changeset 70 f5508c13dfe0
parent 67 16e4b9007960
child 71 083fd884d7dd
equal deleted inserted replaced
67:16e4b9007960 70:f5508c13dfe0
     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  @file
       
    18  @internalTechnology
       
    19  @released
       
    20 */
       
    21 
       
    22 #ifndef REMCONMEDIAINFORMATION_H
       
    23 #define REMCONMEDIAINFORMATION_H
       
    24 
       
    25 #include "avrcpipc.h"
       
    26 
       
    27 //-------------------------------------------------------------------------- 
       
    28 // Interface Data
       
    29 //--------------------------------------------------------------------------
       
    30 
       
    31 /**
       
    32  * The UID identifying the RemCon MediaInformation interface.
       
    33  */
       
    34 const TInt KRemConMediaInformationApiUid = 0x10285B20;
       
    35 
       
    36 // identifier (8bytes) NumAttributes (1) AttributeID (max is 4*7) = 37
       
    37 const TInt KMaxLengthMediaInformationMsg = 37;
       
    38 const TInt KMaxMediaAttributeValue = 7;
       
    39 
       
    40 class RRemConGetElementAttributesRequest : public RAvrcpIPC
       
    41 	{
       
    42 public:
       
    43 	TUint64 				iElement;
       
    44 	TInt 					iNumberAttributes;
       
    45 	RArray<TInt>			iAttributes;
       
    46 
       
    47 public:
       
    48 	IMPORT_C void ReadL(const TDesC8& aData);
       
    49 	IMPORT_C void WriteL(TDes8& aOutData);
       
    50 	IMPORT_C void Close();
       
    51 	};
       
    52 
       
    53 
       
    54 class REAResponse
       
    55 	{
       
    56 public:
       
    57 	IMPORT_C void Close();
       
    58 public:
       
    59 	TInt    iAttributeId;
       
    60 	TUint16 iCharset;
       
    61 	TUint16 iStringLen;
       
    62 	HBufC8* iString;
       
    63 	};
       
    64 
       
    65 
       
    66 class RRemConGetElementAttributesResponse : public RAvrcpIPC
       
    67 	{
       
    68 public:
       
    69 	TInt 					iNumberAttributes;
       
    70 	RArray<REAResponse>		iAttributes;
       
    71 
       
    72 public:
       
    73 	IMPORT_C void ReadL(const TDesC8& aData);
       
    74 	IMPORT_C void WriteL(TDes8& aOutData);
       
    75 	IMPORT_C TInt Size();
       
    76 	IMPORT_C void Close();
       
    77 	};
       
    78 
       
    79 #endif // REMCONMEDIAINFORMATION_H