version 0.2.17
[fms.git] / include / freenet / introductionpuzzleinserter.h
index af66a50..c83cb9f 100644 (file)
@@ -1,33 +1,19 @@
 #ifndef _introductionpuzzle_inserter_\r
 #define _introductionpuzzle_inserter_\r
 \r
-#include "../idatabase.h"\r
-#include "../ilogger.h"\r
-#include "../datetime.h"\r
-#include "ifreenetregistrable.h"\r
-#include "ifcpconnected.h"\r
-#include "ifcpmessagehandler.h"\r
-#include "iperiodicprocessor.h"\r
+#include "iindexinserter.h"\r
 \r
-class IntroductionPuzzleInserter:public IFreenetRegistrable,public IFCPConnected,public IFCPMessageHandler,public IPeriodicProcessor,public IDatabase,public ILogger\r
+//class IntroductionPuzzleInserter:public IFreenetRegistrable,public IFCPConnected,public IFCPMessageHandler,public IPeriodicProcessor,public IDatabase,public ILogger\r
+class IntroductionPuzzleInserter:public IIndexInserter<long>\r
 {\r
 public:\r
        IntroductionPuzzleInserter();\r
        IntroductionPuzzleInserter(FCPv2 *fcp);\r
 \r
-       void FCPConnected();\r
-       void FCPDisconnected();\r
-\r
-       const bool HandleMessage(FCPMessage &message);\r
-\r
-       void Process();\r
-\r
-       void RegisterWithThread(FreenetMasterThread *thread);\r
-\r
 private:\r
        void Initialize();\r
        void CheckForNeededInsert();\r
-       void StartInsert(const long localidentityid);\r
+       const bool StartInsert(const long &localidentityid);\r
        void GenerateCaptcha(std::string &encodeddata, std::string &solution);\r
        const bool HandlePutSuccessful(FCPMessage &message);\r
        const bool HandlePutFailed(FCPMessage &message);\r