summaryrefslogtreecommitdiffstats
path: root/mainwindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'mainwindow.h')
-rw-r--r--mainwindow.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/mainwindow.h b/mainwindow.h
index 5aafd89c..e8960ef9 100644
--- a/mainwindow.h
+++ b/mainwindow.h
@@ -8,6 +8,7 @@
#include <QQueue>
#include <QSettings>
#include "storemodel.h"
+#include "trayicon.h"
#if SINGLE_APP
#include "singleapplication.h"
#else
@@ -46,6 +47,9 @@ public:
void genKey(QString, QDialog *);
void userDialog(QString = "");
+protected:
+ void closeEvent(QCloseEvent *event);
+
private slots:
void on_updateButton_clicked();
void on_pushButton_clicked();
@@ -102,6 +106,9 @@ private:
QHash<QString, QString> profiles;
QString profile;
bool startupPhase;
+ trayIcon *tray = NULL;
+ bool useTrayIcon;
+ bool hideOnClose;
void updateText();
void executePass(QString, QString = QString());
void executeWrapper(QString, QString, QString = QString());
@@ -119,6 +126,8 @@ private:
void mountWebDav();
void updateEnv();
void updateProfileBox();
+ void initTrayIcon();
+ void destroyTrayIcon();
};
#endif // MAINWINDOW_H