sl@0: // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of the License "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // Provides the debug security server's shutdown timer implementation sl@0: // sl@0: // sl@0: sl@0: /** sl@0: @file sl@0: @internalTechnology sl@0: @released sl@0: */ sl@0: sl@0: #include sl@0: #include "c_shutdown_timer.h" sl@0: #include "rm_debug_logging.h" sl@0: sl@0: /** sl@0: Constructor. Adds the timer to the thread's active scheduler, sl@0: */ sl@0: CShutdownTimer::CShutdownTimer() sl@0: :CTimer(KActivePriorityShutdown) sl@0: { sl@0: LOG_MSG("CShutdownTimer::CShutdownTimer()\n"); sl@0: CActiveScheduler::Add(this); sl@0: } sl@0: sl@0: /** sl@0: Initialisation of timer sl@0: */ sl@0: void CShutdownTimer::ConstructL() sl@0: { sl@0: LOG_MSG("CShutdownTimer::ConstructL()\n"); sl@0: CTimer::ConstructL(); sl@0: } sl@0: sl@0: /** sl@0: Starts the timer which would expire after KShutdownDelay sl@0: */ sl@0: void CShutdownTimer::Start() sl@0: { sl@0: LOG_MSG("CShutdownTimer::Start()\n"); sl@0: After(KShutdownDelay); sl@0: } sl@0: sl@0: /** sl@0: Stops the active scheduler. Stopping the active scheduler effectively closes sl@0: the Debug Security Server sl@0: */ sl@0: void CShutdownTimer::RunL() sl@0: { sl@0: LOG_MSG("CShutdownTimer::RunL()\n"); sl@0: CActiveScheduler::Stop(); sl@0: } sl@0: