Messagelib

scamcheckshorturl.h
1/*
2 SPDX-FileCopyrightText: 2013-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5
6*/
7
8#pragma once
9
10#include "messageviewer_export.h"
11
12#include <QObject>
13#include <QStringList>
14#include <QUrl>
15
16namespace MessageViewer
17{
18/**
19 * @brief The ScamCheckShortUrl class
20 * @author Laurent Montel <montel@kde.org>
21 */
22class MESSAGEVIEWER_EXPORT ScamCheckShortUrl : public QObject
23{
24 Q_OBJECT
25public:
26 explicit ScamCheckShortUrl(QObject *parent = nullptr);
27 ~ScamCheckShortUrl() override;
28
29 [[nodiscard]] static bool isShortUrl(const QUrl &url);
30
31 void expandedUrl(const QUrl &url);
32
33 static void loadLongUrlServices();
34
35private:
36 static QStringList sSupportedServices;
37};
38}
The ScamCheckShortUrl class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 3 2024 11:43:26 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.