Messagelib

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

KDE's Doxygen guidelines are available online.