mirror of
https://github.com/markdavidlong/AppleSAWS.git
synced 2026-03-10 23:25:02 +00:00
Updating TextFile
This commit is contained in:
@@ -14,7 +14,10 @@ void TextFile::setData(const QByteArray& data)
|
||||
m_data = data;
|
||||
}
|
||||
|
||||
void TextFile::dump()
|
||||
void TextFile::dump() const
|
||||
{
|
||||
// TODO: Implement text file dumping functionality
|
||||
qDebug() << "Text File:" << filename();
|
||||
qDebug() << " Size:" << m_data.size() << "bytes";
|
||||
qDebug() << " Lines:" << asLines().size();
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
#pragma once
|
||||
|
||||
#include "GenericFile.h"
|
||||
#include <QString>
|
||||
#include <QStringList>
|
||||
|
||||
class TextFile final : public GenericFile
|
||||
{
|
||||
@@ -15,7 +17,8 @@ public:
|
||||
TextFile& operator=(TextFile&&) = default;
|
||||
|
||||
void setData(const QByteArray& data) override;
|
||||
void dump();
|
||||
void dump() const;
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user