|
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 USIM ADN store that supports ADN specific store information |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef VPBKSIMSTOREIMPL_CUSIMADNSTORE_H |
|
21 #define VPBKSIMSTOREIMPL_CUSIMADNSTORE_H |
|
22 |
|
23 // INCLUDES |
|
24 #include "CCustomStore.h" |
|
25 |
|
26 namespace VPbkSimStoreImpl { |
|
27 |
|
28 // CLASS DECLARATION |
|
29 |
|
30 /** |
|
31 * An USIM ADN store that supports ADN specific store information |
|
32 * |
|
33 */ |
|
34 NONSHARABLE_CLASS(CUsimAdnStore) : |
|
35 public CCustomStore, |
|
36 private MVPbkSimPhoneObserver |
|
37 { |
|
38 public: // Constructors and destructor |
|
39 |
|
40 /** |
|
41 * Two-phased constructor. |
|
42 * @param aParams the store parameters |
|
43 * @return a new instance of this class |
|
44 */ |
|
45 static CUsimAdnStore* NewL( TStoreParams& aParams ); |
|
46 |
|
47 /** |
|
48 * Destructor. |
|
49 */ |
|
50 virtual ~CUsimAdnStore(); |
|
51 |
|
52 public: // New functions |
|
53 |
|
54 /** |
|
55 * Returns the 3G ADN store information |
|
56 * @return the 3G ADN store information |
|
57 */ |
|
58 inline RMmCustomAPI::T3GPBInfo& Get3GPBInfo(); |
|
59 |
|
60 protected: // Functions from base classes |
|
61 |
|
62 /** |
|
63 * From CStoreBase |
|
64 */ |
|
65 const TDesC& ETelName() const; |
|
66 |
|
67 /** |
|
68 * From CStoreBase |
|
69 */ |
|
70 void CompleteSATRefresh( |
|
71 MSimRefreshCompletion& aSimRefreshCompletion ); |
|
72 |
|
73 /** |
|
74 * From MVPbkSimCntStore |
|
75 */ |
|
76 TInt GetUSimStoreProperties( |
|
77 TVPbkUSimStoreProperty& aUSimProperties ) const; |
|
78 |
|
79 /** |
|
80 * From CStoreBase |
|
81 */ |
|
82 MVPbkSimCommand* CreateInitCommandL( |
|
83 MVPbkSimCommandObserver& aObserver ); |
|
84 |
|
85 /** |
|
86 * From CStoreBase |
|
87 */ |
|
88 MVPbkSimCommand* CreateUpdateCommandL( TInt aSimIndex ); |
|
89 |
|
90 /** |
|
91 * From CStoreBase |
|
92 */ |
|
93 MVPbkSimCommand* CreateUpdateCommandUsingRefL( TInt& aSimIndexRef ); |
|
94 |
|
95 /** |
|
96 * From MSimRefreshObject |
|
97 */ |
|
98 TUint32 ElementaryFiles(); |
|
99 |
|
100 private: // Functions from base classes |
|
101 |
|
102 /** |
|
103 * From MVPbkSimPhoneObserver |
|
104 */ |
|
105 void PhoneOpened( MVPbkSimPhone& aPhone ); |
|
106 |
|
107 /** |
|
108 * From MVPbkSimPhoneObserver |
|
109 */ |
|
110 void PhoneError( MVPbkSimPhone& aPhone, |
|
111 TErrorIdentifier aIdentifier, TInt aError ); |
|
112 |
|
113 /** |
|
114 * From MVPbkSimPhoneObserver |
|
115 */ |
|
116 void ServiceTableUpdated( TUint32 aServiceTable ); |
|
117 |
|
118 /** |
|
119 * From MVPbkSimPhoneObserver |
|
120 */ |
|
121 void FixedDiallingStatusChanged( |
|
122 TInt aFDNStatus ); |
|
123 |
|
124 private: |
|
125 |
|
126 /** |
|
127 * C++ default constructor. |
|
128 */ |
|
129 CUsimAdnStore( TStoreParams& aParams ); |
|
130 |
|
131 /** |
|
132 * By default Symbian 2nd phase constructor is private. |
|
133 */ |
|
134 void ConstructL(); |
|
135 |
|
136 private: // New functions |
|
137 /// adds 3G adn info request command to the chain |
|
138 void Add3GPBInfoCmdToChainL( CCompositeCmdBase& aCmdChain ); |
|
139 |
|
140 private: // Data |
|
141 /// 3G phonebook information struct for ADN |
|
142 RMmCustomAPI::T3GPBInfo i3GPBInfo; |
|
143 }; |
|
144 |
|
145 // INLINE FUNCTIONS |
|
146 inline RMmCustomAPI::T3GPBInfo& CUsimAdnStore::Get3GPBInfo() |
|
147 { |
|
148 return i3GPBInfo; |
|
149 } |
|
150 |
|
151 } // namespace VPbkSimStoreImpl |
|
152 #endif // VPBKSIMSTOREIMPL_CUSIMADNSTORE_H |
|
153 |
|
154 // End of File |