File indexing completed on 2024-04-28 04:20:03

0001 /*
0002     SPDX-FileCopyrightText: 2022 Friedrich W. H. Kossebau <kossebau@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.1-or-later
0005 */
0006 
0007 #include "scanresult.hpp"
0008 #include "scanresult_p.hpp"
0009 
0010 namespace Kodaskanna
0011 {
0012 
0013 ScanResult::ScanResult()
0014     : d(new ScanResultPrivate)
0015 {
0016 }
0017 
0018 ScanResult::ScanResult(const ScanResult &other) = default;
0019 
0020 ScanResult::ScanResult(ScanResultPrivate *dd)
0021     : d(dd)
0022 {
0023 }
0024 
0025 ScanResult::~ScanResult() = default;
0026 
0027 ScanResult &ScanResult::operator=(const ScanResult &other)
0028 {
0029     d = other.d;
0030     return *this;
0031 }
0032 
0033 bool ScanResult::isSuccess() const
0034 {
0035     return d->isSuccess;
0036 }
0037 
0038 const QString &ScanResult::text() const
0039 {
0040     return d->text;
0041 }
0042 
0043 const QByteArray &ScanResult::bytes() const
0044 {
0045     return d->bytes;
0046 }
0047 
0048 }