From 12214bee7228f884918dacff56108604e10bdc46 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 25 May 2021 22:06:50 +0100 Subject: Add the initial version of the Atheme database importer. --- include/modules/hs_request.h | 23 +++++++++++++++++++++ include/modules/info.h | 49 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 include/modules/hs_request.h create mode 100644 include/modules/info.h (limited to 'include/modules') diff --git a/include/modules/hs_request.h b/include/modules/hs_request.h new file mode 100644 index 000000000..43977c01d --- /dev/null +++ b/include/modules/hs_request.h @@ -0,0 +1,23 @@ +/* + * + * (C) 2003-2024 Anope Team + * Contact us at team@anope.org + * + * Please read COPYING and README for further details. + */ + +#pragma once + +class HostRequest +{ +protected: + HostRequest() = default; + +public: + Anope::string nick; + Anope::string ident; + Anope::string host; + time_t time = 0; + + virtual ~HostRequest() = default; +}; diff --git a/include/modules/info.h b/include/modules/info.h new file mode 100644 index 000000000..920aacabe --- /dev/null +++ b/include/modules/info.h @@ -0,0 +1,49 @@ +/* + * + * (C) 2003-2024 Anope Team + * Contact us at team@anope.org + * + * Please read COPYING and README for further details. + */ + +#pragma once + +class OperInfo +{ +protected: + OperInfo() = default; + + OperInfo(const Anope::string &t, const Anope::string &i, const Anope::string &a, time_t c) + : target(t) + , info(i) + , adder(a) + , created(c) + { + } + +public: + Anope::string target; + Anope::string info; + Anope::string adder; + time_t created = 0; + + virtual ~OperInfo() = default; +}; + +class OperInfoList + : public Serialize::Checker> +{ +public: + OperInfoList() + : Serialize::Checker>("OperInfo") + { + } + + virtual ~OperInfoList() + { + for (auto *info : *(*this)) + delete info; + } + + virtual OperInfo *Create() = 0; +}; -- cgit