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 #pragma once 0008 #include "adblockplugin_private_export.h" 0009 #include <QDebug> 0010 #include <QString> 0011 0012 class LIBADBLOCKPLUGIN_TESTS_EXPORT AdblockFilter 0013 { 0014 public: 0015 AdblockFilter(); 0016 ~AdblockFilter(); 0017 0018 [[nodiscard]] QString url() const; 0019 void setUrl(const QString &newUrl); 0020 0021 [[nodiscard]] QString name() const; 0022 void setName(const QString &newName); 0023 0024 [[nodiscard]] bool operator==(const AdblockFilter &other) const; 0025 0026 private: 0027 QString mUrl; 0028 QString mName; 0029 }; 0030 Q_DECLARE_TYPEINFO(AdblockFilter, Q_RELOCATABLE_TYPE); 0031 LIBADBLOCKPLUGIN_TESTS_EXPORT QDebug operator<<(QDebug d, const AdblockFilter &t);