• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdeutils
  • Sitemap
  • Contact Us
 

kmilo

KMilo::Monitor

KMilo::Monitor Class Reference

#include <monitor.h>

Inheritance diagram for KMilo::Monitor:

Inheritance graph
[legend]

List of all members.


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

enum KMilo::Monitor::DisplayType

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

Definition at line 51 of file monitor.h.


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.

bool KMilo::Monitor::shouldPoll (  )  const [inline]

Definition at line 85 of file monitor.h.

void KMilo::Monitor::reconfigure ( KConfig *   )  [virtual]

Reimplemented in KMiloKVaio, and KMilo::ThinkPadMonitor.

Definition at line 35 of file monitor.cpp.

void KMilo::Monitor::setInterface ( KMiloInterface *  i  )  [inline, protected]

Definition at line 92 of file monitor.h.


Friends And Related Function Documentation

friend class KMiloD [friend]

Definition at line 91 of file monitor.h.


Member Data Documentation

bool KMilo::Monitor::_poll [protected]

Definition at line 90 of file monitor.h.

KMiloInterface* KMilo::Monitor::_interface [protected]

Definition at line 94 of file monitor.h.


The documentation for this class was generated from the following files:
  • monitor.h
  • monitor.cpp

kmilo

Skip menu "kmilo"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

kdeutils

Skip menu "kdeutils"
  • ark
  • kcalc
  • kcharselect
  • kdelirc
  • kdessh
  • kdf
  • kfloppy
  • kgpg
  • kjots
  • klaptopdaemon
  • kmilo
  • ksim
  • ktimer
  • kwallet
  • superkaramba
Generated for kdeutils by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal