aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/qlicenseservice/httpclient.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/qlicenseservice/httpclient.h')
-rw-r--r--src/libs/qlicenseservice/httpclient.h16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/libs/qlicenseservice/httpclient.h b/src/libs/qlicenseservice/httpclient.h
index 13d2478..9df41c6 100644
--- a/src/libs/qlicenseservice/httpclient.h
+++ b/src/libs/qlicenseservice/httpclient.h
@@ -38,22 +38,16 @@ struct HttpRequest {
class HttpClient
{
public:
- explicit HttpClient(const std::string &serverUrl,
- const std::string &requestAccessPoint,
- const std::string &permanentccessPoint,
- const std::string &versionAccessPoint);
+ explicit HttpClient(const std::string &serverUrl);
+
~HttpClient() {}
- int sendRequest(std::string &reply, const std::string &payload,
- const std::string &server, const std::string &authKey="");
- std::string error() { return m_lastError; }
+ int sendAndReceive(std::string &reply, const std::string &payload,
+ const std::string &accessPoint, const std::string &server,
+ const std::string &authKey="");
private:
std::string m_serverUrl;
- std::string m_requestAccessPoint;
- std::string m_permanentAccessPoint;
- std::string m_versionAccessPoint;
std::string m_userAgent = "License daemon / ";
- std::string m_lastError;
int doRequest(CURL *curl, HttpRequest &request);
};