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