22 #ifndef PROTOCOL_MESSAGE_PARSER_H
23 #define PROTOCOL_MESSAGE_PARSER_H
26 #include <QHostAddress>
75 quint32* aResult)
const ;
87 Hash* aResultHash)
const ;
105 const QByteArray& aPublishedContent,
113 const QByteArray& aPublishedContent,
122 const QByteArray& aPublishedContent,
Class containing routines for parsing protocol messages. Methods are mainly called from network conne...
Definition: protocol_message_parser.h:39
MModelProtocolInterface & iModel
Definition: protocol_message_parser.h:166
bool parseNodeGreetingV1(const QByteArray &aSingleNodeGreeting, const Connection &aConnection)
bool parseRequestForObjectsAroundHash(const QByteArray &aNodeRefRequest, const Connection &aConnection)
bool parsePrivMsgPublishedOrSent(const unsigned char aProtocolItemType, const QByteArray &aPublishedContent, const Connection &aConnection)
bool parseAdsClassifiedAtHash(const QByteArray &aQueryBytes, const Connection &aConnection)
Hash is class that carries 160-bit digest.
Definition: hash.h:37
ProtocolMessageParser(MController &aController, MModelProtocolInterface &aModel)
bool parseSearchResults(const QByteArray &aQueryBytes, const Connection &aConnection)
Pure-virtual interface of datamodel for message parser to use.
Definition: mmodelprotocolinterface.h:44
bool uintFromPosition(const QByteArray &aGoodFood, const int aPos, quint32 *aResult) const
Pure-virtual interface class for controller. This is spammed across parties needing access to applica...
Definition: mcontroller.h:39
bool parseListOfAdsClassifiedAtHash(const QByteArray &aQueryBytes, const Connection &aConnection)
bool parseContentPublishedOrSent(const unsigned char aProtocolItemType, const QByteArray &aPublishedContent, const Connection &aConnection)
bool parseSearchRequest(const QByteArray &aQueryBytes, Connection &aConnection)
MController & iController
Definition: protocol_message_parser.h:165
Pure-virtual interface of nodemodel.
Definition: mnodemodelprotocolinterface.h:38
bool parseProfileCommentPublishedOrSent(const unsigned char aProtocolItemType, const QByteArray &aPublishedContent, const Connection &aConnection)
Class that represents a network connection.
Definition: connection.h:41
bool parseMessage(const QByteArray &aGoodFood, Connection &aConnection)
bool parseMultipleNodeGreetingsV1(const QByteArray &aGoodFood, const Connection &aConnection)
bool hashFromPosition(const QByteArray &aGoodFood, const int aPos, Hash *aResultHash) const