1#ifndef _ESTORAGELIST_H_
2#define _ESTORAGELIST_H_
37 void AddStorageItem(
const int32_t &storageDataType,
const int32_t &key,
const QVariant &value );
38 void AddStorageItem(
const int32_t &storageDataType,
const int32_t &key,
void *value );
54 T
GetItem(
const int32_t &storageDataType )
const
57 if ( storageItem == NULL )
62 T requiredStrogeItem = DYNAMIC_CAST( T, storageItem );
63 if ( requiredStrogeItem == NULL )
68 return requiredStrogeItem;
72 bool GetData(
const int32_t &storageDataType,
const int32_t &key, QString &data )
const
75 if ( storageItem == NULL )
81 if ( dictionary == NULL )
86 bool ok = dictionary->
GetData( key, data );
92 bool GetData(
const int32_t &storageDataType,
const int32_t &key, T &data )
const
95 if ( storageItem == NULL )
101 if ( dictionary == NULL )
106 bool ok = dictionary->
GetData<T>( key, data );
111 bool GetPointer(
const int32_t &storageDataType,
const int32_t &key, T &data )
const
114 if ( storageItem == NULL )
120 if ( dictionary == NULL )
125 bool ok = dictionary->
GetPointer<T>( key, data );
129 bool RemoveData(
const int32_t &storageDataType,
const int32_t &key );
Interface of information element which can be state input.
Definition StorageItem.h:14
Definition StorageList.h:12
StorageItem * GetItem(const int32_t &storageDataType) const
void CopyStorageItem(const StorageItem *item)
StorageList(const StorageList *otherStorageList)
void AddStorageItem(const int32_t &storageDataType, const int32_t &key, void *value)
bool GetPointer(const int32_t &storageDataType, const int32_t &key, T &data) const
Definition StorageList.h:111
StorageList & operator=(const StorageList &otherInstance)
Copy all storage items(persistent and transient) to new storage list.
Definition StorageList.cpp:137
void AddStorageItem(const int32_t &storageDataType, const int32_t &key, const QVariant &value)
Add data(key, value) to storageItem with specific storage type storageDataType.
bool GetData(const int32_t &storageDataType, const int32_t &key, T &data) const
Definition StorageList.h:92
T GetItem(const int32_t &storageDataType) const
Definition StorageList.h:54
StorageList(const StorageList &otherStorageList)
Copy persistent Storage items from @otherStorageList to new storage list.
bool RemoveData(const int32_t &storageDataType, const int32_t &key)
Definition UniversalDictionary.h:11
bool GetPointer(const int32_t key, T &data)
Definition UniversalDictionary.h:118
bool GetData(const int32_t key, T &data)
Definition UniversalDictionary.h:53