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 ;
116 QByteArray* aBytesToSend) ;
129 QList <NetworkRequestExecutor::NetworkRequestQueueItem>&
getNetRequests()
const ;
143 virtual bool lock() ;
197 const QList<quint32>& aBangPath,
242 const Hash& aHashOfClassification,
263 const QString& aExplanation) ;
275 QList <NetworkRequestExecutor::NetworkRequestQueueItem>*
iNetReqQueue ;
Model::CallAcceptanceSetting getCallAcceptanceSetting()
void setRingtoneSetting(Model::RingtoneSetting aRingTone)
void addItemToBePublished(ProtocolItemType aType, const Hash &aHash, const QList< quint32 > &aBangPath, const Hash &aSecondaryAddr=KNullHash)
CaDbRecordModel * iCaDbRecordModel
Definition: model.h:284
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
virtual PrivMessageModel & privateMessageModel() const
This is is part of datamodel for storing private messages.
Definition: privmsgmodel.h:51
ProfileCommentModel * iProfileCommentModel
Definition: model.h:282
virtual SearchModel * searchModel() const
TclModel * iTclModel
Definition: model.h:287
int iTimerId
Definition: model.h:280
MController * iController
Definition: model.h:265
Hash is class that carries 160-bit digest.
Definition: hash.h:38
CAErrorSituation
Definition: mcontroller.h:57
virtual ProfileModel & profileModel() const
time_t iTimeOfLastNetworkAddrCheck
Definition: model.h:286
ContentEncryptionModel * iContentEncryptionModel
Definition: model.h:276
TrustTreeModel * iTrustTreeModel
Definition: model.h:285
ConnectionState
Definition: connection.h:47
ProtocolItemType
Definition: protocol.h:157
This is part of datamodel for storage/retrieval of classified ads.
Definition: camodel.h:40
ProfileModel * iProfileModel
Definition: model.h:277
void setCallAcceptanceSetting(Model::CallAcceptanceSetting aAcceptance)
Model(MController *aMController)
PublishItem nextItemToPublish(bool *aFound)
virtual TclModel & tclModel() const
Pure-virtual interface of datamodel for message parser to use.
Definition: mmodelprotocolinterface.h:46
virtual void addNetworkRequest(NetworkRequestExecutor::NetworkRequestQueueItem &aRequest) const
Pure-virtual interface class for controller. This is spammed across parties needing access to applica...
Definition: mcontroller.h:48
void connectionStateChanged(Connection::ConnectionState aState, Connection *aConnection)
void timerEvent(QTimerEvent *event)
NetworkRequestExecutor * iNetReqExecutor
Definition: model.h:270
M of the MVC pattern. Handles permanent storage.
Definition: model.h:50
RingtoneSetting
Definition: model.h:61
virtual CaDbRecordModel * caDbRecordModel() const
ContentEncryptionModel & contentEncryptionModel() const
This is is part of datamodel for storing user profiles.
Definition: profilemodel.h:39
PrivMessageModel * iPrivMsgModel
Definition: model.h:281
void closeAllConnections(bool aDeleteAlso)
virtual BinaryFileModel & binaryFileModel() const
Model::RingtoneSetting getRingtoneSetting()
virtual ClassifiedAdsModel & classifiedAdsModel() const
QList< NetworkRequestExecutor::NetworkRequestQueueItem > & getNetRequests() const
This is node-specific part of the datamodel.
Definition: nodemodel.h:46
QList< Connection * > * iConnections
Definition: model.h:268
NetworkRequestExecutor * getNetReqExecutor()
void error(MController::CAErrorSituation aError, const QString &aExplanation)
ClassifiedAdsModel * iCaModel
Definition: model.h:279
virtual TrustTreeModel * trustTreeModel() const
Datamodel-part of storage related to TCL-programs.
Definition: tclmodel.h:38
NodeModel * iNodeModel
Definition: model.h:269
Work queue item.
Definition: netrequestexecutor.h:60
CallAcceptanceSetting
Definition: model.h:74
QMutex * iMutex
Definition: model.h:267
This is is part of datamodel for storing database records.
Definition: cadbrecordmodel.h:44
BinaryFileModel * iBinaryFileModel
Definition: model.h:278
Pure-virtual interface of nodemodel.
Definition: mnodemodelprotocolinterface.h:39
const QList< Connection * > & getConnections() const
SearchModel * iSearchModel
Definition: model.h:283
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:206
Class that represents a network connection.
Definition: connection.h:43
QList< NetworkRequestExecutor::NetworkRequestQueueItem > * iNetReqQueue
Definition: model.h:275
QSqlDatabase iDb
Definition: model.h:266
This is part of datamodel for any binary blobs.
Definition: binaryfilemodel.h:39
virtual MNodeModelProtocolInterface & nodeModel() const
virtual ProfileCommentModel & profileCommentModel() const
This is content-crypto-operations-specific part of the datamodel.
Definition: contentencryptionmodel.h:37
void removeOpenNetworkConnection(Connection *aDeletedConnection)