equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2005 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef CMCECSSERVERCLOSETIMER_H |
|
22 #define CMCECSSERVERCLOSETIMER_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32base.h> |
|
26 |
|
27 // CLASS DECLARATION |
|
28 |
|
29 /** |
|
30 * Timer to stop MCE server when it becomes inactive. |
|
31 * |
|
32 * @lib |
|
33 * @since |
|
34 */ |
|
35 class CMceCsServerCloseTimer: public CActive |
|
36 { |
|
37 public: // Constructors and destructor |
|
38 |
|
39 /** |
|
40 * Two-phased constructor. |
|
41 */ |
|
42 static CMceCsServerCloseTimer* NewL (); |
|
43 |
|
44 /** |
|
45 * Two-phased constructor. |
|
46 */ |
|
47 static CMceCsServerCloseTimer* NewLC (); |
|
48 |
|
49 /** |
|
50 * Destructor. |
|
51 */ |
|
52 ~CMceCsServerCloseTimer (); |
|
53 |
|
54 public: // New |
|
55 |
|
56 /** |
|
57 * Stops server after given timeout |
|
58 * @param aMilliSeconds, timer timeout value in milliseconds. |
|
59 */ |
|
60 void StopActiveSchedulerAfter (TUint aMilliSeconds); |
|
61 |
|
62 /** |
|
63 * Called after timeout. |
|
64 */ |
|
65 void RunL (); |
|
66 |
|
67 /** |
|
68 * Cancels timer. |
|
69 */ |
|
70 void DoCancel (); |
|
71 |
|
72 private: |
|
73 |
|
74 CMceCsServerCloseTimer (); |
|
75 |
|
76 void ConstructL (); |
|
77 |
|
78 private: |
|
79 |
|
80 RTimer iTimer; |
|
81 }; |
|
82 |
|
83 #endif |
|
84 |
|
85 // End of File |