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

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

Create a new "LPMessages" dialog class and integrate it into the tray application. This will show the full messages that are available, as well as display the contents of any known log/error files that the watcher is aware of.

  • Property mode set to 100644
File size: 625 bytes
Line 
1#ifndef _LP_TRAY_H
2#define _LP_TRAY_H
3
4#include <QSystemTrayIcon>
5#include <QMenu>
6#include <QString>
7#include <QMessageBox>
8
9#include "mainUI.h"
10#include "LPWatcher.h"
11#include "LPMessages.h"
12
13class LPTray : public QSystemTrayIcon{
14                Q_OBJECT
15public:
16        LPTray();
17        ~LPTray();
18
19private:
20        LPWatcher *watcher;
21        LPMessages *msgdlg;
22        QMenu *menu;
23        mainUI *GUI;
24
25        void updateTrayIcon();
26        void updateToolTip();
27       
28private slots:
29        void watcherMessage(QString type = "");
30
31        void slotTrayClicked(QSystemTrayIcon::ActivationReason);
32        void slotClose();
33        void slotSingleInstance();
34        void startGUI();
35        void startMessageDialog();
36
37};
38
39#endif
Note: See TracBrowser for help on using the repository browser.