|
ImagingTools Core SDK
|
#include <ICollectionInfo.h>
Public Types | |
| enum | ChangeFlags { CF_ADDED = 10000 , CF_ELEMENT_RENAMED , CF_ELEMENT_DESCRIPTION_CHANGED , CF_ELEMENT_STATE , CF_REMOVED , CF_RESTORED , CF_LAST } |
| enum | ElementInfoType { EIT_NAME , EIT_DESCRIPTION , EIT_ENABLED , EIT_USER = 1000 } |
| enum | MetaInfoType { MIT_INSERTION_USER = idoc::IDocumentMetaInfo::MIT_USER + 10000 , MIT_INSERTION_TIME , MIT_LAST_OPERATION_USER , MIT_LAST_OPERATION_TIME , MIT_PREVIEW_THUMBNAIL , MIT_REVISION = idoc::IDocumentMetaInfo::MIT_USER + 20000 } |
Public Member Functions | |
| virtual int | GetElementsCount (const iprm::IParamsSet *selectionParamsPtr=nullptr, ilog::IMessageConsumer *logPtr=nullptr) const =0 |
| virtual Ids | GetElementIds (int offset=0, int count=-1, const iprm::IParamsSet *selectionParamsPtr=nullptr, ilog::IMessageConsumer *logPtr=nullptr) const =0 |
| virtual bool | GetSubsetInfo (ICollectionInfo &subsetInfo, int offset=0, int count=-1, const iprm::IParamsSet *selectionParamsPtr=nullptr, ilog::IMessageConsumer *logPtr=nullptr) const =0 |
| virtual QVariant | GetElementInfo (const Id &elementId, int infoType, ilog::IMessageConsumer *logPtr=nullptr) const =0 |
| virtual idoc::MetaInfoPtr | GetElementMetaInfo (const Id &elementId, ilog::IMessageConsumer *logPtr=nullptr) const =0 |
| virtual bool | SetElementName (const Id &elementId, const QString &name, ilog::IMessageConsumer *logPtr=nullptr)=0 |
| virtual bool | SetElementDescription (const Id &elementId, const QString &description, ilog::IMessageConsumer *logPtr=nullptr)=0 |
| virtual bool | SetElementEnabled (const Id &elementId, bool isEnabled=true, ilog::IMessageConsumer *logPtr=nullptr)=0 |
Interface for non-iterable colllection info.
Definition at line 26 of file ICollectionInfo.h.
Change notification flags.
Definition at line 65 of file ICollectionInfo.h.
Type of the element information.
Definition at line 103 of file ICollectionInfo.h.
Type of the meta-informations supported by the collection.
Definition at line 129 of file ICollectionInfo.h.
|
pure virtual |
Get IDs of the elements inside the collection for parent.
| offset | [optional] Index offset of the first element |
| count | [optional] If positive, the number of elements should be returned. |
| selectionParamsPtr | [optional] Additional parameters for filtering/ordering elements. |
| parentId | [optional] Parent element ID. Entire filtering operation applies to the childs of this element only. |
|
pure virtual |
Get information about a given element.
|
pure virtual |
Get meta-information of the element in the collection.
| elementId | ID of the element in the collection. |
| metaInfo | Meta-info to be filled by this method. |
true if the operation was successful, and false if no information could be provided.
|
pure virtual |
Get number of elements in the collection
|
pure virtual |
Get information about the subset of the whole collection according to the given filtering/sorting parameters.
| subsetInfo | collection information for the data subset. |
| offset | [optional] Index offset of the first element |
| count | [optional] If positive, the number of elements should be returned. |
| selectionParamsPtr | [optional] Additional parameters for filtering/ordering elements. |
| parentId | [optional] Parent element ID. Entire filtering operation applies to the childs of this element only. |
|
pure virtual |
Set description of the element with the given ID.
|
pure virtual |
Enable/Disable element with the given ID.
|
pure virtual |
Set name of the element with the given ID.