10#include <QtCore/QString>
20 class IProgressManager;
103 const QString* filePathPtr =
nullptr,
105 bool beQuiet =
true)
const = 0;
113 const QString& filePath = QString(),
122 const QString& filePath = QString(),
Interface providing loading and saving of data objects.
MessageId
List of possible message IDs used in context of this interface.
@ MI_CANNOT_SAVE
Data object could not be saved.
@ MI_BAD_EXTENSION
File path has an unsupported file exptension.
@ MI_CANNOT_LOAD
Data object could not be loaded.
@ MI_FILE_NOT_EXIST
File or directory not exists.
@ MI_BAD_OBJECT_TYPE
Data object is not supported.
virtual iproc::CTaskState SaveToFile(const istd::IChangeable &data, const QString &filePath=QString(), iproc::IProgressManager *progressManagerPtr=nullptr) const =0
This function saves data data to file filePath.
virtual bool IsOperationSupported(const istd::IChangeable *dataObjectPtr, const QString *filePathPtr=nullptr, int flags=-1, bool beQuiet=true) const =0
Returns true if object dataObject can be loaded/saved.
ErrorType
Possible file I/O errors.
@ ET_FILE_NOT_EXIST
File doesn't exist.
@ ET_NO_READ_PERMISSIONS
File could not be read, no read access granted.
@ ET_NO_WRITE_PERMISSIONS
File could not be written, no write access granted.
virtual iproc::CTaskState LoadFromFile(istd::IChangeable &data, const QString &filePath=QString(), iproc::IProgressManager *progressManagerPtr=nullptr) const =0
This function loads data data from file filePath.
Provide loading and saving of objects.
Represent state of asynchronous operation.
Consume information about progress of some process.
Common interface for data model objects, which can be changed.
Contains interfaces and implementations of file system related components.
This namespace containes interfaces and implementation of data processing concepts.