diff -r b3cee849fa46 -r fad26422216a memspyui/include/MemSpyViewDriveInfo.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/memspyui/include/MemSpyViewDriveInfo.h Wed Sep 01 12:30:35 2010 +0100 @@ -0,0 +1,106 @@ +/* +* Copyright (c) 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: +* +*/ + +#ifndef MEMSPYVIEWDRIVEINFO_H +#define MEMSPYVIEWDRIVEINFO_H + +// System includes +#include +#include + +// Engine includes +#include + +// User includes +#include "MemSpyViewBase.h" + +// Classes referenced + + + + +class CMemSpyViewDriveInfoBase : public CMemSpyViewBase + { +public: + CMemSpyViewDriveInfoBase( CMemSpyEngine& aEngine, MMemSpyViewObserver& aObserver ); + ~CMemSpyViewDriveInfoBase(); + void BaseConstructL(); + +public: // From CMemSpyViewBase + TBool HandleCommandL( TInt aCommand ); + +protected: // Data members + CMemSpyEngineDriveList* iList; + }; + + + + +class CMemSpyViewDriveList : public CMemSpyViewDriveInfoBase, public MMemSpyEngineDriveListObserver + { +public: + CMemSpyViewDriveList( CMemSpyEngine& aEngine, MMemSpyViewObserver& aObserver ); + CMemSpyViewDriveList( CMemSpyEngine& aEngine, MMemSpyViewObserver& aObserver, TDriveNumber aDriveNumber ); + void ConstructL( const TRect& aRect, CCoeControl& aContainer, TAny* aSelectionRune = NULL ); + +public: // From CMemSpyViewBase + TMemSpyViewType ViewType() const; + CMemSpyViewBase* PrepareParentViewL(); + CMemSpyViewBase* PrepareChildViewL(); + +private: // From CMemSpyViewBase + void RefreshL(); + void SetListBoxModelL(); + void HandleListBoxItemActionedL( TInt aIndex ); + void HandleListBoxItemSelectedL( TInt aIndex ); + +private: // From MMemSpyEngineDriveListObserver + void HandleDriveListChangedL( const CMemSpyEngineDriveList& aList ); + +private: // Data members + TBool iUseDriveNumber; + TDriveNumber iDriveNumber; + CMemSpyEngineDriveEntry* iCurrentDrive; + }; + + + +class CMemSpyViewDriveInfo : public CMemSpyViewDriveInfoBase, public MMemSpyEngineDriveEntryObserver + { +public: + CMemSpyViewDriveInfo( CMemSpyEngine& aEngine, MMemSpyViewObserver& aObserver, TDriveNumber aDriveNumber ); + void ConstructL( const TRect& aRect, CCoeControl& aContainer, TAny* aSelectionRune = NULL ); + +public: // From CMemSpyViewBase + void RefreshL(); + TMemSpyViewType ViewType() const; + CMemSpyViewBase* PrepareParentViewL(); + +private: // From CMemSpyViewBase + void SetListBoxModelL(); + +private: // From MMemSpyEngineDriveEntryObserver + void HandleDriveEntryChangedL( const CMemSpyEngineDriveEntry& aEntry ); + +private: // Data members + const TDriveNumber iDriveNumber; + CMemSpyEngineDriveEntry* iDriveInfo; + }; + + + +#endif