LOCAL_C void InitL() { CommInitL(); CActiveScheduler* scheduler = new (ELeave) CActiveScheduler; CActiveScheduler::Install(scheduler); CleanupStack::PushL(scheduler); testUtils = CEmailTestUtils::NewLC(test); testUtils->FileSession().SetSessionPath(_L("C:\\")); testUtils->CleanMessageFolderL(); testUtils->CreateAllTestDirectories(); testUtils->GoClientSideL(); smtpService = testUtils->CreateSmtpServiceL(); testUtils->CreatePopServiceL(); log = CImLog::NewL(_L("c:\\logs\\email\\T_IMCM.log"), EAppend); CleanupStack::PushL(log); log->AppendComment(_L8("********** T_SMTC_IPV6 Test SMTP Client MTM **********")); TBuf8<80> buf; #if defined(__WINS__) buf.Append(_L8("WINS ")); #else buf.Append(_L8("MARM ")); #endif #if defined(_UNICODE) buf.Append(_L8("U")); #endif #if defined(_DEBUG) buf.Append(_L8("DEB")); #else buf.Append(_L8("REL")); #endif log->AppendComment(buf); }
void DriveEngineL() { //initialization for COMM port CommInitL(); // Setup Active Scheduler CActiveScheduler* myActiveScheduler = new(ELeave) CActiveScheduler; CleanupStack::PushL(myActiveScheduler); CActiveScheduler::Install(myActiveScheduler); // Create Tiny Telnet CTinyTelnet* aTinyTelnet = CTinyTelnet::NewLC(console); //.. and post request to object aTinyTelnet->RequestCharacter(); myActiveScheduler->Start(); CleanupStack::PopAndDestroy(2); //aTinyTelnet, myActiveScheduler }