view irccdctl/cli-server-disconnect.hpp @ 342:40abc6522cd7

Irccdctl: bring back server-disconnect
author David Demelier <markand@malikania.fr>
date Mon, 07 Nov 2016 13:14:57 +0100
parents
children
line wrap: on
line source

/*
 * cli-server-disconnect.hpp -- implementation of irccdctl server-disconnect
 *
 * 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_CLI_SERVER_DISCONNECT_HPP
#define IRCCDCTL_CLI_SERVER_DISCONNECT_HPP

/**
 * \file cli-server-disconnect.hpp
 * \brief Implementation of irccdctl server-disconnect.
 */

#include "cli.hpp"

namespace irccd {

namespace cli {

/**
 * \brief Implementation of irccdctl server-disconnect.
 */
class ServerDisconnectCli : public Cli {
public:
    /**
     * Default constructor.
     */
    ServerDisconnectCli();

    /**
     * \copydoc Cli::exec
     */
    void exec(Irccdctl &irccdctl, const std::vector<std::string> &args) override;
};

} // !cli

} // !irccd

#endif // !IRCCDCTL_CLI_SERVER_DISCONNECT_HPP