aboutsummaryrefslogtreecommitdiffstats
path: root/src/daemon_clients/cocohandler.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon_clients/cocohandler.h')
-rw-r--r--src/daemon_clients/cocohandler.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/daemon_clients/cocohandler.h b/src/daemon_clients/cocohandler.h
new file mode 100644
index 0000000..d25b36c
--- /dev/null
+++ b/src/daemon_clients/cocohandler.h
@@ -0,0 +1,28 @@
+/* Copyright (C) 2022 The Qt Company Ltd.
+ *
+ * SPDX-License-Identifier: GPL-3.0-only WITH Qt-GPL-exception-1.0
+*/
+#pragma once
+
+#include "clienthandler.h"
+
+class CocoHandler : public ClientHandler {
+
+ public:
+ CocoHandler(const RequestInfo &request, const LicdSetup &settings)
+ : ClientHandler(request, settings)
+ {
+ m_updateInterval = utils::strToInt(m_settings.get("coco_report_interval"));
+ }
+
+ bool isLicenseRequestDue() override { return true; }
+ bool isCachedReservationValid(std::string &reply) override {return true;}
+ int parseAndSaveResponse(std::string &response) override { return 0; }
+ void buildRequestJson() override {return;}
+ void release() override
+ {
+ // TODO
+ return;
+ };
+
+}; \ No newline at end of file