added txt support

This commit is contained in:
Agel committed 2026-03-15 21:33:18 +01:00
1 parent 3c0037cfc9
commit 64a70bc4cf
22 files changed
+800 -186

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
#ifndef TXTREADER_H
#define TXTREADER_H
#include "backend/FormatReader.h"
class TxtReader : public FormatReader {
public:
bool open(const QString &filePath) override;
QString lastError() override;
int chapterCount() override;
Chapter loadChapter(int index) override;
QList<TocEntry> tableOfContents() override;
QString title() override;
QString author() override;
private:
QString m_content;
QString m_title;
QString m_error;
};
#endif // TXTREADER_H