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

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

Get the scrub/resilvering detection working for LPTray/LPWatcher. This is properly set for running/started/finished processes.

  • Property mode set to 100644
File size: 690 bytes
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#include <QMessageBox>
13
14#include "mainUI.h"
15#include "LPWatcher.h"
16
17class LPTray : public QSystemTrayIcon{
18                Q_OBJECT
19public:
20        LPTray();
21        ~LPTray();
22
23private:
24        LPWatcher *watcher;
25        QMenu *menu;
26        mainUI *GUI;
27        //bool initPhase;
28
29
30        void updateTrayIcon();
31        void updateToolTip();
32       
33private slots:
34        void watcherMessage(QString type = "");
35
36        void slotTrayClicked(QSystemTrayIcon::ActivationReason);
37        void slotClose();
38        void slotSingleInstance();
39        void startGUI();
40
41};
42
43#endif
Note: See TracBrowser for help on using the repository browser.