23 #ifndef PROTOCOL_MESSAGE_PARSER_H 24 #define PROTOCOL_MESSAGE_PARSER_H 27 #include <QHostAddress> 76 quint32* aResult)
const ;
88 Hash* aResultHash)
const ;
106 const QByteArray& aPublishedContent,
114 const QByteArray& aPublishedContent,
123 const QByteArray& aPublishedContent,
Class containing routines for parsing protocol messages. Methods are mainly called from network conne...
Definition: protocol_message_parser.h:40
MModelProtocolInterface & iModel
Definition: protocol_message_parser.h:189
bool parseCallRtData(const QByteArray &aQueryBytes, const Connection &aConnection)
bool parseNodeGreetingV1(const QByteArray &aSingleNodeGreeting, const Connection &aConnection)
bool parseVoiceCall(const QByteArray &aQueryBytes, 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:38
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:45
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:43
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:188
Pure-virtual interface of nodemodel.
Definition: mnodemodelprotocolinterface.h:39
bool parseProfileCommentPublishedOrSent(const unsigned char aProtocolItemType, const QByteArray &aPublishedContent, const Connection &aConnection)
Class that represents a network connection.
Definition: connection.h:43
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