File indexing completed on 2024-05-12 11:54:36

0001 /*
0002     This file is part of the KDE project
0003     SPDX-FileCopyrightText: 1999 Simon Hausmann <hausmann@kde.org>
0004     SPDX-FileCopyrightText: 2000 Yves Arrouye <yves@realnames.com>
0005     SPDX-FileCopyrightText: 2002, 2003 Dawit Alemayehu <adawit@kde.org>
0006 
0007     SPDX-License-Identifier: GPL-2.0-or-later
0008 */
0009 
0010 #ifndef KURIIKWSFILTER_H
0011 #define KURIIKWSFILTER_H
0012 
0013 #include <QVariant>
0014 #include <kurifilter.h>
0015 
0016 class KAutoWebSearch : public KUriFilterPlugin
0017 {
0018     Q_OBJECT
0019 public:
0020     explicit KAutoWebSearch(QObject *parent = nullptr, const QVariantList &args = QVariantList());
0021     ~KAutoWebSearch() override;
0022     bool filterUri(KUriFilterData &) const override;
0023 
0024 public Q_SLOTS:
0025     void configure();
0026 
0027 private:
0028     void populateProvidersList(QList<KUriFilterSearchProvider *> &searchProviders, const KUriFilterData &, bool allproviders = false) const;
0029 };
0030 
0031 #endif