|
1 # -*- coding: utf-8 -*- |
|
2 |
|
3 # Copyright (c) 2016 - 2019 Detlev Offenbach <detlev@die-offenbachs.de> |
|
4 # |
|
5 |
|
6 """ |
|
7 Module implementing an URL interceptor base class. |
|
8 """ |
|
9 |
|
10 from __future__ import unicode_literals |
|
11 |
|
12 from PyQt5.QtCore import QObject |
|
13 |
|
14 |
|
15 class UrlInterceptor(QObject): |
|
16 """ |
|
17 Class implementing an URL interceptor base class. |
|
18 """ |
|
19 def __init__(self, parent=None): |
|
20 """ |
|
21 Constructor |
|
22 |
|
23 @param parent referemce to the parent object |
|
24 @type QObject |
|
25 """ |
|
26 super(UrlInterceptor, self).__init__(parent) |
|
27 |
|
28 def interceptRequest(self, info): |
|
29 """ |
|
30 Public method to intercept a request. |
|
31 |
|
32 @param info request info object |
|
33 @type QWebEngineUrlRequestInfo |
|
34 """ |
|
35 pass |