source: src-qt4/life-preserver/lp-tray/LPTray.h @ 6a2483b

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

Remove the old life-preserver from the src-qt4/life-preserver dir, and replace it with src-qt4/life-preserver/lp-tray and src-qt4/life-preserver/lp-gui.

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