equal
deleted
inserted
replaced
235 Execute(); |
235 Execute(); |
236 break; |
236 break; |
237 } |
237 } |
238 } |
238 } |
239 |
239 |
|
240 |
|
241 CFtpUI* CFtpUI::NewL() |
|
242 { |
|
243 CFtpUI* self = CFtpUI::NewLC(); |
|
244 CleanupStack::Pop(); |
|
245 return self; |
|
246 } |
|
247 |
|
248 CFtpUI* CFtpUI::NewLC() |
|
249 { |
|
250 CFtpUI* self = new(ELeave) CFtpUI(); |
|
251 CleanupStack::PushL(self); |
|
252 self->ConstructL(); |
|
253 return self; |
|
254 } |
|
255 |
|
256 void CFtpUI::ConstructL() |
|
257 { |
|
258 User::LeaveIfError(iFs.Connect(KFileServerDefaultMessageSlots)); |
|
259 } |
|
260 |
240 CFtpUI::CFtpUI(void) |
261 CFtpUI::CFtpUI(void) |
241 { |
262 { |
242 iCurCmd = EInvalid ; |
263 iCurCmd = EInvalid ; |
243 iConnMode = CFTPSession::EActive; |
264 iConnMode = CFTPSession::EActive; |
244 iOpenMode = CFTPSession::EOverwrite; |
265 iOpenMode = CFTPSession::EOverwrite; |
245 iType = CFTPSession::EBinary; |
266 iType = CFTPSession::EBinary; |
246 iState = EInputCmd; |
267 iState = EInputCmd; |
247 iFs.Connect(KFileServerDefaultMessageSlots); |
|
248 } |
268 } |
249 |
269 |
250 CFtpUI::~CFtpUI(void) |
270 CFtpUI::~CFtpUI(void) |
251 { |
271 { |
252 iFs.Close(); |
272 iFs.Close(); |