CPowerSaveDisplayMode Class Reference

class CPowerSaveDisplayMode : public CBase

Adaptation API for power save display mode use

Since
Series 60 3.0

Inherits from

  • CPowerSaveDisplayMode

Constructor & Destructor Documentation

CPowerSaveDisplayMode()

CPowerSaveDisplayMode()[private]

power_save_display_mode.h

~CPowerSaveDisplayMode()

IMPORT_C~CPowerSaveDisplayMode()

power_save_display_mode.h

Member Functions Documentation

ConstructL(TInt)

voidConstructL(TIntaDisplayNumber)[private]

power_save_display_mode.h

Parameters

TInt aDisplayNumber

Exit()

IMPORT_C TIntExit()

Turns off power save mode. All lines on display will be shown normally. power_save_display_mode.h

GetPowerSaveLevel()

IMPORT_C CPowerSaveDisplayMode::TPowerSaveLevelGetPowerSaveLevel()

Return the current power save level. power_save_display_mode.h

MaxLines()

IMPORT_C TUintMaxLines()

Returns max number of lines that display supports in power save mode (e.g.50 lines or full screen). power_save_display_mode.h

NewL(TInt)

IMPORT_C CPowerSaveDisplayMode *NewL(TIntaDisplayNumber = 0)[static]

Creates object and connects to display. power_save_display_mode.h

Parameters

TInt aDisplayNumber = 0Which display to connect to, default is primary display.

Set(TUint, TUint, TBool)

IMPORT_C TIntSet(TUintaStartRow,
TUintaEndRow,
TBoolaFullColors = EFalse
)
Enables power save mode. Sets lines between given parameters visible, other display lines are turned off and not shown.
Pre-condition
Image to display must be drawn in videobuffer before calling Set().
power_save_display_mode.h

Parameters

TUint aStartRowFirst visible line, starting from 0
TUint aEndRowLast visible line
TBool aFullColors = EFalseFull color mode if ETrue and hw supports that Note: full color mode consumes more power

Set(TUint, TUint, TUint16 *, TBool)

IMPORT_C TIntSet(TUintaStartRow,
TUintaEndRow,
TUint16 *aPixels,
TBoolaFullColors = EFalse
)
Enables power save mode. Sets lines between given parameters visible, other display lines are turned off and not shown.
Pre-condition
Image to display must be drawn in videobuffer before calling Set().
power_save_display_mode.h

Parameters

TUint aStartRowFirst visible line, starting from 0
TUint aEndRowLast visible line
TUint16 * aPixelsPointer to array of color of each pixel
TBool aFullColors = EFalseFull color mode if ETrue and hw supports that Note: full color mode consumes more power

SetPowerSaveLevel(CPowerSaveDisplayMode::TPowerSaveLevel)

IMPORT_C TIntSetPowerSaveLevel(CPowerSaveDisplayMode::TPowerSaveLevelaVal)

Changes the current power save level. power_save_display_mode.h

Parameters

CPowerSaveDisplayMode::TPowerSaveLevel aValNew power save level

Status()

IMPORT_C TBoolStatus()

Returns status of power save mode. power_save_display_mode.h

Member Enumerations Documentation

Enum TPowerSaveLevel

Power save levels define how much power should be saved. Note: higher settings result in lower image quality.

Enumerators

ENone = 0
ELow = 1
EMedium = 2
EHigh = 3

Member Data Documentation

TAny * iDisplayDriver

TAny *iDisplayDriver[private]