diff options
| author | Adam <Adam@anope.org> | 2016-10-22 11:15:15 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2016-10-22 16:52:29 -0400 |
| commit | 06f40cabcb167e2764c03092f6ec3f7383983f95 (patch) | |
| tree | 1dbbbd54e962df4bd1e5511b72be434c882073d9 /include/modules/chanserv/mode.h | |
| parent | 482236c5b82743bfd1b8d24e035d3e9d46eb7819 (diff) | |
chanserv: split various things from main chanserv header
Diffstat (limited to 'include/modules/chanserv/mode.h')
| -rw-r--r-- | include/modules/chanserv/mode.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/include/modules/chanserv/mode.h b/include/modules/chanserv/mode.h index d580982b6..9e1181214 100644 --- a/include/modules/chanserv/mode.h +++ b/include/modules/chanserv/mode.h @@ -17,6 +17,8 @@ * along with this program; if not, see see <http://www.gnu.org/licenses/>. */ +#pragma once + class ModeLock : public Serialize::Object { protected: @@ -108,6 +110,28 @@ class ModeLocks : public Service virtual Anope::string GetMLockAsString(ChanServ::Channel *, bool complete) const anope_abstract; }; +namespace ChanServ +{ + +class Mode : public Serialize::Object +{ + public: + static constexpr const char *const NAME = "mlockmode"; + + using Serialize::Object::Object; + + virtual Channel *GetChannel() anope_abstract; + virtual void SetChannel(Channel *) anope_abstract; + + virtual Anope::string GetMode() anope_abstract; + virtual void SetMode(const Anope::string &) anope_abstract; + + virtual Anope::string GetParam() anope_abstract; + virtual void SetParam(const Anope::string &) anope_abstract; +}; + +} // namespace ChanServ + namespace Event { struct CoreExport MLockEvents : Events |
