edbee - Qt Editor Library v0.11.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 loadWithoutOpening (QIODevice *ioDevice)
 loads the file data for the given (opened) ioDevice
 
bool load (QIODevice *ioDevice)
 executes the file loading for the given (unopened) ioDevice
 
bool saveWithoutOpening (QIODevice *ioDevice)
 loads the file data for the given (opened) ioDevice
 
bool save (QIODevice *ioDevice)
 Saves the given document to the iodevice This method opens and closes the ioDevice..
 
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,

◆ loadWithoutOpening()

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

loads the file data for the given (opened) ioDevice

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

isStopRequested()

◆ save()

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

Saves the given document to the iodevice This method opens and closes the ioDevice..

◆ saveWithoutOpening()

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

loads the file data for the given (opened) ioDevice

Returns
true on success

◆ setFilter()

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

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