diff options
Diffstat (limited to 'plugins/CopyEngine/Ultracopier/AvancedQFile.h')
-rw-r--r-- | plugins/CopyEngine/Ultracopier/AvancedQFile.h | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/plugins/CopyEngine/Ultracopier/AvancedQFile.h b/plugins/CopyEngine/Ultracopier/AvancedQFile.h deleted file mode 100644 index 8c3dc4a..0000000 --- a/plugins/CopyEngine/Ultracopier/AvancedQFile.h +++ /dev/null @@ -1,45 +0,0 @@ -/** \file AvancedQFile.h -\brief Define the QFile herited class to set file date/time -\author alpha_one_x86 -\licence GPL3, see the file COPYING */ - -#ifndef AVANCEDQFILE_H -#define AVANCEDQFILE_H - -#include <QFile> -#include <QDateTime> -#include <QFileInfo> - -/// \brief devired class from QFile to set time/date on file -class AvancedQFile : public QFile -{ - Q_OBJECT -public: - /// \brief set created date, not exists in unix world - bool setCreated(const QDateTime &time); - /// \brief set last modification date - bool setLastModified(const QDateTime &time); - /// \brief set last read date - bool setLastRead(const QDateTime &time); - - #ifdef ULTRACOPIER_OVERLAPPED_FILE - explicit AvancedQFile(); - ~AvancedQFile(); - bool open(OpenMode mode); - void close(); - bool seek(qint64 pos); - bool resize(qint64 size); - QString errorString() const; - bool isOpen() const; - qint64 write(const QByteArray &data); - QByteArray read(qint64 maxlen); - FileError error() const; - QString getLastWindowsError(); -private: - HANDLE handle; - FileError fileError; - QString fileErrorString; - #endif -}; - -#endif // AVANCEDQFILE_H |