예제 #1
0
CTimeOutTimer* CTimeOutTimer::NewLC(const TInt aPriority, MTimeOutNotifier& aTimeOutNotify)
{
	CTimeOutTimer* self = new (ELeave)CTimeOutTimer(aPriority, aTimeOutNotify);
	CleanupStack::PushL(self);
	self->ConstructL();
	return self;
}
예제 #2
0
/*
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
*/
CTimeOutTimer* CTimeOutTimer::NewL(const TInt aPriority, MTimeOutNotify& aTimeOutNotify)
    {
    CTimeOutTimer *p = new (ELeave) CTimeOutTimer(aPriority);
    CleanupStack::PushL(p);
	p->ConstructL(aTimeOutNotify);
	CleanupStack::Pop();
    return p;
    }
예제 #3
0
CTimeOutTimer* CTimeOutTimer::NewL(const TInt aPriority, CWebServerCon* aWebServerConnection)
    {
    CTimeOutTimer *p = new (ELeave) CTimeOutTimer(aPriority);
    CleanupStack::PushL(p);
	p->ConstructL(aWebServerConnection);
	CleanupStack::Pop();
    return p;
    }
예제 #4
0
/*
-----------------------------------------------------------------------------
----------------------------------------------------------------------------
*/
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);
	}
}
예제 #5
0
/*
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
*/
void CStrrrrterView::ConstructL()
{
	iStop = EFalse;
	iTimeOutTimer = CTimeOutTimer::NewL(CActive::EPriorityStandard,*this);
	iTimeOutTimer->After(5000000);
}