X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=include%2Ffreenet%2Fsiteinserter.h;fp=include%2Ffreenet%2Fsiteinserter.h;h=fe501f315926c34fb59ef1316e5d57159328793e;hb=8a0a83a78390f22f99d4487cda2569909dfbc28e;hp=0000000000000000000000000000000000000000;hpb=a007770a843aa759763b98288c9432c3906ce5c6;p=fms.git diff --git a/include/freenet/siteinserter.h b/include/freenet/siteinserter.h new file mode 100644 index 0000000..fe501f3 --- /dev/null +++ b/include/freenet/siteinserter.h @@ -0,0 +1,27 @@ +#ifndef _site_inserter_ +#define _site_inserter_ + +#include "iindexinserter.h" + +class SiteInserter:public IIndexInserter +{ +public: + SiteInserter(); + SiteInserter(FCPv2 *fcp); + +private: + void Initialize(); + const bool HandlePutSuccessful(FCPMessage &message); + const bool HandlePutFailed(FCPMessage &message); + void StartInsert(const long &localidentityid); + void CheckForNeededInsert(); + const std::string SanitizeOutput(const std::string &input); + void GeneratePages(const long localidentityid, std::string &uskkey, std::map &pages); + std::string GenerateLinks(const bool publishtrustlist, const bool publishboardlist); + std::string GenerateIndex(const std::string &htmltemplate, const long localidentityid, const std::string &name); + std::string GenerateTrustList(const std::string &htmltemplate, const long localidentityid, const std::string &name); + const std::string GetClassString(const std::string &trustlevel); + +}; + +#endif // _site_inserter_