]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/extensible.h
Remove the Kiwi links from the readme.
[user/henk/code/inspircd.git] / include / extensible.h
index c24984f2678672ae1f1a4a3922451772bc8c901f..2e7b83a28b3d90324577b68b151e0db75add6016 100644 (file)
@@ -1,6 +1,9 @@
 /*
  * InspIRCd -- Internet Relay Chat Daemon
  *
+ *   Copyright (C) 2013, 2017-2020 Sadie Powell <sadie@witchery.services>
+ *   Copyright (C) 2012, 2014-2015 Attila Molnar <attilamolnar@hush.com>
+ *   Copyright (C) 2012 Robby <robby@chatbelgie.be>
  *   Copyright (C) 2009 Daniel De Graaf <danieldg@inspircd.org>
  *
  * This file is part of InspIRCd.  InspIRCd is free software: you can
@@ -51,7 +54,7 @@ class CoreExport ExtensionItem : public ServiceProvider, public usecountbase
        /** Initializes an instance of the ExtensionItem class.
         * @param key The name of the extension item (e.g. ssl_cert).
         * @param exttype The type of Extensible that this ExtensionItem applies to.
-        * @param owner The module which created this ExtensionItem 
+        * @param owner The module which created this ExtensionItem.
         */
        ExtensionItem(const std::string& key, ExtensibleType exttype, Module* owner);
 
@@ -131,9 +134,11 @@ class CoreExport ExtensionItem : public ServiceProvider, public usecountbase
  * a map associated with the object. In this way modules can store their own custom information within user
  * objects, channel objects and server objects, without breaking other modules (this is more sensible than using
  * a flags variable, and each module defining bits within the flag as 'theirs' as it is less prone to conflict and
- * supports arbitary data storage).
+ * supports arbitrary data storage).
  */
-class CoreExport Extensible : public classbase
+class CoreExport Extensible
+       : public classbase
+       , public Serializable
 {
  public:
        typedef insp::flat_map<reference<ExtensionItem>, void*> ExtensibleStore;
@@ -165,6 +170,12 @@ class CoreExport Extensible : public classbase
         * Free all extension items attached to this Extensible
         */
        void FreeAllExtItems();
+
+       /** @copydoc Serializable::Deserialize */
+       bool Deserialize(Data& data) CXX11_OVERRIDE;
+
+       /** @copydoc Serializable::Deserialize */
+       bool Serialize(Serializable::Data& data) CXX11_OVERRIDE;
 };
 
 class CoreExport ExtensionManager