bigsnitch/include/httpsender.h
2021-01-02 00:19:42 +01:00

21 lines
437 B
C++

#pragma once
#include <include/api.h>
#include <QObject>
namespace http {
#define HTTPSenderInterfaceIID "bigsnitch.api.HTTPSenderInterface/100"
class SenderInterface {
public:
virtual ~SenderInterface() = default;
virtual int send(http::Request request);
virtual bool received(int id);
virtual std::optional<http::Response> receive(int id);
};
}
Q_DECLARE_INTERFACE(http::SenderInterface, HTTPSenderInterfaceIID)