KIO

searchprovider.h
1/*
2 SPDX-FileCopyrightText: 2000 Malte Starostik <malte@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#ifndef SEARCHPROVIDER_H
8#define SEARCHPROVIDER_H
9
10#include <KUriFilter>
11
12class SearchProvider : public KUriFilterSearchProvider
13{
14public:
15 SearchProvider()
16 : m_dirty(false)
17 , m_isHidden(false)
18 {
19 }
20
21 explicit SearchProvider(const QString &servicePath);
22 ~SearchProvider() override;
23
24 const QString &charset() const
25 {
26 return m_charset;
27 }
28
29 const QString &query() const
30 {
31 return m_query;
32 }
33
34 bool isDirty() const
35 {
36 return m_dirty;
37 }
38
39 bool isHidden() const
40 {
41 return m_isHidden;
42 }
43
44 void setName(const QString &);
45 void setQuery(const QString &);
46 void setKeys(const QStringList &);
47 void setCharset(const QString &);
48 void setDirty(bool dirty);
49
50 QString iconName() const override;
51
52private:
53 QString m_query;
54 QString m_charset;
55 QString m_iconName;
56 bool m_dirty;
57 bool m_isHidden;
58};
59
60#endif
Class that holds information about a search provider.
Definition kurifilter.h:39
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:58:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.