1 #ifndef _identity_inserter_
\r
2 #define _identity_inserter_
\r
4 #include "../idatabase.h"
\r
5 #include "../ilogger.h"
\r
6 #include "../datetime.h"
\r
7 #include "ifreenetregistrable.h"
\r
8 #include "ifcpconnected.h"
\r
9 #include "ifcpmessagehandler.h"
\r
10 #include "iperiodicprocessor.h"
\r
12 class IdentityInserter:public IFreenetRegistrable,public IFCPConnected,public IFCPMessageHandler,public IPeriodicProcessor,public IDatabase,public ILogger
\r
16 IdentityInserter(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 CheckForNeededInsert();
\r
30 void StartInsert(const long localidentityid);
\r
32 DateTime m_lastchecked;
\r
36 #endif // _identity_inserter_
\r