X-Git-Url: https://git.toastfreeware.priv.at/toast/confclerk.git/blobdiff_plain/2dffed3b8b95d24c57327f5e5ddba7a224ff49dd..080dc7d603d45ba0662aa731418993ddd45b5fe8:/src/gui/mainwindow.h diff --git a/src/gui/mainwindow.h b/src/gui/mainwindow.h index 611f45d..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,9 +20,15 @@ #ifndef MAINWINDOW_H #define MAINWINDOW_H +#include "qglobal.h" +#if QT_VERSION >= 0x050000 +#include +#else #include +#endif +#include -#include +#include "ui_mainwindow.h" #include "conferencemodel.h" @@ -34,10 +40,8 @@ class MainWindow : public QMainWindow, private Ui::MainWindow { Q_OBJECT public: - // aEventId is used to inform widget to automatically open - // Event dialog for given Event ID - MainWindow(int aEventId = 0, QWidget *aParent = NULL); - ~MainWindow() {} + MainWindow(QWidget *parent = 0); + ~MainWindow(); signals: void conferenceRemoved(); private slots: @@ -52,25 +56,33 @@ 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 id); + void useConference(int conferenceId); void unsetConference(); + + void showError(const QString& message); private: void fillAndShowConferenceHeader(); - void initTabs(); + void initTabs(); ///< called on startup and on change of a conference void clearTabs(); void importData(const QByteArray &aData, const QString& url, int conferenceId); QString saved_title; + SqlEngine* sqlEngine; 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 */