filemanager/App/inc/CFileManagerMemoryStoreView.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 18 Jan 2010 20:09:41 +0200
changeset 0 6a9f87576119
permissions -rw-r--r--
Revision: 201001 Kit: 201003

/*
* 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:  Memory store view
*
*/



#ifndef C_FILEMANAGERMEMORYSTOREVIEW_H
#define C_FILEMANAGERMEMORYSTOREVIEW_H


//  INCLUDES
#include <aknview.h>
#include "CFileManagerViewBase.h"


// CLASS DECLARATION
/**
 * This class implements memory store view.
 *
 *  @since S60 3.1
 */
class CFileManagerMemoryStoreView : public CFileManagerViewBase
    {

public:  // Constructors and destructor
    /**
     * Two-phased constructor.Leaves created view
	 * to cleanup stack.
	 *
	 * @return Newly constructed view 
     */
	static CFileManagerMemoryStoreView* NewLC();
    
    /**
	 * Destructor.
     */
    ~CFileManagerMemoryStoreView();

public: // From CFileManagerViewBase
	/**
	 * @see CFileManagerViewBase
	 */
    void DirectoryChangedL();

	/**
	 * @see CFileManagerViewBase
	 */
	CFileManagerContainerBase* CreateContainerL();

	/**
	 * @see CFileManagerViewBase
	 */
	void UpdateCbaL();

private: // From CAknView
	/**
	 * @see CAknView
	 */
	void DoActivateL(
	    const TVwsViewId& aPrevViewId,
	    TUid aCustomMessageId,
	    const TDesC8& aCustomMessage );

	/**
	 * @see CAknView
	 */
	void DoDeactivate();

	/**
	 * @see CAknView
	 */
	TUid Id() const;

	/**
	 * @see CAknView
	 */
    void HandleCommandL( TInt aCommand );

private: // New functions
    /**
     * Checks memory store available
     */
    TBool DriveAvailableL( TBool aShowRemoteNotConnected );

    /**
     * Refreshes memory store title
     */
    void RefreshTitleL();

    /**
     * Handles open memory store command
     */
    void CmdOpenL();

    /**
     * Handles back command
     */
    void CmdBackL();

private:
    /**
    * C++ default constructor.
    */
    CFileManagerMemoryStoreView();

private:

    };

#endif // C_FILEMANAGERMEMORYSTOREVIEW_H   

// End of File