diff --git a/src/filesystem.cpp b/src/filesystem.cpp index e986ca6f..24a809ef 100644 --- a/src/filesystem.cpp +++ b/src/filesystem.cpp @@ -110,6 +110,15 @@ bool File::write(const QString &data) } } +bool File::seek(const qint64 pos) +{ + if (m_fileStream) { + return m_fileStream->seek(pos); + } else { + return m_file->seek(pos); + } +} + QString File::readLine() { if ( !m_file->isReadable() ) { diff --git a/src/filesystem.h b/src/filesystem.h index d688d8b6..e61a13e3 100644 --- a/src/filesystem.h +++ b/src/filesystem.h @@ -52,6 +52,8 @@ public slots: QString read(); bool write(const QString &data); + bool seek(const qint64 pos); + QString readLine(); bool writeLine(const QString &data);