File indexing completed on 2024-04-14 14:35:51

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 #ifndef KODASKANNA_ABSTRACTDISPLAYTOOL_HPP
0008 #define KODASKANNA_ABSTRACTDISPLAYTOOL_HPP
0009 
0010 // Qt
0011 #include <QObject>
0012 
0013 class QWidget;
0014 
0015 namespace Kodaskanna
0016 {
0017 class ScanResult;
0018 
0019 class AbstractDisplayTool : public QObject
0020 {
0021     Q_OBJECT
0022 
0023 public:
0024     explicit AbstractDisplayTool(QObject *parent = nullptr);
0025 
0026     ~AbstractDisplayTool() override;
0027 
0028 public: // API to implement
0029     virtual void setScanResult(const ScanResult &scanResult) = 0;
0030     virtual QWidget *widget() = 0;
0031 
0032 private:
0033 };
0034 
0035 }
0036 
0037 #endif