add more spacing
[personal-kdebase.git] / apps / konqueror / src / konqsessiondlg.h
blobda122b4644b8f9b36e322562974bb579bf3257f7
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__
23 #include <kdialog.h>
25 #include <QtCore/QMap>
26 #include <QString>
28 class KonqViewManager;
29 class QListWidgetItem;
31 /**
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
37 Q_OBJECT
38 public:
39 explicit KonqSessionDlg( KonqViewManager *manager, QWidget *parent = 0L );
40 ~KonqSessionDlg();
42 protected Q_SLOTS:
43 void slotOpen();
44 void slotRename(KUrl dirpathTo = KUrl());
45 void slotNew();
46 void slotDelete();
47 void slotSave();
48 void slotSelectionChanged();
50 private:
51 class KonqSessionDlgPrivate;
52 KonqSessionDlgPrivate * const d;
53 void loadAllSessions(const QString & = QString());
56 class KonqNewSessionDlg : public KDialog
58 Q_OBJECT
59 public:
60 explicit KonqNewSessionDlg( QWidget *parent = 0L, QString sessionName = QString() );
61 ~KonqNewSessionDlg();
63 protected Q_SLOTS:
64 void slotAddSession();
65 void slotTextChanged(const QString& text);
66 private:
67 class KonqNewSessionDlgPrivate;
68 KonqNewSessionDlgPrivate * const d;
71 #endif