2021-01-06 21:43:48 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <include/api.h>
|
|
|
|
#include <include/proxyinterface.h>
|
2021-01-09 10:17:50 +00:00
|
|
|
#include <QObject>
|
2021-01-06 21:43:48 +00:00
|
|
|
|
2021-01-09 10:17:50 +00:00
|
|
|
namespace http {
|
|
|
|
|
|
|
|
class ProxyHandler
|
2021-01-06 21:43:48 +00:00
|
|
|
{
|
2021-01-09 10:17:50 +00:00
|
|
|
private:
|
2021-03-19 16:40:33 +00:00
|
|
|
std::map<std::string, ProxyInterface*, QThread*> proxies;
|
2021-01-06 21:43:48 +00:00
|
|
|
public:
|
2021-01-09 10:17:50 +00:00
|
|
|
bool loadPlugin(QObject *proxy);
|
2021-03-03 16:12:12 +00:00
|
|
|
QStringList getProxies();
|
2021-01-06 21:43:48 +00:00
|
|
|
};
|
2021-01-09 10:17:50 +00:00
|
|
|
|
|
|
|
}
|