]> ToastFreeware Gitweb - toast/confclerk.git/blobdiff - src/gui/mainwindow.h
Update copyright notices.
[toast/confclerk.git] / src / gui / mainwindow.h
index 674b4a7b0079cc96a5055635a307950ccaf3d4a9..7f1c76480d76ba1c3f8217073e07741d27cffa15 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Copyright (C) 2010 Ixonos Plc.
- * Copyright (C) 2011-2012 Philipp Spitzer, gregor herrmann, Stefan Stahl
+ * Copyright (C) 2011-2014 Philipp Spitzer, gregor herrmann, Stefan Stahl
  *
  * This file is part of ConfClerk.
  *
@@ -35,6 +35,7 @@ class MainWindow : public QMainWindow, private Ui::MainWindow
     Q_OBJECT
 public:
     MainWindow(QWidget *parent = 0);
+    ~MainWindow();
 signals:
     void conferenceRemoved();
 private slots:
@@ -49,12 +50,14 @@ private slots:
 
     void onEventChanged(int aEventId, bool favouriteChanged);
     void onSearchResultChanged();
-    // TODO: remove
+
     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();
@@ -62,7 +65,7 @@ private slots:
     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);
 
@@ -71,6 +74,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 */