File indexing completed on 2025-03-09 04:54:38
0001 /* 0002 SPDX-FileCopyrightText: 2013-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 0006 */ 0007 0008 #pragma once 0009 0010 #include "messageviewer_export.h" 0011 0012 #include <QObject> 0013 #include <QStringList> 0014 #include <QUrl> 0015 0016 namespace MessageViewer 0017 { 0018 /** 0019 * @brief The ScamCheckShortUrl class 0020 * @author Laurent Montel <montel@kde.org> 0021 */ 0022 class MESSAGEVIEWER_EXPORT ScamCheckShortUrl : public QObject 0023 { 0024 Q_OBJECT 0025 public: 0026 explicit ScamCheckShortUrl(QObject *parent = nullptr); 0027 ~ScamCheckShortUrl() override; 0028 0029 [[nodiscard]] static bool isShortUrl(const QUrl &url); 0030 0031 void expandedUrl(const QUrl &url); 0032 0033 static void loadLongUrlServices(); 0034 0035 private: 0036 static QStringList sSupportedServices; 0037 }; 0038 }