/*
* Copyright (c) 2006 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: MPX playback view implementation
*
*/
#ifndef C_CMPXPLAYBACKVIEWIMP_H
#define C_CMPXPLAYBACKVIEWIMP_H
#include <akntoolbarobserver.h>
// INCLUDES
#include "mpxplaybackview.h"
// FORWARD DECLARATIONS
class CMPXPlaybackViewContainer;
class CMPXPlaybackViewLayout;
class CAknToolbar;
// CLASS DECLARATION
/**
* MPX playback view.
*
* @lib mpxplaybackview.lib
* @since S60 v3.0
*/
NONSHARABLE_CLASS( CMPXPlaybackViewImp ) : public CMPXPlaybackView
,public MAknToolbarObserver
{
public:
/**
* Two-phased constructor.
*
* @since 3.0
* @return Pointer to newly created object.
*/
static CMPXPlaybackViewImp* NewL();
/**
* Two-phased constructor.
*
* @since 3.0
* @return Pointer to newly created object.
*/
static CMPXPlaybackViewImp* NewLC();
/**
* Destructor.
*/
~CMPXPlaybackViewImp();
private:
/**
* C++ default constructor.
*/
CMPXPlaybackViewImp();
/**
* By default Symbian 2nd phase constructor is private.
*/
void ConstructL();
// from base class MEikMenuObserver
/**
* From MEikMenuObserver
* Dynamically initialises a menu pane.
*
* @param aResourceId The ID of the menu pane.
* @param aMenuPane The menu pane itself.
*/
void DynInitMenuPaneL(
TInt aResourceId,
CEikMenuPane* aMenuPane );
// from base class CAknView
/**
* From CAknView
* Returns views id.
*
* @since 3.0
* @return Views Uid
*/
TUid Id() const;
/**
* From CAknView
* Processes user commands.
*
* @since 3.0
* @param aCommand ID of the command to respond to.
*/
void ProcessCommandL( TInt aCommand );
/**
* From CAknView
* Handles a view activation.
*
* @param aPrevViewId Specifies the view previously active.
* @param aCustomMessageId Specifies the message type.
* @param aCustomMessage The activation message.
*/
void DoActivateL(
const TVwsViewId& aPrevViewId,
TUid aCustomMessageId,
const TDesC8& aCustomMessage );
/**
* From MAknToolbarObserver
* Processes user commands.
*
* @since 5.0
* @param aCommand ID of the command to respond to.
*/
void OfferToolbarEventL( TInt aCommandId );
/**
* From MAknToolbarObserver
* Used to change toolbar settings before it is made visible
*
* @since 5.0
* @param aCommand ID of the command to respond to.
*/
void DynInitToolbarL( TInt aResourceId, CAknToolbar* aToolBar );
private: // data
CMPXPlaybackViewLayout* iPlaybackViewLayout; // owned
void DoHandlePlaybackMessageL( const CMPXMessage& aMessage );
CAknToolbar* iToolbar; //owned
};
#endif // C_CMPXPLAYBACKVIEWIMP_H
// End of File