File indexing completed on 2024-05-19 16:41:36
0001 /* 0002 SPDX-FileCopyrightText: 2007 Glenn Ergeerts <glenn.ergeerts@telenet.be> 0003 SPDX-FileCopyrightText: 2012 Marco Gulino <marco.gulino@xpeppers.com> 0004 0005 SPDX-License-Identifier: LGPL-2.0-or-later 0006 */ 0007 0008 #pragma once 0009 0010 #include "browser.h" 0011 #include <QDir> 0012 #include <QSqlDatabase> 0013 0014 class Favicon; 0015 class FetchSqlite; 0016 class Firefox : public QObject, public Browser 0017 { 0018 Q_OBJECT 0019 public: 0020 explicit Firefox(const QString &firefoxConfigDir, QObject *parent = nullptr); 0021 ~Firefox() override; 0022 QList<BookmarkMatch> match(const QString &term, bool addEverything) override; 0023 public Q_SLOTS: 0024 void teardown() override; 0025 void prepare() override; 0026 0027 private: 0028 QString m_dbFile; 0029 QString m_dbFile_fav; 0030 const QString m_dbCacheFile; 0031 const QString m_dbCacheFile_fav; 0032 Favicon *m_favicon; 0033 FetchSqlite *m_fetchsqlite; 0034 FetchSqlite *m_fetchsqlite_fav; 0035 };