File indexing completed on 2024-04-28 04:58:11
0001 /* This file is part of the KDE project 0002 SPDX-FileCopyrightText: 2009 David Faure <faure@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0005 */ 0006 0007 #ifndef KONQ_HISTORYLOADER_H 0008 #define KONQ_HISTORYLOADER_H 0009 0010 #include "libkonq_export.h" 0011 #include <QObject> 0012 0013 class KonqHistoryList; 0014 class KonqHistoryLoaderPrivate; 0015 0016 /** 0017 * @internal 0018 * This class loads the Konqueror history file. 0019 * @since 4.3 0020 */ 0021 class KonqHistoryLoader : public QObject 0022 { 0023 Q_OBJECT 0024 0025 public: 0026 explicit KonqHistoryLoader(QObject *parent = nullptr); 0027 ~KonqHistoryLoader() override; 0028 0029 /** 0030 * Load the history. No need to call this more than once... 0031 */ 0032 bool loadHistory(); 0033 0034 /** 0035 * @returns the list of all history entries, sorted by date 0036 * (oldest entries first) 0037 */ 0038 const KonqHistoryList &entries() const; 0039 0040 static int historyVersion(); 0041 0042 private: 0043 KonqHistoryLoaderPrivate *const d; 0044 }; 0045 0046 #endif /* KONQ_HISTORYLOADER_H */