diff -r 491b3ed49290 -r 65326cf895ed deviceencryption/DevEncUi/inc/DevEncUiMainView.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/deviceencryption/DevEncUi/inc/DevEncUiMainView.h Wed Sep 01 12:31:07 2010 +0100 @@ -0,0 +1,112 @@ +/* +* Copyright (c) 2005 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: Main view of the application. +* +*/ + +#ifndef __DEVENCUI_MAINVIEW_H__ +#define __DEVENCUI_MAINVIEW_H__ + +//INCLUDES + +//System includes +#include // CAknView +#include + +//User Includes +#include "DevEncUiContainerEventCallback.h" +#include "DevEncUiDocument.h" + +// FORWARD DECLARATIONS +class CDevEncUiEncryptionOperator; +class CDevEncUiMainViewContainer; +class CDevEncUiMemoryEntity; + +class CDevEncUiMainView: public CAknView, + public MContainerEventCallback + { + public: + // constructors and destructor + static CDevEncUiMainView* NewL( RArray& aMemEntities, + CRepository*& aSettings, + TInt& aMmcStatus ); + static CDevEncUiMainView* NewLC( RArray& aMemEntities, + CRepository*& aSettings, + TInt& aMmcStatus ); + ~CDevEncUiMainView(); + CDevEncUiAppUi& GetAppUi(); + + // from MContainerEventCallback + void EncryptionStatusChangeReq( TDevEncUiMemoryType aType ); + + protected: + void DynInitMenuPaneL( TInt aResourceId, + CEikMenuPane* aMenuPane ); + + /** + * HandleStatusPaneSizeChange. + * Called by the framework when the application status pane + * size is changed. + */ + void HandleStatusPaneSizeChange(); + + private: + // from CAknView + TUid Id() const; + void HandleCommandL( TInt aCommand ); + CDevEncUiMainView( RArray& aMemEntities, + CRepository*& aSettings, + TInt& aMmcStatus ); + + void DoActivateL( const TVwsViewId& aPrevViewId, + TUid aCustomMessageId, + const TDesC8& aCustomMessage ); + + void DoDeactivate(); + + // constructors + void ConstructL(); + + void HandleMemoryCardEncryptRequestL( CDevEncUiMemoryEntity* aMem ); + + void DoEncryptionStatusChangeReqL( TDevEncUiMemoryType aType ); + + TBool DmControlsMemory( TDevEncUiMemoryType aType, + TInt aDmControlSetting ); + + void ErrorNoteL( TInt aResourceId ); + + // data + /** ID of this view */ + TUid iId; + + /** Owned */ + CDevEncUiMainViewContainer* iContainer; + + /** Not owned */ + RArray& iMemEntities; + + /** Owned */ + CDevEncUiEncryptionOperator* iEncOperator; + + /** Not owned */ + CRepository*& iCrSettings; + + /** Not owned */ + TInt& iMmcStatus; + }; + +#endif // __DEVENCUI_MAINVIEW_H__ + +// End of File