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

kmilo

kmilo_kvaio.cpp

Go to the documentation of this file.
00001 /* -*- C++ -*-
00002 
00003    This file implements the KVaio module for KMilo.
00004 
00005    $ Author: Mirko Boehm $
00006    $ Copyright: (C) 1996-2003, Mirko Boehm $
00007    $ Contact: mirko@kde.org
00008          http://www.kde.org
00009          http://www.hackerbuero.org $
00010    $ License: LGPL with the following explicit clarification:
00011          This code may be linked against any version of the Qt toolkit
00012          from Troll Tech, Norway. $
00013 
00014    $Id: kmilo_kvaio.cpp 719088 2007-09-30 09:53:24Z mlaurent $
00015 
00016    * Portions of this code are
00017    * (C) 2001-2002 Stelian Pop <stelian@popies.net> and
00018    * (C) 2001-2002 Alcove <www.alcove.com>.
00019    * Thanks to Stelian for the implementation of the sonypi driver.
00020 */
00021 
00022 #include <kgenericfactory.h>
00023 
00024 #include "monitor.h"
00025 #include "kmilo_kvaio.h"
00026 #include "kvaio.h"
00027 #include "kmilointerface.h"
00028 
00029 KMiloKVaio::KMiloKVaio(QObject *parent,
00030                const QVariantList& args)
00031     : Monitor(parent, args),
00032       m_kvaio(0)
00033 {
00034     _poll = false;
00035     m_displayType = (Monitor::DisplayType)None ;
00036 }
00037 
00038 
00039 KMiloKVaio::~KMiloKVaio() {
00040 }
00041 
00042 
00043 bool KMiloKVaio::init()
00044 {
00045     m_kvaio = new KVaio(this);
00046 
00047     return m_kvaio->driver()!=0;
00048 }
00049 
00050 
00051 KMilo::Monitor::DisplayType KMiloKVaio::poll() {
00052 //    Monitor::DisplayType rc = (Monitor::DisplayType)None;
00053 //    return rc;
00054     return m_displayType;
00055 }
00056 
00057 
00058 int KMiloKVaio::progress() const {
00059     return m_kvaio->progress();
00060 }
00061 
00062 void KMiloKVaio::reconfigure(KConfig* k)
00063 {
00064     m_kvaio->loadConfiguration(k);
00065 }
00066 
00067 K_PLUGIN_FACTORY(KMiloVaio, registerPlugin<KMiloKVaio>();)
00068 K_EXPORT_PLUGIN(KMiloVaio("kmilo_kvaio"))
00069 

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