diff options
author | aqua <aqua@iserlohn-fortress.net> | 2022-08-27 15:27:37 +0300 |
---|---|---|
committer | aqua <aqua@iserlohn-fortress.net> | 2022-08-27 15:35:38 +0300 |
commit | a7465aa35b4efd3bfc4bbd9be4d1572d25a05bb2 (patch) | |
tree | 9dfa5112b52705ae4f0e04f1e43b0307a7806f5a /src/plugins | |
parent | Add CMakePresets.json (diff) | |
download | rekonq-a7465aa35b4efd3bfc4bbd9be4d1572d25a05bb2.tar.xz |
Rename rView to RekonqView
- move rview.hpp to include/
- move src/mainwindow/* to src/
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/rplugininterface.hpp | 8 | ||||
-rw-r--r-- | src/plugins/rview.hpp | 27 |
2 files changed, 5 insertions, 30 deletions
diff --git a/src/plugins/rplugininterface.hpp b/src/plugins/rplugininterface.hpp index 16186591..e45f2422 100644 --- a/src/plugins/rplugininterface.hpp +++ b/src/plugins/rplugininterface.hpp @@ -9,15 +9,17 @@ #pragma once -#include "rview.hpp" #include <QtPlugin> +#include <rsettings.hpp> +#include <rview.hpp> class RekonqPluginInterface : public QObject { Q_OBJECT public: - virtual rView *view(const QUrl &url) = 0; + virtual void init(RekonqSettings *settings) = 0; + virtual RekonqView *view(const QUrl &url) = 0; }; -#define RekonqPluginInterface_iid "rekonq.3.RekongPluginInterface" +#define RekonqPluginInterface_iid "net.rekonq.3.RekonqPluginInterface/1" Q_DECLARE_INTERFACE(RekonqPluginInterface, RekonqPluginInterface_iid) diff --git a/src/plugins/rview.hpp b/src/plugins/rview.hpp deleted file mode 100644 index 6f0652d5..00000000 --- a/src/plugins/rview.hpp +++ /dev/null @@ -1,27 +0,0 @@ -/* ============================================================ - * The rekonq project - * ============================================================ - * SPDX-License-Identifier: GPL-3.0-only - * Copyright (C) 2022 aqua <aqua@iserlohn-fortress.net> - * ============================================================ - * Description: View Interface - * ============================================================ */ - -#pragma once - -#include <QUrl> -#include <QWidget> - -class rView : public QWidget { - Q_OBJECT - -public: - explicit rView(const QUrl &url = QUrl(), QWidget *parent = nullptr) : QWidget(parent) {} - - [[nodiscard]] virtual QString title() const = 0; - -signals: - void iconChanged(const QIcon &); - void urlChanged(const QUrl &); - void titleChanged(const QString &); -}; |