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

kmilo

kvaiodriverinterface.h

Go to the documentation of this file.
00001 /* -*- C++ -*-
00002 
00003    This file declares the KVaioDrierInterface class.
00004    It provides an event-oriented wrapper for the kernel sonypi driver. 
00005 
00006    $ Author: Mirko Boehm $
00007    $ Copyright: (C) 1996-2003, Mirko Boehm $
00008    $ Contact: mirko@kde.org
00009          http://www.kde.org
00010          http://www.hackerbuero.org $
00011    $ License: LGPL with the following explicit clarification:
00012          This code may be linked against any version of the Qt toolkit
00013          from Troll Tech, Norway. $
00014 
00015    $Id: kvaiodriverinterface.h 671153 2007-06-03 22:20:55Z mlaurent $
00016 */
00017 
00018 #ifndef KVAIO_DRIVERINTERFACE_H
00019 #define KVAIO_DRIVERINTERFACE_H
00020 
00021 #include <QObject>
00022 
00023 
00024 extern "C"
00025 {
00026 #include <fcntl.h>
00027 
00028 #include "./sonypi.h"
00029 }
00030 
00031 class QSocketNotifier;
00032 
00033 class KVaioDriverInterface : public QObject
00034 {
00035     Q_OBJECT
00036 public:
00037     KVaioDriverInterface(QObject *parent=0);
00038     bool connectToDriver(bool listen = true);
00039     void disconnectFromDriver();
00042     int brightness();
00044     bool getBatteryStatus(bool& bat1Avail, int& bat1Remaining, int& bat1Max,
00045               bool& bat2Avail, int& bat2Remaining, int& bat2Max,
00046               bool& acConnected);
00047 public slots:
00049     void setBrightness(int);
00050 protected:
00051     int mFd;
00052     fd_set mRfds;
00053     QSocketNotifier *mNotifier;
00054 signals:
00055     void vaioEvent(int);
00056     // void brightnessChanged(int);
00057 protected slots:
00058     void socketActivated(int);
00059 };
00060 
00061 #endif // KVAIO_DRIVERINTERFACE_H

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