File indexing completed on 2025-01-05 04:49:28
0001 /* 0002 SPDX-FileCopyrightText: 2015-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include "shorturl_export.h" 0010 #include <QObject> 0011 class ShortUrlEnginePluginPrivate; 0012 class ShortUrlEngineInterface; 0013 class SHORTURL_EXPORT ShortUrlEnginePlugin : public QObject 0014 { 0015 Q_OBJECT 0016 public: 0017 explicit ShortUrlEnginePlugin(QObject *parent = nullptr); 0018 ~ShortUrlEnginePlugin() override; 0019 virtual ShortUrlEngineInterface *createInterface(QObject *parent) = 0; 0020 virtual QString engineName() const = 0; 0021 QString pluginName() const; 0022 void setPluginName(const QString &pluginname); 0023 0024 private: 0025 QString mName; 0026 };