1 #ifndef _introductionpuzzle_inserter_
\r
2 #define _introductionpuzzle_inserter_
\r
4 #include "iindexinserter.h"
\r
7 #include <Poco/DateTime.h>
\r
9 class IntroductionPuzzleInserter:public IIndexInserter<long>
\r
12 IntroductionPuzzleInserter();
\r
13 IntroductionPuzzleInserter(FCPv2 *fcp);
\r
17 void CheckForNeededInsert();
\r
18 const bool StartInsert(const long &localidentityid);
\r
19 void GenerateCaptcha(std::string &encodeddata, std::string &solution);
\r
20 const bool HandlePutSuccessful(FCPMessage &message);
\r
21 const bool HandlePutFailed(FCPMessage &message);
\r
23 Poco::DateTime m_lastchecked;
\r
24 int m_maxpuzzleinserts;
\r
25 std::map<int,Poco::DateTime> m_lastinserted;
\r
29 #endif // _introductionpuzzle_inserter_
\r