#include <ITreeItemModel.h>
Inherits iser::ISerializable.
|
| virtual int | InsertNewItem ()=0 |
| |
| virtual int | RemoveItem (int index, const ChangeInfoMap &infoMap=ChangeInfoMap())=0 |
| |
| virtual ITreeItemModel * | AddTreeModel (const QByteArray &key, int index=0)=0 |
| |
| virtual bool | SetExternTreeModel (const QByteArray &key, ITreeItemModel *externTreeModel, int index=0)=0 |
| |
| virtual bool | CopyItemDataFromModel (int index, ITreeItemModel *externTreeModel, int externIndex=0)=0 |
| |
| virtual bool | SetData (const QByteArray &key, const QVariant &value, int index=0, const ChangeInfoMap &infoMap=ChangeInfoMap())=0 |
| |
| virtual bool | RemoveData (const QByteArray &key, int index=0, const ChangeInfoMap &infoMap=ChangeInfoMap())=0 |
| |
| virtual QVariant | GetData (const QByteArray &key, int index=0) const =0 |
| |
| virtual ITreeItemModel * | GetParent () const =0 |
| |
| virtual bool | IsTreeModel (const QByteArray &key, int index=0) const =0 |
| |
| virtual bool | ContainsKey (const QByteArray &key, int index=0) const =0 |
| |
| virtual ITreeItemModel * | GetRepresentation (const QByteArray &key, int index=0) const =0 |
| |
| virtual int | GetItemsCount () const =0 |
| |
| virtual void | GetKeys (QList< QByteArray > &keys, int index=0)=0 |
| |
| virtual QList< QByteArray > | GetKeys (int index=0)=0 |
| |
| virtual void | Clear ()=0 |
| |
| virtual bool | IsArray ()=0 |
| |
| virtual void | SetIsArray (const bool &isArray)=0 |
| |
| virtual bool | Parse (const QByteArray &data)=0 |
| |
| virtual QString | ToJSON ()=0 |
| |
Universal interface of data controller for UI representations
Definition at line 16 of file ITreeItemModel.h.
◆ AddTreeModel()
| virtual ITreeItemModel * imtbase::ITreeItemModel::AddTreeModel |
( |
const QByteArray & |
key, |
|
|
int |
index = 0 |
|
) |
| |
|
pure virtual |
Add child item model to main model
◆ Clear()
| virtual void imtbase::ITreeItemModel::Clear |
( |
| ) |
|
|
pure virtual |
Clear all items from model
◆ ContainsKey()
| virtual bool imtbase::ITreeItemModel::ContainsKey |
( |
const QByteArray & |
key, |
|
|
int |
index = 0 |
|
) |
| const |
|
pure virtual |
Checking that the model contains a key
◆ CopyItemDataFromModel()
| virtual bool imtbase::ITreeItemModel::CopyItemDataFromModel |
( |
int |
index, |
|
|
ITreeItemModel * |
externTreeModel, |
|
|
int |
externIndex = 0 |
|
) |
| |
|
pure virtual |
Copy item data from model
◆ GetData()
| virtual QVariant imtbase::ITreeItemModel::GetData |
( |
const QByteArray & |
key, |
|
|
int |
index = 0 |
|
) |
| const |
|
pure virtual |
◆ GetItemsCount()
| virtual int imtbase::ITreeItemModel::GetItemsCount |
( |
| ) |
const |
|
pure virtual |
Get items count for model
◆ GetKeys() [1/2]
| virtual QList< QByteArray > imtbase::ITreeItemModel::GetKeys |
( |
int |
index = 0 | ) |
|
|
pure virtual |
◆ GetKeys() [2/2]
| virtual void imtbase::ITreeItemModel::GetKeys |
( |
QList< QByteArray > & |
keys, |
|
|
int |
index = 0 |
|
) |
| |
|
pure virtual |
◆ GetParent()
Get parent model for current model
◆ GetRepresentation()
| virtual ITreeItemModel * imtbase::ITreeItemModel::GetRepresentation |
( |
const QByteArray & |
key, |
|
|
int |
index = 0 |
|
) |
| const |
|
pure virtual |
Get tree item model by key
◆ InsertNewItem()
| virtual int imtbase::ITreeItemModel::InsertNewItem |
( |
| ) |
|
|
pure virtual |
◆ IsArray()
| virtual bool imtbase::ITreeItemModel::IsArray |
( |
| ) |
|
|
pure virtual |
Checking that the item array
◆ IsTreeModel()
| virtual bool imtbase::ITreeItemModel::IsTreeModel |
( |
const QByteArray & |
key, |
|
|
int |
index = 0 |
|
) |
| const |
|
pure virtual |
Checking that the item tree model
◆ Parse()
| virtual bool imtbase::ITreeItemModel::Parse |
( |
const QByteArray & |
data | ) |
|
|
pure virtual |
Parse model data from byte array
◆ RemoveData()
| virtual bool imtbase::ITreeItemModel::RemoveData |
( |
const QByteArray & |
key, |
|
|
int |
index = 0, |
|
|
const ChangeInfoMap & |
infoMap = ChangeInfoMap() |
|
) |
| |
|
pure virtual |
◆ RemoveItem()
| virtual int imtbase::ITreeItemModel::RemoveItem |
( |
int |
index, |
|
|
const ChangeInfoMap & |
infoMap = ChangeInfoMap() |
|
) |
| |
|
pure virtual |
◆ SetData()
| virtual bool imtbase::ITreeItemModel::SetData |
( |
const QByteArray & |
key, |
|
|
const QVariant & |
value, |
|
|
int |
index = 0, |
|
|
const ChangeInfoMap & |
infoMap = ChangeInfoMap() |
|
) |
| |
|
pure virtual |
◆ SetExternTreeModel()
| virtual bool imtbase::ITreeItemModel::SetExternTreeModel |
( |
const QByteArray & |
key, |
|
|
ITreeItemModel * |
externTreeModel, |
|
|
int |
index = 0 |
|
) |
| |
|
pure virtual |
Add child extern item model to main model
◆ SetIsArray()
| virtual void imtbase::ITreeItemModel::SetIsArray |
( |
const bool & |
isArray | ) |
|
|
pure virtual |
◆ ToJSON()
| virtual QString imtbase::ITreeItemModel::ToJSON |
( |
| ) |
|
|
pure virtual |