1 /* |
|
2 * Copyright (c) 2002 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: Implementation of class CApSettingsDeleteOperation |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDE FILES |
|
20 #include <ApDataHandler.h> |
|
21 #include <ApUtils.h> |
|
22 #include <ActiveApDb.h> |
|
23 #include <ApSettingsHandlerCommons.h> |
|
24 #include <VpnApEngine.h> |
|
25 #include <AknWaitDialog.h> |
|
26 #include <AknProgressDialog.h> |
|
27 #include <cdbcols.h> |
|
28 #include <ErrorUI.h> |
|
29 #include "Apsettingsdeleteoperation.h" |
|
30 |
|
31 #include <ApAccessPointItem.h> |
|
32 |
|
33 // Following includes are needed only for the test |
|
34 // when ALL APs are deleted (checking delays, etc.) |
|
35 // For testing purpose only, to make process time longer. |
|
36 // TEST STARTS |
|
37 #include <ActiveApDb.h> |
|
38 #include <ApSelect.h> |
|
39 #include <ApListItem.h> |
|
40 #include "ApSelectorListBoxModel.h" |
|
41 #include "ApSettingsHandlerLogger.h" |
|
42 |
|
43 #include <apsetui.rsg> |
|
44 // TEST ENDS |
|
45 |
|
46 |
|
47 // Stack size of the receiver thread. |
|
48 LOCAL_C const TInt KDeleteThreadStackSize = 40960; |
|
49 |
|
50 // Name of the receiver thread. |
|
51 _LIT( KDeleteThreadName, "Access Point Settings UI Delete Operation" ); |
|
52 |
|
53 |
|
54 // --------------------------------------------------------- |
|
55 // CApSettingsDeleteOperation::NewL |
|
56 // --------------------------------------------------------- |
|
57 // |
|
58 CApSettingsDeleteOperation* CApSettingsDeleteOperation::NewL( |
|
59 TInt aNoteControlId, |
|
60 TInt aResourceID, |
|
61 TUint32 aUid, |
|
62 const TDesC& aNoteText |
|
63 ) |
|
64 { |
|
65 return NULL; |
|
66 } |
|
67 |
|
68 |
|
69 // --------------------------------------------------------- |
|
70 // CApSettingsDeleteOperation::ConstructL |
|
71 // --------------------------------------------------------- |
|
72 // |
|
73 void CApSettingsDeleteOperation::ConstructL( const TDesC& aNoteText ) |
|
74 { |
|
75 } |
|
76 |
|
77 |
|
78 // --------------------------------------------------------- |
|
79 // CApSettingsDeleteOperation::CApSettingsDeleteOperation |
|
80 // --------------------------------------------------------- |
|
81 // |
|
82 CApSettingsDeleteOperation::CApSettingsDeleteOperation( |
|
83 TInt aNoteControlId, |
|
84 TInt aResourceID, |
|
85 TUint32 aUid |
|
86 ) |
|
87 : CActive( EPriorityLow ), |
|
88 iNoteControlId( aNoteControlId ), |
|
89 iResourceID( aResourceID ), |
|
90 iUid( aUid ) |
|
91 { |
|
92 } |
|
93 |
|
94 |
|
95 // --------------------------------------------------------- |
|
96 // CApSettingsDeleteOperation::~CApSettingsDeleteOperation |
|
97 // --------------------------------------------------------- |
|
98 // |
|
99 CApSettingsDeleteOperation::~CApSettingsDeleteOperation() |
|
100 { |
|
101 } |
|
102 |
|
103 |
|
104 |
|
105 |
|
106 // --------------------------------------------------------- |
|
107 // CApSettingsDeleteOperation::RunL |
|
108 // --------------------------------------------------------- |
|
109 // |
|
110 void CApSettingsDeleteOperation::RunL() |
|
111 { |
|
112 } |
|
113 |
|
114 |
|
115 // --------------------------------------------------------- |
|
116 // CApSettingsDeleteOperation::DoCancel |
|
117 // --------------------------------------------------------- |
|
118 // |
|
119 void CApSettingsDeleteOperation::DoCancel() |
|
120 { // must be here as it is pure virtual in base... |
|
121 } |
|
122 |
|
123 |
|
124 |
|
125 // --------------------------------------------------------- |
|
126 // CApSettingsDeleteOperation::DialogDismissedL |
|
127 // --------------------------------------------------------- |
|
128 // |
|
129 void CApSettingsDeleteOperation::DialogDismissedL( TInt /*aButtonId*/ ) |
|
130 { |
|
131 } |
|
132 |
|
133 |
|
134 // --------------------------------------------------------- |
|
135 // CApSettingsDeleteOperation::StartL |
|
136 // --------------------------------------------------------- |
|
137 // |
|
138 void CApSettingsDeleteOperation::StartL() |
|
139 { |
|
140 } |
|
141 |
|
142 |
|
143 |
|
144 // --------------------------------------------------------- |
|
145 // CApSettingsDeleteOperation::Next |
|
146 // --------------------------------------------------------- |
|
147 // |
|
148 void CApSettingsDeleteOperation::Next() |
|
149 { |
|
150 } |
|
151 |
|
152 |
|
153 |
|
154 |
|
155 // --------------------------------------------------------- |
|
156 // CApSettingsDeleteOperation::RunDeleteThread |
|
157 // --------------------------------------------------------- |
|
158 // |
|
159 TInt CApSettingsDeleteOperation::RunDeleteThread( TAny* aPtr ) |
|
160 { |
|
161 return ( 0 ); |
|
162 } |
|
163 |
|
164 |
|
165 |
|
166 // --------------------------------------------------------- |
|
167 // CApSettingsDeleteOperation::DoRunDeleteThreadL |
|
168 // --------------------------------------------------------- |
|
169 // |
|
170 TInt CApSettingsDeleteOperation::DoRunDeleteThreadL( |
|
171 CApSettingsDeleteOperation* aop ) |
|
172 { |
|
173 return KErrNotSupported; |
|
174 } |
|
175 |
|
176 |
|
177 |
|
178 // --------------------------------------------------------- |
|
179 // CApSettingsDeleteOperation::StartWaitNoteL |
|
180 // --------------------------------------------------------- |
|
181 // |
|
182 void CApSettingsDeleteOperation::StartWaitNoteL() |
|
183 { |
|
184 } |
|
185 |
|
186 |
|
187 |
|
188 // --------------------------------------------------------- |
|
189 // CApSettingsDeleteOperation::StartDeleteOperationThreadL |
|
190 // --------------------------------------------------------- |
|
191 // |
|
192 void CApSettingsDeleteOperation::StartDeleteOperationThreadL() |
|
193 { |
|
194 } |
|
195 |
|
196 |
|
197 |
|
198 |
|
199 |
|
200 // --------------------------------------------------------- |
|
201 // CApSettingsDeleteOperation::StarTransactionLC |
|
202 // --------------------------------------------------------- |
|
203 // |
|
204 TBool CApSettingsDeleteOperation::StartTransactionLC( CCommsDatabase* aDb, |
|
205 TBool aWrite, |
|
206 TBool aRetry /*ETrue*/ ) |
|
207 { |
|
208 return EFalse; |
|
209 } |
|
210 |
|
211 |
|
212 // --------------------------------------------------------- |
|
213 // CApSettingsDeleteOperation::GetWriteLockL |
|
214 // --------------------------------------------------------- |
|
215 // |
|
216 void CApSettingsDeleteOperation::GetWriteLockL( CCommsDatabase* aDb ) |
|
217 { |
|
218 } |
|
219 |
|
220 // --------------------------------------------------------- |
|
221 // CApSettingsDeleteOperation::RollbackTransactionOnLeave |
|
222 // --------------------------------------------------------- |
|
223 // |
|
224 void CApSettingsDeleteOperation::RollbackTransactionOnLeave( TAny* aDb ) |
|
225 { |
|
226 } |
|
227 |
|
228 |
|
229 // --------------------------------------------------------- |
|
230 // CApSettingsDeleteOperation::ReadUintL |
|
231 // --------------------------------------------------------- |
|
232 // |
|
233 TInt CApSettingsDeleteOperation::ReadUintL( CCommsDbTableView* atable, |
|
234 const TDesC& aColumn, |
|
235 TUint32& aValue ) |
|
236 { |
|
237 return KErrNotSupported; |
|
238 } |
|
239 |
|
240 |
|
241 // --------------------------------------------------------- |
|
242 // CApSettingsDeleteOperation::SetNoteTextL |
|
243 // --------------------------------------------------------- |
|
244 // |
|
245 void CApSettingsDeleteOperation::SetNoteTextL( const TDesC& aNoteText ) |
|
246 { |
|
247 } |
|
248 // End of File |
|