1 /* ============================================================
2  *
3  * SPDX-FileCopyrightText: 2021 Alexander Stippich <a.stippich@gmx.net>
4  *
5  * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
6  *
7  * ============================================================ */
8 
9 #ifndef KSANE_BATCH_OPTION_H
10 #define KSANE_BATCH_OPTION_H
11 
12 #include "ksanebaseoption.h"
13 
14 namespace KSaneIface
15 {
16 
17 static const QString BatchModeOptionName = QStringLiteral("KSane::BatchMode");
18 
19 class KSaneBatchModeOption : public KSaneBaseOption
20 {
21     Q_OBJECT
22 
23 public:
24     KSaneBatchModeOption();
25 
26     KSaneOption::KSaneOptionState state() const override;
27     QString name() const override;
28     QString title() const override;
29     QString description() const override;
30 
31     QVariant value() const override;
32     QString valueAsString() const override;
33 
34 public Q_SLOTS:
35     bool setValue(const QVariant &value) override;
36 
37 private:
38     bool m_checked = false;
39 };
40 
41 }  // NameSpace KSaneIface
42 
43 #endif // KSANE_BATCH_OPTION_H
44