X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=include%2Ffreenet%2Fidentityrequester.h;h=b371d114b44e5554f707a4fd7c40ce3437ed0a0d;hb=e662ea47fba8715474851ceebacba400984ee433;hp=ebea4252474694a403f14f3a648519ae42df9d9e;hpb=d8f51eac91f86a1e00a05a5058a8fa9eb8732464;p=fms.git diff --git a/include/freenet/identityrequester.h b/include/freenet/identityrequester.h index ebea425..b371d11 100644 --- a/include/freenet/identityrequester.h +++ b/include/freenet/identityrequester.h @@ -1,42 +1,20 @@ #ifndef _identity_requester_ #define _identity_requester_ -#include "../idatabase.h" -#include "../ilogger.h" -#include "../datetime.h" -#include "ifreenetregistrable.h" -#include "ifcpconnected.h" -#include "ifcpmessagehandler.h" -#include "iperiodicprocessor.h" +#include "iindexrequester.h" -class IdentityRequester:public IFreenetRegistrable,public IFCPConnected,public IFCPMessageHandler,public IPeriodicProcessor,public IDatabase,public ILogger +class IdentityRequester:public IIndexRequester { public: IdentityRequester(); IdentityRequester(FCPv2 *fcp); - void FCPConnected(); - void FCPDisconnected(); - - const bool HandleMessage(FCPMessage &message); - - void Process(); - - void RegisterWithThread(FreenetMasterThread *thread); - private: - void Initialize(); - void PopulateIDList(); // clear and re-populate m_ids with identities we want to query - void StartRequest(const long identityid); + virtual void Initialize(); + virtual void PopulateIDList(); // clear and re-populate m_ids with identities we want to query + void StartRequest(const long &identityid); const bool HandleAllData(FCPMessage &message); const bool HandleGetFailed(FCPMessage &message); - void RemoveFromRequestList(const long identityid); - - DateTime m_tempdate; - std::string m_messagebase; - long m_maxrequests; - std::vector m_requesting; // list of ids we are currently requesting from - std::map m_ids; // map of all ids we know and whether we have requested file from them yet };