• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • superkaramba
 

superkaramba

  • superkaramba
  • src
disksensor.h
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 #include "sensor.h"
13 #include <tqmap.h>
14 #include <tqstring.h>
15 #include <tqtextcodec.h>
16 #include <tqregexp.h>
17 #include <tqstringlist.h>
18 #include <tdeprocess.h>
19 class DiskSensor : public Sensor
20 {
21 TQ_OBJECT
22 
23 public:
24  DiskSensor(int msec );
25  ~DiskSensor();
26  void update();
27  void setMaxValue( SensorParams *sp );
28 
29 private:
30  long getFreeSpace(TQString mntPt) const;
31  long getUsedSpace(TQString mntPt) const;
32  long getTotalSpace(TQString mntPt) const;
33  int getPercentUsed(TQString mntPt) const;
34  int getPercentFree(TQString mntPt) const;
35 
36  KShellProcess ksp;
37  TQString sensorResult;
38 
39  TQMap<TQString,TQString> mntMap;
40  TQStringList stringList;
41 
42  int init;
43 
44 private slots:
45  void receivedStdout(TDEProcess *, char *buffer, int);
46  void processExited(TDEProcess *);
47 
48 signals:
49  void initComplete();
50 
51 };
52 #endif // DISKSENSOR_H
SensorParams
Hans Karlsson.
Definition: sensorparams.h:31

superkaramba

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

superkaramba

Skip menu "superkaramba"
  • kcalc
  •   knumber
  • superkaramba
Generated for superkaramba by doxygen 1.8.13
This website is maintained by Timothy Pearson.