LunaSysMgr
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DisplayManager Class Reference

#include <DisplayManager.h>

Inheritance diagram for DisplayManager:
[legend]
Collaboration diagram for DisplayManager:
[legend]

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 DisplayManagerinstance ()
 
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
 

Constructor & Destructor Documentation

DisplayManager::DisplayManager ( )
DisplayManager::~DisplayManager ( )
virtual

Member Function Documentation

bool DisplayManager::alert ( int  state)
bool DisplayManager::allowSuspend ( )
bool DisplayManager::audiodCallback ( LSHandle *  sh,
LSMessage *  message,
void *  ctx 
)
static
bool DisplayManager::audiodServiceNotification ( LSHandle *  sh,
const char *  serviceName,
bool  connected,
void *  ctx 
)
static
bool DisplayManager::batteryCallback ( LSHandle *  sh,
LSMessage *  message,
void *  ctx 
)
static
bool DisplayManager::cancelLockTimer ( )
bool DisplayManager::cancelSubscription ( LSHandle *  sh,
LSMessage *  message,
void *  ctx 
)
static
bool DisplayManager::chargerCallback ( LSHandle *  sh,
LSMessage *  message,
void *  ctx 
)
static
static bool DisplayManager::connectedOnCallback ( LSHandle *  sh,
LSMessage *  message,
void *  ctx 
)
static
static bool DisplayManager::controlCallStatus ( LSHandle *  sh,
LSMessage *  message,
void *  ctx 
)
static
bool DisplayManager::controlGetProperty ( LSHandle *  sh,
LSMessage *  message,
void *  ctx 
)
static
bool DisplayManager::controlSetProperty ( LSHandle *  sh,
LSMessage *  message,
void *  ctx 
)
static
bool DisplayManager::controlSetState ( LSHandle *  sh,
LSMessage *  message,
void *  ctx 
)
static
bool DisplayManager::controlStatus ( LSHandle *  sh,
LSMessage *  message,
void *  ctx 
)
static
int DisplayManager::dimTimeout ( ) const
bool DisplayManager::dock ( )
void DisplayManager::forceVsyncOff ( bool  forceNoVsync)
static
void DisplayManager::getBearingInfo ( double &  latitude,
double &  longitude 
)
static
uint32_t DisplayManager::getCoreNaviBrightness ( )
int DisplayManager::getMaximumBrightness ( )
inline
bool DisplayManager::handleEvent ( QEvent event)
virtual
bool DisplayManager::hasSlider ( ) const
static bool DisplayManager::hiddServiceNotification ( LSHandle *  sh,
const char *  serviceName,
bool  connected,
void *  ctx 
)
static
DisplayManager * DisplayManager::instance ( void  )
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
bool DisplayManager::isVsyncOff ( )
static
bool DisplayManager::keysServiceNotification ( LSHandle *  sh,
const char *  serviceName,
bool  connected,
void *  ctx 
)
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 void DisplayManager::powerdCallback ( void  )
static
bool DisplayManager::powerdServiceNotification ( LSHandle *  sh,
const char *  serviceName,
bool  connected,
void *  ctx 
)
static
std::string DisplayManager::puckId ( ) const
bool DisplayManager::pushDNAST ( const char *  id)
void DisplayManager::setActiveTouchpanel ( bool  enable)
void DisplayManager::setAlsDisabled ( bool  disable)
void DisplayManager::setBearingInfo ( double  latitude,
double  longitude 
)
static
bool DisplayManager::setMaximumBrightness ( int  maxBrightness,
bool  save = true 
)
void DisplayManager::setSuspended ( bool  suspended)
void DisplayManager::signalDisplayMaxBrightnessChanged ( int  brightness)
signal
void DisplayManager::signalDisplayStateChange ( int  state)
signal
void DisplayManager::signalLockStateChange ( int  state,
int  displayEvent 
)
signal
void DisplayManager::signalPuckConnected ( bool  connected)
signal
bool DisplayManager::sliderCallback ( LSHandle *  sh,
LSMessage *  message,
void *  ctx 
)
static
bool DisplayManager::telephonyServiceNotification ( LSHandle *  sh,
const char *  serviceName,
bool  connected,
void *  ctx 
)
static
static bool DisplayManager::timeoutCallback ( LSHandle *  sh,
LSMessage *  message,
void *  ctx 
)
static
bool DisplayManager::undock ( )
void DisplayManager::unlock ( )
bool DisplayManager::updateNyxWithLocation ( double  latitude,
double  longitude 
)
bool DisplayManager::updateState ( int  eventType)
bool DisplayManager::usbDockCallback ( LSHandle *  sh,
LSMessage *  message,
void *  ctx 
)
static

Friends And Related Function Documentation

friend class DisplayStateBase
friend

The documentation for this class was generated from the following files: