diff options
author | Stijn Buys <ingar@osirion.org> | 2010-09-17 15:19:34 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2010-09-17 15:19:34 +0000 |
commit | c62fe609a69058e2e30f757e9a06f72a98464232 (patch) | |
tree | 53f6a671bd84924ddf7d278cf10a3e527670088e /src/core/info.h | |
parent | 0c509866a37ab47ff0e48d357ca55e31658c37c2 (diff) |
Bump network protocol version to 19, menudescriptions use the info infrastructure, client-side lazy info update requests.
Updated ROADMAP
Diffstat (limited to 'src/core/info.h')
-rw-r--r-- | src/core/info.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/core/info.h b/src/core/info.h index 8822f2f..4b9c445 100644 --- a/src/core/info.h +++ b/src/core/info.h @@ -64,13 +64,7 @@ public: * @brief create a new server-side information card * This constructor assigns an id */ - Info(const InfoType *type); - - /** - * @brief create a new client-side information card - * This constructor doesn not assign an id - */ - Info(const InfoType *type, const std::string & label); + Info(const InfoType *type, const char *label = 0); /** * @brief create a new client-side information card @@ -102,6 +96,13 @@ public: return info_price; } + /** + * @brief timestamp + * The timestamp is used client-side, a non-zero value + * indicates the time when the info was last requested. + * If the info has been received from the server, the timestamp + * is set to 0 + */ inline const unsigned long ×tamp() const { return info_timestamp; } |