Loader component, which delegates the persistence functionality to its slave loaders.
More...
|
| typedef icomp::CComponentBase | BaseClass |
| |
| enum | OperationState { OS_OK
, OS_CANCELED
, OS_FAILED
} |
| | Result of operation. More...
|
| |
| enum | ErrorType { ET_NO_WRITE_PERMISSIONS
, ET_NO_READ_PERMISSIONS
, ET_FILE_NOT_EXIST
} |
| | Possible file I/O errors. More...
|
| |
| enum | MessageId {
MI_BAD_OBJECT_TYPE = 0xabf0
, MI_CANNOT_LOAD
, MI_CANNOT_SAVE
, MI_BAD_EXTENSION
,
MI_FILE_NOT_EXIST
, MI_UNSUPPORTED_VERSION
} |
| | List of possible message IDs used in context of this interface. More...
|
| |
| enum | QueryFlags {
QF_LOAD = 1 << 0
, QF_SAVE = 1 << 1
, QF_FILE = 1 << 2
, QF_DIRECTORY = 1 << 3
,
QF_ANONYMOUS = 1 << 4
} |
| | Describe detailed options of query. More...
|
| |
| enum | OperationState { Successful
, Canceled
, Failed
} |
| | Result of device-related operation. More...
|
| |
| enum | DeviceOperation { ReadOperation = 1
, WriteOperation = 2
} |
| |
| enum | ErrorType {
NoWritePermissions
, NoReadPermissions
, NoDeviceAccess
, ReadOperationFailed
,
WriteOperationFailed
, UnsupportedArchiveVersion
} |
| | Possible operation errors. More...
|
| |
| enum | OperationType { OT_UNKNOWN
, OT_LOAD
, OT_SAVE
} |
| |
| enum | PathType { PT_COMPLETE
, OT_FILENAME
, OT_DIR
} |
| |
|
| 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 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::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 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.
|
| |
| 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 QString | GetLastFilePath (OperationType operationType=OT_UNKNOWN, PathType pathType=PT_COMPLETE) const override |
| | Returns the last opened file name.
|
| |
| | CComponentBase () |
| | Create component and assign it to specific context.
|
| |
| virtual const icomp::IComponent * | GetParentComponent (bool ownerOnly=false) const override |
| | Get parent of this component.
|
| |
| virtual void * | GetInterface (const istd::CClassInfo &interfaceType, const QByteArray &subId="") override |
| | Get access to specified component interface.
|
| |
| virtual IComponentContextSharedPtr | GetComponentContext () const override |
| | Get access to component context describing all application-specified component information loaded from components registry.
|
| |
| virtual void | SetComponentContext (const IComponentContextSharedPtr &contextPtr, const icomp::IComponent *parentPtr, bool isParentOwner) override |
| | Set component context of this component.
|
| |
| virtual | ~IPolymorphic () |
| |
Loader component, which delegates the persistence functionality to its slave loaders.
Definition at line 24 of file CComposedFilePersistenceComp.h.