forked from Qv2ray/QvPlugin-Trojan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTrojanPlugin.cpp
31 lines (27 loc) · 989 Bytes
/
TrojanPlugin.cpp
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
#include "TrojanPlugin.hpp"
#include "core/Kernel.hpp"
#include "ui/UIInterface.hpp"
#include <QDateTime>
#include <QMetaEnum>
bool TrojanPlugin::InitializePlugin(const QString &, const QJsonObject &settings)
{
this->settings = settings;
outboundHandler = std::make_shared<TrojanOutboundHandler>();
eventHandler = std::make_shared<TrojanEventHandler>();
kernelInterface = std::make_shared<KernelInterface>();
guiInterface = new TrojanGUIInterface();
return true;
}
// std::unique_ptr<QWidget> TrojanPlugin::GetSettingsWidget()
//{
// auto t = std::make_unique<QTextBrowser>();
// t->setText("Qv2ray-Trojan plugin was ported from the Trojan-Qt5:"
// "\r\n"
// "Credits should also be given to @TheWanderingCoel"
// "\r\n"
// "\r\n"
// "Go and check more about Trojan-Qt5: "
// "\r\n"
// "https://github.com/TheWanderingCoel/Trojan-Qt5");
// return t;
//}