version 0.2.17
[fms.git] / include / freenet / introductionpuzzleinserter.h
1 #ifndef _introductionpuzzle_inserter_\r
2 #define _introductionpuzzle_inserter_\r
3 \r
4 #include "iindexinserter.h"\r
5 \r
6 //class IntroductionPuzzleInserter:public IFreenetRegistrable,public IFCPConnected,public IFCPMessageHandler,public IPeriodicProcessor,public IDatabase,public ILogger\r
7 class IntroductionPuzzleInserter:public IIndexInserter<long>\r
8 {\r
9 public:\r
10         IntroductionPuzzleInserter();\r
11         IntroductionPuzzleInserter(FCPv2 *fcp);\r
12 \r
13 private:\r
14         void Initialize();\r
15         void CheckForNeededInsert();\r
16         const bool StartInsert(const long &localidentityid);\r
17         void GenerateCaptcha(std::string &encodeddata, std::string &solution);\r
18         const bool HandlePutSuccessful(FCPMessage &message);\r
19         const bool HandlePutFailed(FCPMessage &message);\r
20 \r
21         DateTime m_lastchecked;\r
22 \r
23 };\r
24 \r
25 #endif  // _introductionpuzzle_inserter_\r