summaryrefslogtreecommitdiff
path: root/include/rview.hpp
diff options
context:
space:
mode:
authoraqua <aqua@iserlohn-fortress.net>2022-08-27 15:27:37 +0300
committeraqua <aqua@iserlohn-fortress.net>2022-08-27 15:35:38 +0300
commita7465aa35b4efd3bfc4bbd9be4d1572d25a05bb2 (patch)
tree9dfa5112b52705ae4f0e04f1e43b0307a7806f5a /include/rview.hpp
parentAdd CMakePresets.json (diff)
downloadrekonq-a7465aa35b4efd3bfc4bbd9be4d1572d25a05bb2.tar.xz
Rename rView to RekonqView
- move rview.hpp to include/ - move src/mainwindow/* to src/
Diffstat (limited to 'include/rview.hpp')
-rw-r--r--include/rview.hpp36
1 files changed, 36 insertions, 0 deletions
diff --git a/include/rview.hpp b/include/rview.hpp
new file mode 100644
index 00000000..46cba67c
--- /dev/null
+++ b/include/rview.hpp
@@ -0,0 +1,36 @@
+/* ============================================================
+ * The rekonq project
+ * ============================================================
+ * SPDX-License-Identifier: GPL-3.0-only
+ * Copyright (C) 2022 aqua <aqua@iserlohn-fortress.net>
+ * ============================================================
+ * Description: rekonq View interface
+ * ============================================================ */
+
+#pragma once
+
+#include <QUrl>
+#include <QWidget>
+
+class RekonqView : public QWidget {
+ Q_OBJECT
+
+public:
+ explicit RekonqView(const QUrl & = QUrl(), QWidget *parent = nullptr) : QWidget(parent) {}
+
+ virtual void load(const QUrl &url) = 0;
+ [[nodiscard]] virtual int progress() const = 0;
+
+ [[nodiscard]] virtual QIcon icon() const = 0;
+ [[nodiscard]] virtual QString title() const = 0;
+ [[nodiscard]] virtual QUrl url() const = 0;
+
+signals:
+ void loadStarted();
+ void loadProgress(int);
+ void loadFinished();
+
+ void iconChanged(const QIcon &);
+ void titleChanged(const QString &);
+ void urlChanged(const QUrl &);
+};