bluetoothappprofiles/avrcp/statusclient/remconstatusapicontrollerobserver.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 27 May 2010 13:01:44 +0300
changeset 33 837dcc42fd6a
parent 0 f63038272f30
permissions -rw-r--r--
Revision: 201019 Kit: 2010121

// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
//

/**
 @file
 @publishedAll
 @released
*/

#ifndef REMCONSTATUSAPICONTROLLEROBSERVER_H
#define REMCONSTATUSAPICONTROLLEROBSERVER_H

#include <e32std.h>

/**
Interface to observe responses from a Status API controller.
@publishedAll
@released
*/
class MRemConStatusApiControllerObserver
	{
public:
	/**	A UnitInfo response has been received. 
	
	For details on the meanings on the fields please refer to the 
	AV/C Digital Interface Command Set General Specification, 
	section 11.2.1.
	
	If all values are zero there was an error with the command.
	@param aVendorId The VendorId
	@param aUnit Unit
	@param aUnitType UnitType
	@param aExtendedUnitType Extended Unit type. This data is only 
		valid if Unit type is 0x1e. The second byte is only valid 
		if the first byte is 0xff.
	*/
	virtual void MrcsacoUnitInfoResponse(TInt aVendorId, 
		TInt aUnit, 
		TInt aUnitType, 
		TInt aExtendedUnitType) = 0;

	/** A SubunitInfo response has been received. 
	
	For details on the meanings on the fields please
	refer to the AV/C Digital Interface Command Set
	General Specification, section 11.2.2.
	
	If all values are zero there was an error with the command.
	@param aPage Page
	@param aExtension Extension.
	@param aPageData Page Data. This data remains valid only for
		the duration of this call.  If the client wishes to store
		the data it must be copied.
	*/
	virtual void MrcsacoSubunitInfoResponse(TInt aPage,
		TInt aExtension,
		TDesC8& aPageData) = 0;
		
	/**
 	 Returns a null aObject if the extension is not implemented, or 
 	 a pointer to another interface if it is.
 	 
	 @param aInterface UID of the interface to return
	 @param aObject the container for another interface as specified by aInterface
	 */
	IMPORT_C virtual void Mrcsaco_ExtensionInterfaceL(TUid aInterface, void*& aObject);
	};

#endif // REMCONSTATUSAPICONTROLLEROBSERVER_H