Module implementing the AdBlock manager.
None |
AdBlockManager | Class implementing the AdBlock manager. |
None |
Class implementing the AdBlock manager.
None |
None |
AdBlockManager | Constructor |
__canBeBlocked | Private method to check, if the given URL could be blocked (i.e. |
__customSubscriptionLocation | Private method to generate the path for custom subscriptions. |
__customSubscriptionUrl | Private method to generate the URL for custom subscriptions. |
__loadSubscriptions | Private method to load the set of subscriptions. |
__rulesChanged | Private slot handling a change of the AdBlock rules. |
__updateMatcher | Private slot to update the adblock matcher. |
addException | Public method to add an exception. |
addSubscription | Public method to add an AdBlock subscription. |
addSubscriptionFromUrl | Public method to ad an AdBlock subscription given the abp URL. |
block | Public method to check, if a request should be blocked. |
canRunOnScheme | Public method to check, if AdBlock can be performed on the scheme. |
close | Public method to close the open search engines manager. |
customRules | Public method to get a subscription for custom rules. |
elementHidingRules | Public method to get the element hiding rules. |
elementHidingRulesForDomain | Public method to get the element hiding rules for a domain. |
exceptions | Public method to get a list of excepted hosts. |
getDefaultSubscriptionUrl | Public method to get the default subscription URL. |
getRequiresSubscriptions | Public method to get a list of subscriptions, that require the given one. |
isEnabled | Public method to check, if blocking ads is enabled. |
isHostExcepted | Public slot to check, if a host is excepted. |
load | Public method to load the AdBlock subscriptions. |
loadRequiredSubscription | Public method to load a subscription required by another one. |
page | Public method to get a reference to the page block object. |
removeException | Public method to remove an exception. |
removeSubscription | Public method to remove an AdBlock subscription. |
save | Public method to save the AdBlock subscriptions. |
setEnabled | Public slot to set the enabled state. |
setExceptions | Public method to set the list of excepted hosts. |
setUseLimitedEasyList | Public method to set the limited EasyList flag. |
showDialog | Public slot to show the AdBlock subscription management dialog. |
showExceptionsDialog | Public method to show the AdBlock Exceptions dialog. |
subscription | Public method to get a subscription based on its location. |
subscriptions | Public method to get all subscriptions. |
updateAllSubscriptions | Public method to update all subscriptions. |
useLimitedEasyList | Public method to test, if limited EasyList rules shall be used. |
None |
Constructor
Private method to check, if the given URL could be blocked (i.e. is not whitelisted).
Private method to generate the path for custom subscriptions.
Private method to generate the URL for custom subscriptions.
Private method to load the set of subscriptions.
Private slot handling a change of the AdBlock rules.
Private slot to update the adblock matcher.
Public method to add an exception.
Public method to add an AdBlock subscription.
Public method to ad an AdBlock subscription given the abp URL.
Public method to check, if a request should be blocked.
Public method to check, if AdBlock can be performed on the scheme.
Public method to close the open search engines manager.
Public method to get a subscription for custom rules.
Public method to get the element hiding rules.
Public method to get the element hiding rules for a domain.
Public method to get a list of excepted hosts.
Public method to get the default subscription URL.
Public method to get a list of subscriptions, that require the given one.
Public method to check, if blocking ads is enabled.
Public slot to check, if a host is excepted.
Public method to load the AdBlock subscriptions.
Public method to load a subscription required by another one.
Public method to get a reference to the page block object.
Public method to remove an exception.
Public method to remove an AdBlock subscription.
Public method to save the AdBlock subscriptions.
Public slot to set the enabled state.
Public method to set the list of excepted hosts.
Public method to set the limited EasyList flag.
Public slot to show the AdBlock subscription management dialog.
Public method to show the AdBlock Exceptions dialog.
Public method to get a subscription based on its location.
Public method to get all subscriptions.
Public method to update all subscriptions.
Public method to test, if limited EasyList rules shall be used.