diff -r 63339781d179 -r 09b1ac925e3f securitydialogs/Autolock/inc/AutoKeyguardObserver.h --- a/securitydialogs/Autolock/inc/AutoKeyguardObserver.h Thu Aug 19 10:45:23 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,104 +0,0 @@ -/* -* 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: -* -*/ - - -#ifndef _AUTOKEYGUARDOBSERVER_H__ -#define _AUTOKEYGUARDOBSERVER_H__ - -#include -#include -#include - -class CUserActivityManager; -class CAutoKeyguardCenRepI; -class MAutolockAppUiInterface; - -class CAutoKeyguardObserver : public CBase - { - public: - /** - * Creates instance of the CAutoKeyguardObserver class. - * - * @return Returns the instance just created. - */ - static CAutoKeyguardObserver* NewL( MAutolockAppUiInterface* aAppUiI ); - /** - * Symbian OS constructor. - */ - void ConstructL( CAutoKeyguardObserver* aObserver ); - /** - * Destructor. - */ - ~CAutoKeyguardObserver(); - public: - /** - * Gets new autokeyguard period and starts monitoring user activity - */ - void ResetInactivityTimeout(); - /** - * Activates keyguard - */ - void LockKeysL(); - private: - /** - * C++ default constructor. - */ - CAutoKeyguardObserver( MAutolockAppUiInterface* aAppUiI ); - private: - /** - * Return current autokeyguard period - * - * @return TInt (autokeyguard period in minutes) - */ - TInt AutoKeyguardTimeout(); - /** - * Handles Active event. Called by ActivityManager - * - * @param aPtr - * @return KErNone - */ - static TInt HandleActiveEventL(TAny* aPtr); - /** - * Handles Inactive event. Called by ActivityManager - * - * @param aPtr (pointer to CAutoKeyguardObserver) - * @return KErNone - */ - static TInt HandleInactiveEventL(TAny* aPtr); - /** - * Starts monitoring user activity - */ - void StartActivityMonitoringL(); - /** - * Stop monitoring user activity. - */ - void StopActivityMonitoring(); - /** - * Initializes activymanager - */ - void SetActivityManagerL(); - /** - * UnInitializes activymanager - */ - void CancelActivityManager(); - private: //data - CUserActivityManager* iActivityManager; - CAutoKeyguardCenRepI* iCenRepI; - MAutolockAppUiInterface* iAppUiI; - }; -#endif -// END OF FILE