#ifndef TANGRATRAY_H #define TANGRATRAY_H #include #include #include #include #include class TangraTray : public QObject { Q_OBJECT public: explicit TangraTray(QObject *parent = 0); signals: void signalIconActivated(); void signalShow(); void signalQuit(); private slots: /* The slot that will accept the signal from the event click on the application icon in the system tray */ void iconActivated(QSystemTrayIcon::ActivationReason reason); public slots: void hideIconTray(); private: /* Declare the object of future applications for the tray icon*/ QSystemTrayIcon * trayIcon; void setTrayIcon(QString image); void createTrayIcon(); }; #endif // SYSTEMTRAY_H