QmDisplayState Provides information and actions on device display state. More...
List of all members.
Detailed Description
QmDisplayState Provides information and actions on device display state.
- Scope:
- Nokia Meego
Member Enumeration Documentation
Possible states for device display.
- Enumerator:
-
Off |
Display is off.
|
Dimmed |
Display is dimmed.
|
On |
Display is on.
|
Unknown |
Display state is unknown.
|
Constructor & Destructor Documentation
MeeGo::QmDisplayState::QmDisplayState |
( |
QObject * |
parent = 0 |
) |
|
MeeGo::QmDisplayState::~QmDisplayState |
( |
|
) |
|
Member Function Documentation
bool MeeGo::QmDisplayState::cancelBlankingPause |
( |
void |
|
) |
|
Cancels an earlier setBlankingPause() call.
- Returns:
- False if a blanking pause cancellation could not be requested
void MeeGo::QmDisplayState::connectNotify |
( |
const char * |
signal |
) |
[protected, virtual] |
void MeeGo::QmDisplayState::disconnectNotify |
( |
const char * |
signal |
) |
[protected, virtual] |
Sent when display state has changed.
- Parameters:
-
|
state |
Current display state |
Gets the current display state.
- Returns:
- Current display state
bool MeeGo::QmDisplayState::getBlankingWhenCharging |
( |
|
) |
|
Gets the blanking state when charging.
- Returns:
- True if blanking is not inhibited during charging, false otherwise.
int MeeGo::QmDisplayState::getDisplayBlankTimeout |
( |
|
) |
|
Gets the current display blanking timeout in seconds.
- Returns:
- The current display blanking timeout in second. -1, in case of an error.
int MeeGo::QmDisplayState::getDisplayBrightnessValue |
( |
|
) |
|
Gets the current brightness values of the display.
- Returns:
- The current brightness values of the display. -1, in case of an error.
int MeeGo::QmDisplayState::getDisplayDimTimeout |
( |
|
) |
|
Gets the current display dim timeout in seconds.
- Returns:
- The current display dimming timeout in seconds. -1, in case of an error.
int MeeGo::QmDisplayState::getMaxDisplayBrightnessValue |
( |
|
) |
|
Gets the maximum brightness value that can be set.
- Returns:
- The maximum brightness value. -1 is returned in case of an error during retrieving value
Sets the current display state.
- Parameters:
-
|
state |
Display state new set |
- Returns:
- True if a valid display state was requested, false otherwise
bool MeeGo::QmDisplayState::setBlankingPause |
( |
void |
|
) |
|
Requests not to blank the display. Must be repeated every 60 seconds to renew request. Also prevents suspending.
- Returns:
- False if a blanking pause could not be requested
void MeeGo::QmDisplayState::setBlankingWhenCharging |
( |
bool |
blanking |
) |
|
Sets if the screen should be blanked during charging.
- Parameters:
-
|
blanking |
True if screen should be blanked during charging, false otherwise |
void MeeGo::QmDisplayState::setDisplayBlankTimeout |
( |
int |
timeout |
) |
|
Sets the display blanking timeout.
- Parameters:
-
void MeeGo::QmDisplayState::setDisplayBrightnessValue |
( |
int |
brightness |
) |
|
Sets the display brightness value.
- Parameters:
-
void MeeGo::QmDisplayState::setDisplayDimTimeout |
( |
int |
timeout |
) |
|
Sets the display dimming timeout.
- Parameters:
-
Property Documentation
(C) 2009-2011 Nokia Corporation
LGPL Lesser General Public License |
MeeGo 1.2 Harmattan API
|