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

Engines

hddtemp.h

Go to the documentation of this file.
00001 /*
00002  *   Copyright (C) 2007 Petri Damsten <damu@iki.fi>
00003  *   Copyright (C) 2007 Christopher Blauvelt <cblauvelt@gmail.com>
00004  *
00005  *   This program is free software; you can redistribute it and/or modify
00006  *   it under the terms of the GNU Library General Public License version 2 as
00007  *   published by the Free Software Foundation
00008  *
00009  *   This program is distributed in the hope that it will be useful,
00010  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  *   GNU General Public License for more details
00013  *
00014  *   You should have received a copy of the GNU Library General Public
00015  *   License along with this program; if not, write to the
00016  *   Free Software Foundation, Inc.,
00017  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
00018  */
00019 
00020 #ifndef HDDTEMP_H
00021 #define HDDTEMP_H
00022 
00023 #include <QObject>
00024 #include <QMap>
00025 #include <QString>
00026 #include <QStringList>
00027 #include <QVariant>
00028 #include <QTimer>
00029 
00030 
00031 class HddTemp : public QObject
00032 {
00033     Q_OBJECT
00034 
00035     public:
00036         enum DataType {Temperature=0, Unit};
00037         
00038         HddTemp(QObject *parent=0);
00039         ~HddTemp();
00040         QStringList sources() const;
00041         QVariant data(const QString source, const DataType type) const;
00042 
00043     private Q_SLOTS:
00044         bool updateData();
00045         
00046     private:
00047         int m_failCount;
00048         QMap<QString, QList<QVariant> > m_data;
00049         QTimer *m_timer;
00050 };
00051 
00052 
00053 #endif

Engines

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

API Reference

Skip menu "API Reference"
  • KWin
  •   KWin Libraries
  • Libraries
  •   libkworkspace
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference by doxygen 1.5.7
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