|
1 /* |
|
2 * Copyright (c) 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: Interface to SAP settings store. |
|
15 * |
|
16 */ |
|
17 |
|
18 // INCLUDE FILES |
|
19 #include <e32std.h> |
|
20 #include "cimpssapsettingsstore.h" |
|
21 #include "CIMPSSAPCenRep.h" |
|
22 |
|
23 // ================= MEMBER FUNCTIONS ======================= |
|
24 |
|
25 // ----------------------------------------------------------------------------- |
|
26 // CIMPSSAPSettingsStore::NewL() |
|
27 // Two-phased constructor. |
|
28 // ----------------------------------------------------------------------------- |
|
29 // |
|
30 EXPORT_C CIMPSSAPSettingsStore* CIMPSSAPSettingsStore::NewL( TInt aPriority ) |
|
31 { |
|
32 CIMPSSAPSettingsStore* self = CIMPSSAPSettingsStore::NewLC( aPriority ); |
|
33 CleanupStack::Pop(); |
|
34 return self; |
|
35 } |
|
36 |
|
37 // ----------------------------------------------------------------------------- |
|
38 // CIMPSSAPSettingsStore::NewLC() |
|
39 // Two-phased constructor. |
|
40 // ----------------------------------------------------------------------------- |
|
41 // |
|
42 EXPORT_C CIMPSSAPSettingsStore* CIMPSSAPSettingsStore::NewLC( TInt aPriority ) |
|
43 { |
|
44 CIMPSSAPSettingsStore* self = new ( ELeave ) CIMPSSAPSettingsStore(); |
|
45 CleanupStack::PushL( self ); |
|
46 self->iImp = CIMPSSAPCenRep::NewL( aPriority ); |
|
47 return self; |
|
48 } |
|
49 |
|
50 // ----------------------------------------------------------------------------- |
|
51 // CIMPSSAPSettingsStore::() |
|
52 // Destructor |
|
53 // ----------------------------------------------------------------------------- |
|
54 // |
|
55 EXPORT_C CIMPSSAPSettingsStore::~CIMPSSAPSettingsStore() |
|
56 { |
|
57 delete iImp; |
|
58 } |
|
59 |
|
60 //Observer support |
|
61 |
|
62 // ----------------------------------------------------------------------------- |
|
63 // CIMPSSAPSettingsStore::AddObserverL() |
|
64 // (Other items were commented in a header). |
|
65 // ----------------------------------------------------------------------------- |
|
66 // |
|
67 |
|
68 EXPORT_C void CIMPSSAPSettingsStore::AddObserverL( MIMPSSAPObserver* aObserver, |
|
69 TIMPSAccessGroup aGroup ) |
|
70 { |
|
71 iImp->AddObserverL( aObserver, aGroup ); |
|
72 } |
|
73 |
|
74 // ----------------------------------------------------------------------------- |
|
75 // CIMPSSAPSettingsStore::RemoveObserver() |
|
76 // (Other items were commented in a header). |
|
77 // ----------------------------------------------------------------------------- |
|
78 // |
|
79 |
|
80 EXPORT_C void CIMPSSAPSettingsStore::RemoveObserver( MIMPSSAPObserver* aObserver ) |
|
81 { |
|
82 iImp->RemoveObserver( aObserver ); |
|
83 } |
|
84 |
|
85 // SAP Settings related |
|
86 |
|
87 // ----------------------------------------------------------------------------- |
|
88 // CIMPSSAPSettingsStore::StoreNewSAPL() |
|
89 // (Other items were commented in a header). |
|
90 // ----------------------------------------------------------------------------- |
|
91 // |
|
92 |
|
93 EXPORT_C TUint32 CIMPSSAPSettingsStore::StoreNewSAPL( CIMPSSAPSettings* aSAPSettings, |
|
94 TIMPSAccessGroup aGroup ) |
|
95 { |
|
96 return iImp->StoreNewSAPL( aSAPSettings, aGroup ); |
|
97 } |
|
98 |
|
99 // ----------------------------------------------------------------------------- |
|
100 // CIMPSSAPSettingsStore::GetSAPL() |
|
101 // (Other items were commented in a header). |
|
102 // ----------------------------------------------------------------------------- |
|
103 // |
|
104 |
|
105 EXPORT_C void CIMPSSAPSettingsStore::GetSAPL( TUint32 aUid, |
|
106 CIMPSSAPSettings* aSAPSettings ) |
|
107 { |
|
108 iImp->GetSAPL( aUid, aSAPSettings ); |
|
109 } |
|
110 |
|
111 // ----------------------------------------------------------------------------- |
|
112 // CIMPSSAPSettingsStore::SAPCountL() |
|
113 // (Other items were commented in a header). |
|
114 // ----------------------------------------------------------------------------- |
|
115 // |
|
116 |
|
117 EXPORT_C TInt CIMPSSAPSettingsStore::SAPCountL( TIMPSAccessGroup aGroup ) |
|
118 { |
|
119 return iImp->SAPCountL( aGroup ); |
|
120 } |
|
121 |
|
122 // ----------------------------------------------------------------------------- |
|
123 // CIMPSSAPSettingsStore::DeleteSAPL() |
|
124 // (Other items were commented in a header). |
|
125 // ----------------------------------------------------------------------------- |
|
126 // |
|
127 |
|
128 EXPORT_C void CIMPSSAPSettingsStore::DeleteSAPL( TUint32 aUid ) |
|
129 { |
|
130 iImp->DeleteSAPL( aUid ); |
|
131 } |
|
132 |
|
133 // ----------------------------------------------------------------------------- |
|
134 // CIMPSSAPSettingsStore::UpdateOldSAPL() |
|
135 // (Other items were commented in a header). |
|
136 // ----------------------------------------------------------------------------- |
|
137 // |
|
138 |
|
139 EXPORT_C void CIMPSSAPSettingsStore::UpdateOldSAPL( CIMPSSAPSettings* aSAPSettings, |
|
140 TUint32 aUid ) |
|
141 { |
|
142 iImp->UpdateOldSAPL( aSAPSettings, aUid ); |
|
143 } |
|
144 |
|
145 // ----------------------------------------------------------------------------- |
|
146 // CIMPSSAPSettingsStore::PopulateSAPSettingsListL() |
|
147 // (Other items were commented in a header). |
|
148 // ----------------------------------------------------------------------------- |
|
149 // |
|
150 |
|
151 EXPORT_C void CIMPSSAPSettingsStore::PopulateSAPSettingsListL( CIMPSSAPSettingsList& aList, |
|
152 TIMPSAccessGroup aGroup, |
|
153 TBool aAscending ) |
|
154 { |
|
155 iImp->PopulateSAPSettingsListL( aList, aGroup, aAscending ); |
|
156 } |
|
157 |
|
158 // Default SAP |
|
159 |
|
160 // ----------------------------------------------------------------------------- |
|
161 // CIMPSSAPSettingsStore::GetDefaultL() |
|
162 // (Other items were commented in a header). |
|
163 // ----------------------------------------------------------------------------- |
|
164 // |
|
165 |
|
166 EXPORT_C void CIMPSSAPSettingsStore::GetDefaultL( TUint32& aUid, |
|
167 TIMPSAccessGroup aGroup ) |
|
168 { |
|
169 iImp->GetDefaultL( aUid, aGroup ); |
|
170 } |
|
171 |
|
172 // ----------------------------------------------------------------------------- |
|
173 // CIMPSSAPSettingsStore::GetDefaultL() |
|
174 // (Other items were commented in a header). |
|
175 // ----------------------------------------------------------------------------- |
|
176 // |
|
177 |
|
178 EXPORT_C void CIMPSSAPSettingsStore::GetDefaultL( CIMPSSAPSettings* aSAPSettings, |
|
179 TIMPSAccessGroup aGroup ) |
|
180 { |
|
181 iImp->GetDefaultL( aSAPSettings, aGroup ); |
|
182 } |
|
183 |
|
184 // ----------------------------------------------------------------------------- |
|
185 // CIMPSSAPSettingsStore::SetToDefaultL() |
|
186 // (Other items were commented in a header). |
|
187 // ----------------------------------------------------------------------------- |
|
188 // |
|
189 EXPORT_C void CIMPSSAPSettingsStore::SetToDefaultL( TUint32 aUid, |
|
190 TIMPSAccessGroup aGroup ) |
|
191 { |
|
192 iImp->SetToDefaultL( aUid, aGroup ); |
|
193 } |
|
194 |
|
195 // End of File |
|
196 |