#include <cachenonemethod.h>
Inheritance diagram for TPProto::CacheNoneMethod:

Public Member Functions | |
| CacheNoneMethod () | |
| Default Constructor. | |
| CacheNoneMethod (const CacheNoneMethod &rhs) | |
| Copy Constructor. No fields to copy or zero. | |
| virtual | ~CacheNoneMethod () |
| Destructor, virtual. | |
| virtual void | update () |
| Called when the client wants to update the cache. Can do nothing. | |
| virtual void | getById (uint32_t id) |
| Gets a item from the cache by Id. | |
| virtual void | markInvalid (uint32_t id) |
| Marks an item as invalid. If a method wishes to it can refetch it from the server. The pointer to the frame should not be consided valid, and does not get deleted by the CacheMethod. | |
| virtual CacheMethod * | clone () |
| Returns an empty clone of this CacheMethod. body should be return new CacheMethodNameCopyConstructor(this);. | |
Protected Member Functions | |
| void | getIdList () |
| void | receiveItem (Frame *frame) |
| void | receiveIdList (Frame *frame) |
| void TPProto::CacheNoneMethod::getById | ( | uint32_t | id | ) | [virtual] |
Gets a item from the cache by Id.
Returned by call to Cache::newItem or Cache::existingItem
| id | The Id of the item to get. |
Implements TPProto::CacheMethod.
| void TPProto::CacheNoneMethod::markInvalid | ( | uint32_t | id | ) | [virtual] |
Marks an item as invalid. If a method wishes to it can refetch it from the server. The pointer to the frame should not be consided valid, and does not get deleted by the CacheMethod.
| id | The id of the item that is invalid. |
Implements TPProto::CacheMethod.
1.5.1