Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Graphics
libksane
Commits
0965a683
Commit
0965a683
authored
May 14, 2021
by
Alexander Stippich
Browse files
provide a stub implementation of ksaneoption for twain
parent
b7d17f02
Changes
2
Hide whitespace changes
Inline
Side-by-side
ksanetwain/CMakeLists.txt
View file @
0965a683
...
...
@@ -11,7 +11,8 @@ set(ktwain_src
twainiface.cpp
ktwain_widget.cpp
../src/ksanewidget.h
../src/ksaneoption.cpp
../src/ksaneoption.h
ksaneoption.cpp
)
add_library
(
KF5Sane
${
ktwain_src
}
)
...
...
ksanetwain/ksaneoption.cpp
0 → 100644
View file @
0965a683
/* ============================================================
*
* SPDX-FileCopyrightText: 2014 Gregor Mitsch : port to KDE5 frameworks
*
* SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*
* ============================================================ */
#include "ksaneoption.h"
namespace
KSaneIface
{
class
KSaneOptionPrivate
{
}
KSaneOption
::
KSaneOption
(
QObject
*
parent
)
:
QObject
(
parent
),
d
(
std
::
unique_ptr
<
KSaneOptionPrivate
>
(
new
KSaneOptionPrivate
()))
{
}
KSaneOption
::~
KSaneOption
()
=
default
;
KSaneOption
::
KSaneOptionState
KSaneOption
::
state
()
const
{
return
StateDisabled
;
}
QString
KSaneOption
::
name
()
const
{
return
QString
();
}
QString
KSaneOption
::
title
()
const
{
return
QString
();
}
QString
KSaneOption
::
description
()
const
{
return
QString
();
}
KSaneOption
::
KSaneOptionType
KSaneOption
::
type
()
const
{
return
TypeDetectFail
;
}
QVariant
KSaneOption
::
minimumValue
()
const
{
return
QVariant
();
}
QVariant
KSaneOption
::
maximumValue
()
const
{
return
QVariant
();
}
QVariant
KSaneOption
::
stepValue
()
const
{
return
QVariant
();
}
QVariantList
KSaneOption
::
valueList
()
const
{
return
QVariantList
();
}
QVariant
KSaneOption
::
value
()
const
{
return
QVariant
();
}
KSaneOption
::
KSaneOptionUnit
KSaneOption
::
valueUnit
()
const
{
return
UnitNone
;
}
int
KSaneOption
::
valueSize
()
const
{
return
0
;
}
bool
KSaneOption
::
setValue
(
const
QVariant
&
value
)
{
return
false
;
}
bool
KSaneOption
::
storeCurrentData
()
{
return
false
;
}
bool
KSaneOption
::
restoreSavedData
()
{
return
false
;
}
}
// NameSpace KSaneIface
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment