aboutsummaryrefslogtreecommitdiffstats
path: root/src/daemon_clients/cocohandler.h
blob: d25b36c7594e454500f668f180ee904f7fcb55a8 (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
/* 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;
        };

};