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 & aShtdwnSrv The reference to CServShutdownServer

Member Functions Documentation

DoCancel()

void DoCancel ( ) [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 & aShtdwnSrv The reference to CServShutdownServer.

RunL()

void RunL ( ) [protected, virtual]

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

Start(TInt)

void Start ( TInt aNumClients )

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

Parameters

TInt aNumClients The number of the clients.

Member Data Documentation

CServShutdownServer & iShtdwnSrv

CServShutdownServer & iShtdwnSrv [private]