diff options
Diffstat (limited to 'lang/qt/src/verifyopaquejob.h')
-rw-r--r-- | lang/qt/src/verifyopaquejob.h | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/lang/qt/src/verifyopaquejob.h b/lang/qt/src/verifyopaquejob.h index c9b2247b..8dd73141 100644 --- a/lang/qt/src/verifyopaquejob.h +++ b/lang/qt/src/verifyopaquejob.h @@ -61,6 +61,14 @@ namespace QGpgME VerifyOpaqueJob instance will have scheduled it's own destruction with a call to QObject::deleteLater(). + Alternatively, the job can be started with startIt() after setting + an input file and an output file. If the job is started this way then + the backend reads the input and writes the output directly from/to the + specified input file and output file. In this case the plainText value of + the result signal will always be empty. This direct IO mode is currently + only supported for OpenPGP. Note that startIt() does not schedule the job's + destruction if starting the job failed. + After result() is emitted, the VerifyOpaqueJob will schedule it's own destruction by calling QObject::deleteLater(). */ @@ -70,7 +78,27 @@ class QGPGME_EXPORT VerifyOpaqueJob : public Job protected: explicit VerifyOpaqueJob(QObject *parent); public: - ~VerifyOpaqueJob(); + ~VerifyOpaqueJob() override; + + /** + * Sets the path of the file to verify. + * + * Used if the job is started with startIt(). + */ + void setInputFile(const QString &path); + QString inputFile() const; + + /** + * Sets the path of the file to write the result to. + * + * Used if the job is started with startIt(). + * + * \note If a file with this path exists, then the job will fail, i.e. you + * need to delete an existing file that shall be overwritten before you + * start the job. + */ + void setOutputFile(const QString &path); + QString outputFile() const; /** Starts the verification operation. \a signature contains the |