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

PowerStatusManager Class Reference

#include </home/clem/local/src/opie/library/power.h>

Collaboration diagram for PowerStatusManager:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PowerStatusManager ()

Static Public Member Functions

static const PowerStatusreadStatus ()

Protected Member Functions

bool getProcApmStatus (int &ac, int &bs, int &bf, int &pc, int &sec)
void getStatus ()

Static Private Attributes

static PowerStatusps = 0
static PowerStatusManagerpowerManager = 0

Constructor & Destructor Documentation

PowerStatusManager::PowerStatusManager  ) 
 

Definition at line 42 of file power.cpp.

References f, haveProcApm, powerManager, ps, and TRUE.


Member Function Documentation

bool PowerStatusManager::getProcApmStatus int &  ac,
int &  bs,
int &  bf,
int &  pc,
int &  sec
[protected]
 

Definition at line 64 of file power.cpp.

References PowerStatus::ac, PowerStatus::Backup, PowerStatus::bs, PowerStatus::Charging, PowerStatus::Critical, f, PowerStatus::High, PowerStatus::Low, PowerStatus::NotPresent, PowerStatus::Offline, PowerStatus::Online, PowerStatus::percentRemain, ps, PowerStatus::secsRemain, u, and PowerStatus::VeryLow.

Referenced by getStatus().

void PowerStatusManager::getStatus  )  [protected]
 

Definition at line 135 of file power.cpp.

References FALSE, getProcApmStatus(), haveProcApm, PowerStatus::percentAccurate, PowerStatus::percentRemain, ps, PowerStatus::secsRemain, and TRUE.

Referenced by readStatus().

const PowerStatus & PowerStatusManager::readStatus  )  [static]
 

Definition at line 53 of file power.cpp.

References getStatus(), powerManager, and ps.

Referenced by ServerApplication::apmTimeout(), RotateApplet::channelReceived(), LightSettings::LightSettings(), BrightnessApplet::readSystemBrightness(), LoginScreenSaver::save(), BatteryMeter::timerEvent(), and BrightnessApplet::writeSystemBrightness().


Member Data Documentation

PowerStatusManager * PowerStatusManager::powerManager = 0 [static, private]
 

Definition at line 37 of file power.cpp.

Referenced by PowerStatusManager(), and readStatus().

PowerStatus * PowerStatusManager::ps = 0 [static, private]
 

Definition at line 38 of file power.cpp.

Referenced by getProcApmStatus(), getStatus(), PowerStatusManager(), and readStatus().


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