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