Qt 4.8
Classes | Enumerations | Functions
qnetworkaccessftpbackend.cpp File Reference
#include "qnetworkaccessftpbackend_p.h"
#include "qnetworkaccessmanager_p.h"
#include "QtNetwork/qauthenticator.h"
#include "private/qnoncontiguousbytedevice_p.h"

Go to the source code of this file.

Classes

class  QNetworkAccessCachedFtpConnection
 

Enumerations

enum  { DefaultFtpPort = 21 }
 

Functions

static QByteArray makeCacheKey (const QUrl &url)
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
DefaultFtpPort 

Definition at line 51 of file qnetworkaccessftpbackend.cpp.

Function Documentation

◆ makeCacheKey()

static QByteArray makeCacheKey ( const QUrl url)
static

Definition at line 55 of file qnetworkaccessftpbackend.cpp.

Referenced by QNetworkAccessFtpBackend::disconnectFromFtp(), QNetworkAccessFtpBackend::ftpDone(), and QNetworkAccessFtpBackend::open().

56 {
57  QUrl copy = url;
58  copy.setPort(url.port(DefaultFtpPort));
59  return "ftp-connection:" +
62 }
The QUrl class provides a convenient interface for working with URLs.
Definition: qurl.h:61
int port() const
Returns the port of the URL, or -1 if the port is unspecified.
Definition: qurl.cpp:4916
QByteArray toEncoded(FormattingOptions options=None) const
Returns the encoded representation of the URL if it's valid; otherwise an empty QByteArray is returne...
Definition: qurl.cpp:5949
void setPort(int port)
Sets the port of the URL to port.
Definition: qurl.cpp:4897