#include <ICollectionDataController.h>
Common interface for the services around the objects in the collection.
Definition at line 26 of file ICollectionDataController.h.
◆ ExportFile()
| virtual bool imtbase::ICollectionDataController::ExportFile |
( |
const imtbase::IObjectCollection & |
collection, |
|
|
const ICollectionInfo::Id & |
objectId, |
|
|
const QString & |
targetFilePath = QString() |
|
) |
| const |
|
pure virtual |
Export a file from an object collection.
- Parameters
-
| collection | Collection containing the object to be exported. |
| objectId | ID of the object to be exported from a collection. |
| targetPath | Path to the exported file. |
- Returns
true if the file object was successfully exported or false otherwise.
◆ GetPersistenceForObjectType()
| virtual const ifile::IFilePersistence * imtbase::ICollectionDataController::GetPersistenceForObjectType |
( |
const QByteArray & |
typeId | ) |
const |
|
pure virtual |
Get the file persistence for a given object type.
◆ ImportFile()
| virtual ICollectionInfo::Id imtbase::ICollectionDataController::ImportFile |
( |
imtbase::IObjectCollection & |
collection, |
|
|
const QByteArray & |
typeId, |
|
|
const QString & |
sourceFilePath = QString(), |
|
|
const QString & |
objectName = QString() |
|
) |
| const |
|
pure virtual |
Import an object in the collection from a file.
- Parameters
-
| collection | Collection instance where the will be imported. |
| typeId | Object type ID. |
| sourcePath | Path to the imported file. |
| objectName | Name of the imported object after import in the collection. |
- Returns
true if the file object was successfully imported or false otherwise.