edbee - Qt Editor Library
Public Member Functions | List of all members
edbee::TextDocumentSerializer Class Reference

A class used to load/save a text-file from and to an IODevice. More...

#include <textdocumentserializer.h>

+ Collaboration diagram for edbee::TextDocumentSerializer:

Public Member Functions

 TextDocumentSerializer (TextDocument *textDocument)
 
bool load (QIODevice *ioDevice)
 executes the file loading for the given (unopened) ioDevice More...
 
bool save (QIODevice *ioDevice)
 Saves the given document to the iodevice. More...
 
QString errorString ()
 
void setFilter (TextDocumentSerializerFilter *filter)
 
TextDocumentSerializerFilterfilter ()
 

Detailed Description

A class used to load/save a text-file from and to an IODevice.

Constructor & Destructor Documentation

◆ TextDocumentSerializer()

edbee::TextDocumentSerializer::TextDocumentSerializer ( TextDocument textDocument)

Member Function Documentation

◆ errorString()

QString edbee::TextDocumentSerializer::errorString ( )
inline

◆ filter()

TextDocumentSerializerFilter* edbee::TextDocumentSerializer::filter ( )
inline

◆ load()

bool edbee::TextDocumentSerializer::load ( QIODevice *  ioDevice)

executes the file loading for the given (unopened) ioDevice

Returns
true on success,
Todo:
: atEnd doesn't seem to work !?!
Todo:
: implement isStopRequested to stop loading if required

isStopRequested()

◆ save()

bool edbee::TextDocumentSerializer::save ( QIODevice *  ioDevice)

Saves the given document to the iodevice.

◆ setFilter()

void edbee::TextDocumentSerializer::setFilter ( TextDocumentSerializerFilter filter)
inline

The documentation for this class was generated from the following files: