KSaneCore

actionoption.cpp
1/*
2 * SPDX-FileCopyrightText: 2009 Kare Sars <kare dot sars at iki dot fi>
3 * SPDX-FileCopyrightText: 2014 Gregor Mitsch : port to KDE5 frameworks
4 *
5 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
6 */
7
8#include "actionoption.h"
9
10#include <ksanecore_debug.h>
11
12namespace KSaneCore
13{
14
15ActionOption::ActionOption(const SANE_Handle handle, const int index)
16 : BaseOption(handle, index)
17{
18 m_optionType = Option::TypeAction;
19}
20
21bool ActionOption::setValue(const QVariant &)
22{
23 unsigned char data[4];
24 writeData(data);
25 return true;
26}
27
28} // namespace KSaneCore
29
30#include "moc_actionoption.cpp"
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.