bigsnitch/proxyhandler.h

25 lines
398 B
C
Raw Normal View History

#pragma once
#include <include/api.h>
#include <include/proxyinterface.h>
2021-01-09 10:17:50 +00:00
#include <QObject>
2021-01-09 10:17:50 +00:00
namespace http {
2021-03-20 21:56:03 +00:00
class ProxyHandler : public QObject
{
2021-03-20 21:56:03 +00:00
Q_OBJECT
2021-01-09 10:17:50 +00:00
private:
2021-03-20 21:56:03 +00:00
std::map<QString, std::pair<ProxyInterface*, QThread*>> proxies;
public:
2021-01-09 10:17:50 +00:00
bool loadPlugin(QObject *proxy);
2021-03-03 16:12:12 +00:00
QStringList getProxies();
2021-03-20 21:56:03 +00:00
signals:
void error(QString err);
void message(http::Flow flow);
};
2021-01-09 10:17:50 +00:00
}