Mercurial > trustbridge
diff ui/installwrapper.h @ 364:dc4efb0a70cb
Add Linux support
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Mon, 14 Apr 2014 16:58:20 +0000 |
parents | f23e0ccd5d14 |
children | a507e5f1b999 |
line wrap: on
line diff
--- a/ui/installwrapper.h Mon Apr 14 16:57:41 2014 +0000 +++ b/ui/installwrapper.h Mon Apr 14 16:58:20 2014 +0000 @@ -1,14 +1,24 @@ #ifndef UI_INSTALLWRAPPER_H #define UI_INSTALLWRAPPER_H +#include <QFileInfo> #include <QString> #include <QStringList> +#include <QTemporaryFile> #include <QThread> #include "certificate.h" /** @file installwrapper.h * @brief Wrapper around the call to the updated process */ +/** @brief Get the FileInfo for the installation process. + * + * This points to the file where the installation process is + * supposed to be. + * + * @returns A FileInfo with the path of the installation process.*/ +QFileInfo getCinstProcInfo(); + /** @brief wrapper around installer process * * This wrapper is mostly needed because QProcess executes @@ -36,14 +46,22 @@ * * @param[in] parent the parent object. * @param[in] listFileName the absolute path to the certificatelist. - * @param[in] instructions a list of instructions to execute. + * @param[in] choices a list of R: / I: <cert> lines to execute. */ InstallWrapper(QObject* parent, const QString& path, const QStringList& instructions); private: + /**@brief write the choices made into a temporary file + * + * @param[in] choicesFile the temporary file to write. + * + * @returns true on success. false on error. + */ + bool writeChoices(QTemporaryFile* choicesFile) const; + const QString mCertListFile; - const QStringList mInstructions; + const QStringList mChoices; protected: void run();