comparison 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
comparison
equal deleted inserted replaced
363:d10d9bc2e84f 364:dc4efb0a70cb
1 #ifndef UI_INSTALLWRAPPER_H 1 #ifndef UI_INSTALLWRAPPER_H
2 #define UI_INSTALLWRAPPER_H 2 #define UI_INSTALLWRAPPER_H
3 3
4 #include <QFileInfo>
4 #include <QString> 5 #include <QString>
5 #include <QStringList> 6 #include <QStringList>
7 #include <QTemporaryFile>
6 #include <QThread> 8 #include <QThread>
7 9
8 #include "certificate.h" 10 #include "certificate.h"
9 /** @file installwrapper.h 11 /** @file installwrapper.h
10 * @brief Wrapper around the call to the updated process */ 12 * @brief Wrapper around the call to the updated process */
13
14 /** @brief Get the FileInfo for the installation process.
15 *
16 * This points to the file where the installation process is
17 * supposed to be.
18 *
19 * @returns A FileInfo with the path of the installation process.*/
20 QFileInfo getCinstProcInfo();
11 21
12 /** @brief wrapper around installer process 22 /** @brief wrapper around installer process
13 * 23 *
14 * This wrapper is mostly needed because QProcess executes 24 * This wrapper is mostly needed because QProcess executes
15 * a process on Windows directly with CreateProcess and 25 * a process on Windows directly with CreateProcess and
34 * The cinst executable is expected to be in the same directory 44 * The cinst executable is expected to be in the same directory
35 * as the current application. 45 * as the current application.
36 * 46 *
37 * @param[in] parent the parent object. 47 * @param[in] parent the parent object.
38 * @param[in] listFileName the absolute path to the certificatelist. 48 * @param[in] listFileName the absolute path to the certificatelist.
39 * @param[in] instructions a list of instructions to execute. 49 * @param[in] choices a list of R: / I: <cert> lines to execute.
40 */ 50 */
41 InstallWrapper(QObject* parent, const QString& path, 51 InstallWrapper(QObject* parent, const QString& path,
42 const QStringList& instructions); 52 const QStringList& instructions);
43 53
44 private: 54 private:
55 /**@brief write the choices made into a temporary file
56 *
57 * @param[in] choicesFile the temporary file to write.
58 *
59 * @returns true on success. false on error.
60 */
61 bool writeChoices(QTemporaryFile* choicesFile) const;
62
45 const QString mCertListFile; 63 const QString mCertListFile;
46 const QStringList mInstructions; 64 const QStringList mChoices;
47 65
48 protected: 66 protected:
49 void run(); 67 void run();
50 68
51 Q_SIGNALS: 69 Q_SIGNALS:

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