source: src-qt4/pc-mounttray/fsWatcher.h @ bb6089a

9.1-release9.2-releasereleng/10.0releng/10.0.1releng/10.0.2
Last change on this file since bb6089a was bb6089a, checked in by beanpole135 <ken@…>, 15 months ago

Add the ability for the mount tray to monitor/warn the user about disks that are almost full. Also add a new dialog that will show the current disk usage for the entire system. Still need to clean up the menu a bit, and add the ability to change settings for this.

  • Property mode set to 100644
File size: 720 bytes
Line 
1#ifndef _FS_WATCHER_H
2#define _FS_WATCHER_H
3
4#include <QObject>
5#include <QString>
6#include <QStringList>
7#include <QTimer>
8#include <QProcess>
9#include <QProcessEnvironment>
10#include <QCoreApplication>
11#include <QDebug>
12
13class FSWatcher : public QObject
14{
15        Q_OBJECT
16       
17public:
18  FSWatcher();
19  ~FSWatcher();
20 
21  void start(int); //input in milliseconds
22  void stop();
23 
24  static QStringList getFSmountpoints();
25  static QString intToDisplay(int);
26  static int displayToInt(QString); 
27 
28private:
29  QTimer *timer;
30  static QStringList runCMD(QString);
31  static int calculatePercentage(int,int);
32 
33private slots:
34  void checkFS(); //function in a timer loop
35
36signals:
37  void FSWarning(QString, QString);
38 
39};
40
41
42#endif
Note: See TracBrowser for help on using the repository browser.