KSaneCore

integeroption.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_INTEGER_OPTION_H
8#define KSANE_INTEGER_OPTION_H
9
10#include "baseoption.h"
11
12namespace KSaneCore
13{
14
15class IntegerOption : public BaseOption
16{
18
19public:
20 IntegerOption(const SANE_Handle handle, const int index);
21
22 void readValue() override;
23
24 QVariant minimumValue() const override;
25 QVariant maximumValue() const override;
26 QVariant stepValue() const override;
27 QVariant value() const override;
28 QString valueAsString() const override;
29
30public Q_SLOTS:
31 bool setValue(const QVariant &value) override;
32
33private:
34 int m_iVal = 0;
35};
36
37} // namespace KSaneCore
38
39#endif // KSANE_INTEGER_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 Mon Nov 18 2024 12:17:19 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.