Module implementing the AdBlock subscription class.
None |
AdBlockSubscription | Class implementing the AdBlock subscription. |
None |
Class implementing the AdBlock subscription.
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. |
addRule | Public method to add a rule. |
allRules | Public method to get the list of rules. |
allow | Public method to check, if the given URL is allowed. |
block | Public method to check, if the given URL should be blocked. |
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. |
pageRules | Public method to get the page rules of the subscription. |
removeRule | Public method to remove a rule given the offset. |
replaceRule | Public method to replace a rule given the offset. |
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. |
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. |
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.
Public method to add a rule.
Public method to get the list of rules.
Public method to check, if the given URL is allowed.
Public method to check, if the given URL should be blocked.
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 get the page rules of the subscription.
Public method to remove a rule given the offset.
Public method to replace a rule given the offset.
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 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.