Mercurial > trustbridge
view ui/trayicon.h @ 1088:508c96e72f62
(issue124) Switch server URL and remove some RELEASE_BUILD options
As the test server speaks ECDSA we do not need so much
#ifndef RELEASE_BUILD options anymore.
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Fri, 12 Sep 2014 15:38:42 +0200 |
parents | c096881e8ed0 |
children | a4282bc67a8b |
line wrap: on
line source
#ifndef TRAYICON_H #define TRAYICON_H /* Copyright (C) 2014 by Bundesamt für Sicherheit in der Informationstechnik * Software engineering by Intevation GmbH * * This file is Free Software under the GNU GPL (v>=2) * and comes with ABSOLUTELY NO WARRANTY! * See LICENSE.txt for details. */ #include <QWidget> #include <QSystemTrayIcon> /**@brief Notification interface. * * This class provides an inherited implmentation of QSystemTrayIcon * to be more flexible on platforms where no SystemTray is available. * * This class should become obsolete once Qt improves the support for * StatusNotifier icons that are used in Plasma 5 and Unity. */ class QMessageBox; class TrayIcon : public QSystemTrayIcon { Q_OBJECT public: TrayIcon (QObject *parent); void show(); bool isAlternative() {return useAlt;} public Q_SLOTS: void showMessage(const QString &title, const QString &msg, QSystemTrayIcon::MessageIcon icon = QSystemTrayIcon::Information, int msecs = 10000); private Q_SLOTS: void messageDestroyed(); private: bool useAlt; QMessageBox *mMessageBox; }; #endif // TRAYICON_H