version 0.2.4
[fms.git] / include / freenet / siteinserter.h
diff --git a/include/freenet/siteinserter.h b/include/freenet/siteinserter.h
new file mode 100644 (file)
index 0000000..fe501f3
--- /dev/null
@@ -0,0 +1,27 @@
+#ifndef _site_inserter_\r
+#define _site_inserter_\r
+\r
+#include "iindexinserter.h"\r
+\r
+class SiteInserter:public IIndexInserter<long>\r
+{\r
+public:\r
+       SiteInserter();\r
+       SiteInserter(FCPv2 *fcp);\r
+\r
+private:\r
+       void Initialize();\r
+       const bool HandlePutSuccessful(FCPMessage &message);\r
+       const bool HandlePutFailed(FCPMessage &message);\r
+       void StartInsert(const long &localidentityid);\r
+       void CheckForNeededInsert();\r
+       const std::string SanitizeOutput(const std::string &input);\r
+       void GeneratePages(const long localidentityid, std::string &uskkey, std::map<std::string,std::string> &pages);\r
+       std::string GenerateLinks(const bool publishtrustlist, const bool publishboardlist);\r
+       std::string GenerateIndex(const std::string &htmltemplate, const long localidentityid, const std::string &name);\r
+       std::string GenerateTrustList(const std::string &htmltemplate, const long localidentityid, const std::string &name);\r
+       const std::string GetClassString(const std::string &trustlevel);\r
+\r
+};\r
+\r
+#endif // _site_inserter_\r