comparison irccdctl/command-server-me.h @ 0:1158cffe5a5e

Initial import
author David Demelier <markand@malikania.fr>
date Mon, 08 Feb 2016 16:43:14 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:1158cffe5a5e
1 /*
2 * command-server-me.h -- implementation of irccdctl server-me
3 *
4 * Copyright (c) 2013-2016 David Demelier <markand@malikania.fr>
5 *
6 * Permission to use, copy, modify, and/or distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above
8 * copyright notice and this permission notice appear in all copies.
9 *
10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 */
18
19 #ifndef _IRCCDCTL_COMMAND_SERVER_ME_H_
20 #define _IRCCDCTL_COMMAND_SERVER_ME_H_
21
22 /**
23 * @file command-server-me.h
24 * @brief Implementation of irccdctl server-me.
25 */
26
27 #include "command.h"
28
29 namespace irccd {
30
31 namespace command {
32
33 /**
34 * @class ServerMe
35 * @brief Implementation of irccdctl server-me.
36 */
37 class ServerMe : public Command {
38 public:
39 /**
40 * @copydoc Command::usage
41 */
42 void usage(Irccdctl &irccdctl) const override;
43
44 /**
45 * @copydoc Command::exec
46 */
47 void exec(Irccdctl &irccdctl, const std::vector<std::string> &args) const override;
48 };
49
50 } // !command
51
52 } // !irccd
53
54 #endif // !_IRCCDCTL_COMMAND_SERVER_ME_H_