LunaSysMgr
|
#include <DisplayManager.h>
Signals | |
void | signalDisplayStateChange (int state) |
void | signalPuckConnected (bool connected) |
void | signalLockStateChange (int state, int displayEvent) |
void | signalDisplayMaxBrightnessChanged (int brightness) |
Public Member Functions | |
DisplayManager () | |
virtual | ~DisplayManager () |
GMainLoop * | mainLoop () |
virtual bool | handleEvent (QEvent *event) |
bool | alert (int state) |
uint32_t | getCoreNaviBrightness () |
bool | pushDNAST (const char *id) |
bool | popDNAST (const char *id) |
bool | updateState (int eventType) |
bool | cancelLockTimer () |
void | setActiveTouchpanel (bool enable) |
void | setAlsDisabled (bool disable) |
bool | orientationSensorOn () |
bool | orientationSensorOff () |
bool | updateNyxWithLocation (double latitude, double longitude) |
bool | isOn () const |
bool | isUSBCharging () const |
bool | isOnCall () const |
bool | isSliderOpen () const |
bool | isDNAST () const |
bool | isOnPuck () const |
bool | hasSlider () const |
bool | isProximityActivated () const |
bool | isLocked () const |
bool | isBacklightOn () const |
bool | isDisplayOn () const |
bool | isTouchpanelOn () const |
bool | isDemo () const |
std::string | puckId () const |
int | dimTimeout () const |
int | offTimeout () const |
int | lockedOffTimeout () const |
int | lastEvent () const |
int | lastUserEvent () const |
int | lastInternalEvent () const |
bool | setMaximumBrightness (int maxBrightness, bool save=true) |
int | getMaximumBrightness () |
void | unlock () |
void | lock () |
bool | dock () |
bool | undock () |
bool | allowSuspend () |
void | setSuspended (bool suspended) |
Static Public Member Functions | |
static DisplayManager * | instance () |
static bool | powerdServiceNotification (LSHandle *sh, const char *serviceName, bool connected, void *ctx) |
static bool | telephonyServiceNotification (LSHandle *sh, const char *serviceName, bool connected, void *ctx) |
static bool | audiodServiceNotification (LSHandle *sh, const char *serviceName, bool connected, void *ctx) |
static bool | keysServiceNotification (LSHandle *sh, const char *serviceName, bool connected, void *ctx) |
static bool | hiddServiceNotification (LSHandle *sh, const char *serviceName, bool connected, void *ctx) |
static bool | controlSetState (LSHandle *sh, LSMessage *message, void *ctx) |
static bool | cancelSubscription (LSHandle *sh, LSMessage *message, void *ctx) |
static bool | controlStatus (LSHandle *sh, LSMessage *message, void *ctx) |
static bool | controlGetProperty (LSHandle *sh, LSMessage *message, void *ctx) |
static bool | controlSetProperty (LSHandle *sh, LSMessage *message, void *ctx) |
static bool | controlCallStatus (LSHandle *sh, LSMessage *message, void *ctx) |
static bool | timeoutCallback (LSHandle *sh, LSMessage *message, void *ctx) |
static bool | connectedOnCallback (LSHandle *sh, LSMessage *message, void *ctx) |
static bool | batteryCallback (LSHandle *sh, LSMessage *message, void *ctx) |
static bool | chargerCallback (LSHandle *sh, LSMessage *message, void *ctx) |
static bool | usbDockCallback (LSHandle *sh, LSMessage *message, void *ctx) |
static bool | sliderCallback (LSHandle *sh, LSMessage *message, void *ctx) |
static bool | audiodCallback (LSHandle *sh, LSMessage *message, void *ctx) |
static void | powerdCallback (void) |
static void | getBearingInfo (double &latitude, double &longitude) |
static void | setBearingInfo (double latitude, double longitude) |
static void | forceVsyncOff (bool forceNoVsync) |
static bool | isVsyncOff () |
Friends | |
class | DisplayStateBase |
DisplayManager::DisplayManager | ( | ) |
|
virtual |
bool DisplayManager::alert | ( | int | state | ) |
bool DisplayManager::allowSuspend | ( | ) |
|
static |
|
static |
|
static |
bool DisplayManager::cancelLockTimer | ( | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
int DisplayManager::dimTimeout | ( | ) | const |
bool DisplayManager::dock | ( | ) |
|
static |
|
static |
uint32_t DisplayManager::getCoreNaviBrightness | ( | ) |
|
inline |
|
virtual |
bool DisplayManager::hasSlider | ( | ) | const |
|
static |
|
static |
bool DisplayManager::isBacklightOn | ( | ) | const |
bool DisplayManager::isDemo | ( | ) | const |
bool DisplayManager::isDisplayOn | ( | ) | const |
bool DisplayManager::isDNAST | ( | ) | const |
bool DisplayManager::isLocked | ( | ) | const |
bool DisplayManager::isOn | ( | ) | const |
bool DisplayManager::isOnCall | ( | ) | const |
bool DisplayManager::isOnPuck | ( | ) | const |
bool DisplayManager::isProximityActivated | ( | ) | const |
bool DisplayManager::isSliderOpen | ( | ) | const |
bool DisplayManager::isTouchpanelOn | ( | ) | const |
bool DisplayManager::isUSBCharging | ( | ) | const |
|
static |
|
static |
int DisplayManager::lastEvent | ( | ) | const |
int DisplayManager::lastInternalEvent | ( | ) | const |
int DisplayManager::lastUserEvent | ( | ) | const |
void DisplayManager::lock | ( | ) |
int DisplayManager::lockedOffTimeout | ( | ) | const |
GMainLoop * DisplayManager::mainLoop | ( | ) |
int DisplayManager::offTimeout | ( | ) | const |
bool DisplayManager::orientationSensorOff | ( | ) |
bool DisplayManager::orientationSensorOn | ( | ) |
bool DisplayManager::popDNAST | ( | const char * | id | ) |
|
static |
|
static |
std::string DisplayManager::puckId | ( | ) | const |
bool DisplayManager::pushDNAST | ( | const char * | id | ) |
void DisplayManager::setActiveTouchpanel | ( | bool | enable | ) |
void DisplayManager::setAlsDisabled | ( | bool | disable | ) |
|
static |
bool DisplayManager::setMaximumBrightness | ( | int | maxBrightness, |
bool | save = true |
||
) |
void DisplayManager::setSuspended | ( | bool | suspended | ) |
|
signal |
|
signal |
|
signal |
|
static |
|
static |
|
static |
bool DisplayManager::undock | ( | ) |
void DisplayManager::unlock | ( | ) |
bool DisplayManager::updateNyxWithLocation | ( | double | latitude, |
double | longitude | ||
) |
bool DisplayManager::updateState | ( | int | eventType | ) |
|
static |
|
friend |