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

TempScreenSaverMonitor Class Reference

#include </home/clem/local/src/opie/core/launcher/suspendmonitor.h>

Collaboration diagram for TempScreenSaverMonitor:

Collaboration graph
[legend]
List of all members.

Signals

void forceSuspend ()

Public Member Functions

 TempScreenSaverMonitor (QObject *parent=0, const char *name=0)
void setTempMode (int, int)
void applicationTerminated (int)

Protected Member Functions

void timerEvent (QTimerEvent *)

Private Member Functions

bool removeOld (int)
void updateAll ()
int timerValue ()

Private Attributes

QValueList< int > sStatus [3]
int currentMode
int timerId

Constructor & Destructor Documentation

TempScreenSaverMonitor::TempScreenSaverMonitor QObject *  parent = 0,
const char *  name = 0
 

Definition at line 30 of file suspendmonitor.cpp.

References currentMode, QPEApplication::Enable, and timerId.


Member Function Documentation

void TempScreenSaverMonitor::applicationTerminated int   ) 
 

Definition at line 102 of file suspendmonitor.cpp.

References removeOld(), and updateAll().

void TempScreenSaverMonitor::forceSuspend  )  [signal]
 

Referenced by timerEvent().

bool TempScreenSaverMonitor::removeOld int   )  [private]
 

Definition at line 60 of file suspendmonitor.cpp.

References end, FALSE, QValueList< T >::find(), i, QValueList< T >::remove(), sStatus, and TRUE.

Referenced by applicationTerminated(), and setTempMode().

void TempScreenSaverMonitor::setTempMode int  ,
int 
 

Definition at line 37 of file suspendmonitor.cpp.

References QValueList< T >::append(), QPEApplication::Disable, QPEApplication::DisableLightOff, QPEApplication::DisableSuspend, QPEApplication::Enable, oendl, owarn, removeOld(), sStatus, and updateAll().

void TempScreenSaverMonitor::timerEvent QTimerEvent *   )  [protected]
 

Definition at line 135 of file suspendmonitor.cpp.

References QTime::addSecs(), QValueList< T >::clear(), currentMode, QPEApplication::Enable, QFile::exists(), forceSuspend(), i, sStatus, str, timerId, timerValue(), QTime::toString(), tr, and updateAll().

int TempScreenSaverMonitor::timerValue  )  [private]
 

Definition at line 108 of file suspendmonitor.cpp.

References FALSE, and QString::toInt().

Referenced by timerEvent(), and updateAll().

void TempScreenSaverMonitor::updateAll  )  [private]
 

Definition at line 73 of file suspendmonitor.cpp.

References currentMode, QPEApplication::Disable, QPEApplication::DisableLightOff, QPEApplication::DisableSuspend, QPEApplication::Enable, sStatus, timerId, and timerValue().

Referenced by applicationTerminated(), setTempMode(), and timerEvent().


Member Data Documentation

int TempScreenSaverMonitor::currentMode [private]
 

Definition at line 50 of file suspendmonitor.h.

Referenced by TempScreenSaverMonitor(), timerEvent(), and updateAll().

QValueList<int> TempScreenSaverMonitor::sStatus[3] [private]
 

Definition at line 49 of file suspendmonitor.h.

Referenced by removeOld(), setTempMode(), timerEvent(), and updateAll().

int TempScreenSaverMonitor::timerId [private]
 

Definition at line 51 of file suspendmonitor.h.

Referenced by TempScreenSaverMonitor(), timerEvent(), and updateAll().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:53:28 2005 for OPIE by  doxygen 1.4.2