Module implementing the AdBlock subscription class.
None |
AdBlockSubscription | Class implementing the AdBlock subscription. |
None |
Class implementing the AdBlock subscription.
None |
None |
AdBlockSubscription | Constructor |
__loadRules | Private method to load the rules of the subscription. |
__parseUrl | Private method to parse the AdBlock URL for the subscription. |
__populateCache | Private method to populate the various rule caches. |
__rulesDownloaded | Private slot to deal with the downloaded rules. |
__validateCheckSum | Private method to check the subscription file's checksum. |
adBlockDisabledForUrl | Public method to check, if AdBlock is disabled for the given URL. |
addRule | Public method to add a rule. |
allRules | Public method to get the list of rules. |
canBeRemoved | Public method to check, if the subscription can be removed. |
canEditRules | Public method to check, if rules can be edited. |
checkForUpdate | Public method to check for an update. |
elemHideDisabledForUrl | Public method to check, if element hiding is disabled for the given URL. |
elementHidingRules | Public method to get the element hiding rules. |
elementHidingRulesForDomain | Public method to get the element hiding rules for the given domain. |
isEnabled | Public method to check, if the subscription is enabled. |
lastUpdate | Public method to get the date and time of the last update. |
location | Public method to get the subscription location. |
match | Public method to check the subscription for a matching rule. |
removeRule | Public method to remove a rule given the offset. |
replaceRule | Public method to replace a rule given the offset. |
requiresLocation | Public method to get the location of a required subscription. |
rule | Public method to get a specific rule. |
rulesFileName | Public method to get the name of the rules file. |
saveRules | Public method to save the subscription rules. |
setEnabled | Public method to set the enabled status. |
setLocation | Public method to set the subscription location. |
setRuleEnabled | Public method to enable a specific rule. |
setTitle | Public method to set the subscription title. |
title | Public method to get the subscription title. |
updateNow | Public method to update the subscription immediately. |
url | Public method to generate the URL for this subscription. |
None |
Constructor
Private method to load the rules of the subscription.
Private method to parse the AdBlock URL for the subscription.
Private method to populate the various rule caches.
Private slot to deal with the downloaded rules.
Private method to check the subscription file's checksum.
Public method to check, if AdBlock is disabled for the given URL.
Public method to add a rule.
Public method to get the list of rules.
Public method to check, if the subscription can be removed.
Public method to check, if rules can be edited.
Public method to check for an update.
Public method to check, if element hiding is disabled for the given URL.
Public method to get the element hiding rules.
Public method to get the element hiding rules for the given domain.
Public method to check, if the subscription is enabled.
Public method to get the date and time of the last update.
Public method to get the subscription location.
Public method to check the subscription for a matching rule.
Public method to remove a rule given the offset.
Public method to replace a rule given the offset.
Public method to get the location of a required subscription.
Public method to get a specific rule.
Public method to get the name of the rules file.
Public method to save the subscription rules.
Public method to set the enabled status.
Public method to set the subscription location.
Public method to enable a specific rule.
Public method to set the subscription title.
Public method to get the subscription title.
Public method to update the subscription immediately.
Public method to generate the URL for this subscription.