securitydialogs/Autolock/inc/AutolockView.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 26 Jan 2010 15:20:08 +0200
changeset 0 164170e6151a
permissions -rw-r--r--
Revision: 201004

/*
* Copyright (c) 2002 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 __AUTOLOCKVIEW_H__
#define __AUTOLOCKVIEW_H__

#include <aknview.h>
#include "AutolockContainer.h"

class CAutolockView : public CAknView
	{
	public:
		/**
        * Symbian OS constructor.
        */
		void ConstructL();
		/**
        * Destructor.
        */
		~CAutolockView();
	public: // from CAknView
		/**
        * Returns view id.
        * @return An unsigned integer (view id).
        */
        TUid Id() const;
		/**
        * Handles commands.
        * @param aCommand Command to be handled.
        * @return void.
        */
		void HandleCommandL(TInt aCommand);
		/**
        * Handles statuspane changes
        * @return void.
        */
		void HandleStatusPaneSizeChange();
		/**
        * Handles screen layout changes
        */
        void ScreenDeviceChanged();
        void MakeVisible(TBool aVisibility);
        void HandleCall(TInt aCommand, TRect &aRect );
	private: // from CAknView
		/**
        * Activates the view.
        * @param aPrevViewId ID of previous view
        * @param aCustomMessageId customized message ID
        * @param aCustomMessage sutomized message payload
        */
		void DoActivateL(const TVwsViewId& aPrevViewId,TUid aCustomMessageId,const TDesC8& aCustomMessage);
		/**
        * Deactivates view
        */
		void DoDeactivate();
	private: // data
		CAutolockContainer* iView;
		};
#endif 
// end of file