eric6.Helpviewer.AdBlock.AdBlockNetwork
Module implementing the network block class.
Global Attributes
Classes
Functions
AdBlockNetwork
    Class implementing a network block.
Derived from
QObject
Class Attributes
Class Methods
Methods
| __canBeBlocked | Private method to check, if an URL can be blocked. | 
| block | Public method to check for a network block. | 
| canRunOnScheme | Public method to check, if AdBlock can be performed on the scheme. | 
Static Methods
AdBlockNetwork.__canBeBlocked
__canBeBlocked(url)
        Private method to check, if an URL can be blocked.
- url
- 
URL to be checked (QUrl)
- Returns:
- 
flag indicating, that the URL can be blocked (boolean)
AdBlockNetwork.block
block(request)
        Public method to check for a network block.
- request
- 
reference to the request object (QNetworkRequest)
- Returns:
- 
reply object (QNetworkReply) or None
AdBlockNetwork.canRunOnScheme
canRunOnScheme(scheme)
        Public method to check, if AdBlock can be performed on the scheme.
- scheme
- 
scheme to check (string)
- Returns:
- 
flag indicating, that AdBlock can be performed (boolean)