view lib/irccd/command/watch.h @ 73:8ee1178f1219

Irccd: port as a library almost complete, #429
author David Demelier <markand@malikania.fr>
date Fri, 25 Mar 2016 13:58:12 +0100
parents 98ac3c79009f
children
line wrap: on
line source

/*
 * command-watch.h -- implementation of irccdctl watch
 *
 * 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 _IRCCDCTL_COMMAND_WATCH_H_
#define _IRCCDCTL_COMMAND_WATCH_H_

/**
 * @file command-watch.h
 * @brief Implementation of irccdctl watch.
 */

#include "command.h"

namespace irccd {

namespace command {

/**
 * @class Watch
 * @brief Implementation of irccdctl watch.
 */
class Watch : public RemoteCommand {
public:
	Watch();

	std::vector<Option> options() const override;

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

	/**
	 * @copydoc RemoteCommand::request
	 */
	json::Value request(Irccdctl &ctl, const RemoteCommandRequest &request) const override;
};

} // !command

} // !irccd

#endif // !_IRCCDCTL_COMMAND_WATCH_H_