Messagelib

backoffmodemanager.h
1/*
2 SPDX-FileCopyrightText: 2016-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "webengineviewer_export.h"
10#include <QObject>
11#include <memory>
12namespace WebEngineViewer
13{
14class BackOffModeManagerPrivate;
15// https://developers.google.com/safe-browsing/v4/request-frequency
16/**
17 * @brief The BackOffModeManager class
18 * @author Laurent Montel <montel@kde.org>
19 */
20class WEBENGINEVIEWER_EXPORT BackOffModeManager : public QObject
21{
22public:
23 explicit BackOffModeManager(QObject *parent = nullptr);
24 ~BackOffModeManager() override;
25
26 static BackOffModeManager *self();
27 [[nodiscard]] bool isInBackOffMode() const;
28
29 void startOffMode();
30
31 [[nodiscard]] int numberOfHttpFailed() const;
32
33 void slotTimerFinished();
34
35private:
36 std::unique_ptr<BackOffModeManagerPrivate> const d;
37};
38}
The BackOffModeManager class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:08:46 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.