1 #ifndef _identityintroductioninserter_
\r
2 #define _identityintroductioninserter_
\r
4 #include "../idatabase.h"
\r
5 #include "../ilogger.h"
\r
6 #include "ifreenetregistrable.h"
\r
7 #include "ifcpconnected.h"
\r
8 #include "ifcpmessagehandler.h"
\r
9 #include "iperiodicprocessor.h"
\r
11 #include <Poco/DateTime.h>
\r
13 class IdentityIntroductionInserter:public IFreenetRegistrable,public IFCPConnected,public IFCPMessageHandler,public IPeriodicProcessor,public IDatabase,public ILogger
\r
16 IdentityIntroductionInserter();
\r
17 IdentityIntroductionInserter(FCPv2 *fcp);
\r
19 void FCPConnected();
\r
20 void FCPDisconnected();
\r
22 const bool HandleMessage(FCPMessage &message);
\r
26 void RegisterWithThread(FreenetMasterThread *thread);
\r
30 void CheckForNewInserts();
\r
31 void StartInsert(const long localidentityid, const std::string &day, const std::string &UUID, const std::string &solution);
\r
33 std::string m_messagebase;
\r
34 Poco::DateTime m_lastchecked;
\r
39 #endif // _identityintroductioninserter_
\r