summaryrefslogtreecommitdiff
path: root/src/plugins/rplugininterface.hpp
blob: e45f24227a54fbbd448490dea80724be8af553e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* ============================================================
 *     The rekonq project
 * ============================================================
 * SPDX-License-Identifier: GPL-3.0-only
 * Copyright (C) 2022 aqua <aqua@iserlohn-fortress.net>
 * ============================================================
 * Description: rekonq plugin interface
 * ============================================================ */

#pragma once

#include <QtPlugin>
#include <rsettings.hpp>
#include <rview.hpp>

class RekonqPluginInterface : public QObject {
  Q_OBJECT

public:
  virtual void init(RekonqSettings *settings) = 0;
  virtual RekonqView *view(const QUrl &url) = 0;
};

#define RekonqPluginInterface_iid "net.rekonq.3.RekonqPluginInterface/1"
Q_DECLARE_INTERFACE(RekonqPluginInterface, RekonqPluginInterface_iid)