Mercurial > irccd
view lib/irccd/cmd-server-mode.h @ 75:f8160d515a76
Irccd: rework a lot the JavaScript library
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 30 Mar 2016 13:52:47 +0200 |
parents | |
children | 969f30acfb0e |
line wrap: on
line source
/* * server-mode.h -- implementation of server-mode 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_COMMAND_SERVER_MODE_H_ #define _IRCCD_COMMAND_SERVER_MODE_H_ /** * @file server-mode.h * @brief Implementation of server-mode transport command. */ #include "command.h" namespace irccd { namespace command { /** * @class ServerMode * @brief Implementation of server-mode transport command. */ class ServerMode : public RemoteCommand { public: ServerMode(); /** * @copydoc RemoteCommand::help */ std::string help() const override; /** * @copydoc RemoteCommand::args */ std::vector<Arg> args() const override; /** * @copydoc RemoteCommand::request */ json::Value request(Irccdctl &irccdctl, const RemoteCommandRequest &args) const override; /** * @copydoc RemoteCommand::exec */ json::Value exec(Irccd &irccd, const json::Value &request) const override; }; } // !command } // !irccd #endif // !_IRCCD_COMMAND_SERVER_MODE_H_