bigsnitch/proxyhandler.cpp

15 lines
264 B
C++
Raw Normal View History

#include "proxyhandler.h"
2021-01-09 10:17:50 +00:00
bool http::ProxyHandler::loadPlugin(QObject *proxy)
{
2021-01-09 10:17:50 +00:00
auto inst = qobject_cast<ProxyInterface*>(proxy);
if(!inst) {
return false;
}
2021-03-03 16:12:12 +00:00
qDebug("loading proxy");
proxies.insert({"foo", inst});
2021-01-09 10:17:50 +00:00
return true;
}