Falkon Develop
Cross-platform Qt-based web browser
AdBlockRule Class Reference

#include <adblockrule.h>

Inheritance diagram for AdBlockRule:
AdBlockRule_Test

Public Member Functions

 AdBlockRule (const QString &filter=QString(), AdBlockSubscription *subscription=nullptr)
 
 ~AdBlockRule ()
 
AdBlockRulecopy () const
 
AdBlockSubscriptionsubscription () const
 
void setSubscription (AdBlockSubscription *subscription)
 
QString filter () const
 
void setFilter (const QString &filter)
 
bool isCssRule () const
 
QString cssSelector () const
 
bool isUnsupportedRule () const
 
bool isDocument () const
 
bool isElemhide () const
 
bool isGenerichide () const
 
bool isDomainRestricted () const
 
bool isException () const
 
bool isComment () const
 
bool isEnabled () const
 
void setEnabled (bool enabled)
 
bool isSlow () const
 
bool isInternalDisabled () const
 
bool urlMatch (const QUrl &url) const
 
bool networkMatch (const QWebEngineUrlRequestInfo &request, const QString &domain, const QString &encodedUrl) const
 
bool matchDomain (const QString &domain) const
 
bool matchThirdParty (const QWebEngineUrlRequestInfo &request) const
 
bool matchType (const QWebEngineUrlRequestInfo &request) const
 

Protected Member Functions

bool stringMatch (const QString &domain, const QString &encodedUrl) const
 
bool isMatchingDomain (const QString &domain, const QString &filter) const
 
bool isMatchingRegExpStrings (const QString &url) const
 
QStringList parseRegExpFilter (const QString &filter) const
 

Friends

class AdBlockMatcher
 
class AdBlockSearchTree
 
class AdBlockSubscription
 

Detailed Description

Definition at line 61 of file adblockrule.h.

Constructor & Destructor Documentation

◆ AdBlockRule()

AdBlockRule::AdBlockRule ( const QString &  filter = QString(),
AdBlockSubscription subscription = nullptr 
)

Definition at line 104 of file adblockrule.cpp.

◆ ~AdBlockRule()

AdBlockRule::~AdBlockRule ( )

Definition at line 116 of file adblockrule.cpp.

Member Function Documentation

◆ copy()

AdBlockRule * AdBlockRule::copy ( ) const

Definition at line 121 of file adblockrule.cpp.

◆ cssSelector()

QString AdBlockRule::cssSelector ( ) const

Definition at line 172 of file adblockrule.cpp.

◆ filter()

QString AdBlockRule::filter ( ) const

Definition at line 156 of file adblockrule.cpp.

◆ isComment()

bool AdBlockRule::isComment ( ) const

Definition at line 207 of file adblockrule.cpp.

◆ isCssRule()

bool AdBlockRule::isCssRule ( ) const

Definition at line 167 of file adblockrule.cpp.

◆ isDocument()

bool AdBlockRule::isDocument ( ) const

Definition at line 182 of file adblockrule.cpp.

◆ isDomainRestricted()

bool AdBlockRule::isDomainRestricted ( ) const

Definition at line 197 of file adblockrule.cpp.

◆ isElemhide()

bool AdBlockRule::isElemhide ( ) const

Definition at line 187 of file adblockrule.cpp.

◆ isEnabled()

bool AdBlockRule::isEnabled ( ) const

Definition at line 212 of file adblockrule.cpp.

◆ isException()

bool AdBlockRule::isException ( ) const

Definition at line 202 of file adblockrule.cpp.

◆ isGenerichide()

bool AdBlockRule::isGenerichide ( ) const

Definition at line 192 of file adblockrule.cpp.

◆ isInternalDisabled()

bool AdBlockRule::isInternalDisabled ( ) const

Definition at line 227 of file adblockrule.cpp.

◆ isMatchingDomain()

bool AdBlockRule::isMatchingDomain ( const QString &  domain,
const QString &  filter 
) const
protected

Definition at line 784 of file adblockrule.cpp.

◆ isMatchingRegExpStrings()

bool AdBlockRule::isMatchingRegExpStrings ( const QString &  url) const
protected

Definition at line 789 of file adblockrule.cpp.

◆ isSlow()

bool AdBlockRule::isSlow ( ) const

Definition at line 222 of file adblockrule.cpp.

◆ isUnsupportedRule()

bool AdBlockRule::isUnsupportedRule ( ) const

Definition at line 177 of file adblockrule.cpp.

◆ matchDomain()

bool AdBlockRule::matchDomain ( const QString &  domain) const

Definition at line 271 of file adblockrule.cpp.

◆ matchThirdParty()

bool AdBlockRule::matchThirdParty ( const QWebEngineUrlRequestInfo &  request) const

Definition at line 313 of file adblockrule.cpp.

◆ matchType()

bool AdBlockRule::matchType ( const QWebEngineUrlRequestInfo &  request) const

Definition at line 324 of file adblockrule.cpp.

◆ networkMatch()

bool AdBlockRule::networkMatch ( const QWebEngineUrlRequestInfo &  request,
const QString &  domain,
const QString &  encodedUrl 
) const

Definition at line 244 of file adblockrule.cpp.

◆ parseRegExpFilter()

QStringList AdBlockRule::parseRegExpFilter ( const QString &  filter) const
protected

Definition at line 804 of file adblockrule.cpp.

◆ setEnabled()

void AdBlockRule::setEnabled ( bool  enabled)

Definition at line 217 of file adblockrule.cpp.

◆ setFilter()

void AdBlockRule::setFilter ( const QString &  filter)

Definition at line 161 of file adblockrule.cpp.

◆ setSubscription()

void AdBlockRule::setSubscription ( AdBlockSubscription subscription)

Definition at line 151 of file adblockrule.cpp.

◆ stringMatch()

bool AdBlockRule::stringMatch ( const QString &  domain,
const QString &  encodedUrl 
) const
protected

Definition at line 758 of file adblockrule.cpp.

◆ subscription()

AdBlockSubscription * AdBlockRule::subscription ( ) const

Definition at line 146 of file adblockrule.cpp.

◆ urlMatch()

bool AdBlockRule::urlMatch ( const QUrl &  url) const

Definition at line 232 of file adblockrule.cpp.

Friends And Related Function Documentation

◆ AdBlockMatcher

friend class AdBlockMatcher
friend

Definition at line 203 of file adblockrule.h.

◆ AdBlockSearchTree

friend class AdBlockSearchTree
friend

Definition at line 204 of file adblockrule.h.

◆ AdBlockSubscription

friend class AdBlockSubscription
friend

Definition at line 205 of file adblockrule.h.


The documentation for this class was generated from the following files: