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

superkaramba

disk.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2003 by Hans Karlsson                                   *
00003  *   karlsson.h@home.se                                                      *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  ***************************************************************************/
00010 #ifndef DISKSENSOR_H
00011 #define DISKSENSOR_H
00012 
00013 #include <K3Process>
00014 
00015 #include "sensor.h"
00016 
00017 class DiskSensor :  public Sensor
00018 {
00019     Q_OBJECT
00020 public:
00021     DiskSensor(int msec);
00022     ~DiskSensor();
00023     void update();
00024     void setMaxValue(SensorParams *sp);
00025 
00026 private:
00027     int getFreeSpace(const QString &mntPt) const;
00028     int getUsedSpace(const QString &mntPt) const;
00029     int getTotalSpace(const QString &mntPt) const;
00030     int getPercentUsed(const QString &mntPt) const;
00031     int getPercentFree(const QString &mntPt) const;
00032 
00033     K3ShellProcess ksp;
00034     QString sensorResult;
00035 
00036     QMap<QString, QString> mntMap;
00037     QStringList stringList;
00038 
00039     int init;
00040 
00041 private slots:
00042     void receivedStdout(K3Process *, char *buffer, int);
00043     void processExited(K3Process *);
00044 
00045 signals:
00046     void initComplete();
00047 
00048 };
00049 #endif // DISKSENSOR_H

superkaramba

Skip menu "superkaramba"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

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