KSaneCore

batchdelayoption.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_DELAY_OPTION_H
8#define KSANE_DELAY_OPTION_H
9
10#include "baseoption.h"
11#include "option.h"
12
13namespace KSaneCore
14{
15
16static const QString BatchDelayOptionName = QStringLiteral("KSane::BatchTimeDelay");
17
18class BatchDelayOption : public BaseOption
19{
21
22public:
23 BatchDelayOption();
24
25 Option::OptionState state() const override;
26 QString name() const override;
27 QString title() const override;
28 QString description() const override;
29
30 QVariant minimumValue() const override;
31 QVariant maximumValue() const override;
32 QVariant stepValue() const override;
33 QVariant value() const override;
34 QString valueAsString() const override;
35 Option::OptionUnit valueUnit() const override;
36
37public Q_SLOTS:
38 bool setValue(const QVariant &value) override;
39
40private:
41 Option::OptionState m_state = Option::StateHidden;
42 int m_delayValue = 10;
43};
44
45} // NameSpace KSaneCore
46
47#endif // KSANE_DELAY_OPTION_H
OptionState
This enumeration describes the current statue of the value of the option, indicating if this option s...
Definition option.h:46
OptionUnit
This enumeration describes the unit of the value of the option, if any.
Definition option.h:40
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:19:34 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.