diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-02-26 10:53:39 +0000 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-02-26 10:53:39 +0000 |
| commit | a24252feffe127ec715dc074ba9f87744169e79d (patch) | |
| tree | 72782b4efb0052b37c09eae31a86c7f708309eb5 /source/QXmppTransferManager.h | |
| parent | 4944058fcf479d263072b31920a2c488cd436245 (diff) | |
| download | qxmpp-a24252feffe127ec715dc074ba9f87744169e79d.tar.gz | |
tighten checks before sending a file
Diffstat (limited to 'source/QXmppTransferManager.h')
| -rw-r--r-- | source/QXmppTransferManager.h | 8 |
1 files changed, 6 insertions, 2 deletions
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; |
