2 * Copyright (c) 2000 Yves Arrouye <yves@realnames.com>
3 * Copyright (c) 2002, 2003 Dawit Alemayehu <adawit@kde.org>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
28 #include "ui_ikwsopts_ui.h"
31 class SearchProviderItem
;
33 class FilterOptionsUI
: public QWidget
, public Ui::FilterOptionsUI
36 FilterOptionsUI( QWidget
*parent
) : QWidget( parent
) {
42 class FilterOptions
: public KCModule
47 explicit FilterOptions(const KComponentData
&componentData
, QWidget
*parent
= 0);
52 QString
quickHelp() const;
56 void checkFavoritesChanged();
58 void setWebShortcutState();
60 void addSearchProvider();
61 void changeSearchProvider();
62 void deleteSearchProvider();
63 void updateSearchProvider();
66 SearchProviderItem
*displaySearchProvider(SearchProvider
*p
, bool fallback
= false);
68 void setDelimiter (char);
71 // The names of the providers that the user deleted,
72 // these are marked as deleted in the user's homedirectory
73 // on save if a global service file exists for it.
74 QStringList m_deletedProviders
;
75 QMap
<QString
, QString
> m_defaultEngineMap
;
76 QStringList m_favoriteEngines
;
78 FilterOptionsUI
* m_dlg
;