1 /* This file is part of the KDE project
2 Copyright (C) 2008 Eduardo Robles Elvira <edulix@gmail.com>
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_sessiondlg_h__
21 #define __konq_sessiondlg_h__
25 #include <QtCore/QMap>
28 class KonqViewManager
;
29 class QListWidgetItem
;
32 * This is the konqueror sesions administration dialog, which allows the user
33 * to add, modify, rename and delete konqueror sessions.
35 class KonqSessionDlg
: public KDialog
39 explicit KonqSessionDlg( KonqViewManager
*manager
, QWidget
*parent
= 0L );
44 void slotRename(KUrl dirpathTo
= KUrl());
48 void slotSelectionChanged();
51 class KonqSessionDlgPrivate
;
52 KonqSessionDlgPrivate
* const d
;
53 void loadAllSessions(const QString
& = QString());
56 class KonqNewSessionDlg
: public KDialog
60 explicit KonqNewSessionDlg( QWidget
*parent
= 0L, QString sessionName
= QString() );
64 void slotAddSession();
65 void slotTextChanged(const QString
& text
);
67 class KonqNewSessionDlgPrivate
;
68 KonqNewSessionDlgPrivate
* const d
;