21 #ifndef CLASSIFIED_DATAMODEL_H 22 #define CLASSIFIED_DATAMODEL_H 23 #include <QSqlDatabase> 25 #include "../mcontroller.h" 26 #include "../net/connection.h" 27 #include <QHostAddress> 37 class QSslCertificate ;
108 QByteArray* aBytesToSend) ;
120 QList <NetworkRequestExecutor::NetworkRequestQueueItem>&
getNetRequests()
const ;
134 virtual bool lock() ;
188 const QList<quint32>& aBangPath,
233 const Hash& aHashOfClassification,
250 const QString& aExplanation) ;
262 QList <NetworkRequestExecutor::NetworkRequestQueueItem>*
iNetReqQueue ;
Model::CallAcceptanceSetting getCallAcceptanceSetting()
virtual PrivMessageModel & privateMessageModel() const
void setRingtoneSetting(Model::RingtoneSetting aRingTone)
void addItemToBePublished(ProtocolItemType aType, const Hash &aHash, const QList< quint32 > &aBangPath, const Hash &aSecondaryAddr=KNullHash)
virtual SearchModel * searchModel() const
PublishItem addNodeToPublishedItem(const Hash &aContentHash, const Hash &aNodeHash)
void addItemToSend(const Hash &aDestinationNode, QByteArray *aBytesToSend)
void notifyOfContentReceived(const Hash &aHashOfContent, const ProtocolItemType aTypeOfReceivdContent)
void addOpenNetworkConnection(Connection *aConnection)
Logic for handling tasks received from other peers or from user.
Definition: netrequestexecutor.h:40
Model-class for performing text-based searches on objects in db This datamodel part is dual-use ; it ...
Definition: searchmodel.h:45
This is is part of datamodel for storing private messages.
Definition: privmsgmodel.h:51
ProfileCommentModel * iProfileCommentModel
Definition: model.h:269
const QList< Connection * > & getConnections() const
int iTimerId
Definition: model.h:267
MController * iController
Definition: model.h:252
Hash is class that carries 160-bit digest.
Definition: hash.h:38
CAErrorSituation
Definition: mcontroller.h:52
time_t iTimeOfLastNetworkAddrCheck
Definition: model.h:272
ContentEncryptionModel * iContentEncryptionModel
Definition: model.h:263
virtual void addNetworkRequest(NetworkRequestExecutor::NetworkRequestQueueItem &aRequest) const
TrustTreeModel * iTrustTreeModel
Definition: model.h:271
QList< NetworkRequestExecutor::NetworkRequestQueueItem > & getNetRequests() const
ConnectionState
Definition: connection.h:47
ProtocolItemType
Definition: protocol.h:150
This is part of datamodel for storage/retrieval of classified ads.
Definition: camodel.h:40
ProfileModel * iProfileModel
Definition: model.h:264
void setCallAcceptanceSetting(Model::CallAcceptanceSetting aAcceptance)
Model(MController *aMController)
PublishItem nextItemToPublish(bool *aFound)
Pure-virtual interface of datamodel for message parser to use.
Definition: mmodelprotocolinterface.h:45
virtual BinaryFileModel & binaryFileModel() const
Pure-virtual interface class for controller. This is spammed across parties needing access to applica...
Definition: mcontroller.h:43
void connectionStateChanged(Connection::ConnectionState aState, Connection *aConnection)
virtual ProfileCommentModel & profileCommentModel() const
void timerEvent(QTimerEvent *event)
NetworkRequestExecutor * iNetReqExecutor
Definition: model.h:257
M of the MVC pattern. Handles permanent storage.
Definition: model.h:48
RingtoneSetting
Definition: model.h:59
This is is part of datamodel for storing user profiles.
Definition: profilemodel.h:39
PrivMessageModel * iPrivMsgModel
Definition: model.h:268
virtual ProfileModel & profileModel() const
void closeAllConnections(bool aDeleteAlso)
Model::RingtoneSetting getRingtoneSetting()
ContentEncryptionModel & contentEncryptionModel() const
This is node-specific part of the datamodel.
Definition: nodemodel.h:46
QList< Connection * > * iConnections
Definition: model.h:255
NetworkRequestExecutor * getNetReqExecutor()
virtual ClassifiedAdsModel & classifiedAdsModel() const
void error(MController::CAErrorSituation aError, const QString &aExplanation)
ClassifiedAdsModel * iCaModel
Definition: model.h:266
NodeModel * iNodeModel
Definition: model.h:256
Work queue item.
Definition: netrequestexecutor.h:60
CallAcceptanceSetting
Definition: model.h:72
virtual MNodeModelProtocolInterface & nodeModel() const
QMutex * iMutex
Definition: model.h:254
BinaryFileModel * iBinaryFileModel
Definition: model.h:265
Pure-virtual interface of nodemodel.
Definition: mnodemodelprotocolinterface.h:39
SearchModel * iSearchModel
Definition: model.h:270
This is is part of datamodel for trust tree related operation.
Definition: trusttreemodel.h:55
Carrier for keeping state of item about to be published.
Definition: protocol.h:196
Class that represents a network connection.
Definition: connection.h:43
virtual TrustTreeModel * trustTreeModel() const
QList< NetworkRequestExecutor::NetworkRequestQueueItem > * iNetReqQueue
Definition: model.h:262
QSqlDatabase iDb
Definition: model.h:253
This is part of datamodel for any binary blobs.
Definition: binaryfilemodel.h:39
This is content-crypto-operations-specific part of the datamodel.
Definition: contentencryptionmodel.h:37
void removeOpenNetworkConnection(Connection *aDeletedConnection)