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: Observes SIM Access Profile status changes. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CSATSAPCHANGEOBSERVER_H |
|
21 #define CSATSAPCHANGEOBSERVER_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include "MSatSystemStateObserver.h" |
|
26 |
|
27 // FORWARD DECLARATION |
|
28 class CSatCommandContainer; |
|
29 class MSatSystemStateChangeNotifier; |
|
30 |
|
31 // CLASS DECLARATION |
|
32 |
|
33 /** |
|
34 * Observes SIM Access Profile status change and informs CSatCommandContriner |
|
35 * of a possible change. |
|
36 * |
|
37 * @lib SatEngine |
|
38 * @since Series 60 3.0 |
|
39 */ |
|
40 class CSatSAPChangeObserver : public CBase, |
|
41 public MSatSystemStateObserver |
|
42 { |
|
43 public: // Constructors and destructor |
|
44 |
|
45 /** |
|
46 * Two-phased constructor. |
|
47 * @param aContainer Container of command handlers. |
|
48 */ |
|
49 static CSatSAPChangeObserver* NewL( CSatCommandContainer& aContainer ); |
|
50 |
|
51 /** |
|
52 * Destructor. |
|
53 */ |
|
54 virtual ~CSatSAPChangeObserver(); |
|
55 |
|
56 public: // From base classes |
|
57 |
|
58 /** |
|
59 * From MSatSystemStateObserver Notifies that system state changed. |
|
60 * @param aValue The new value that has changed. |
|
61 */ |
|
62 void StateChanged( const TInt aValue ); |
|
63 |
|
64 private: |
|
65 |
|
66 /** |
|
67 * C++ default constructor. |
|
68 * @param aContainer Container of command handlers. |
|
69 */ |
|
70 CSatSAPChangeObserver( CSatCommandContainer& aContainer ); |
|
71 |
|
72 /** |
|
73 * By default Symbian 2nd phase constructor is private. |
|
74 */ |
|
75 void ConstructL(); |
|
76 |
|
77 private: // Data |
|
78 |
|
79 // Command container. |
|
80 CSatCommandContainer& iContainer; |
|
81 |
|
82 // System state notifier. |
|
83 MSatSystemStateChangeNotifier* iStateNotifier; |
|
84 |
|
85 }; |
|
86 |
|
87 #endif // CSATSAPCHANGEOBSERVER_H |
|
88 |
|
89 // End of File |
|