aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-01-24 01:29:18 +0100
committerJay Berkenbilt <ejb@ql.org>2022-01-30 19:11:03 +0100
commit79187e585a7c1ac26fe8b2a347a9546885a973e5 (patch)
treeee317940ca527da3e307523d43da5e7745becf6a /include
parent160e869d1e76697091cf977179e99fbb30c49cd6 (diff)
downloadqpdf-79187e585a7c1ac26fe8b2a347a9546885a973e5.tar.zst
QPDFJob: begin configuration API with verbose
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/QPDFJob.hh26
1 files changed, 25 insertions, 1 deletions
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<Members> m;
};