File indexing completed on 2024-04-28 08:34:10
0001 /* 0002 SPDX-FileCopyrightText: 2011 Dawit Alemayehu <adawit@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.1-or-later 0005 */ 0006 0007 #include "webhistoryinterface.h" 0008 0009 #include <KParts/HistoryProvider> 0010 0011 0012 WebHistoryInterface::WebHistoryInterface(QObject* parent) 0013 :QWebHistoryInterface(parent) 0014 { 0015 } 0016 0017 void WebHistoryInterface::addHistoryEntry(const QString& url) 0018 { 0019 KParts::HistoryProvider::self()->insert(url); 0020 } 0021 0022 bool WebHistoryInterface::historyContains(const QString& url) const 0023 { 0024 return KParts::HistoryProvider::self()->contains(url); 0025 }