20 #ifndef CLASSIFIED_PRIVMSGMODEL_H
21 #define CLASSIFIED_PRIVMSGMODEL_H
22 #include <QSqlDatabase>
23 #include "../mcontroller.h"
24 #include "../net/protocol.h"
112 QByteArray& aResultingPrivMessageData,
113 QByteArray& aResultingSignature,
114 Hash* aResultingDestinationNode,
115 Hash* aResultingRecipient,
116 quint32* aTimeOfPublish = NULL) ;
133 const QByteArray& aContent,
134 const QByteArray& aSignature,
135 const QList<quint32>& aBangPath,
136 const Hash& aDestinationNode,
137 const Hash& aRecipient,
138 const quint32 aTimeStamp,
139 const Hash& aFromNode) ;
153 const QByteArray& aContent,
154 const QByteArray& aSignature,
155 const Hash& aDestinationNode,
156 const Hash& aRecipient,
157 const quint32 aTimeStamp,
158 const Hash& fromNode ) ;
191 void fillBucket(QList<SendQueueItem>& aSendQueue,
192 const Hash& aStartOfBucket,
193 const Hash& aEndOfBucket,
194 quint32 aLastMutualConnectTime,
195 const Hash& aForNode );
209 const quint32 aLastMutualConnectTime) ;
220 const QByteArray& aContent,
221 const QByteArray& aSignature,
222 const QList<quint32>& aBangPath,
223 const Hash& aDestinationNode,
224 const Hash& aRecipient,
225 const quint32 aTimeStamp,
227 const Hash& aFromNode ) ;
230 const QString& aExplanation) ;
233 const Hash& aHashOfRecipientProfile,
Carrier-class for private msg inside classified ads.
Definition: privmsg.h:35
void setAsRead(const Hash &aMessageHash, bool aIsRead)
void error(MController::CAErrorSituation aError, const QString &aExplanation)
bool doHandlepublishedOrSentPrivMessage(const Hash &aFingerPrint, const QByteArray &aContent, const QByteArray &aSignature, const QList< quint32 > &aBangPath, const Hash &aDestinationNode, const Hash &aRecipient, const quint32 aTimeStamp, bool aWasPublish, const Hash &aFromNode)
const MModelProtocolInterface & iModel
Definition: privmsgmodel.h:237
This is is part of datamodel for storing private messages.
Definition: privmsgmodel.h:50
void fillBucket(QList< SendQueueItem > &aSendQueue, const Hash &aStartOfBucket, const Hash &aEndOfBucket, quint32 aLastMutualConnectTime, const Hash &aForNode)
QList< Hash > messagesForProfile(const Hash &aProfileHash, const quint32 aLastMutualConnectTime)
void contentReceived(const Hash &aHashOfContent, const Hash &aHashOfRecipientProfile, const ProtocolItemType aTypeOfReceivdContent)
Hash is class that carries 160-bit digest.
Definition: hash.h:37
CAErrorSituation
Definition: mcontroller.h:48
bool messageDataByFingerPrint(const Hash &aFingerPrint, QByteArray &aResultingPrivMessageData, QByteArray &aResultingSignature, Hash *aResultingDestinationNode, Hash *aResultingRecipient, quint32 *aTimeOfPublish=NULL)
ProtocolItemType
Definition: protocol.h:124
Pure-virtual interface of datamodel for message parser to use.
Definition: mmodelprotocolinterface.h:44
bool publishedPrivMessageReceived(const Hash &aFingerPrint, const QByteArray &aContent, const QByteArray &aSignature, const QList< quint32 > &aBangPath, const Hash &aDestinationNode, const Hash &aRecipient, const quint32 aTimeStamp, const Hash &aFromNode)
Pure-virtual interface class for controller. This is spammed across parties needing access to applica...
Definition: mcontroller.h:39
datamodel-parts common part. this is inherited and contains common funcs
Definition: datamodelbase.h:38
MController * iController
Definition: privmsgmodel.h:236
PrivMessageModel(MController *aMController, const MModelProtocolInterface &aModel)
bool sentPrivMessageReceived(const Hash &aFingerPrint, const QByteArray &aContent, const QByteArray &aSignature, const Hash &aDestinationNode, const Hash &aRecipient, const quint32 aTimeStamp, const Hash &fromNode)
bool publishPrivMessage(PrivMessage &aPrivMessage, const Hash &aDestinationNode=KNullHash)
PrivMessage * messageByFingerPrint(const Hash &aFingerPrint)