From a24252feffe127ec715dc074ba9f87744169e79d Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Fri, 26 Feb 2010 10:53:39 +0000 Subject: tighten checks before sending a file --- source/QXmppTransferManager.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'source/QXmppTransferManager.h') diff --git a/source/QXmppTransferManager.h b/source/QXmppTransferManager.h index 8c8656bd..e5306031 100644 --- a/source/QXmppTransferManager.h +++ b/source/QXmppTransferManager.h @@ -53,6 +53,7 @@ public: enum Error { NoError = 0, + FileAccessError, FileCorruptError, ProtocolError, }; @@ -86,7 +87,7 @@ public: QDateTime fileDate() const; QByteArray fileHash() const; QString fileName() const; - int fileSize() const; + qint64 fileSize() const; signals: void error(QXmppTransferJob::Error error); @@ -94,6 +95,9 @@ signals: void progress(qint64 done, qint64 total); void stateChanged(QXmppTransferJob::State state); +private slots: + void slotTerminated(); + private: QXmppTransferJob(const QString &jid, QXmppTransferJob::Direction direction, QObject *parent); void checkData(); @@ -103,7 +107,7 @@ private: int m_blockSize; QXmppTransferJob::Direction m_direction; - int m_done; + qint64 m_done; QXmppTransferJob::Error m_error; QCryptographicHash m_hash; QIODevice *m_iodevice; -- cgit v1.2.3