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

superkaramba

  • sources
  • kde-4.12
  • kdeutils
  • superkaramba
  • src
  • sensors
disk.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2003 by Hans Karlsson *
3  * karlsson.h@home.se *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  ***************************************************************************/
10 #ifndef DISKSENSOR_H
11 #define DISKSENSOR_H
12 
13 #include <K3Process>
14 
15 #include "sensor.h"
16 
17 class DiskSensor : public Sensor
18 {
19  Q_OBJECT
20 public:
21  DiskSensor(int msec);
22  ~DiskSensor();
23  void update();
24  void setMaxValue(SensorParams *sp);
25 
26 private:
27  int getFreeSpace(const QString &mntPt) const;
28  int getUsedSpace(const QString &mntPt) const;
29  int getTotalSpace(const QString &mntPt) const;
30  int getPercentUsed(const QString &mntPt) const;
31  int getPercentFree(const QString &mntPt) const;
32 
33  K3ShellProcess ksp;
34  QString sensorResult;
35 
36  QMap<QString, QString> mntMap;
37  QStringList stringList;
38 
39  int init;
40 
41 private slots:
42  void receivedStdout(K3Process *, char *buffer, int);
43  void processExited(K3Process *);
44 
45 signals:
46  void initComplete();
47 
48 };
49 #endif // DISKSENSOR_H
DiskSensor::update
void update()
Definition: disk.cpp:143
DiskSensor
Definition: disk.h:17
DiskSensor::setMaxValue
void setMaxValue(SensorParams *sp)
Definition: disk.cpp:153
Sensor
Definition: sensor.h:17
sensor.h
SensorParams
Hans Karlsson.
Definition: sensorparams.h:30
DiskSensor::~DiskSensor
~DiskSensor()
Definition: disk.cpp:28
DiskSensor::DiskSensor
DiskSensor(int msec)
Definition: disk.cpp:14
DiskSensor::initComplete
void initComplete()
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:07:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

superkaramba

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

kdeutils API Reference

Skip menu "kdeutils API Reference"
  • ark
  • filelight
  • kcalc
  • kcharselect
  • kdf
  • kfloppy
  • kgpg
  • kremotecontrol
  • ktimer
  • kwallet
  • superkaramba
  • sweeper

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal