22 #ifndef PROTOCOL_MESSAGE_FORMATTER_H
23 #define PROTOCOL_MESSAGE_FORMATTER_H
27 #include "../datamodel/searchmodel.h"
113 const quint32 aTimeOfOldestMsgToSend) ;
129 const quint32 aTimeOfOldestMsgToSend) ;
151 const quint32 aStartingTimestamp,
152 const quint32 aEndingTimestamp) ;
186 static QByteArray
contentPublish(
const unsigned char aContentMagicNumber,
187 const Hash& aContentHash,
188 const QByteArray& aContent,
189 const QByteArray& aSignature,
190 const QList<quint32>& aBangPath,
191 const QByteArray& aSigningKey,
192 bool aIsContentEncrypted,
193 bool aIsContentCompressed,
194 quint32 aTimeStamp ) ;
200 const QByteArray& aContent,
201 const QByteArray& aSignature,
202 const QList<quint32>& aBangPath,
203 const Hash& aDestination,
204 const Hash& aRecipient,
205 quint32 aTimeStamp ) ;
212 const QByteArray& aContent,
213 const QByteArray& aSignature,
214 const Hash& aDestination,
215 const Hash& aRecipient,
216 quint32 aTimeStamp ) ;
228 const QByteArray& aContent,
229 const QByteArray& aSignature,
230 const QList<quint32>& aBangPath,
231 const Hash& aProfileCommented,
239 const QByteArray& aContent,
240 const QByteArray& aSignature,
241 const Hash& aProfileCommented,
250 static QByteArray
contentSend(
const unsigned char aContentMagicNumber,
251 const Hash& aContentHash,
252 const QByteArray& aContent,
253 const QByteArray& aSignature,
254 const QByteArray& aSigningKey,
255 bool aIsContentEncrypted,
256 bool aIsContentCompressed,
257 quint32 aTimeStamp ) ;
260 const QList<QPair<Hash,quint32> >& aListOfAds ) ;
265 static QByteArray
searchSend(
const QString& aSearch,
267 bool aSearchProfiles,
268 bool aSearchComments,
269 const Hash& aSearchIdentifier) ;
274 static QByteArray
searchResultsSend(
const QList<SearchModel::SearchResultItem>& aResults,
284 const unsigned char aContentMagicNumber,
285 const Hash& aContentHash,
286 const QByteArray& aContent,
287 const QByteArray& aSignature,
288 const QList<quint32>& aBangPath,
289 const QByteArray& aSigningKey,
290 bool aIsContentEncrypted,
291 bool aIsContentCompressed,
300 const QByteArray& aContent,
301 const QByteArray& aSignature,
302 const QList<quint32>& aBangPath,
303 const Hash& aProfileCommented,
Node is a peer in network.
Definition: node.h:39
Hash is class that carries 160-bit digest.
Definition: hash.h:37
Class that represents a network connection.
Definition: connection.h:41