Messagelib

checkphishingurlutil.h
1 /*
2  SPDX-FileCopyrightText: 2016-2021 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 { Ok = 0, MalWare = 1, BrokenNetwork = 2, InvalidUrl = 3, Unknown = 4 };
17 
18 Q_REQUIRED_RESULT QString apiKey();
19 WEBENGINEVIEWER_EXPORT Q_REQUIRED_RESULT QString versionApps();
20 Q_REQUIRED_RESULT QString databaseFileName();
21 WEBENGINEVIEWER_EXPORT Q_REQUIRED_RESULT QString configFileName();
22 WEBENGINEVIEWER_EXPORT Q_REQUIRED_RESULT quint16 minorVersion();
23 WEBENGINEVIEWER_EXPORT Q_REQUIRED_RESULT quint16 majorVersion();
24 WEBENGINEVIEWER_EXPORT Q_REQUIRED_RESULT double convertToSecond(const QString &str);
25 WEBENGINEVIEWER_EXPORT uint refreshingCacheAfterThisTime(double seconds);
26 WEBENGINEVIEWER_EXPORT Q_REQUIRED_RESULT bool cachedValueStillValid(uint seconds);
27 WEBENGINEVIEWER_EXPORT Q_REQUIRED_RESULT int generateRandomSecondValue(int numberOfFailed);
28 }
29 }
30 Q_DECLARE_METATYPE(WebEngineViewer::CheckPhishingUrlUtil::UrlStatus)
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Fri Nov 26 2021 23:16:41 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.