eric5.Helpviewer.Network.FtpReply

Module implementing a network reply class for FTP resources.

Global Attributes

ftpListPage_html

Classes

FtpReply Class implementing a network reply for FTP resources.

Functions

None


FtpReply

Class implementing a network reply for FTP resources.

Derived from

QNetworkReply

Class Attributes

None

Class Methods

None

Methods

FtpReply Constructor
__commandStarted Private slot to handle the start of FTP commands.
__connectToHost Private slot to start the FTP process by connecting to the host.
__cssLinkClass Private method to generate a link class with an icon.
__errorSignals Private slot to send signal for errors during initialisation.
__processCommand Private slot to handle the end of FTP commands.
__processData Private slot to process data from the FTP server.
__processListInfo Private slot to process list information from the FTP server.
__setContent Private method to set the finish the setup of the data.
__setListContent Private method to prepare the content for the reader.
abort Public slot to abort the operation.
bytesAvailable Public method to determined the bytes available for being read.
isSequential Public method to check for sequential access.
readData Protected method to retrieve data from the reply object.

Static Methods

None

FtpReply (Constructor)

FtpReply(url, parent=None)

Constructor

url
requested FTP URL (QUrl)
parent
reference to the parent object (QObject)

FtpReply.__commandStarted

__commandStarted(id)

Private slot to handle the start of FTP commands.

id
id of the command to be processed (integer) (ignored)

FtpReply.__connectToHost

__connectToHost()

Private slot to start the FTP process by connecting to the host.

FtpReply.__cssLinkClass

__cssLinkClass(icon, size=32)

Private method to generate a link class with an icon.

icon
icon to be included (QIcon)
size
size of the icon to be generated (integer)
Returns:
CSS class string (string)

FtpReply.__errorSignals

__errorSignals()

Private slot to send signal for errors during initialisation.

FtpReply.__processCommand

__processCommand(id, error)

Private slot to handle the end of FTP commands.

id
id of the command to be processed (integer) (ignored)
error
flag indicating an error condition (boolean)

FtpReply.__processData

__processData()

Private slot to process data from the FTP server.

FtpReply.__processListInfo

__processListInfo(urlInfo)

Private slot to process list information from the FTP server.

urlInfo
reference to the information object (QUrlInfo)

FtpReply.__setContent

__setContent()

Private method to set the finish the setup of the data.

FtpReply.__setListContent

__setListContent()

Private method to prepare the content for the reader.

FtpReply.abort

abort()

Public slot to abort the operation.

FtpReply.bytesAvailable

bytesAvailable()

Public method to determined the bytes available for being read.

Returns:
bytes available (integer)

FtpReply.isSequential

isSequential()

Public method to check for sequential access.

Returns:
flag indicating sequential access (boolean)

FtpReply.readData

readData(maxlen)

Protected method to retrieve data from the reply object.

maxlen
maximum number of bytes to read (integer)
Returns:
string containing the data (bytes)
Up