From 9136136ac373a922cd0875f77d3212a419fb9100 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Sun, 5 Jan 2014 15:20:17 +0100 Subject: Move server description field from TreeServer into Server; remove OnGetServerDescription hook --- include/server.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'include/server.h') diff --git a/include/server.h b/include/server.h index e6e96593d..3d8854734 100644 --- a/include/server.h +++ b/include/server.h @@ -26,6 +26,10 @@ class CoreExport Server : public classbase */ const std::string name; + /** The description of this server + */ + const std::string description; + /** True if this server is ulined */ bool uline; @@ -35,8 +39,8 @@ class CoreExport Server : public classbase bool silentuline; public: - Server(const std::string& srvname) - : name(srvname), uline(false), silentuline(false) { } + Server(const std::string& srvname, const std::string& srvdesc) + : name(srvname), description(srvdesc), uline(false), silentuline(false) { } /** * Returns the name of this server @@ -44,6 +48,11 @@ class CoreExport Server : public classbase */ const std::string& GetName() const { return name; } + /** Returns the description (GECOS) of this server + * @return The description of this server + */ + const std::string& GetDesc() const { return description; } + /** * Checks whether this server is ulined * @return True if this server is ulined, false otherwise. -- cgit v1.2.3