mmplugins/cameraplugins/source/mmcameraclientplugin/mmcameraserver/src/mmcameraservershutdown.cpp
equal
deleted
inserted
replaced
|
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". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @internalComponent |
|
19 */ |
|
20 |
|
21 #include "mmcameraservershutdown.h" |
|
22 |
|
23 CMMCameraServerShutdown* CMMCameraServerShutdown::NewL() |
|
24 { |
|
25 CMMCameraServerShutdown* self = new(ELeave) CMMCameraServerShutdown(); |
|
26 CleanupStack::PushL(self); |
|
27 self->ConstructL(); |
|
28 CleanupStack::Pop(self); |
|
29 return self; |
|
30 } |
|
31 |
|
32 void CMMCameraServerShutdown::RunL() |
|
33 { |
|
34 CActiveScheduler::Stop(); |
|
35 } |
|
36 |
|
37 CMMCameraServerShutdown::~CMMCameraServerShutdown() |
|
38 { |
|
39 } |
|
40 |
|
41 CMMCameraServerShutdown::CMMCameraServerShutdown() |
|
42 : CTimer(CActive::EPriorityLow) |
|
43 { |
|
44 CActiveScheduler::Add(this); |
|
45 } |
|
46 |
|
47 void CMMCameraServerShutdown::ConstructL() |
|
48 { |
|
49 CTimer::ConstructL(); |
|
50 } |
|
51 |
|
52 void CMMCameraServerShutdown::Start() |
|
53 { |
|
54 After(KMMServerShutdownDelay); |
|
55 } |