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