Messagelib

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

KDE's Doxygen guidelines are available online.