-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathNetfilterPlugin.hpp
More file actions
37 lines (30 loc) · 864 Bytes
/
NetfilterPlugin.hpp
File metadata and controls
37 lines (30 loc) · 864 Bytes
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
28
29
30
31
32
33
34
35
36
37
#pragma once
#include "QvPlugin/PluginInterface.hpp"
#include "core/Settings.hpp"
#include <QObject>
#include <QtPlugin>
using namespace Qv2rayPlugin;
class NetfilterPlugin
: public QObject
, public Qv2rayInterface<NetfilterPlugin>
{
Q_OBJECT
QV2RAY_PLUGIN(NetfilterPlugin)
friend class NetfilterPluginEventHandler;
public:
const QvPluginMetadata GetMetadata() const override
{
return QvPluginMetadata{
"NetFilter Transparent Proxy",
"Community",
PluginId{ "netfilter" },
"A transparent proxy plugin for Qv2ray, uses NetfilterSDK",
QUrl{},
{ Qv2rayPlugin::COMPONENT_EVENT_HANDLER, Qv2rayPlugin::COMPONENT_GUI },
};
}
bool InitializePlugin() override;
void SettingsUpdated() override{};
private:
PluginOptions options;
};