summaryrefslogtreecommitdiff
path: root/src/plugins/rplugininterface.hpp
blob: 0a12e3aa4371527e28525c681e424f0a2868870c (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
26
27
/* ============================================================
 *     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 "rsettings.hpp"
#include "rview.hpp"
#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)