Messagelib

checkphishingurlutil.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 <QString>
12namespace WebEngineViewer
13{
14namespace CheckPhishingUrlUtil
15{
16enum UrlStatus {
17 Ok = 0,
18 MalWare = 1,
19 BrokenNetwork = 2,
20 InvalidUrl = 3,
21 Unknown = 4,
22};
23
24[[nodiscard]] QString apiKey();
25[[nodiscard]] WEBENGINEVIEWER_EXPORT QString versionApps();
26[[nodiscard]] QString databaseFileName();
27[[nodiscard]] WEBENGINEVIEWER_EXPORT QString configFileName();
28[[nodiscard]] WEBENGINEVIEWER_EXPORT quint16 minorVersion();
29[[nodiscard]] WEBENGINEVIEWER_EXPORT quint16 majorVersion();
30[[nodiscard]] WEBENGINEVIEWER_EXPORT double convertToSecond(const QString &str);
31WEBENGINEVIEWER_EXPORT uint refreshingCacheAfterThisTime(double seconds);
32[[nodiscard]] WEBENGINEVIEWER_EXPORT bool cachedValueStillValid(uint seconds);
33[[nodiscard]] WEBENGINEVIEWER_EXPORT int generateRandomSecondValue(int numberOfFailed);
34}
35}
36Q_DECLARE_METATYPE(WebEngineViewer::CheckPhishingUrlUtil::UrlStatus)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:33:26 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.