Updating TextFile

This commit is contained in:
Mark Long
2025-09-30 20:40:05 -05:00
parent 05fd56d4e3
commit dca1bf01de
2 changed files with 9 additions and 3 deletions

View File

@@ -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();
}

View File

@@ -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;
};