|
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: An ADN store |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef VPBKSIMSTOREIMPL_CADNSTORE_H |
|
21 #define VPBKSIMSTOREIMPL_CADNSTORE_H |
|
22 |
|
23 // INCLUDES |
|
24 #include "CCustomStore.h" |
|
25 #include <MVPbkSimPhoneObserver.h> |
|
26 |
|
27 namespace VPbkSimStoreImpl { |
|
28 |
|
29 // CLASS DECLARATION |
|
30 |
|
31 /** |
|
32 * An ADN store that interferes with active FDN |
|
33 * |
|
34 */ |
|
35 NONSHARABLE_CLASS(CAdnStore) |
|
36 : public CCustomStore, |
|
37 private MVPbkSimPhoneObserver |
|
38 { |
|
39 public: // Constructors and destructor |
|
40 |
|
41 /** |
|
42 * Two-phased constructor. |
|
43 * @param aParams the store parameters |
|
44 * @return a new instance of this class |
|
45 */ |
|
46 static CAdnStore* NewL( TStoreParams& aParams ); |
|
47 |
|
48 /** |
|
49 * Destructor. |
|
50 */ |
|
51 virtual ~CAdnStore(); |
|
52 |
|
53 public: // Functions from base classes |
|
54 |
|
55 /** |
|
56 * From CStoreBase |
|
57 */ |
|
58 const TDesC& ETelName() const; |
|
59 |
|
60 /** |
|
61 * From CStoreBase |
|
62 */ |
|
63 void CompleteSATRefresh( |
|
64 MSimRefreshCompletion& aSimRefreshCompletion ); |
|
65 |
|
66 /** |
|
67 * From CStoreBase |
|
68 * |
|
69 * Checks the FDN activity |
|
70 */ |
|
71 TBool AllowOpeningL(); |
|
72 |
|
73 /** |
|
74 * From MSimRefreshObject |
|
75 */ |
|
76 TUint32 ElementaryFiles(); |
|
77 |
|
78 private: // Functions from base classes |
|
79 |
|
80 /** |
|
81 * From MVPbkSimPhoneObserver |
|
82 */ |
|
83 void PhoneOpened( MVPbkSimPhone& aPhone ); |
|
84 |
|
85 /** |
|
86 * From MVPbkSimPhoneObserver |
|
87 */ |
|
88 void PhoneError( MVPbkSimPhone& aPhone, |
|
89 TErrorIdentifier aIdentifier, TInt aError ); |
|
90 |
|
91 /** |
|
92 * From MVPbkSimPhoneObserver |
|
93 */ |
|
94 void ServiceTableUpdated( TUint32 aServiceTable ); |
|
95 |
|
96 /** |
|
97 * From MVPbkSimPhoneObserver |
|
98 */ |
|
99 void FixedDiallingStatusChanged( |
|
100 TInt aFDNStatus ); |
|
101 |
|
102 private: |
|
103 |
|
104 /** |
|
105 * C++ default constructor. |
|
106 */ |
|
107 CAdnStore( TStoreParams& aParams ); |
|
108 |
|
109 /** |
|
110 * By default Symbian 2nd phase constructor is private. |
|
111 */ |
|
112 void ConstructL(); |
|
113 |
|
114 private: // New functions |
|
115 void HandleFDNStatusChangeL(); |
|
116 |
|
117 private: // Data |
|
118 |
|
119 }; |
|
120 |
|
121 } // namespace VPbkSimStoreImpl |
|
122 #endif // VPBKSIMSTOREIMPL_CADNSTORE_H |
|
123 |
|
124 // End of File |