diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/browserinterface.h | 21 | ||||
-rw-r--r-- | include/plugininterface.h | 6 |
2 files changed, 0 insertions, 27 deletions
diff --git a/include/browserinterface.h b/include/browserinterface.h deleted file mode 100644 index 4cdc63b..0000000 --- a/include/browserinterface.h +++ /dev/null @@ -1,21 +0,0 @@ -/* - * This file is part of smolbote. It's copyrighted by the contributors recorded - * in the version control history of the file, available from its original - * location: https://neueland.iserlohn-fortress.net/gitea/aqua/smolbote - * - * SPDX-License-Identifier: MIT - */ - -#pragma once - -class Profile; -class BrowserInterface -{ -public: - virtual ~BrowserInterface() = default; - - // profile access - virtual const QList<QPair<QString, Profile *>> profileList() const = 0; - virtual QPair<QString, Profile *> loadProfile(const QString &id, bool isOffTheRecord = true) = 0; - virtual void removeProfile(const QString &id) = 0; -}; diff --git a/include/plugininterface.h b/include/plugininterface.h index 103ee62..6da417c 100644 --- a/include/plugininterface.h +++ b/include/plugininterface.h @@ -12,7 +12,6 @@ #include <QHash> #include <memory> #include <functional> -#include "browserinterface.h" #include <QApplication> typedef QHash<QString, std::function<int()>> CommandHash_t; @@ -24,11 +23,6 @@ public: virtual ~PluginInterface() = default; virtual CommandHash_t commands() = 0; virtual QDialog *createWidget(QWidget *parent = nullptr) const = 0; - -protected: - BrowserInterface *browser() const { - return dynamic_cast<BrowserInterface *>(qApp); - } }; #define PluginInterfaceIid "net.iserlohn-fortress.smolbote.PluginInterface" |