KSaneCore

stringoption.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_STRING_OPTION_H
8#define KSANE_STRING_OPTION_H
9
10#include "baseoption.h"
11
12namespace KSaneCore
13{
14
15class StringOption : public BaseOption
16{
18
19public:
20 StringOption(const SANE_Handle handle, const int index);
21
22 void readValue() override;
23
24 QVariant value() const override;
25 int valueSize() const override;
26 QString valueAsString() const override;
27
28public Q_SLOTS:
29 bool setValue(const QVariant &val) override;
30
31private:
32 QString m_string;
33};
34
35} // namespace KSaneCore
36
37#endif // KSANE_STRING_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 Fri May 24 2024 11:49:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.