summaryrefslogtreecommitdiff
path: root/include/server.h
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-01-05 15:20:17 +0100
committerAttila Molnar <attilamolnar@hush.com>2014-01-05 15:20:17 +0100
commit9136136ac373a922cd0875f77d3212a419fb9100 (patch)
tree385afcb56e62de5a39bed1d7bf6d5311cc001df9 /include/server.h
parent11916574f67962dce1d7a2fdf7ef6a3d2d1fa49f (diff)
Move server description field from TreeServer into Server; remove OnGetServerDescription hook
Diffstat (limited to 'include/server.h')
-rw-r--r--include/server.h13
1 files changed, 11 insertions, 2 deletions
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.