23 #ifndef DB_RECORD_RETRIEVAL_ENG_H 24 #define DB_RECORD_RETRIEVAL_ENG_H 26 #include <QHostAddress> 29 #include "../controller.h" 30 #include "../datamodel/model.h" 31 #include "../datamodel/cadbrecord.h" 93 const Hash aHashOfAttemptedNode );
100 const Hash& aNodeFingerPrint) ;
void notifyOfContentReceived(const Hash &aHashOfContent, const ProtocolItemType aTypeOfReceivedContent)
Class for keeping app state.
Definition: controller.h:83
QList< Hash > iNodeCandidatesToTryQuery
Definition: dbretrievalengine.h:105
void nodeConnectionAttemptStatus(Connection::ConnectionState aStatus, const Hash aHashOfAttemptedNode)
void sendQueryToNode(const CaDbRecord::SearchTerms &aSearchTerms, const Hash &aNodeFingerPrint)
bool iNowRunning
Definition: dbretrievalengine.h:104
Hash is class that carries 160-bit digest.
Definition: hash.h:38
QList< Hash > iNodesSuccessfullyConnected
Definition: dbretrievalengine.h:106
ConnectionState
Definition: connection.h:47
ProtocolItemType
Definition: protocol.h:157
void startRetrieving(CaDbRecord::SearchTerms aSearchTerms)
Definition: dbretrievalengine.h:109
Network-connection logic relating fetching db records from DHT.
Definition: dbretrievalengine.h:50
CaDbRecord::SearchTerms iTerms
Definition: dbretrievalengine.h:111
M of the MVC pattern. Handles permanent storage.
Definition: model.h:50
QDateTime iTimeOfLastRefresh
Definition: dbretrievalengine.h:115
Controller * iController
Definition: dbretrievalengine.h:102
DbRecordRetrievalEngine(Controller *aController, Model &aModel)
~DbRecordRetrievalEngine()
Model & iModel
Definition: dbretrievalengine.h:103
struct DbRecordRetrievalEngine::DlQueueItemStruct DlQueueItem
QList< Hash > iListOfNodes
Definition: dbretrievalengine.h:113
Definition: cadbrecord.h:40
QList< Hash > iNodesFailurefullyConnected
Definition: dbretrievalengine.h:107
QList< DlQueueItem > iSearchTerms
Definition: dbretrievalengine.h:123