CTimeOutTimer* CTimeOutTimer::NewLC(const TInt aPriority, MTimeOutNotifier& aTimeOutNotify) { CTimeOutTimer* self = new (ELeave)CTimeOutTimer(aPriority, aTimeOutNotify); CleanupStack::PushL(self); self->ConstructL(); return self; }
/* ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- */ CTimeOutTimer* CTimeOutTimer::NewL(const TInt aPriority, MTimeOutNotify& aTimeOutNotify) { CTimeOutTimer *p = new (ELeave) CTimeOutTimer(aPriority); CleanupStack::PushL(p); p->ConstructL(aTimeOutNotify); CleanupStack::Pop(); return p; }
CTimeOutTimer* CTimeOutTimer::NewL(const TInt aPriority, CWebServerCon* aWebServerConnection) { CTimeOutTimer *p = new (ELeave) CTimeOutTimer(aPriority); CleanupStack::PushL(p); p->ConstructL(aWebServerConnection); CleanupStack::Pop(); return p; }
/* ----------------------------------------------------------------------------- ---------------------------------------------------------------------------- */ 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); }