|
1 # -*- coding: utf-8 -*- |
|
2 |
|
3 # Copyright (c) 2016 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 class UrlInterceptor(QObject): |
|
15 """ |
|
16 Class implementing an URL interceptor base class. |
|
17 """ |
|
18 def __init__(self, parent=None): |
|
19 """ |
|
20 Constructor |
|
21 |
|
22 @param parent referemce to the parent object |
|
23 @type QObject |
|
24 """ |
|
25 super(UrlInterceptor, self).__init__(parent) |
|
26 |
|
27 def interceptRequest(self, info): |
|
28 """ |
|
29 Public method to intercept a request. |
|
30 |
|
31 @param info request info object |
|
32 @type QWebEngineUrlRequestInfo |
|
33 """ |
|
34 pass |