kmilo
KMilo::Monitor Class Reference
#include <monitor.h>

Detailed Description
Definition at line 38 of file monitor.h.
Public Types | |
| enum | DisplayType { None, Error, Volume, Mute, Brightness, Tap, Sleep } |
Public Member Functions | |
| Monitor (QObject *parent, const QVariantList &) | |
| virtual | ~Monitor () |
| virtual bool | init () |
| virtual DisplayType | poll () |
| virtual int | progress () const |
| virtual QString | message () const |
| virtual QPixmap | customPixmap () const |
| bool | shouldPoll () const |
| virtual void | reconfigure (KConfig *) |
Protected Member Functions | |
| void | setInterface (KMiloInterface *i) |
Protected Attributes | |
| bool | _poll |
| KMiloInterface * | _interface |
Friends | |
| class | KMiloD |
Member Enumeration Documentation
- Enumerator:
-
None Error Volume Error. Mute Volume level changed. Brightness Volume has been muted. Tap Brighteness of the screen has changed. Sleep Mousttracker tap mode has changed. laptop will sleep in progress() seconds
Constructor & Destructor Documentation
| KMilo::Monitor::Monitor | ( | QObject * | parent, | |
| const QVariantList & | ||||
| ) |
Definition at line 27 of file monitor.cpp.
| KMilo::Monitor::~Monitor | ( | ) | [virtual] |
Definition at line 32 of file monitor.cpp.
Member Function Documentation
| bool KMilo::Monitor::init | ( | ) | [virtual] |
Called by kmilod to initialise this plugin.
The plugin must return true if its hardware is present and it should be loaded. If it returns false, it will be unloaded.
Reimplemented in KMilo::AsusMonitor, KMilo::DellI8kMonitor, Demo, KMilo::GenericMonitor, KMiloKVaio, PowerBookMonitor, KMilo::PowerBookMonitor, and KMilo::ThinkPadMonitor.
Definition at line 45 of file monitor.cpp.
| KMilo::Monitor::DisplayType KMilo::Monitor::poll | ( | ) | [virtual] |
This is called by KMiloD when it polls.
Must return the type of event that has occurred, or None.
Reimplemented in KMilo::AsusMonitor, KMilo::DellI8kMonitor, Demo, KMilo::GenericMonitor, KMiloKVaio, PowerBookMonitor, KMilo::PowerBookMonitor, and KMilo::ThinkPadMonitor.
Definition at line 39 of file monitor.cpp.
| int KMilo::Monitor::progress | ( | ) | const [virtual] |
If poll() returns stating that a value has changed, this will be called by kmilod to determine the value (0.
.100) for the slider in the display, if necessary.
Reimplemented in KMilo::AsusMonitor, KMilo::DellI8kMonitor, Demo, KMilo::GenericMonitor, KMiloKVaio, PowerBookMonitor, KMilo::PowerBookMonitor, and KMilo::ThinkPadMonitor.
Definition at line 41 of file monitor.cpp.
| QString KMilo::Monitor::message | ( | ) | const [virtual] |
Message displayed for DisplayType's that are not int measurable ( DisplayType::Tap for example ).
Reimplemented in KMilo::PowerBookMonitor, and KMilo::ThinkPadMonitor.
Definition at line 43 of file monitor.cpp.
| QPixmap KMilo::Monitor::customPixmap | ( | ) | const [virtual] |
Custom pixmap that can be displayed be the themes when displaying the DisplayType.
Definition at line 44 of file monitor.cpp.
| void KMilo::Monitor::reconfigure | ( | KConfig * | ) | [virtual] |
| void KMilo::Monitor::setInterface | ( | KMiloInterface * | i | ) | [inline, protected] |
Friends And Related Function Documentation
Member Data Documentation
bool KMilo::Monitor::_poll [protected] |
KMiloInterface* KMilo::Monitor::_interface [protected] |
The documentation for this class was generated from the following files:
KDE 4.0 API Reference