#include "proxyhandler.h" bool http::ProxyHandler::loadPlugin(QObject *proxy) { auto inst = qobject_cast(proxy); if(!inst) { return false; } qDebug("loading proxy"); proxies.insert({"foo", inst}); return true; }