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

9.1-release9.2-releasereleng/10.0releng/10.0.1releng/10.0.2releng/10.0.3releng/10.1
Last change on this file since 891636a was 891636a, checked in by Ken Moore <ken@…>, 19 months ago

Get the mountTray saving/loading it's settings properly, and integrate those settings with the new Settings dlialog. You can now turn the disk space watcher off/on and set the refresh times/flags within the settings dialog.

  • 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
13
14class FSWatcher : public QObject
15{
16        Q_OBJECT
17       
18public:
19  FSWatcher();
20  ~FSWatcher();
21 
22  void start(int); //input in milliseconds
23  void stop();
24 
25  static QStringList getFSmountpoints();
26  static QString intToDisplay(int);
27  static int displayToInt(QString); 
28 
29private:
30  QTimer *timer;
31  static QStringList runCMD(QString);
32  static int calculatePercentage(int,int);
33 
34public slots:
35  void checkFS(); //function in a timer loop
36
37signals:
38  void FSWarning(QString, QString);
39 
40};
41
42
43#endif
Note: See TracBrowser for help on using the repository browser.