KSaneCore

batchmodeoption.h
1/*
2 * SPDX-FileCopyrightText: 2021 Alexander Stippich <a.stippich@gmx.net>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5 */
6
7#ifndef KSANE_BATCH_OPTION_H
8#define KSANE_BATCH_OPTION_H
9
10#include "baseoption.h"
11
12namespace KSaneCore
13{
14
15static const QString BatchModeOptionName = QStringLiteral("KSane::BatchMode");
16
17class BatchModeOption : public BaseOption
18{
20
21public:
22 BatchModeOption();
23
24 Option::OptionState state() const override;
25 QString name() const override;
26 QString title() const override;
27 QString description() const override;
28
29 QVariant value() const override;
30 QString valueAsString() const override;
31
32public Q_SLOTS:
33 bool setValue(const QVariant &value) override;
34
35private:
36 bool m_checked = false;
37};
38
39} // NameSpace KSaneCore
40
41#endif // KSANE_BATCH_OPTION_H
OptionState
This enumeration describes the current statue of the value of the option, indicating if this option s...
Definition option.h:46
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:54:46 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.