equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2008 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: Haptic server shutdown timer. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C__HWRMHAPTICSSHUTDOWN_H |
|
20 #define C__HWRMHAPTICSSHUTDOWN_H |
|
21 |
|
22 #include <e32base.h> |
|
23 |
|
24 /** |
|
25 * Haptics server shutdown timer. |
|
26 */ |
|
27 class CHWRMHapticsShutdown : public CTimer |
|
28 { |
|
29 public: |
|
30 |
|
31 /** |
|
32 * Two phased constructor. |
|
33 * |
|
34 * @return Created instance of the shutdown timer. |
|
35 */ |
|
36 static CHWRMHapticsShutdown* NewL(); |
|
37 |
|
38 /** |
|
39 * Destructor. |
|
40 */ |
|
41 virtual ~CHWRMHapticsShutdown(); |
|
42 |
|
43 /** |
|
44 * Starts the timer. |
|
45 */ |
|
46 void Start(); |
|
47 |
|
48 private: |
|
49 |
|
50 /** |
|
51 * C++ constructor. |
|
52 */ |
|
53 CHWRMHapticsShutdown(); |
|
54 |
|
55 /** |
|
56 * Second phase construction. |
|
57 */ |
|
58 void ConstructL(); |
|
59 |
|
60 /** |
|
61 * From base class CActive. |
|
62 * @see CActive. |
|
63 * |
|
64 * Executed, when the timer expires; Shuts down |
|
65 * the server by closing the active scheduler. |
|
66 */ |
|
67 void RunL(); |
|
68 }; |
|
69 |
|
70 #endif // C_HWRMHAPTICSSHUTDOWN_H |
|
71 |
|
72 // End of File |