summaryrefslogtreecommitdiff
path: root/include/server.h
diff options
context:
space:
mode:
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.