diff options
Diffstat (limited to 'plugins/CopyEngine/Ultracopier/ReadThread.h')
-rw-r--r-- | plugins/CopyEngine/Ultracopier/ReadThread.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/plugins/CopyEngine/Ultracopier/ReadThread.h b/plugins/CopyEngine/Ultracopier/ReadThread.h index f00ae79..f817e35 100644 --- a/plugins/CopyEngine/Ultracopier/ReadThread.h +++ b/plugins/CopyEngine/Ultracopier/ReadThread.h @@ -31,7 +31,7 @@ public: /// \brief open with the name and copy mode void open(const QFileInfo &file, const Ultracopier::CopyMode &mode); /// \brief return the error string - QString errorString() const; + std::string errorString() const; //QByteArray read(qint64 position,qint64 maxSize); /// \brief stop the copy void stop(); @@ -40,9 +40,9 @@ public: /// \brief resume the copy void resume(); /// \brief get the size of the source file - qint64 size() const; + int64_t size() const; /// \brief get the last good position - qint64 getLastGoodPosition() const; + int64_t getLastGoodPosition() const; /// \brief start the reading of the source file void startRead(); #ifdef ULTRACOPIER_PLUGIN_SPEED_SUPPORT @@ -107,14 +107,14 @@ signals: void internalStartRead() const; void internalStartClose() const; /// \brief To debug source - void debugInformation(const Ultracopier::DebugLevel &level,QString fonction,QString text,QString file,int ligne) const; + void debugInformation(const Ultracopier::DebugLevel &level,std::string fonction,std::string text,std::string file,int ligne) const; private: - QString errorString_internal; + std::string errorString_internal; AvancedQFile file; volatile bool stopIt; Ultracopier::CopyMode mode; - qint64 lastGoodPosition; + int64_t lastGoodPosition; volatile int blockSize;//in Bytes #ifdef ULTRACOPIER_PLUGIN_SPEED_SUPPORT QSemaphore waitNewClockForSpeed; @@ -129,11 +129,11 @@ private: volatile bool isInReadLoop; volatile bool seekToZero; volatile bool tryStartRead; - qint64 size_at_open; - QDateTime mtime_at_open; + int64_t size_at_open; + uint64_t mtime_at_open; bool fakeMode; //internal function - bool seek(const qint64 &position);/// \todo search if is use full + bool seek(const int64_t &position);/// \todo search if is use full private slots: bool internalOpen(bool resetLastGoodPosition=true); bool internalOpenSlot(); |