From c62fe609a69058e2e30f757e9a06f72a98464232 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Fri, 17 Sep 2010 15:19:34 +0000 Subject: Bump network protocol version to 19, menudescriptions use the info infrastructure, client-side lazy info update requests. Updated ROADMAP --- src/core/info.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'src/core/info.h') 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; } -- cgit v1.2.3