From 79187e585a7c1ac26fe8b2a347a9546885a973e5 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sun, 23 Jan 2022 19:29:18 -0500 Subject: QPDFJob: begin configuration API with verbose --- include/qpdf/QPDFJob.hh | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/qpdf/QPDFJob.hh b/include/qpdf/QPDFJob.hh index 523ff357..3b92aea0 100644 --- a/include/qpdf/QPDFJob.hh +++ b/include/qpdf/QPDFJob.hh @@ -97,6 +97,30 @@ class QPDFJob QPDF_DLL bool createsOutput() const; + // CONFIGURATION + // (implemented in QPDFJob_config.cc) + + // Configuration is performed by calling methods XXX QXXXQ document + class Config + { + friend class QPDFJob; + public: + QPDF_DLL + Config& verbose(bool); + + private: + Config() = delete; + Config(QPDFJob& job) : + o(job) + { + } + QPDFJob& o; + }; + friend class Config; + + QPDF_DLL + Config config(); + // QXXXQ set options -- implemented in QPDFJob_options.cc // QXXXQ these will not be in the final interface @@ -220,7 +244,6 @@ class QPDFJob bool linearize; bool decrypt; int split_pages; - bool verbose; bool progress; bool suppress_warnings; bool warnings_exit_zero; @@ -410,6 +433,7 @@ class QPDFJob std::ostream* cout; std::ostream* cerr; unsigned long encryption_status; + bool verbose; }; std::shared_ptr m; }; -- cgit v1.2.3-70-g09d2