doxygen support added, mitmproxy plugin migration started
This commit is contained in:
parent
ff5081e8cf
commit
44709f0498
17 changed files with 180 additions and 170 deletions
|
|
@ -7,6 +7,7 @@
|
|||
#include <algorithm>
|
||||
#include <string>
|
||||
|
||||
//! represents one item in the http history.
|
||||
struct HistoryItem {
|
||||
int id = -1;
|
||||
double timestamp = 0;
|
||||
|
|
|
|||
33
include/proxyinterface.h
Normal file
33
include/proxyinterface.h
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
#pragma once
|
||||
|
||||
#include "include/api.h"
|
||||
#include <QObject>
|
||||
|
||||
namespace http {
|
||||
|
||||
#define HTTPProxyInterfaceIID "bigsnitch.api.HTTPProxyInterface/100"
|
||||
|
||||
//! Interface for implementing proxies
|
||||
/*!
|
||||
Interface for implementing proxies
|
||||
*/
|
||||
class ProxyInterface {
|
||||
|
||||
public:
|
||||
virtual ~ProxyInterface() = default;
|
||||
//! called in a custom thread, may block.
|
||||
virtual void process(std::string path) = 0;
|
||||
//! returns, whether the proxy is currently connected
|
||||
virtual bool connected() = 0;
|
||||
//! disconnects the handle
|
||||
virtual void disconnect() = 0;
|
||||
// options/settings
|
||||
signals:
|
||||
void finished();
|
||||
void error(QString err);
|
||||
void message(http::Flow flow);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Q_DECLARE_INTERFACE(http::ProxyInterface, HTTPProxyInterfaceIID)
|
||||
Loading…
Add table
Add a link
Reference in a new issue