CPsmClient Class Reference

class CPsmClient : public CBase

PSM Client API class

Allows clients to change power save mode. Provides also a reference to PSM Client Settings API.

psmclient.lib

Inherits from

Member Functions Documentation

CancelPowerSaveModeChange()

voidCancelPowerSaveModeChange()[pure virtual]

Cancels ongoing power save mode change and restores previous power save mode back. If there is no ongoing change, current mode remains.

CancelPowerSaveModeNotificationRequest()

voidCancelPowerSaveModeNotificationRequest()[pure virtual]

Cancels notification request of power save mode change.

MPsmClientObserver

ChangePowerSaveMode(const TInt)

voidChangePowerSaveMode(const TIntaPsmMode)[pure virtual]

Enable power save mode. It is possible to get notification of mode change by requesting a notification using RequestPowerSaveModeNotification. On successful change, client gets indication via PowerSaveModeChanged callback. Failure in change is indicated to client via PowerSaveModeChangeError callback.

MPsmClientObserver

Parameters

const TInt aPsmModeThe power save mode to change to

NewL(MPsmClientObserver &)

IMPORT_C CPsmClient *NewL(MPsmClientObserver &aObserver)[static]

Creates a new PSM client.

Parameters

MPsmClientObserver & aObserverObserver to observe the power save mode change

NewLC(MPsmClientObserver &)

IMPORT_C CPsmClient *NewLC(MPsmClientObserver &aObserver)[static]

Parameters

MPsmClientObserver & aObserver

PsmSettings()

CPsmSettings &PsmSettings()const [pure virtual]

Reference to PSM Client Settings API.

RequestPowerSaveModeNotification()

voidRequestPowerSaveModeNotification()[pure virtual]

Requests notification of power save mode change. Client is notified about mode changes until request cancelled using CancelPowerSaveModeNotificationRequest.

MPsmClientObserver