Messagelib

scamcheckshorturlmanager.cpp
1 /*
2  SPDX-FileCopyrightText: 2016-2023 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 
6 */
7 
8 #include "scamcheckshorturlmanager.h"
9 #include "scamcheckshorturl.h"
10 
11 using namespace MessageViewer;
12 
13 class MessageViewer::ScamCheckShortUrlManagerPrivate
14 {
15 public:
16  ScamCheckShortUrlManagerPrivate() = default;
17 
18  ScamCheckShortUrl *mCheckShortUrl = nullptr;
19 };
20 
21 ScamCheckShortUrlManager::ScamCheckShortUrlManager(QObject *parent)
22  : QObject(parent)
23  , d(new ScamCheckShortUrlManagerPrivate)
24 {
25  d->mCheckShortUrl = new ScamCheckShortUrl(this);
26 }
27 
28 ScamCheckShortUrlManager::~ScamCheckShortUrlManager() = default;
29 
30 ScamCheckShortUrlManager *ScamCheckShortUrlManager::self()
31 {
32  static ScamCheckShortUrlManager s_self;
33  return &s_self;
34 }
35 
36 ScamCheckShortUrl *ScamCheckShortUrlManager::scamCheckShortUrl() const
37 {
38  return d->mCheckShortUrl;
39 }
The ScamCheckShortUrlManager class.
The ScamCheckShortUrl class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Mar 27 2023 04:08:18 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.