File indexing completed on 2024-09-15 09:42:07
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_ABSTRACTSOURCETOOL_HPP 0008 #define KODASKANNA_ABSTRACTSOURCETOOL_HPP 0009 0010 // Qt 0011 #include <QObject> 0012 0013 class QWidget; 0014 class QUrl; 0015 0016 namespace Kodaskanna 0017 { 0018 class ScanResult; 0019 0020 class AbstractSourceTool : public QObject 0021 { 0022 Q_OBJECT 0023 0024 public: 0025 explicit AbstractSourceTool(QObject *parent = nullptr); 0026 0027 ~AbstractSourceTool() override; 0028 0029 public: // API to implement 0030 virtual void setOrigin(const QUrl &origin) = 0; 0031 virtual QWidget *widget() = 0; 0032 0033 Q_SIGNALS: 0034 void scanFinished(const ScanResult &scanResult); 0035 0036 private: 0037 }; 0038 0039 } 0040 0041 #endif