--- a/applayerprotocols/ftpengine/consui/FTPUI.CPP Mon Sep 27 10:31:51 2010 +0530
+++ b/applayerprotocols/ftpengine/consui/FTPUI.CPP Mon Oct 04 15:35:43 2010 +0530
@@ -237,6 +237,27 @@
}
}
+
+CFtpUI* CFtpUI::NewL()
+ {
+ CFtpUI* self = CFtpUI::NewLC();
+ CleanupStack::Pop();
+ return self;
+ }
+
+CFtpUI* CFtpUI::NewLC()
+ {
+ CFtpUI* self = new(ELeave) CFtpUI();
+ CleanupStack::PushL(self);
+ self->ConstructL();
+ return self;
+ }
+
+void CFtpUI::ConstructL()
+ {
+ User::LeaveIfError(iFs.Connect(KFileServerDefaultMessageSlots));
+ }
+
CFtpUI::CFtpUI(void)
{
iCurCmd = EInvalid ;
@@ -244,7 +265,6 @@
iOpenMode = CFTPSession::EOverwrite;
iType = CFTPSession::EBinary;
iState = EInputCmd;
-iFs.Connect(KFileServerDefaultMessageSlots);
}
CFtpUI::~CFtpUI(void)