KSaneCore

booloption.h
1/*
2 * SPDX-FileCopyrightText: 2009 Kare Sars <kare dot sars at iki dot fi>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5 */
6
7#ifndef KSANE_BOOL_OPTION_H
8#define KSANE_BOOL_OPTION_H
9
10#include "baseoption.h"
11
12namespace KSaneCore
13{
14
15class BoolOption : public BaseOption
16{
18
19public:
20 BoolOption(const SANE_Handle handle, const int index);
21
22 void readValue() override;
23
24 QVariant value() const override;
25 QString valueAsString() const override;
26
27public Q_SLOTS:
28 bool setValue(const QVariant &value) override;
29
30private:
31 bool m_checked = false;
32};
33
34} // namespace KSaneCore
35
36#endif // KSANE_BOOL_OPTION_H
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:56:33 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.