2 * Copyright (C) 2010 Ixonos Plc.
3 * Copyright (C) 2011-2021 Philipp Spitzer, gregor herrmann, Stefan Stahl
5 * This file is part of ConfClerk.
7 * ConfClerk is free software: you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the Free
9 * Software Foundation, either version 2 of the License, or (at your option)
12 * ConfClerk is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
17 * You should have received a copy of the GNU General Public License along with
18 * ConfClerk. If not, see <http://www.gnu.org/licenses/>.
24 #if QT_VERSION >= 0x050000
27 #include <QtGui/QMainWindow>
31 #include "ui_mainwindow.h"
33 #include "conferencemodel.h"
35 class ScheduleXmlParser;
36 class QNetworkAccessManager;
39 class MainWindow : public QMainWindow, private Ui::MainWindow
43 MainWindow(QWidget *parent = 0);
46 void conferenceRemoved();
48 void on_conferencesAction_triggered();
49 void on_settingsAction_triggered();
50 void on_aboutAction_triggered();
51 void on_reloadAction_triggered();
52 void on_nowAction_triggered();
53 void on_searchAction_triggered();
54 void on_expandAllAction_triggered();
55 void on_collapseAllAction_triggered();
57 void onEventChanged(int aEventId, bool favouriteChanged);
58 void onSearchResultChanged();
60 void sslErrors(QNetworkReply*,const QList<QSslError> &errors);
61 void networkQueryFinished(QNetworkReply*);
62 void importFromNetwork(const QString&, int conferenceId);
63 void importFromFile(const QString&, int conferenceId);
64 void removeConference(int);
65 void changeConferenceUrl(int, const QString&);
66 void onSystemTrayMessageClicked();
67 void onAlarmTimerTimeout();
69 void useConference(int conferenceId);
70 void unsetConference();
72 void showError(const QString& message);
74 void fillAndShowConferenceHeader();
75 void initTabs(); ///< called on startup and on change of a conference
77 void importData(const QByteArray &aData, const QString& url, int conferenceId);
81 ConferenceModel* conferenceModel;
82 ScheduleXmlParser *mXmlParser;
83 QNetworkAccessManager *mNetworkAccessManager;
84 QSystemTrayIcon* systemTrayIcon; ///< to be able to show notifications
85 QTimer* alarmTimer; ///< timer that triggers every minute to be able to show alarms
88 #endif /* MAINWINDOW_H */