KNewStuff

providercore.cpp
1// SPDX-License-Identifier: LGPL-2.1-or-later
2// SPDX-FileCopyrightText: 2009 Jeremy Whiting <jpwhiting@kde.org>
3// SPDX-FileCopyrightText: 2009 Frederik Gladhorn <gladhorn@kde.org>
4// SPDX-FileCopyrightText: 2021 Dan Leinir Turthra Jensen <admin@leinir.dk>
5// SPDX-FileCopyrightText: 2024 Harald Sitter <sitter@kde.org>
6
7#include "providercore.h"
8
9#include "providerbase_p.h"
10
11using namespace KNSCore;
12
13class KNSCore::ProviderCorePrivate
14{
15public:
16 ProviderBase *base;
17};
18
19KNSCore::ProviderCore::ProviderCore(ProviderBase *base, QObject *parent)
20 : QObject(parent)
21 , d(new ProviderCorePrivate{.base = [this, base] {
22 connect(base, &ProviderBase::basicsLoaded, this, &ProviderCore::basicsLoaded);
23 base->setParent(this);
24 return base;
25 }()})
26{
27}
28
29KNSCore::ProviderCore::~ProviderCore() = default;
30
31QString KNSCore::ProviderCore::version() const
32{
33 return d->base->version();
34}
35
36QUrl KNSCore::ProviderCore::website() const
37{
38 return d->base->website();
39}
40
41QUrl KNSCore::ProviderCore::host() const
42{
43 return d->base->host();
44}
45
46QString KNSCore::ProviderCore::contactEmail() const
47{
48 return d->base->contactEmail();
49}
50
51bool KNSCore::ProviderCore::supportsSsl() const
52{
53 return d->base->supportsSsl();
54}
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
QString host(ComponentFormattingOptions options) const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:20:03 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.