Mercurial > irccd
view libirccd/irccd/cmd-plugin-load.hpp @ 309:2f72a42ba595
Tests: add test for server-list, #559
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 19 Oct 2016 17:46:38 +0200 |
parents | b490853404d9 |
children | 427bbbcb50d1 |
line wrap: on
line source
/* * cmd-plugin-load.hpp -- implementation of plugin-load transport command * * Copyright (c) 2013-2016 David Demelier <markand@malikania.fr> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ #ifndef IRCCD_CMD_PLUGIN_LOAD_HPP #define IRCCD_CMD_PLUGIN_LOAD_HPP /** * \file cmd-plugin-load.hpp * \brief Implementation of plugin-load transport command. */ #include "command.hpp" namespace irccd { namespace command { /** * \brief Implementation of plugin-load transport command. */ class PluginLoadCommand : public Command { public: /** * Constructor. */ IRCCD_EXPORT PluginLoadCommand(); /** * \copydoc Command::args */ IRCCD_EXPORT std::vector<Arg> args() const override; /** * \copydoc Command::properties */ IRCCD_EXPORT std::vector<Property> properties() const override; /** * \copydoc Command::request */ IRCCD_EXPORT nlohmann::json request(Irccdctl &irccdctl, const CommandRequest &args) const override; /** * \copydoc Command::exec */ IRCCD_EXPORT nlohmann::json exec(Irccd &irccd, const nlohmann::json &request) const override; }; } // !command } // !irccd #endif // !IRCCD_CMD_PLUGIN_LOAD_HPP