Messagelib

scamcheckshorturl.h
1 /*
2  SPDX-FileCopyrightText: 2013-2023 Laurent Montel <[email protected]>
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 
16 namespace MessageViewer
17 {
18 /**
19  * @brief The ScamCheckShortUrl class
20  * @author Laurent Montel <[email protected]>
21  */
22 class MESSAGEVIEWER_EXPORT ScamCheckShortUrl : public QObject
23 {
24  Q_OBJECT
25 public:
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 
35 private:
36  static QStringList sSupportedServices;
37 };
38 }
The ScamCheckShortUrl class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Dec 8 2023 03:55:34 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.