Messagelib

scamcheckshorturlmanager.cpp
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#include "scamcheckshorturlmanager.h"
9#include "scamcheckshorturl.h"
10
11using namespace MessageViewer;
12
13class MessageViewer::ScamCheckShortUrlManagerPrivate
14{
15public:
16 ScamCheckShortUrlManagerPrivate() = default;
17
18 ScamCheckShortUrl *mCheckShortUrl = nullptr;
19};
20
21ScamCheckShortUrlManager::ScamCheckShortUrlManager(QObject *parent)
22 : QObject(parent)
23 , d(new ScamCheckShortUrlManagerPrivate)
24{
25 d->mCheckShortUrl = new ScamCheckShortUrl(this);
26}
27
28ScamCheckShortUrlManager::~ScamCheckShortUrlManager() = default;
29
30ScamCheckShortUrlManager *ScamCheckShortUrlManager::self()
31{
33 return &s_self;
34}
35
36ScamCheckShortUrl *ScamCheckShortUrlManager::scamCheckShortUrl() const
37{
38 return d->mCheckShortUrl;
39}
40
41#include "moc_scamcheckshorturlmanager.cpp"
The ScamCheckShortUrlManager class.
The ScamCheckShortUrl class.
T qobject_cast(QObject *object)
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.