comparison ui/createinstallerdialog.h @ 868:ae571e7ecdc9

Make appendTextSignature public for better testability
author Andre Heinecke <andre.heinecke@intevation.de>
date Tue, 05 Aug 2014 17:44:31 +0200
parents 49168bcb02e2
children 78798d3af8f0
comparison
equal deleted inserted replaced
867:ecdc279dea15 868:ae571e7ecdc9
89 * @param[in] filePath the absolute path to the file. 89 * @param[in] filePath the absolute path to the file.
90 * @returns true on success, false on error 90 * @returns true on success, false on error
91 */ 91 */
92 bool signFile(QString filePath); 92 bool signFile(QString filePath);
93 93
94 /* Slots for the creator process */
95 void processError(QProcess::ProcessError error);
96 void processFinished(int exitCode, QProcess::ExitStatus exitStatus);
97
98 public slots:
94 /**@brief Append a base64 encoded sha256 RSA signature to a file. 99 /**@brief Append a base64 encoded sha256 RSA signature to a file.
95 * 100 *
96 * The format of the added signature line will be: 101 * The format of the added signature line will be:
97 * S:<signature>\r\n 102 * S:<signature>\r\n
98 * For the signature the key in mCertFile is used. 103 * For the signature the key in mCertFile is used.
101 * @param[out] output The absolute path of the file to write 106 * @param[out] output The absolute path of the file to write
102 * 107 *
103 * @returns true on success, false on failure 108 * @returns true on success, false on failure
104 */ 109 */
105 bool appendTextSignatureToFile(const QString& input, const QString& output); 110 bool appendTextSignatureToFile(const QString& input, const QString& output);
106
107 /* Slots for the creator process */
108 void processError(QProcess::ProcessError error);
109 void processFinished(int exitCode, QProcess::ExitStatus exitStatus);
110 }; 111 };
111 112
112 /** @brief The dialog shown after the installer was created. */ 113 /** @brief The dialog shown after the installer was created. */
113 class FinishedDialog : public QDialog 114 class FinishedDialog : public QDialog
114 { 115 {

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