diff ui/mainwindow.h @ 365:75f7288ad67b

Switch from listupdatedialog to installwrapper. Minor UI improvements
author Andre Heinecke <aheinecke@intevation.de>
date Mon, 14 Apr 2014 16:59:08 +0000
parents 1ae15ea73850
children 6cc124e79066
line wrap: on
line diff
--- a/ui/mainwindow.h	Mon Apr 14 16:58:20 2014 +0000
+++ b/ui/mainwindow.h	Mon Apr 14 16:59:08 2014 +0000
@@ -25,7 +25,16 @@
     Q_OBJECT
 
 public:
-    MainWindow();
+    /**@brief create a new Main Window object
+     *
+     * In tray mode this window is not shown and only shows
+     * notification messages if there is some actionable state
+     * reached. If tray mode is true it also exits after
+     * an update check.
+     *
+     * @param[in] trayMode set the tray mode
+     * */
+    MainWindow(bool trayMode);
 
     void setMessage(const QString message) {mCurMessage = message;}
     QString getMessage() {return mCurMessage;}
@@ -55,6 +64,8 @@
     void showAbout();
     void showDetails(QListWidgetItem*);
     void resizeButtons();
+    void installerError(const QString& errMsg);
+    void installCerts();
 
 private:
     /** @brief check the integrity of available files.
@@ -72,6 +83,9 @@
     void createContent();
     void loadCertificateList();
 
+    /* Are we running in tray mode ?*/
+    const bool mTrayMode;
+    /* The message currently shown at intervals */
     QString mCurMessage;
     QString mInstalledSWVersion;
     QString mInstalledListVersion;
@@ -88,7 +102,7 @@
 
     CertificateList mListToInstall;
 
-    QListWidget *certificateList;
+    QListWidget *mCertListWidget;
     QTextEdit *certificateDetails;
     QPushButton *installButton;
     QPushButton *quitButton;

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