The ElementCollectionHandler class Provide several method to copy element or directory from a collection to another collection.
More...
#include <elementcollectionhandler.h>
The ElementCollectionHandler class Provide several method to copy element or directory from a collection to another collection.
◆ ElementCollectionHandler()
ElementCollectionHandler::ElementCollectionHandler |
( |
| ) |
|
◆ ~ElementCollectionHandler()
ElementCollectionHandler::~ElementCollectionHandler |
( |
| ) |
|
◆ copy()
ElementCollectionHandler::copy Copy the content of collection represented by source to the collection represented by destination. Destination must be a directory, else the copy do nothing and return a null ElementLocation if destination have an item with the same name of source, a dialog ask to user what to do.
- Parameters
-
- Returns
◆ createDir()
ElementCollectionHandler::createDir Create a directorie with name as child of parent. Parent must be a directory.
- Parameters
-
parent | : parent of the dir to create |
name | : name of directorie to create |
name_list | : translations of the directorie name |
- Returns
- : ElementsLocation that represent the new directorie, location can be null if an error was occurred
◆ importFromProject()
ElementCollectionHandler::importFromProject Import the element represented by location to the embedded collection of project at the same path. location must represente an element owned by a project embedded collection.
- Parameters
-
project | : project where copy the element |
location | : location to copy |
- Returns
- true if import with success
◆ setNames()
ElementCollectionHandler::setNames Set the names stored in name_list as the names of the item represented by location.
- Parameters
-
location | : location to change the names |
name_list | : NamesList to use |
- Returns
- return true if success
◆ m_strategy
ECHStrategy* ElementCollectionHandler::m_strategy = nullptr |
|
private |
The documentation for this class was generated from the following files: