1 /* This file is part of the KDE project
2 Copyright (C) 1999 Simon Hausmann <hausmann@kde.org>
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 #ifndef __konq_profiledlg_h__
21 #define __konq_profiledlg_h__
25 #include <QtCore/QMap>
27 class KonqViewManager
;
28 class QListWidgetItem
;
30 typedef QMap
<QString
, QString
> KonqProfileMap
;
32 class KonqProfileDlg
: public KDialog
36 KonqProfileDlg( KonqViewManager
*manager
, const QString
&preselectProfile
, QWidget
*parent
= 0L );
40 * Find, read and return all available profiles
41 * @return a map with < name, full path >
43 static KonqProfileMap
readAllProfiles();
45 class KonqProfileItem
;
48 void slotRenameProfile();
49 void slotDeleteProfile();
51 void slotTextChanged( const QString
& );
52 void slotSelectionChanged();
54 void slotItemRenamed( QListWidgetItem
* );
57 class KonqProfileDlgPrivate
;
58 KonqProfileDlgPrivate
* const d
;
59 void loadAllProfiles(const QString
& = QString());