/* ----------------------------------------------------------------------------- ---------------------------------------------------------------------------- */ void CStrrrrterView::TimerExpired() { if(iStop) { CActiveScheduler::Stop(); } else { CApaCommandLine* cmdLine=CApaCommandLine::NewLC(); cmdLine->SetCommandL(EApaCommandRun); cmdLine->SetExecutableNameL(KtxServerFileName); RApaLsSession ls; ls.Connect(); ls.StartApp(*cmdLine); ls.Close(); CleanupStack::PopAndDestroy(1); // cmdLine iStop = ETrue; iTimeOutTimer->After(30000000); } }
/* ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- */ void CStrrrrterView::ConstructL() { iStop = EFalse; iTimeOutTimer = CTimeOutTimer::NewL(CActive::EPriorityStandard,*this); iTimeOutTimer->After(5000000); }