KSaneCore

invertoption.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_INVERT_OPTION_H
8#define KSANE_INVERT_OPTION_H
9
10#include "baseoption.h"
11
12namespace KSaneCore
13{
14
15static const QString InvertColorsOptionName = QStringLiteral("KSane::InvertColors");
16
17class InvertOption : public BaseOption
18{
20
21public:
22 InvertOption();
23
24 QVariant value() const override;
25 QString valueAsString() const override;
26
27 Option::OptionState state() const override;
28 QString name() const override;
29 QString title() const override;
30 QString description() 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_INVERT_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 Oct 11 2024 12:18:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.