aboutsummaryrefslogtreecommitdiffstats
path: root/src/daemon_clients/squishidehandler.h
blob: a17b2db6920d2a1101eef0a0de35f0984c7141d7 (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 SquishIdeHandler : public ClientHandler {

    public:
        SquishIdeHandler(const RequestInfo &request, const LicdSetup &settings)
                : ClientHandler(request, settings)
        {
            m_updateInterval = utils::strToInt(m_settings.get("squish_report_interval"));
            m_request.operation = OP_ADD_RESERVATION;
        }

        bool isLicenseRequestDue() override { return true; }
		bool isCachedReservationValid(std::string &reply) override {return true;}
        void buildRequestJson() override {return;}
		int parseAndSaveResponse(std::string &response) override { return 0; }
        void release() override
        {
            // TODO
            return;
        };
};