File indexing completed on 2025-01-19 04:47:00
0001 /* 0002 SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "adblocklistsmanager.h" 0008 #include "libadblockplugin_debug.h" 0009 #include <QDir> 0010 #include <QStandardPaths> 0011 0012 AdblockListsManager::AdblockListsManager(QObject *parent) 0013 : QObject{parent} 0014 , mFilterListsPath(QStandardPaths::writableLocation(QStandardPaths::AppDataLocation) + QStringLiteral("/filterlists/")) 0015 { 0016 if (!QDir().mkpath(mFilterListsPath)) { 0017 qCWarning(LIBADBLOCKPLUGIN_PLUGIN_LOG) << "Impossible to create " << mFilterListsPath; 0018 } 0019 } 0020 0021 AdblockListsManager::~AdblockListsManager() = default; 0022 0023 QString AdblockListsManager::filterListsPath() const 0024 { 0025 return mFilterListsPath; 0026 } 0027 0028 #include "moc_adblocklistsmanager.cpp"