os/mm/mmplugins/cameraplugins/source/mmcameraclientplugin/mmcameraserver/src/mmcameraservershutdown.cpp
First public contribution.
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
21 #include "mmcameraservershutdown.h"
23 CMMCameraServerShutdown* CMMCameraServerShutdown::NewL()
25 CMMCameraServerShutdown* self = new(ELeave) CMMCameraServerShutdown();
26 CleanupStack::PushL(self);
28 CleanupStack::Pop(self);
32 void CMMCameraServerShutdown::RunL()
34 CActiveScheduler::Stop();
37 CMMCameraServerShutdown::~CMMCameraServerShutdown()
41 CMMCameraServerShutdown::CMMCameraServerShutdown()
42 : CTimer(CActive::EPriorityLow)
44 CActiveScheduler::Add(this);
47 void CMMCameraServerShutdown::ConstructL()
52 void CMMCameraServerShutdown::Start()
54 After(KMMServerShutdownDelay);