15#include <QtCore/QFileInfo>
37 I_ASSIGN_MULTI_0(m_slaveLoadersCompPtr,
"SlaveLoaders",
"List of slave loaders",
true);
38 I_ASSIGN(m_commonDescriptionAttrPtr,
"CommonDescription",
"Optional common description of this file type",
false,
"Composed");
44 const QString* filePathPtr =
nullptr,
46 bool beQuiet =
true)
const override;
49 const QString& filePath = QString(),
53 const QString& filePath = QString(),
68 I_TEXTATTR(m_commonDescriptionAttrPtr);
70 mutable QFileInfo m_lastOpenInfo;
71 mutable QFileInfo m_lastSaveInfo;
Base class for component implementation.
Loader component, which delegates the persistence functionality to its slave loaders.
QString GetTypeDescription(const QString *extensionPtr=nullptr) const override
Get description of object type associated with single extension.
iproc::CTaskState SaveToFile(const istd::IChangeable &data, const QString &filePath=QString(), iproc::IProgressManager *progressManagerPtr=nullptr) const override
This function saves data data to file filePath.
bool IsOperationSupported(const istd::IChangeable *dataObjectPtr, const QString *filePathPtr=nullptr, int flags=-1, bool beQuiet=true) const override
Returns true if object dataObject can be loaded/saved.
icomp::CComponentBase BaseClass
bool GetFileExtensions(QStringList &result, const istd::IChangeable *dataObjectPtr=nullptr, int flags=-1, bool doAppend=false) const override
Get file extensions supported by this loader.
QString GetPathForType(const QFileInfo &fileInfo, PathType pathType) const
QString GetLastFilePath(OperationType operationType=OT_UNKNOWN, PathType pathType=PT_COMPLETE) const override
Returns the last opened file name.
iproc::CTaskState LoadFromFile(istd::IChangeable &data, const QString &filePath=QString(), iproc::IProgressManager *progressManagerPtr=nullptr) const override
This function loads data data from file filePath.
Interface providing loading and saving of data objects.
Provide some information about file loader state.
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.