diff ui/mainwindow.h @ 71:f22a99f7cb69

Add certificatelist to install as member. Look for updates on startup
author Andre Heinecke <aheinecke@intevation.de>
date Wed, 19 Mar 2014 11:32:25 +0000
parents c6125d73faf4
children 252ffe6e27fd
line wrap: on
line diff
--- a/ui/mainwindow.h	Wed Mar 19 11:31:08 2014 +0000
+++ b/ui/mainwindow.h	Wed Mar 19 11:32:25 2014 +0000
@@ -1,11 +1,17 @@
 #ifndef MAINWINDOW_H
 #define MAINWINDOW_H
 
+/**
+ * @file mainwindow.h
+ * @brief Main UI controller
+ */
+
 #include <QSystemTrayIcon>
 #include <QDialog>
 #include <QSettings>
 
 #include "downloader.h"
+#include "certificatelist.h"
 class QMenu;
 class QAction;
 class QTimer;
@@ -37,8 +43,18 @@
     void handleNewList(const QString& fileName, const QDateTime& modDate);
     void handleNewSW(const QString& fileName, const QDateTime& modDate);
     void downloaderError(const QString &message, SSLConnection::ErrorCode error);
+    /** @brief Trigger the appropiate action depending on the state */
+    void messageClicked();
 
 private:
+    /** @brief check the integrity of available files.
+     *
+     * Do not use this as a trust check as this only works on
+     * FileNames where the underlying files can change. This
+     * is just meant to check if the downloaded data was somehow
+     * removed or corrupted.
+     *
+     */
     void verifyAvailableData();
     void createTrayIcon();
     void createActions();
@@ -55,6 +71,8 @@
     QAction *mCheckUpdates;
     QAction *mQuitAction;
     CurrentState mCurState;
+
+    CertificateList mListToInstall;
 };
 
 #endif // MAINWINDOW_H

http://wald.intevation.org/projects/trustbridge/