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

kmilo

asus.h

Go to the documentation of this file.
00001 /*
00002    This file is part of the KDE project
00003 
00004    Copyright (c) 2004 Chris Howells <howells@kde.org>
00005    Much code and ideas stolen from Jonathan Riddell's ThinkPad plugin
00006 
00007    This library is free software; you can redistribute it and/or
00008    modify it under the terms of the GNU Library General Public
00009    License as published by the Free Software Foundation; version
00010    2 of the License.
00011 
00012    This library is distributed in the hope that it will be useful,
00013    but WITHOUT ANY WARRANTY; without even the implied warranty of
00014    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015    Library General Public License for more details.
00016 
00017    You should have received a copy of the GNU Library General Public License
00018    along with this library; see the file COPYING.LIB.  If not, write to
00019    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00020    Boston, MA 02110-1301, USA.
00021 
00022 */
00023 #ifndef ASUS_H
00024 #define ASUS_H
00025 
00026 #include <kapplication.h>
00027 
00028 #include "monitor.h"
00029 
00030 namespace KMilo {
00031 
00032 typedef struct
00033 {
00034     unsigned int brightness;
00035     unsigned int lcd;
00036     unsigned int display;
00037 } asus_state_struct;
00038 
00042 class AsusMonitor: public KMilo::Monitor {
00043     public:
00044         AsusMonitor(QObject *parent, const QVariantList&);
00045         virtual ~AsusMonitor();
00046 
00051         virtual bool init();
00052 
00057         virtual DisplayType poll();
00058 
00064         virtual int progress() const;
00065 
00066     private:
00067 
00068         int m_progress;
00069 
00070         asus_state_struct last_asus_state;
00071         asus_state_struct asus_state;
00072 
00073         bool readProc(asus_state_struct* );
00074         int readProcEntry(const QString &);
00075 
00076         void clearStruct(asus_state_struct& asus_state);
00077 
00078 #ifdef Q_OS_FREEBSD
00079         int brightness_mib[4];
00080         int backlight_mib[4];
00081         int video_mib[4];
00082 #endif
00083 };
00084 
00085 }
00086 
00087 #endif

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