bluetoothappprofiles/avrcp/remconbeareravrcp/inc/commandhandlerinterface.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 #ifndef COMMANDHANDLERINTERFACE_H
       
    17 #define COMMANDHANDLERINTERFACE_H
       
    18 
       
    19 /**
       
    20 @file
       
    21 @internalComponent
       
    22 @released
       
    23 */
       
    24 
       
    25 #include <avctpservices.h>
       
    26 
       
    27 class CAvrcpCommand;
       
    28 NONSHARABLE_CLASS(MAvrcpCommandHandler)
       
    29 	{
       
    30 public:
       
    31 	virtual void MessageSent(CAvrcpCommand& aCommand, TInt aSendResult) = 0;
       
    32 	};
       
    33 
       
    34 NONSHARABLE_CLASS(MIncomingCommandHandler) : public MAvrcpCommandHandler
       
    35 	{
       
    36 public:
       
    37 	// lower interface 
       
    38 	virtual void MaxPacketSize(TInt aMtu) = 0;
       
    39 	virtual void ReceiveCommandL(const TDesC8& aMessageInformation, SymbianAvctp::TTransactionLabel aTransLabel, const TBTDevAddr& aAddr) = 0;
       
    40 	
       
    41 	// upper interface
       
    42 	virtual TInt SendRemConResponse(TUid aInterfaceUid, TUint aId, RBuf8& aData) = 0;
       
    43 	virtual void SendReject(TUid aInterfaceUid, TUint aTransactionId) = 0;
       
    44 	};
       
    45 
       
    46 NONSHARABLE_CLASS(MOutgoingCommandHandler) : public MAvrcpCommandHandler
       
    47 	{
       
    48 public:
       
    49 	// lower interface
       
    50 	virtual void ReceiveResponse(const TDesC8& aMessageInformation, SymbianAvctp::TTransactionLabel aTransLabel, TBool aIpidBitSet) = 0;
       
    51 	
       
    52 	// upper interface
       
    53 	virtual void SendCommandL(TUid aInterfaceUid, 
       
    54 		TUint aCommand, 
       
    55 		TUint aId,  
       
    56 		RBuf8& aCommandData, 
       
    57 		const TBTDevAddr& aAddr) = 0;
       
    58 	
       
    59 	virtual void SendNotifyCommandL(TUid aInterfaceUid, 
       
    60 		TUint aCommand, 
       
    61 		TUint aId,  
       
    62 		RBuf8& aCommandData, 
       
    63 		const TBTDevAddr& aAddr) = 0;
       
    64 	};
       
    65 
       
    66 #endif // COMMANDHANDLERINTERFACE_H