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