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 "adblockfilter.h" 0008 0009 AdblockFilter::AdblockFilter() 0010 { 0011 } 0012 0013 AdblockFilter::~AdblockFilter() = default; 0014 0015 QString AdblockFilter::url() const 0016 { 0017 return mUrl; 0018 } 0019 0020 void AdblockFilter::setUrl(const QString &newUrl) 0021 { 0022 mUrl = newUrl; 0023 } 0024 0025 QString AdblockFilter::name() const 0026 { 0027 return mName; 0028 } 0029 0030 void AdblockFilter::setName(const QString &newName) 0031 { 0032 mName = newName; 0033 } 0034 0035 bool AdblockFilter::operator==(const AdblockFilter &other) const 0036 { 0037 return mName == other.name() && mUrl == other.url(); 0038 } 0039 0040 QDebug operator<<(QDebug d, const AdblockFilter &t) 0041 { 0042 d << " url " << t.url(); 0043 d << " name " << t.name(); 0044 return d; 0045 }