aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDFJob.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-01-05 23:20:20 +0100
committerJay Berkenbilt <ejb@ql.org>2022-01-30 19:11:03 +0100
commitbd89aac36020f3a289c1624f2e00ec3d3d932a49 (patch)
tree679522b57f33cffd9209626ed129d92cfb2675e4 /libqpdf/QPDFJob.cc
parent23b64f8357f9a605eae9c153a5fe10e2135eb355 (diff)
downloadqpdf-bd89aac36020f3a289c1624f2e00ec3d3d932a49.tar.zst
QPDFJob increment: move arg parsing into QPDFJob
Move ArgParser from qpdf.cc into QPDFJob.cc. It still works with millions of public member variables, but now qpdf.cc is minimal and just calls stable library functions.
Diffstat (limited to 'libqpdf/QPDFJob.cc')
-rw-r--r--libqpdf/QPDFJob.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/libqpdf/QPDFJob.cc b/libqpdf/QPDFJob.cc
index d78a351c..a65db073 100644
--- a/libqpdf/QPDFJob.cc
+++ b/libqpdf/QPDFJob.cc
@@ -326,6 +326,7 @@ QPDFJob::QPDFJob() :
verbose(false),
progress(false),
suppress_warnings(false),
+ warnings_exit_zero(false),
copy_encryption(false),
encryption_file(0),
encryption_file_password(0),
@@ -529,6 +530,12 @@ QPDFJob::suppressWarnings()
}
bool
+QPDFJob::warningsExitZero()
+{
+ return this->warnings_exit_zero;
+}
+
+bool
QPDFJob::checkRequiresPassword()
{
return this->check_requires_password;