version 0.3.0
[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 #include <Poco/DateTime.h>\r
7 \r
8 class IntroductionPuzzleInserter:public IIndexInserter<long>\r
9 {\r
10 public:\r
11         IntroductionPuzzleInserter();\r
12         IntroductionPuzzleInserter(FCPv2 *fcp);\r
13 \r
14 private:\r
15         void Initialize();\r
16         void CheckForNeededInsert();\r
17         const bool StartInsert(const long &localidentityid);\r
18         void GenerateCaptcha(std::string &encodeddata, std::string &solution);\r
19         const bool HandlePutSuccessful(FCPMessage &message);\r
20         const bool HandlePutFailed(FCPMessage &message);\r
21 \r
22         Poco::DateTime m_lastchecked;\r
23 \r
24 };\r
25 \r
26 #endif  // _introductionpuzzle_inserter_\r