1 /* |
|
2 * Copyright (c) 2006 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: Observes Profile state changes. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CSATPROFILECHANGEOBSERVER_H |
|
21 #define CSATPROFILECHANGEOBSERVER_H |
|
22 |
|
23 #include <e32base.h> |
|
24 #include "MSatSystemStateObserver.h" |
|
25 |
|
26 class MSatSystemStateChangeNotifier; |
|
27 class MSatUtils; |
|
28 |
|
29 |
|
30 /** |
|
31 * Observes Profile status change and informs CSatCommandContainer |
|
32 * of a possible change. |
|
33 * |
|
34 * @lib SatEngine |
|
35 * @since S60 3.0 |
|
36 */ |
|
37 class CSatProfileChangeObserver : public CBase, |
|
38 public MSatSystemStateObserver |
|
39 { |
|
40 public: |
|
41 |
|
42 /** |
|
43 * Two-phased constructor. |
|
44 * @param aUtils Utils inteface |
|
45 */ |
|
46 static CSatProfileChangeObserver* NewL( MSatUtils& aUtils ); |
|
47 |
|
48 /** |
|
49 * Destructor. |
|
50 */ |
|
51 virtual ~CSatProfileChangeObserver(); |
|
52 |
|
53 |
|
54 /** |
|
55 * From MSatSystemStateObserver Notifies that system state changed. |
|
56 * |
|
57 * @since S60 v3.0 |
|
58 * @param aValue The new value that has changed. |
|
59 */ |
|
60 void StateChanged( const TInt aValue ); |
|
61 |
|
62 private: |
|
63 |
|
64 /** |
|
65 * C++ default constructor. |
|
66 * @param aUtils Utils inteface |
|
67 */ |
|
68 CSatProfileChangeObserver( MSatUtils& aUtils ); |
|
69 |
|
70 /** |
|
71 * By default Symbian 2nd phase constructor is private. |
|
72 */ |
|
73 void ConstructL(); |
|
74 |
|
75 private: // Data |
|
76 |
|
77 /** |
|
78 * Reference to command container. |
|
79 */ |
|
80 MSatUtils& iUtils; |
|
81 |
|
82 /** |
|
83 * System state notifier. |
|
84 */ |
|
85 MSatSystemStateChangeNotifier* iStateNotifier; |
|
86 |
|
87 |
|
88 /** |
|
89 * Stores the previous profile state. |
|
90 */ |
|
91 TBool iPreviousProfile; |
|
92 }; |
|
93 |
|
94 #endif // CSATPROFILECHANGEOBSERVER_H |
|