22 #ifndef RETRIEVAL_ENG_H
23 #define RETRIEVAL_ENG_H
25 #include <QHostAddress>
28 #include "../controller.h"
29 #include "../datamodel/model.h"
61 bool aIsPriorityWork) ;
70 void error(QTcpSocket::SocketError socketError);
80 const Hash aHashOfAttemptedNode );
void askConnectionsForNodesOnConnectList()
Class for keeping app state.
Definition: controller.h:42
void nodeConnectionAttemptStatus(Connection::ConnectionState aStatus, const Hash aHashOfAttemptedNode)
QList< Hash > iNodeCandidatesToTryQuery
Definition: retrievalengine.h:105
void checkForUnSuccessfullyConnectedNodes()
Network-connection logic relating fetching items from DHT.
Definition: retrievalengine.h:39
QList< Hash > iNodesSuccessfullyConnected
Definition: retrievalengine.h:106
bool iNeedsToRun
Definition: retrievalengine.h:94
Hash is class that carries 160-bit digest.
Definition: hash.h:37
QList< NetworkRequestExecutor::NetworkRequestQueueItem > iDownloadQueue
Definition: retrievalengine.h:110
ConnectionState
Definition: connection.h:45
ProtocolItemType
Definition: protocol.h:124
void error(QTcpSocket::SocketError socketError)
NetworkRequestExecutor::NetworkRequestQueueItem iObjectBeingRetrieved
Definition: retrievalengine.h:103
void sendQueryToNode(const Hash &aNode)
Model & iModel
Definition: retrievalengine.h:97
void checkForSuccessfullyConnectedNodes()
bool iNowRunning
Definition: retrievalengine.h:108
M of the MVC pattern. Handles permanent storage.
Definition: model.h:47
void emptyNodeCandidateList()
void notifyOfContentNotReceived(const Hash &aHashOfContent, const ProtocolItemType aTypeOfNotReceivdContent)
void startRetrieving(NetworkRequestExecutor::NetworkRequestQueueItem aObject, bool aIsPriorityWork)
Work queue item.
Definition: netrequestexecutor.h:59
RetrievalEngine(Controller *aController, Model &aModel)
void notifyOfContentReceived(const Hash &aHashOfContent, const ProtocolItemType aTypeOfReceivdContent)
Controller * iController
Definition: retrievalengine.h:96
void sendQueryItemToAlreadyConnectedNodes()
QList< Hash > iNodesFailurefullyConnected
Definition: retrievalengine.h:107