CShutdownTimer Class Reference

class CShutdownTimer : public CTimer

This class describes a timer object. Its RunL() implemantation calls CServShutdownServer::SwitchOff() to execute the switch off when timeout expires.

Inherits from

Constructor & Destructor Documentation

CShutdownTimer(CServShutdownServer &)

CShutdownTimer(CServShutdownServer &aShtdwnSrv)[private]

Constructor

Parameters

CServShutdownServer & aShtdwnSrvThe reference to CServShutdownServer

Member Functions Documentation

DoCancel()

voidDoCancel()[virtual]

Removes the timer object from the active scheduler's list if it has been added.

NewL(CServShutdownServer &)

CShutdownTimer *NewL(CServShutdownServer &aShtdwnSrv)[static]
Standard phase-one factory method for creating CShutdownTimer instances. It might return a NULL pointer if the patchable constant KShtdwnTimeoutBase has been configured as -1 which indicates no timer should be started.
leave
Some system-wide error codes including KErrNoMemory.
panic
KErrNotSupported Incorrect patchable variables configuration.

Parameters

CServShutdownServer & aShtdwnSrvThe reference to CServShutdownServer.

RunL()

voidRunL()[protected, virtual]

Gets called when the timeout expires. Calls CServShutdownServer::SwitchOff() to execute the switch off.

Start(TInt)

voidStart(TIntaNumClients)

Calculates the timeout value by the number of the clients and starts the timer.

Parameters

TInt aNumClientsThe number of the clients.

Member Data Documentation

CServShutdownServer & iShtdwnSrv

CServShutdownServer &iShtdwnSrv[private]