deviceencryption/DevEncUi/inc/DevEncUiEncrView.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) 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:  Encryption view.
*
*/

#ifndef __DEVENCUI_ENCRVIEW_H__
#define __DEVENCUI_ENCRVIEW_H__

//INCLUDES

// System includes
#include <aknview.h>

//User Includes
#include "DevEncUiDocument.h"

// FORWARD DECLARATIONS
class CDevEncUiEncrViewContainer;
class CDevEncUiEncryptionOperator;
class CDevEncUiMemoryEntity;

class CDevEncUiEncrView: public CAknView
    {
    public: // constructors and destructor
        static CDevEncUiEncrView* NewL( RArray<CDevEncUiMemoryEntity*>& aMemEntities );
        static CDevEncUiEncrView* NewLC( RArray<CDevEncUiMemoryEntity*>& aMemEntities );
        CDevEncUiEncrViewContainer* Container();
        ~CDevEncUiEncrView();
        CDevEncUiAppUi& GetAppUi();

        private: // from CAknView
        TUid Id() const;
        void HandleCommandL( TInt aCommand );
        CDevEncUiEncrView( RArray<CDevEncUiMemoryEntity*>& aMemEntities );

        void DoActivateL( const TVwsViewId& aPrevViewId,
                          TUid aCustomMessageId,
                          const TDesC8& aCustomMessage );

        void DoDeactivate();

        private: // constructors
        void ConstructL();

    protected:
        /**
        *  HandleStatusPaneSizeChange.
        *  Called by the framework when the application status pane
        *  size is changed.
        */
        void HandleStatusPaneSizeChange();

    private: // data
        /** Owned. What this view will display */
        CDevEncUiEncrViewContainer* iContainer;
        TUid iId;

        /** Not owned */
        RArray<CDevEncUiMemoryEntity*>& iMemEntities;
    };

#endif	// __DEVENCUI_ENCRVIEW_H__

// End of File