71 I_ASSIGN_MULTI_1(m_fileExtensionsAttrPtr,
"FileExtensions",
"List of possible file extensions",
true,
"txt");
72 I_ASSIGN_MULTI_1(m_typeDescriptionsAttrPtr,
"TypeDescriptions",
"List of descriptions for each extension",
true,
"Text file");
78 const QString* filePathPtr =
NULL,
80 bool beQuiet =
true)
const override;
83 const QString& filePath = QString(),
87 const QString& filePath = QString(),
93 const QIODevice& device,
94 int deviceOperation)
const override;
109 I_MULTIATTR(QString, m_fileExtensionsAttrPtr);
Consume information about progress of some process.
Base class for component implementation.
Persistence component for files containing plain text.
virtual ifile::IDeviceBasedPersistence::OperationState WriteToDevice(const istd::IChangeable &data, QIODevice &device, ibase::IProgressManager *progressManagerPtr=nullptr) const override
This function writes data data to the given I/O-device device.
virtual bool GetFileExtensions(QStringList &result, const istd::IChangeable *dataObjectPtr=NULL, int flags=-1, bool doAppend=false) const override
Get file extensions supported by this loader.
virtual QString GetTypeDescription(const QString *extensionPtr=NULL) const override
Get description of object type associated with single extension.
virtual ifile::IFilePersistence::OperationState LoadFromFile(istd::IChangeable &data, const QString &filePath=QString(), ibase::IProgressManager *progressManagerPtr=NULL) const override
This function loads data data from file filePath.
virtual bool IsOperationSupported(const istd::IChangeable *dataObjectPtr, const QString *filePathPtr=NULL, int flags=-1, bool beQuiet=true) const override
Returns true if object dataObject can be loaded/saved.
virtual bool IsDeviceOperationSupported(const istd::IChangeable &dataObject, const QIODevice &device, int deviceOperation) const override
Returns true if object dataObject can be processed via defined I/O-device.
virtual ifile::IDeviceBasedPersistence::OperationState ReadFromDevice(istd::IChangeable &data, QIODevice &device, ibase::IProgressManager *progressManagerPtr=nullptr) const override
This function loads data data from the given I/O-device device.
icomp::CComponentBase BaseClass
virtual ifile::IFilePersistence::OperationState SaveToFile(const istd::IChangeable &data, const QString &filePath=QString(), ibase::IProgressManager *progressManagerPtr=NULL) const override
This function saves data data to file filePath.
Interface providing reading and writing data objects via I/O-devices.
OperationState
Result of device-related operation.
Interface providing loading and saving of data objects.
OperationState
Result of operation.
Provide loading and saving of objects.
Common interface for data model objects, which can be changed.
#define I_MULTITEXTATTR(member)
Declare translatable multiple text attribute member.
Contains the system independent basic implementations of Document/View design pattern.