Changeset View
Changeset View
Standalone View
Standalone View
core/filetransferjob.h
Context not available. | |||||
49 | * @p size specifies the expected size of the stream we're reading. | 49 | * @p size specifies the expected size of the stream we're reading. | ||
---|---|---|---|---|---|
50 | * @p destination specifies where these contents should be stored | 50 | * @p destination specifies where these contents should be stored | ||
51 | */ | 51 | */ | ||
52 | FileTransferJob(const QSharedPointer<QIODevice>& origin, qint64 size, const QUrl &destination); | 52 | FileTransferJob(const QSharedPointer<QIODevice>& origin, qint64 size, const QUrl& destination); | ||
53 | void start() override; | 53 | void start() override; | ||
54 | QUrl destination() const { return mDestination; } | 54 | QUrl destination() const { return m_destination; } | ||
55 | void setOriginName(const QString& from) { mFrom = from; } | 55 | void setOriginName(const QString& from) { m_from = from; } | ||
56 | 56 | | |||
57 | private Q_SLOTS: | 57 | private Q_SLOTS: | ||
58 | void doStart(); | 58 | void doStart(); | ||
Context not available. | |||||
65 | void transferFailed(QNetworkReply::NetworkError error); | 65 | void transferFailed(QNetworkReply::NetworkError error); | ||
66 | void transferFinished(); | 66 | void transferFinished(); | ||
67 | 67 | | |||
68 | QSharedPointer<QIODevice> mOrigin; | 68 | QSharedPointer<QIODevice> m_origin; | ||
69 | QNetworkReply* mReply; | 69 | QNetworkReply* m_reply; | ||
70 | QString mFrom; | 70 | QString m_from; | ||
71 | QUrl mDestination; | 71 | QUrl m_destination; | ||
72 | QElapsedTimer mTimer; | 72 | QElapsedTimer m_timer; | ||
73 | qulonglong mSpeedBytes; | 73 | qulonglong m_speedBytes; | ||
74 | qint64 mWritten; | 74 | qint64 m_written; | ||
75 | }; | 75 | }; | ||
76 | 76 | | |||
77 | #endif | 77 | #endif | ||
Context not available. |