Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

screensaver.h

Go to the documentation of this file.
00001 #ifndef __LAUNCHER_SCREENSAVER_H__
00002 #define __LAUNCHER_SCREENSAVER_H__
00003 
00004 #include <qwindowsystem_qws.h>
00005 #include <qobject.h>
00006 
00007 #include <qpe/power.h>
00008 
00009 class OpieScreenSaver : public QObject, public QWSScreenSaver
00010 {
00011 public:
00012         OpieScreenSaver ( );
00013 
00014         void restore ( );
00015         bool save ( int level );
00016 
00017         void setIntervals( int i1, int i2, int i3 );
00018         void setIntervalsAC( int i1, int i2, int i3 );
00019 
00020         void setInterval ( int interval );
00021 
00022         void setMode ( int mode );
00023 
00024         void setBacklight ( int bright );
00025         void setDisplayState ( bool on );
00026 
00027         void powerStatusChanged ( PowerStatus ps );
00028 
00029 private:
00030         void setBacklightInternal ( int bright );
00031 
00032 protected:
00033         virtual void timerEvent ( QTimerEvent * );
00034 
00035 private:
00036         int m_disable_suspend;
00037         bool m_enable_dim;
00038         bool m_enable_lightoff;
00039         bool m_enable_suspend;
00040         bool m_onlylcdoff;
00041 
00042         bool m_enable_dim_ac;
00043         bool m_enable_lightoff_ac;
00044         bool m_enable_suspend_ac;
00045         bool m_onlylcdoff_ac;
00046 
00047         bool m_use_light_sensor;
00048         int m_backlight_sensor;
00049 
00050         enum {
00051                 LS_Interval = 0,
00052                 LS_Steps,
00053                 LS_SensorMin,
00054                 LS_SensorMax,
00055                 LS_LightMin,
00056                 LS_LightMax,
00057         
00058                 LS_Count
00059         };
00060 
00061         int m_sensordata [LS_Count];
00062 
00063         bool m_lcd_status;
00064 
00065         int m_backlight_normal;
00066         int m_backlight_current;
00067         bool m_backlight_forcedoff;
00068 
00069         bool m_on_ac;
00070         
00071         int m_level;
00072 };
00073 
00074 #endif

Generated on Sat Nov 5 16:15:32 2005 for OPIE by  doxygen 1.4.2