view lib/irccd/cmd-server-notice.hpp @ 160:c1acfacc46bd

Irccd: dll export and style
author David Demelier <markand@malikania.fr>
date Tue, 24 May 2016 13:00:35 +0200
parents 3b24366c7213
children b0909b31eccb
line wrap: on
line source

/*
 * cmd-server-notice.hpp -- implementation of server-notice 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_SERVER_NOTICE_HPP
#define IRCCD_CMD_SERVER_NOTICE_HPP

/**
 * \file cmd-server-notice.hpp
 * \brief Implementation of server-notice transport command.
 */

#include "command.hpp"

namespace irccd {

namespace command {

/**
 * \class ServerNotice
 * \brief Implementation of server-notice transport command.
 */
class ServerNotice : public RemoteCommand {
public:
	IRCCD_EXPORT ServerNotice();

	/**
	 * \copydoc RemoteCommand::help
	 */
	IRCCD_EXPORT std::string help() const override;

	/**
	 * \copydoc RemoteCommand::args
	 */
	IRCCD_EXPORT std::vector<Arg> args() const override;

	/**
	 * \copydoc RemoteCommand::request
	 */
	IRCCD_EXPORT json::Value request(Irccdctl &irccdctl, const RemoteCommandRequest &args) const override;

	/**
	 * \copydoc RemoteCommand::exec
	 */
	IRCCD_EXPORT json::Value exec(Irccd &irccd, const json::Value &request) const override;
};

} // !command

} // !irccd

#endif // !IRCCD_CMD_SERVER_NOTICE_HPP