12#include <QtCore/QFileInfo>
38 I_ASSIGN_MULTI_0(m_slaveLoadersCompPtr,
"SlaveLoaders",
"List of slave loaders",
true);
39 I_ASSIGN(m_commonDescriptionAttrPtr,
"CommonDescription",
"Optional common description of this file type",
false,
"Composed");
45 const QString* filePathPtr =
NULL,
47 bool beQuiet =
true)
const override;
50 const QString& filePath = QString(),
54 const QString& filePath = QString(),
60 const QIODevice& device,
61 int deviceOperation)
const override;
85 mutable QFileInfo m_lastOpenInfo;
86 mutable QFileInfo m_lastSaveInfo;
Consume information about progress of some process.
Base class for component implementation.
Loader component, which delegates the persistence functionality to its slave loaders.
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 GetFileExtensions(QStringList &result, const istd::IChangeable *dataObjectPtr=NULL, int flags=-1, bool doAppend=false) const override
Get file extensions supported by this loader.
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.
virtual QString GetTypeDescription(const QString *extensionPtr=NULL) const override
Get description of object type associated with single extension.
virtual QString GetLastFilePath(OperationType operationType=OT_UNKNOWN, PathType pathType=PT_COMPLETE) const override
Returns the last opened file name.
QString GetPathForType(const QFileInfo &fileInfo, PathType pathType) const
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.
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::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 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.
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 some information about file loader state.
Provide loading and saving of objects.
Common interface for data model objects, which can be changed.
#define I_TEXTATTR(member)
Declare translatable text attribute member.
Contains interfaces and implementations of file system related components.