Class that will handle data storage requests. More...
Public Member Functions | |
| virtual void | OnDataStorageRead (const cohtml::IDataStorageRequest *request, cohtml::IDataStorageResponse *response)=0 |
| Called when data storage needs a key or value data. More... | |
| virtual bool | OnDataStorageWrite (const char *id, const char *key, const char *value)=0 |
| Called when data storage needs a data to be stored for a specific ID and key If data collection for that ID doesn't exist it should be created. More... | |
| virtual void | OnDataStorageRemove (const char *id, const char *key)=0 |
| Called when data storage needs a data to be removed from the collection. More... | |
| virtual void | OnDataStorageClear (const char *id)=0 |
| Called when data storage needs all data for a given collection to be cleared. More... | |
| virtual unsigned long | OnDataStorageCount (const char *id)=0 |
| Called when data storage needs the count of all data stored in a specific collection. More... | |
Class that will handle data storage requests.
|
pure virtual |
Called when data storage needs all data for a given collection to be cleared.
| id | of the data collection |
|
pure virtual |
Called when data storage needs the count of all data stored in a specific collection.
| id | of the data collection |
|
pure virtual |
Called when data storage needs a key or value data.
| request | object describing the data requested |
| response | object where to pass the data read |
|
pure virtual |
Called when data storage needs a data to be removed from the collection.
| id | of the data collection |
| key | that needs to be removed |
|
pure virtual |
Called when data storage needs a data to be stored for a specific ID and key If data collection for that ID doesn't exist it should be created.
| id | of the data collection |
| key | for storing the value |
| value | that needs to be stored |