diff --git a/include/transport/AdminInterfaceCommand.h b/include/transport/AdminInterfaceCommand.h index 4383ab946297b21aa82bf40370acb0234733985a..6a4da07fde39dc3b7f284088dd51386837f0b9ac 100644 --- a/include/transport/AdminInterfaceCommand.h +++ b/include/transport/AdminInterfaceCommand.h @@ -69,7 +69,7 @@ class AdminInterfaceCommand { std::string example; }; - AdminInterfaceCommand(const std::string &name, Category category, Context context, AccessMode accessMode, Actions actions); + AdminInterfaceCommand(const std::string &name, Category category, Context context, AccessMode accessMode, Actions actions, const std::string &label = ""); virtual ~AdminInterfaceCommand() { } @@ -112,6 +112,10 @@ class AdminInterfaceCommand { return m_args; } + const std::string &getLabel() { + return m_label; + } + virtual std::string handleSetRequest(UserInfo &uinfo, User *user, std::vector &args); virtual std::string handleGetRequest(UserInfo &uinfo, User *user, std::vector &args); virtual std::string handleExecuteRequest(UserInfo &uinfo, User *user, std::vector &args); @@ -124,6 +128,7 @@ class AdminInterfaceCommand { Actions m_actions; std::string m_desc; std::list m_args; + std::string m_label; }; }