2021-01-15 21:07:23 +08:00
|
|
|
#include "qtcommon.h"
|
2020-10-14 08:37:03 +08:00
|
|
|
#include "network.h"
|
|
|
|
|
2021-01-15 21:07:23 +08:00
|
|
|
namespace DevTools
|
|
|
|
{
|
|
|
|
void Start(const std::wstring& path, std::function<void(QString)> statusChanged, bool headless, int port);
|
|
|
|
void Close();
|
|
|
|
bool Connected();
|
|
|
|
JSON::Value<wchar_t> SendRequest(const std::wstring& method, const std::wstring& params = L"{}");
|
|
|
|
void StartListening(const std::wstring& method);
|
|
|
|
std::vector<JSON::Value<wchar_t>> ListenResults(const std::wstring& method);
|
|
|
|
void StopListening(const std::wstring& method);
|
|
|
|
}
|