equal
deleted
inserted
replaced
|
1 // Copyright (c) 2004-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 // Implementation of CSBShutdown class. |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 */ |
|
21 |
|
22 #include <e32std.h> |
|
23 #include <e32base.h> |
|
24 #include "sbshutdown.h" |
|
25 |
|
26 namespace conn |
|
27 { |
|
28 |
|
29 /** Shutdown delay, in microseconds. |
|
30 @internalComponent */ |
|
31 const TUint KShutdownDelay = 0x200000; |
|
32 |
|
33 CSBShutdown::CSBShutdown() : |
|
34 CTimer(EPriorityNormal) |
|
35 /** |
|
36 Class Constructor |
|
37 */ |
|
38 { |
|
39 } |
|
40 |
|
41 void CSBShutdown::ConstructL() |
|
42 /** |
|
43 Construct this instance of CSBShutdown. |
|
44 */ |
|
45 { |
|
46 CTimer::ConstructL(); |
|
47 CActiveScheduler::Add(this); |
|
48 } |
|
49 |
|
50 void CSBShutdown::Start() |
|
51 /** Starts the timer. */ |
|
52 { |
|
53 After(KShutdownDelay); |
|
54 } |
|
55 |
|
56 void CSBShutdown::RunL() |
|
57 /** Called after the timer has expired. |
|
58 |
|
59 Stop the active scheduler and shutdown the server. |
|
60 */ |
|
61 { |
|
62 CActiveScheduler::Stop(); |
|
63 } |
|
64 } |