eric6/Helpviewer/Network/SchemeAccessHandler.py

branch
maintenance
changeset 7286
7eb04391adf7
parent 7226
babe80d84a3e
parent 7285
1ff497f33f31
child 7287
1c17f2191bdd
equal deleted inserted replaced
7226:babe80d84a3e 7286:7eb04391adf7
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 @return 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()

eric ide

mercurial