#include "base/clicommand.hpp"
#include "base/logger_fwd.hpp"
+#include "base/type.hpp"
+#include "base/serializer.hpp"
#include <boost/algorithm/string/split.hpp>
#include <boost/algorithm/string/join.hpp>
#include <boost/algorithm/string/trim.hpp>
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
******************************************************************************/
-#ifndef AGENTUTILITYCOMMAND_H
-#define AGENTUTILITYCOMMAND_H
+#ifndef AGENTUTILITY_H
+#define AGENTUTILITY_H
+
+#include "base/i2-base.hpp"
+#include "base/value.hpp"
namespace icinga
{
/**
- * The "pki new-ca" command.
- *
* @ingroup cli
*/
-class AgentUtility {
-
+class AgentUtility
+{
public:
- DECLARE_PTR_TYPEDEFS(AgentUtility);
-
- void ListAgents(void);
- bool AddAgent(const String& name);
- bool RemoveAgent(const String& name);
- bool SetAgentAttribute(const String& attr, const Value& val);
+ static void ListAgents(void);
+ static bool AddAgent(const String& name);
+ static bool RemoveAgent(const String& name);
+ static bool SetAgentAttribute(const String& attr, const Value& val);
+private:
+ AgentUtility(void);
};
}
-#endif /* AGENTUTILITYCOMMAND_H */
+#endif /* AGENTUTILITY_H */