#ifndef PROXY_CLIENT_APPLICATION_H #define PROXY_CLIENT_APPLICATION_H #include #include #include "Dialog.h" #include "FileOpThread.h" //class ProxyClientApp: public QtSingleApplication //this will be paid later ))) class ProxyClientApp: public QApplication { Q_OBJECT public: /** * @brief create an instance of ProxyClientApp */ ProxyClientApp(int &argc, char *argv[]); private slots: void trayActivated(QSystemTrayIcon::ActivationReason reason); void showProxyDialog(); void DialogClosed(int result); void configUpdated(); void quitApp(); private: QSystemTrayIcon *trayIcon; ProxyDialog *dialog; FileOpThread fileOpThread; // fucking tray icon workaround quint64 closeTime; }; #endif