Mercurial > trustbridge
diff ui/mainwindow.h @ 369:78eec57bc133
merged.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Tue, 15 Apr 2014 09:44:54 +0200 |
parents | 75f7288ad67b |
children | 6cc124e79066 |
line wrap: on
line diff
--- a/ui/mainwindow.h Tue Apr 15 09:44:32 2014 +0200 +++ b/ui/mainwindow.h Tue Apr 15 09:44:54 2014 +0200 @@ -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;