Messagelib

scamexpandurljob.h
1 /*
2  SPDX-FileCopyrightText: 2016-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 #include <QNetworkReply>
12 #include <QObject>
13 namespace MessageViewer
14 {
15 class ScamExpandUrlJobPrivate;
16 /**
17  * @brief The ScamExpandUrlJob class
18  * @author Laurent Montel <[email protected]>
19  */
20 class MESSAGEVIEWER_EXPORT ScamExpandUrlJob : public QObject
21 {
22  Q_OBJECT
23 public:
24  explicit ScamExpandUrlJob(QObject *parent = nullptr);
25  ~ScamExpandUrlJob() override;
26 
27  void expandedUrl(const QUrl &url);
28 Q_SIGNALS:
29  void urlExpanded(const QString &shortUrl, const QString &expandedUrl);
30  void expandUrlError(QNetworkReply::NetworkError error);
31 
32 private:
33  MESSAGEVIEWER_NO_EXPORT void slotError(QNetworkReply::NetworkError error);
34  MESSAGEVIEWER_NO_EXPORT void slotExpandFinished(QNetworkReply *reply);
35 
36 private:
37  std::unique_ptr<ScamExpandUrlJobPrivate> const d;
38 };
39 }
The ScamExpandUrlJob class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Oct 3 2023 03:53:48 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.