|
1 /* |
|
2 * Copyright (c) 2002-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: A phone that supports SAT refresh |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CSATPHONE_H |
|
21 #define CSATPHONE_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include <mvpbksimphone.h> |
|
26 |
|
27 namespace VPbkSimStoreImpl { |
|
28 // FORWARD DECLARATIONS |
|
29 class CPhone; |
|
30 class CSatRefreshNotifier; |
|
31 |
|
32 // CLASS DECLARATION |
|
33 |
|
34 /** |
|
35 * A phone that supports SAT refresh |
|
36 * |
|
37 */ |
|
38 NONSHARABLE_CLASS(CSatPhone) : public CBase, |
|
39 public MVPbkSimPhone |
|
40 { |
|
41 public: // Constructors and destructor |
|
42 |
|
43 /** |
|
44 * Two-phased constructor. |
|
45 * @return a new instance of this class |
|
46 */ |
|
47 static CSatPhone* NewL(); |
|
48 |
|
49 /** |
|
50 * Destructor. |
|
51 */ |
|
52 virtual ~CSatPhone(); |
|
53 |
|
54 public: // Functions from base classes |
|
55 |
|
56 /** |
|
57 * From MVPbkSimPhone |
|
58 */ |
|
59 void OpenL( MVPbkSimPhoneObserver& aObserver ); |
|
60 |
|
61 /** |
|
62 * From MVPbkSimPhone |
|
63 */ |
|
64 void Close( MVPbkSimPhoneObserver& aObserver ); |
|
65 |
|
66 /** |
|
67 * From MVPbkSimPhone |
|
68 */ |
|
69 TBool USimAccessSupported() const; |
|
70 |
|
71 /** |
|
72 * From MVPbkSimPhone |
|
73 */ |
|
74 TUint32 ServiceTable() const; |
|
75 |
|
76 /** |
|
77 * From MVPbkSimPhone |
|
78 */ |
|
79 TFDNStatus FixedDialingStatus() const; |
|
80 |
|
81 private: |
|
82 |
|
83 /** |
|
84 * C++ default constructor. |
|
85 */ |
|
86 CSatPhone(); |
|
87 |
|
88 /** |
|
89 * By default Symbian 2nd phase constructor is private. |
|
90 */ |
|
91 void ConstructL(); |
|
92 |
|
93 private: // Data |
|
94 /// Own: a shared phone used by the stores |
|
95 VPbkSimStoreImpl::CPhone* iPhone; |
|
96 /// Own: a notifies observers when SIM files are refreshed |
|
97 VPbkSimStoreImpl::CSatRefreshNotifier* iSatNotifier; |
|
98 }; |
|
99 } // namespace VPbkSimStoreImpl |
|
100 #endif // CSATPHONE_H |
|
101 |
|
102 // End of File |