remotecontrol/avrcp/absolutevolumeapi/public/absolutevolumeutils.h
changeset 51 20ac952a623c
equal deleted inserted replaced
48:22de2e391156 51:20ac952a623c
       
     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  @publishedPartner
       
    21  @released
       
    22 */
       
    23 
       
    24 #ifndef ABSOLUTEVOLUMEUTILS_H_
       
    25 #define ABSOLUTEVOLUMEUTILS_H_
       
    26 
       
    27 #include <e32base.h>
       
    28 #include <s32mem.h>
       
    29 
       
    30 class RRemConAbsoluteVolume
       
    31 	{
       
    32 public:
       
    33     virtual void ReadL(const TDesC8& aData) = 0;
       
    34     virtual void WriteL(TDes8& aOutData) = 0;
       
    35 	IMPORT_C void Close();
       
    36 	
       
    37 public:
       
    38 	TUint32  iVolume;
       
    39 	TUint32  iMaxVolume;	
       
    40 	
       
    41 protected:
       
    42 	RDesWriteStream    iStream;
       
    43 	RDesReadStream     iReadStream;
       
    44 	};
       
    45 
       
    46 class RRemConAbsoluteVolumeRequest : public RRemConAbsoluteVolume
       
    47 	{
       
    48 public:
       
    49 	IMPORT_C void ReadL(const TDesC8& aData);
       
    50 	IMPORT_C void WriteL(TDes8& aOutData);
       
    51 	};
       
    52 
       
    53 class RRemConAbsoluteVolumeResponse : public RRemConAbsoluteVolume
       
    54 	{
       
    55 public:
       
    56 	IMPORT_C void ReadL(const TDesC8& aData);
       
    57 	IMPORT_C void WriteL(TDes8& aOutData);
       
    58 public:
       
    59 	TInt32   iError;
       
    60 	};
       
    61 
       
    62 #endif /*ABSOLUTEVOLUMEUTILS_H_*/