|
1 /* |
|
2 * Copyright (c) 2002-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: Monitor of idle screen availability. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CSATIDLESCREENMONITOR_H |
|
21 #define CSATIDLESCREENMONITOR_H |
|
22 |
|
23 // INCLUDES |
|
24 #include "MSatSystemStateObserver.h" |
|
25 #include "CSatEventMonitorHandler.h" |
|
26 |
|
27 // CLASS DECLARATION |
|
28 class MSatSystemStateChangeNotifier; |
|
29 |
|
30 /** |
|
31 * Monitors idle screen state and informs SAT Engine if idle screen is available |
|
32 * |
|
33 * @lib EventMonitors.lib |
|
34 * @since Series 60 3.0 |
|
35 */ |
|
36 class CSatIdleScreenMonitor : public CSatEventMonitorHandler, |
|
37 public MSatSystemStateObserver |
|
38 { |
|
39 public: // Constructor and destructor |
|
40 |
|
41 /** |
|
42 * Two-phased constructor. |
|
43 * @param aUtils Interface for Event monitor utils |
|
44 */ |
|
45 static CSatIdleScreenMonitor* NewL( |
|
46 MSatEventMonitorUtils& aUtils ); |
|
47 |
|
48 /** |
|
49 * Destructor. |
|
50 */ |
|
51 virtual ~CSatIdleScreenMonitor(); |
|
52 |
|
53 public: // From base class |
|
54 |
|
55 /** |
|
56 * From CSatEventMonitorHandler Cancels event monitoring |
|
57 */ |
|
58 void DoCancelMonitor(); |
|
59 |
|
60 /** |
|
61 * From MSatSystemStateObserver Notifies that system state changed. |
|
62 */ |
|
63 void StateChanged(); |
|
64 |
|
65 protected: // New functions |
|
66 |
|
67 /** |
|
68 * From CSatEventMonitorHandler Starts event monitoring |
|
69 * @return Error code indicating the status of starting the monitor |
|
70 */ |
|
71 TInt StartMonitor(); |
|
72 |
|
73 private: |
|
74 |
|
75 /** |
|
76 * C++ default constructor. |
|
77 * @param aUtils Interface for Event monitor utils |
|
78 */ |
|
79 CSatIdleScreenMonitor( MSatEventMonitorUtils& aUtils ); |
|
80 |
|
81 // ConstructL |
|
82 void ConstructL(); |
|
83 |
|
84 private: // Data |
|
85 |
|
86 // P&S change notifier |
|
87 MSatSystemStateChangeNotifier* iPSNotifier; |
|
88 |
|
89 }; |
|
90 |
|
91 #endif // CSATIDLESCREENMONITOR_H |
|
92 |
|
93 // End of File |