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

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

Setup the LPTray to use the new LPWatcher class (untested yet)

  • 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
42private slots:
43        void watcherMessage(QString);
44        //void firstCheck();
45        //void slotNewLogMessage(QString);
46        void slotTrayClicked(QSystemTrayIcon::ActivationReason);
47        void slotClose();
48        void slotSingleInstance();
49        void startGUI();
50        //void displayWorkingIcon();
51};
52
53#endif
Note: See TracBrowser for help on using the repository browser.