6 """ |
6 """ |
7 Module implementing the base class for specific scheme access handlers. |
7 Module implementing the base class for specific scheme access handlers. |
8 """ |
8 """ |
9 |
9 |
10 from PyQt4.QtCore import QObject |
10 from PyQt4.QtCore import QObject |
|
11 from PyQt4.QtNetwork import QNetworkReply |
11 |
12 |
12 |
13 |
13 class SchemeAccessHandler(QObject): |
14 class SchemeAccessHandler(QObject): |
14 """ |
15 """ |
15 Clase implementing the base class for specific scheme access handlers. |
16 Clase implementing the base class for specific scheme access handlers. |
24 |
25 |
25 def createRequest(self, op, request, outgoingData=None): |
26 def createRequest(self, op, request, outgoingData=None): |
26 """ |
27 """ |
27 Protected method to create a request. |
28 Protected method to create a request. |
28 |
29 |
29 @param op the operation to be performed (QNetworkAccessManager.Operation) |
30 @param op the operation to be performed |
|
31 (QNetworkAccessManager.Operation) |
30 @param request reference to the request object (QNetworkRequest) |
32 @param request reference to the request object (QNetworkRequest) |
31 @param outgoingData reference to an IODevice containing data to be sent |
33 @param outgoingData reference to an IODevice containing data to be sent |
32 (QIODevice) |
34 (QIODevice) |
33 @return reference to the created reply object (QNetworkReply) |
35 @return reference to the created reply object (QNetworkReply) |
|
36 @exception NotImplementedError raised to indicate that the method must |
|
37 be implemented by a subclass |
34 """ |
38 """ |
35 raise NotImplementedError() |
39 raise NotImplementedError() |
|
40 return QNetworkReply() |