20 #ifndef CLASSIFIED_PROFILEMODEL_H
21 #define CLASSIFIED_PROFILEMODEL_H
22 #include <QSqlDatabase>
23 #include "../mcontroller.h"
24 #include "../net/connection.h"
95 QByteArray& aResultingProfileData,
96 QByteArray& aResultingSignature,
97 bool* aIsProfilePrivate,
98 quint32* aTimeOfPublish = NULL,
99 QByteArray* aResultingPublicKey = NULL ) ;
117 const QByteArray& aContent,
118 const QByteArray& aSignature,
119 const QList<quint32>& aBangPath,
120 const QByteArray& aProfilePublicKey,
121 const unsigned char aFlags,
122 const quint32 aTimeStamp,
123 const Hash& aFromNode) ;
138 const QByteArray& aContent,
139 const QByteArray& aSignature,
140 const QByteArray& aProfilePublicKey,
141 const unsigned char aFlags,
142 const quint32 aTimeStamp,
143 const Hash& fromNode ) ;
163 void fillBucket(QList<SendQueueItem>& aSendQueue,
164 const Hash& aStartOfBucket,
165 const Hash& aEndOfBucket,
166 quint32 aLastMutualConnectTime,
167 const Hash& aForNode );
187 const Hash& aProfile ) ;
195 const QVariant& aPrivateData ) ;
221 const QByteArray& aContent,
222 const QByteArray& aSignature,
223 const QList<quint32>& aBangPath,
224 const QByteArray& aProfilePublicKey,
225 const unsigned char aFlags,
226 const quint32 aTimeStamp,
228 const Hash& aFromNode ) ;
235 const QString& aExplanation) ;
QVariant privateDataOfProfile(const Hash &aProfile)
bool profileDataByFingerPrint(const Hash &aFingerPrint, QByteArray &aResultingProfileData, QByteArray &aResultingSignature, bool *aIsProfilePrivate, quint32 *aTimeOfPublish=NULL, QByteArray *aResultingPublicKey=NULL)
bool publishProfile(const Profile &aProfile)
const MModelProtocolInterface & iModel
Definition: profilemodel.h:241
Hash is class that carries 160-bit digest.
Definition: hash.h:37
CAErrorSituation
Definition: mcontroller.h:48
ProfileModel(MController *aMController, const MModelProtocolInterface &aModel)
ProtocolItemType
Definition: protocol.h:124
time_t getLastProfileUpdateTime(const Hash &aProfile)
MController * iController
Definition: profilemodel.h:240
Hash profileWithOldestTimeSinceMsgPoll(quint32 *aLastPollTime)
Pure-virtual interface of datamodel for message parser to use.
Definition: mmodelprotocolinterface.h:44
void setPrivateMessagePollTimeForProfile(const quint32 aTimeStamp, const Hash &aProfile)
Pure-virtual interface class for controller. This is spammed across parties needing access to applica...
Definition: mcontroller.h:39
void fillBucket(QList< SendQueueItem > &aSendQueue, const Hash &aStartOfBucket, const Hash &aEndOfBucket, quint32 aLastMutualConnectTime, const Hash &aForNode)
datamodel-parts common part. this is inherited and contains common funcs
Definition: datamodelbase.h:38
bool sentProfileReceived(const Hash &aFingerPrint, const QByteArray &aContent, const QByteArray &aSignature, const QByteArray &aProfilePublicKey, const unsigned char aFlags, const quint32 aTimeStamp, const Hash &fromNode)
This is is part of datamodel for storing user profiles.
Definition: profilemodel.h:38
bool publishedProfileReceived(const Hash &aFingerPrint, const QByteArray &aContent, const QByteArray &aSignature, const QList< quint32 > &aBangPath, const QByteArray &aProfilePublicKey, const unsigned char aFlags, const quint32 aTimeStamp, const Hash &aFromNode)
virtual bool deleteOldestDataRowInTable()
void setLastProfileUpdateTime(const Hash &aProfile, time_t aTime)
Carrier-class for user-profile data.
Definition: profile.h:36
void error(MController::CAErrorSituation aError, const QString &aExplanation)
void contentReceived(const Hash &aHashOfContent, const ProtocolItemType aTypeOfReceivdContent)
Profile * profileByFingerPrint(const Hash &aFingerPrint)
void setPrivateDataForProfile(const Hash &aProfile, const QVariant &aPrivateData)
void reIndexAllProfilesIntoFTS()
bool doHandlepublishedOrSentProfile(const Hash &aFingerPrint, const QByteArray &aContent, const QByteArray &aSignature, const QList< quint32 > &aBangPath, const QByteArray &aProfilePublicKey, const unsigned char aFlags, const quint32 aTimeStamp, bool aWasPublish, const Hash &aFromNode)