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

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

Make sure the mount tray disk space notifier only displays the warning for new devices that are over 90% full.

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