6#include <QtCore/QString>
15 class IProgressManager;
120 const QString* filePathPtr =
NULL,
122 bool beQuiet =
true)
const = 0;
130 const QString& filePath = QString(),
139 const QString& filePath = QString(),
Consume information about progress of some process.
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 bool IsOperationSupported(const istd::IChangeable *dataObjectPtr, const QString *filePathPtr=NULL, int flags=-1, bool beQuiet=true) const =0
Returns true if object dataObject can be loaded/saved.
OperationState
Result of operation.
@ OS_FAILED
Operation failed.
@ OS_CANCELED
Operation was aborted by user.
@ OS_OK
Operation was successful.
virtual OperationState LoadFromFile(istd::IChangeable &data, const QString &filePath=QString(), ibase::IProgressManager *progressManagerPtr=NULL) const =0
This function loads data data from file filePath.
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 OperationState SaveToFile(const istd::IChangeable &data, const QString &filePath=QString(), ibase::IProgressManager *progressManagerPtr=NULL) const =0
This function saves data data to file filePath.
Provide loading and saving of objects.
Common interface for data model objects, which can be changed.
This namespace contains basic implementations of standard primitives on the component level.
Contains interfaces and implementations of file system related components.