KNewStuff

providerbase.cpp
1// SPDX-License-Identifier: LGPL-2.1-or-later
2// SPDX-FileCopyrightText: 2002 Cornelius Schumacher <schumacher@kde.org>
3// SPDX-FileCopyrightText: 2009 Jeremy Whiting <jpwhiting@kde.org>
4// SPDX-FileCopyrightText: 2009 Frederik Gladhorn <gladhorn@kde.org>
5// SPDX-FileCopyrightText: 2021 Dan Leinir Turthra Jensen <admin@leinir.dk>
6// SPDX-FileCopyrightText: 2024 Harald Sitter <sitter@kde.org>
7
8#include "providerbase_p.h"
9
10#include <QTimer>
11
12namespace KNSCore
13{
14
15ProviderBase::ProviderBase(QObject *parent)
16 : QObject(parent)
17 , d(new ProviderBasePrivate(this))
18{
19}
20
21void ProviderBase::setTagFilter(const QStringList &tagFilter)
22{
23 d->tagFilter = tagFilter;
24 Q_EMIT tagFilterChanged();
25}
26
27QStringList ProviderBase::tagFilter() const
28{
29 return d->tagFilter;
30}
31
32void ProviderBase::setDownloadTagFilter(const QStringList &downloadTagFilter)
33{
34 d->downloadTagFilter = downloadTagFilter;
35 Q_EMIT downloadTagFilterChanged();
36}
37
38QStringList ProviderBase::downloadTagFilter() const
39{
40 return d->downloadTagFilter;
41}
42
43} // namespace KNSCore
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:02:29 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.