21 #ifndef CLASSIFIED_PRIVMSGMODEL_H 22 #define CLASSIFIED_PRIVMSGMODEL_H 23 #include <QSqlDatabase> 24 #include "../mcontroller.h" 25 #include "../net/protocol.h" 113 QByteArray& aResultingPrivMessageData,
114 QByteArray& aResultingSignature,
115 Hash* aResultingDestinationNode,
116 Hash* aResultingRecipient,
117 quint32* aTimeOfPublish = NULL) ;
134 const QByteArray& aContent,
135 const QByteArray& aSignature,
136 const QList<quint32>& aBangPath,
137 const Hash& aDestinationNode,
138 const Hash& aRecipient,
139 const quint32 aTimeStamp,
140 const Hash& aFromNode) ;
154 const QByteArray& aContent,
155 const QByteArray& aSignature,
156 const Hash& aDestinationNode,
157 const Hash& aRecipient,
158 const quint32 aTimeStamp,
159 const Hash& fromNode ) ;
192 void fillBucket(QList<SendQueueItem>& aSendQueue,
193 const Hash& aStartOfBucket,
194 const Hash& aEndOfBucket,
195 quint32 aLastMutualConnectTime,
196 const Hash& aForNode );
210 const quint32 aLastMutualConnectTime) ;
221 const QByteArray& aContent,
222 const QByteArray& aSignature,
223 const QList<quint32>& aBangPath,
224 const Hash& aDestinationNode,
225 const Hash& aRecipient,
226 const quint32 aTimeStamp,
228 const Hash& aFromNode ) ;
231 const QString& aExplanation) ;
234 const Hash& aHashOfRecipientProfile,
Carrier-class for private msg inside classified ads.
Definition: privmsg.h:36
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:238
This is is part of datamodel for storing private messages.
Definition: privmsgmodel.h:51
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:38
CAErrorSituation
Definition: mcontroller.h:57
bool messageDataByFingerPrint(const Hash &aFingerPrint, QByteArray &aResultingPrivMessageData, QByteArray &aResultingSignature, Hash *aResultingDestinationNode, Hash *aResultingRecipient, quint32 *aTimeOfPublish=NULL)
ProtocolItemType
Definition: protocol.h:157
Pure-virtual interface of datamodel for message parser to use.
Definition: mmodelprotocolinterface.h:46
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:48
datamodel-parts common part. this is inherited and contains common funcs
Definition: datamodelbase.h:39
MController * iController
Definition: privmsgmodel.h:237
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)