1 /* This file is part of the KDE project
2 Copyright 2007 David Faure <faure@kde.org>
3 Copyright 2007 Eduardo Robles Elvira <edulix@gmail.com>
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (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 GNU
13 General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; see the file COPYING. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 Boston, MA 02110-1301, USA.
21 #ifndef KONQCLOSEDTABITEM_H
22 #define KONQCLOSEDTABITEM_H
24 #include "konqprivate_export.h"
25 #include <kconfiggroup.h>
29 * This class stores all the needed information about a closed tab
30 * in order to be able to reopen it if requested
32 class KONQ_TESTS_EXPORT KonqClosedTabItem
{
34 KonqClosedTabItem(const QString
& url
, const QString
& title
, int index
, quint64 serialNumber
);
36 const KConfigGroup
& configGroup() const { return m_configGroup
; }
37 KConfigGroup
& configGroup() { return m_configGroup
; }
38 quint64
serialNumber() const { return m_serialNumber
; }
39 QString
url() const { return m_url
; }
40 QString
title() const { return m_title
; }
41 /// The position inside the tabbar that the tab had when it was closed
42 int pos() const { return m_pos
; }
48 KConfigGroup m_configGroup
;
49 quint64 m_serialNumber
;
51 // Copying an item would delete the group in the config file (see destructor)!
52 Q_DISABLE_COPY(KonqClosedTabItem
)
55 #endif /* KONQCLOSEDTABITEM_H */