equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2007 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: PSM server shutdown. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef PSMSRVSHUTDOWN_H |
|
20 #define PSMSRVSHUTDOWN_H |
|
21 |
|
22 #include <e32base.h> |
|
23 |
|
24 class CPsmSrvServer; |
|
25 |
|
26 /** |
|
27 * Power Save Mode Server shutdown timer |
|
28 * |
|
29 * Starts timer to shutdown PSM server |
|
30 * |
|
31 * @since S60 5.0 |
|
32 */ |
|
33 class CPsmSrvShutdown : public CActive |
|
34 { |
|
35 public: // Constructors and destructor |
|
36 |
|
37 /** |
|
38 * Creates a new PSM plug-in loader. |
|
39 * |
|
40 * @return A pointer to the created object. |
|
41 */ |
|
42 CPsmSrvShutdown( CPsmSrvServer& aServer ); |
|
43 |
|
44 /** |
|
45 * Destructor. |
|
46 */ |
|
47 virtual ~CPsmSrvShutdown(); |
|
48 |
|
49 public: |
|
50 |
|
51 /** |
|
52 * Starts shutdown timer. |
|
53 */ |
|
54 void Start(); |
|
55 |
|
56 /** |
|
57 * Restarts shutdown timer. |
|
58 */ |
|
59 void Restart(); |
|
60 |
|
61 protected: // From CActive |
|
62 |
|
63 void RunL(); |
|
64 void DoCancel(); |
|
65 |
|
66 private: // Data |
|
67 |
|
68 CPsmSrvServer& iServer; |
|
69 |
|
70 RTimer iTimer; |
|
71 |
|
72 }; |
|
73 |
|
74 #endif // PSMSRVSHUTDOWN_H |