TNetworkFileIo Class

Header: #include <TNetworkFileIo>
Inherits: QObject

Public Functions

TNetworkFileIo()
~TNetworkFileIo()
QStringList downloadFiles(const QVariantMap &iFileInfos, const QString &iSaveDir, TError *oError = nullptr)
void setConnectParameter(const QVariant &iParameter, TError *oError = nullptr)
void setServerDir(const QString &iServerDir)
void stop()
QStringList uploadFiles(const QStringList &iPaths, const QString &iServerDir = QString(), TError *oErro = nullptr)
  • 31 public functions inherited from QObject

Signals

void eventloopStoped()
void processInfo(qint64, qint64, int, int)

Protected Functions

void downloadFile(const QString &iFileName, const QString &iMD5)
QString listTranslateString(const QStringList &iLst)
void localMd5Check()
void serverMd5Check()
void uploadFile(const QString &iFileName, const QString &iMD5)
  • 9 protected functions inherited from QObject

Protected Slots

void onDownFinished()
void onFinished(QNetworkReply *pReply)
void onProcess(qint64 bytesCurrent, qint64 bytesTotal)
void onReadyRead()
void onReplyError(QNetworkReply::NetworkError)
void onSslErrors(QNetworkReply *reply, QList<QSslError> errors)

Additional Inherited Members

  • 1 property inherited from QObject
  • 1 public slot inherited from QObject
  • 1 public variable inherited from QObject
  • 10 static public members inherited from QObject
  • 2 protected variables inherited from QObject

Detailed Description

Member Function Documentation

TNetworkFileIo::TNetworkFileIo()

Default constructs an instance of TNetworkFileIo.

TNetworkFileIo::~TNetworkFileIo()

Destroys the instance of TNetworkFileIo.

[protected] void TNetworkFileIo::downloadFile(const QString &iFileName, const QString &iMD5)

QStringList TNetworkFileIo::downloadFiles(const QVariantMap &iFileInfos, const QString &iSaveDir, TError *oError = nullptr)

[signal] void TNetworkFileIo::eventloopStoped()

[protected] QString TNetworkFileIo::listTranslateString(const QStringList &iLst)

[protected] void TNetworkFileIo::localMd5Check()

[protected slot] void TNetworkFileIo::onDownFinished()

[protected slot] void TNetworkFileIo::onFinished(QNetworkReply *pReply)

[protected slot] void TNetworkFileIo::onProcess(qint64 bytesCurrent, qint64 bytesTotal)

[protected slot] void TNetworkFileIo::onReadyRead()

[protected slot] void TNetworkFileIo::onReplyError(QNetworkReply::NetworkError)

[protected slot] void TNetworkFileIo::onSslErrors(QNetworkReply *reply, QList<QSslError> errors)

[signal] void TNetworkFileIo::processInfo(qint64, qint64, int, int)

[protected] void TNetworkFileIo::serverMd5Check()

void TNetworkFileIo::setConnectParameter(const QVariant &iParameter, TError *oError = nullptr)

void TNetworkFileIo::setServerDir(const QString &iServerDir)

void TNetworkFileIo::stop()

[protected] void TNetworkFileIo::uploadFile(const QString &iFileName, const QString &iMD5)

QStringList TNetworkFileIo::uploadFiles(const QStringList &iPaths, const QString &iServerDir = QString(), TError *oErro = nullptr)