23 #ifndef RETRIEVAL_ENG_H 24 #define RETRIEVAL_ENG_H 26 #include <QHostAddress> 29 #include "../controller.h" 30 #include "../datamodel/model.h" 62 bool aIsPriorityWork) ;
71 void error(QTcpSocket::SocketError socketError);
81 const Hash aHashOfAttemptedNode );
void askConnectionsForNodesOnConnectList()
Class for keeping app state.
Definition: controller.h:76
void nodeConnectionAttemptStatus(Connection::ConnectionState aStatus, const Hash aHashOfAttemptedNode)
QList< Hash > iNodeCandidatesToTryQuery
Definition: retrievalengine.h:106
void checkForUnSuccessfullyConnectedNodes()
Network-connection logic relating fetching items from DHT.
Definition: retrievalengine.h:40
QList< Hash > iNodesSuccessfullyConnected
Definition: retrievalengine.h:107
bool iNeedsToRun
Definition: retrievalengine.h:95
Hash is class that carries 160-bit digest.
Definition: hash.h:38
QList< NetworkRequestExecutor::NetworkRequestQueueItem > iDownloadQueue
Definition: retrievalengine.h:111
ConnectionState
Definition: connection.h:47
ProtocolItemType
Definition: protocol.h:150
void error(QTcpSocket::SocketError socketError)
NetworkRequestExecutor::NetworkRequestQueueItem iObjectBeingRetrieved
Definition: retrievalengine.h:104
void sendQueryToNode(const Hash &aNode)
Model & iModel
Definition: retrievalengine.h:98
void checkForSuccessfullyConnectedNodes()
bool iNowRunning
Definition: retrievalengine.h:109
M of the MVC pattern. Handles permanent storage.
Definition: model.h:48
void emptyNodeCandidateList()
void notifyOfContentNotReceived(const Hash &aHashOfContent, const ProtocolItemType aTypeOfNotReceivdContent)
void startRetrieving(NetworkRequestExecutor::NetworkRequestQueueItem aObject, bool aIsPriorityWork)
Work queue item.
Definition: netrequestexecutor.h:60
RetrievalEngine(Controller *aController, Model &aModel)
void notifyOfContentReceived(const Hash &aHashOfContent, const ProtocolItemType aTypeOfReceivdContent)
Controller * iController
Definition: retrievalengine.h:97
void sendQueryItemToAlreadyConnectedNodes()
QList< Hash > iNodesFailurefullyConnected
Definition: retrievalengine.h:108