equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Tacticon server shutdown timer. |
|
15 * Part of : Tacticon Server |
|
16 */ |
|
17 |
|
18 #ifndef C_TACTICONSHUTDOWN_H |
|
19 #define C_TACTICONSHUTDOWN_H |
|
20 |
|
21 #include <e32base.h> |
|
22 |
|
23 /** |
|
24 * Tacticon server shutdown timer. |
|
25 */ |
|
26 class CTacticonShutdown : public CTimer |
|
27 { |
|
28 public: |
|
29 |
|
30 /** |
|
31 * Two phased constructor. |
|
32 * |
|
33 * @return Created instance of the shutdown timer. |
|
34 */ |
|
35 static CTacticonShutdown* NewL(); |
|
36 |
|
37 /** |
|
38 * Destructor. |
|
39 */ |
|
40 virtual ~CTacticonShutdown(); |
|
41 |
|
42 /** |
|
43 * Starts the timer. |
|
44 */ |
|
45 void Start(); |
|
46 |
|
47 private: |
|
48 |
|
49 /** |
|
50 * C++ constructor. |
|
51 */ |
|
52 CTacticonShutdown(); |
|
53 |
|
54 /** |
|
55 * Second phase construction. |
|
56 */ |
|
57 void ConstructL(); |
|
58 |
|
59 /** |
|
60 * From base class CActive. |
|
61 * @see CActive. |
|
62 * |
|
63 * Executed when the timer expires; Shuts down |
|
64 * the server by closing the active scheduler. |
|
65 */ |
|
66 void RunL(); |
|
67 }; |
|
68 |
|
69 #endif // C_TACTICONSHUTDOWN_H |
|
70 |
|
71 // End of File |