File indexing completed on 2024-12-08 07:19:38

0001 /*
0002  * SPDX-FileCopyrightText: 2009 Kare Sars <kare dot sars at iki dot fi>
0003  * SPDX-FileCopyrightText: 2014 Gregor Mitsch : port to KDE5 frameworks
0004  *
0005  * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0006  */
0007 
0008 #include "actionoption.h"
0009 
0010 #include <ksanecore_debug.h>
0011 
0012 namespace KSaneCore
0013 {
0014 
0015 ActionOption::ActionOption(const SANE_Handle handle, const int index)
0016     : BaseOption(handle, index)
0017 {
0018     m_optionType = Option::TypeAction;
0019 }
0020 
0021 bool ActionOption::setValue(const QVariant &)
0022 {
0023     unsigned char data[4];
0024     writeData(data);
0025     return true;
0026 }
0027 
0028 } // namespace KSaneCore
0029 
0030 #include "moc_actionoption.cpp"