blob: 54fa49b195fe4ee29d134cb4cb7df7ff7a70a11d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
/* 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"));
m_floatingLicense = true;
}
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 prepareRelease() override
{
// TODO
return;
};
};
|