bluetoothappprofiles/avrcp/nowplayingapi/public/remcondatabaseunawarenowplayingtargetobserver.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) 2008-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 REMCONDATABASEUNAWARENOWPLAYINGTARGETOBSERVER_H
#define REMCONDATABASEUNAWARENOWPLAYINGTARGETOBSERVER_H

#include <remconmediabrowsetypes.h>

/**
It is intended for the client which is database aware.
Clients must implement this interface in order to instantiate objects of type 
CRemConDatabaseUnawareNowPlayingTarget. This interface passes incoming 
commands from RemCon to the client. 

@see CRemConDatabaseUnawareNowPlayingTarget
*/
NONSHARABLE_CLASS(MRemConDatabaseUnawareNowPlayingTargetObserver) 
	{
public:
	/**
	Requests to play an item.
	
	@param aItem The item requested to play. 
	     - If it does not refer to any valid item, the client must call 
	       CRemConNowPlayingTargetBase::PlayItemResponse() with the error 
	       KErrInvalidUid;	
	     - If it refers to a directory which can not be handled by this media 
	       player, the client must call 
	       CRemConNowPlayingTargetBase::PlayItemResponse() 
	       with the error KErrNowPlayingUidIsADirectory;
	     - If it is in use and can not be played, the client must call 
	       CRemConNowPlayingTargetBase::PlayItemResponse() 
	       with the error KErrNowPlayingMediaInUse;
	
	@param aScope The scope in which the item was requested to play. 
	
    @see CRemConNowPlayingTargetBase::PlayItemResponse().
	*/
	virtual void MrcdunptoPlayItem(const TRemConItemUid& aItem, 
			TRemConFolderScope aScope) = 0;

	/**
	Requests to add an item to now playing list.
	
	@param aItem The item requested to play.
	     - If it does not refer to any valid item, the client must call 
	       CRemConNowPlayingTargetBase::AddToNowPlayingResponse() 
	       with the error KErrInvalidUid;
	     - If it refers to a directory which can not be handled by this media 
	       player, the client must call 
	       CRemConNowPlayingTargetBase::AddToNowPlayingResponse() 
	       with the error KErrNowPlayingUidIsADirectory;
	     - If it is in use and can not be added to now playing list, the 
	       client must call 
	       CRemConNowPlayingTargetBase::AddToNowPlayingResponse() 
	       with the error KErrNowPlayingMediaInUse;
	
	@param aScope The scope in which the item was requested to play. 
	
    @see CRemConNowPlayingTargetBase::AddToNowPlayingResponse().
	*/
	virtual void MrcdunptoAddToNowPlaying(const TRemConItemUid& aItem, 
			TRemConFolderScope aScope) = 0;
	};

#endif //REMCONDATABASEUNAWARENOWPLAYINGTARGETOBSERVER_H