diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 2bda8f7717adf28da4af0d34fb82f63d2868c31d (patch) | |
tree | 8d927b7b47a90c4adb646482a52613f58acd6f8c /kmilo/kmilo_kvaio/kmilo_kvaio.cpp | |
download | tdeutils-2bda8f7717adf28da4af0d34fb82f63d2868c31d.tar.gz tdeutils-2bda8f7717adf28da4af0d34fb82f63d2868c31d.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmilo/kmilo_kvaio/kmilo_kvaio.cpp')
-rw-r--r-- | kmilo/kmilo_kvaio/kmilo_kvaio.cpp | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/kmilo/kmilo_kvaio/kmilo_kvaio.cpp b/kmilo/kmilo_kvaio/kmilo_kvaio.cpp new file mode 100644 index 0000000..6389759 --- /dev/null +++ b/kmilo/kmilo_kvaio/kmilo_kvaio.cpp @@ -0,0 +1,68 @@ +/* -*- C++ -*- + + This file implements the KVaio module for KMilo. + + $ Author: Mirko Boehm $ + $ Copyright: (C) 1996-2003, Mirko Boehm $ + $ Contact: mirko@kde.org + http://www.kde.org + http://www.hackerbuero.org $ + $ License: LGPL with the following explicit clarification: + This code may be linked against any version of the Qt toolkit + from Troll Tech, Norway. $ + + $Id$ + + * Portions of this code are + * (C) 2001-2002 Stelian Pop <stelian@popies.net> and + * (C) 2001-2002 Alcove <www.alcove.com>. + * Thanks to Stelian for the implementation of the sonypi driver. +*/ + +#include <kgenericfactory.h> + +#include "monitor.h" +#include "kmilo_kvaio.h" +#include "kvaio.h" +#include "kmilointerface.h" + +KMiloKVaio::KMiloKVaio(QObject *parent, const char *name, + const QStringList& args) + : Monitor(parent, name, args), + m_kvaio(0) +{ + _poll = false; + m_displayType = (Monitor::DisplayType)None ; +} + + +KMiloKVaio::~KMiloKVaio() { +} + + +bool KMiloKVaio::init() +{ + m_kvaio = new KVaio(this); + + return m_kvaio->driver()!=0; +} + + +KMilo::Monitor::DisplayType KMiloKVaio::poll() { +// Monitor::DisplayType rc = (Monitor::DisplayType)None; +// return rc; + return m_displayType; +} + + +int KMiloKVaio::progress() const { + return m_kvaio->progress(); +} + +void KMiloKVaio::reconfigure(KConfig* k) +{ + m_kvaio->loadConfiguration(k); +} + +K_EXPORT_COMPONENT_FACTORY(kmilo_kvaio, KGenericFactory<KMiloKVaio>("kmilo_kvaio")) + |