1 #ifndef _identityintroductioninserter_
\r
2 #define _identityintroductioninserter_
\r
4 #include "../idatabase.h"
\r
5 #include "../datetime.h"
\r
6 #include "../ilogger.h"
\r
7 #include "ifreenetregistrable.h"
\r
8 #include "ifcpconnected.h"
\r
9 #include "ifcpmessagehandler.h"
\r
10 #include "iperiodicprocessor.h"
\r
12 class IdentityIntroductionInserter:public IFreenetRegistrable,public IFCPConnected,public IFCPMessageHandler,public IPeriodicProcessor,public IDatabase,public ILogger
\r
15 IdentityIntroductionInserter();
\r
16 IdentityIntroductionInserter(FCPv2 *fcp);
\r
18 void FCPConnected();
\r
19 void FCPDisconnected();
\r
21 const bool HandleMessage(FCPMessage &message);
\r
25 void RegisterWithThread(FreenetMasterThread *thread);
\r
29 void CheckForNewInserts();
\r
30 void StartInsert(const long localidentityid, const std::string &day, const std::string &UUID, const std::string &solution);
\r
32 std::string m_messagebase;
\r
33 DateTime m_lastchecked;
\r
38 #endif // _identityintroductioninserter_
\r