KNewStuff

searchpreset.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 "searchpreset.h"
8
9using namespace KNSCore;
10
11class KNSCore::SearchPresetPrivate
12{
13public:
14 SearchRequest request;
15 QString displayName;
16 QString iconName;
18 QString providerId; // not all providers can handle all search requests.
19};
20
21KNSCore::SearchPreset::SearchPreset(SearchPresetPrivate *dptr)
22 : d(dptr)
23{
24}
25
26SearchRequest KNSCore::SearchPreset::request() const
27{
28 return d->request;
29}
30
31QString KNSCore::SearchPreset::displayName() const
32{
33 return d->displayName;
34}
35
36QString KNSCore::SearchPreset::iconName() const
37{
38 return d->iconName;
39}
40
41KNSCore::SearchPreset::Type KNSCore::SearchPreset::type() const
42{
43 return d->type;
44}
45
46QString KNSCore::SearchPreset::providerId() const
47{
48 return d->providerId;
49}
Type
The SearchPresetTypes enum the preset type enum is a helper to identify the kind of label and icon th...
A search request.
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.