irccd  3.0.3
chrono_api.hpp
1 /*
2  * chrono_api.hpp -- Irccd.Chrono API
3  *
4  * Copyright (c) 2013-2019 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 IRCCD_JS_CHRONO_API_HPP
20 #define IRCCD_JS_CHRONO_API_HPP
21 
27 #include "api.hpp"
28 
29 namespace irccd::js {
30 
35 class chrono_api : public api {
36 public:
40  auto get_name() const noexcept -> std::string_view override;
41 
45  void load(daemon::bot& bot, js::plugin& plugin) override;
46 };
47 
48 } // !irccd::js
49 
50 #endif // !IRCCD_JS_CHRONO_API_HPP
irccd::js
Javascript namespace.
Definition: api.hpp:42
irccd::js::plugin
Javascript plugins for irccd.
Definition: plugin.hpp:44
irccd::js::api
Javascript API module.
Definition: api.hpp:51
irccd::js::chrono_api::load
void load(daemon::bot &bot, js::plugin &plugin) override
irccd::js::chrono_api::get_name
auto get_name() const noexcept -> std::string_view override
std
Definition: bot.hpp:253
irccd::js::chrono_api
Irccd.Chrono Javascript API.
Definition: chrono_api.hpp:35