|
1 # -*- coding: utf-8 -*- |
|
2 |
|
3 # Copyright (c) 2009 - 2019 Detlev Offenbach <detlev@die-offenbachs.de> |
|
4 # |
|
5 |
|
6 """ |
|
7 Module implementing the base class for specific scheme access handlers. |
|
8 """ |
|
9 |
|
10 from __future__ import unicode_literals |
|
11 |
|
12 from PyQt5.QtCore import QObject |
|
13 |
|
14 |
|
15 class SchemeAccessHandler(QObject): |
|
16 """ |
|
17 Clase implementing the base class for specific scheme access handlers. |
|
18 """ |
|
19 def __init__(self, parent=None): |
|
20 """ |
|
21 Constructor |
|
22 |
|
23 @param parent reference to the parent object (QObject) |
|
24 """ |
|
25 super(SchemeAccessHandler, self).__init__(parent) |
|
26 |
|
27 def createRequest(self, op, request, outgoingData=None): |
|
28 """ |
|
29 Public method to create a request. |
|
30 |
|
31 @param op the operation to be performed |
|
32 (QNetworkAccessManager.Operation) |
|
33 @param request reference to the request object (QNetworkRequest) |
|
34 @param outgoingData reference to an IODevice containing data to be sent |
|
35 (QIODevice) |
|
36 @ireturn reference to the created reply object (QNetworkReply) |
|
37 @exception NotImplementedError raised to indicate that the method must |
|
38 be implemented by a subclass |
|
39 """ |
|
40 raise NotImplementedError() |