source: src-qt4/life-preserver/LPTray.h @ f698804

9.2-releasereleng/10.0releng/10.0.1releng/10.0.2releng/10.0.3
Last change on this file since f698804 was f698804, checked in by Ken Moore <ken@…>, 12 months ago

Get the new watcher class up to the same (or slightly more) functionality thatn the old implementation. Now to start adding the new checking for mirroring/resilvering and or zpool errors.

  • Property mode set to 100644
File size: 1.2 KB
Line 
1#ifndef _LP_TRAY_H
2#define _LP_TRAY_H
3
4#include <QSystemTrayIcon>
5#include <QMenu>
6#include <QFileSystemWatcher>
7#include <QString>
8#include <QTimer>
9#include <QProcess>
10#include <QFile>
11#include <QTextStream>
12
13#include "mainUI.h"
14#include "LPWatcher.h"
15
16class LPTray : public QSystemTrayIcon{
17                Q_OBJECT
18public:
19        LPTray();
20        ~LPTray();
21
22private:
23        //QFileSystemWatcher *watcher;
24        LPWatcher *watcher;
25        QMenu *menu;
26        //QTimer *timer;
27        mainUI *GUI;
28        //QString sFile; //location of the replication status file
29        //QFile *logFile, *statFile;
30        //QTextStream *LFStream, *SFStream;
31        //QString repTotK, lastSize;
32        //int wNum; //internal tracking of which frame of the icon animation we are on
33        bool initPhase;
34
35        //void parseLogMessage(QString, bool quiet = false);
36        //void parseStatusMessage(QString);
37        //void setIdleToolTip();
38        //void startWorkingIcon();
39        //void stopWorkingIcon();
40        //double displayToDoubleK(QString);
41
42        void updateTrayIcon();
43        void updateToolTip();
44       
45private slots:
46        void watcherMessage(QString);
47        //void firstCheck();
48        //void slotNewLogMessage(QString);
49        void slotTrayClicked(QSystemTrayIcon::ActivationReason);
50        void slotClose();
51        void slotSingleInstance();
52        void startGUI();
53        //void displayWorkingIcon();
54};
55
56#endif
Note: See TracBrowser for help on using the repository browser.