X-Git-Url: https://git.toastfreeware.priv.at/toast/confclerk.git/blobdiff_plain/3720891e0d1e89877f1a2ada692349051aa9e895..080dc7d603d45ba0662aa731418993ddd45b5fe8:/src/gui/mainwindow.h diff --git a/src/gui/mainwindow.h b/src/gui/mainwindow.h index 336b9fe..7a26983 100644 --- a/src/gui/mainwindow.h +++ b/src/gui/mainwindow.h @@ -1,6 +1,6 @@ /* * Copyright (C) 2010 Ixonos Plc. - * Copyright (C) 2011-2012 Philipp Spitzer, gregor herrmann, Stefan Stahl + * Copyright (C) 2011-2024 Philipp Spitzer, gregor herrmann, Stefan Stahl * * This file is part of ConfClerk. * @@ -20,7 +20,13 @@ #ifndef MAINWINDOW_H #define MAINWINDOW_H +#include "qglobal.h" +#if QT_VERSION >= 0x050000 +#include +#else #include +#endif +#include #include "ui_mainwindow.h" @@ -35,6 +41,7 @@ class MainWindow : public QMainWindow, private Ui::MainWindow Q_OBJECT public: MainWindow(QWidget *parent = 0); + ~MainWindow(); signals: void conferenceRemoved(); private slots: @@ -49,12 +56,15 @@ private slots: void onEventChanged(int aEventId, bool favouriteChanged); void onSearchResultChanged(); - // TODO: remove + + void sslErrors(QNetworkReply*,const QList &errors); void networkQueryFinished(QNetworkReply*); void importFromNetwork(const QString&, int conferenceId); void importFromFile(const QString&, int conferenceId); void removeConference(int); void changeConferenceUrl(int, const QString&); + void onSystemTrayMessageClicked(); + void onAlarmTimerTimeout(); void useConference(int conferenceId); void unsetConference(); @@ -71,6 +81,8 @@ private: ConferenceModel* conferenceModel; ScheduleXmlParser *mXmlParser; QNetworkAccessManager *mNetworkAccessManager; + QSystemTrayIcon* systemTrayIcon; ///< to be able to show notifications + QTimer* alarmTimer; ///< timer that triggers every minute to be able to show alarms }; #endif /* MAINWINDOW_H */