Classified ads
Public Member Functions | List of all members
MModelProtocolInterface Class Referenceabstract

Pure-virtual interface of datamodel for message parser to use. More...

#include <mmodelprotocolinterface.h>

Inheritance diagram for MModelProtocolInterface:
Inheritance graph
[legend]
Collaboration diagram for MModelProtocolInterface:
Collaboration graph
[legend]

Public Member Functions

virtual void addNetworkRequest (NetworkRequestExecutor::NetworkRequestQueueItem &aRequest) const =0
 
virtual bool lock ()=0
 
virtual void unlock ()=0
 
virtual MNodeModelProtocolInterfacenodeModel () const =0
 
virtual ProfileModelprofileModel () const =0
 
virtual BinaryFileModelbinaryFileModel () const =0
 
virtual ClassifiedAdsModelclassifiedAdsModel () const =0
 
virtual PrivMessageModelprivateMessageModel () const =0
 
virtual ContentEncryptionModelcontentEncryptionModel () const =0
 
virtual ProfileCommentModelprofileCommentModel () const =0
 
virtual SearchModelsearchModel () const =0
 
virtual CaDbRecordModelcaDbRecordModel () const =0
 
virtual TclModeltclModel () const =0
 

Detailed Description

Pure-virtual interface of datamodel for message parser to use.

This interface is given to incoming-message -parsing part of networking code. Main reason for existence of this interface is testability; in unit-test situation we will have mock-up model behind this interface, in normal situation the normal datamodel.

Member Function Documentation

◆ addNetworkRequest()

virtual void MModelProtocolInterface::addNetworkRequest ( NetworkRequestExecutor::NetworkRequestQueueItem aRequest) const
pure virtual

method for adding a network request

Parameters
aRequestis the request to add
Returns
none

Implemented in Model.

◆ binaryFileModel()

virtual BinaryFileModel& MModelProtocolInterface::binaryFileModel ( ) const
pure virtual

method for getting blob-specific datamodel

Implemented in Model.

◆ caDbRecordModel()

virtual CaDbRecordModel* MModelProtocolInterface::caDbRecordModel ( ) const
pure virtual

method for getting distributed database model part

Implemented in Model.

◆ classifiedAdsModel()

virtual ClassifiedAdsModel& MModelProtocolInterface::classifiedAdsModel ( ) const
pure virtual

method for getting the ads datamodel

Implemented in Model.

◆ contentEncryptionModel()

virtual ContentEncryptionModel& MModelProtocolInterface::contentEncryptionModel ( ) const
pure virtual

method for getting the en/de-cryption part of the datamodel

Implemented in Model.

◆ lock()

virtual bool MModelProtocolInterface::lock ( )
pure virtual

thread sync: this claims access to datamodel

Implemented in Model.

◆ nodeModel()

virtual MNodeModelProtocolInterface& MModelProtocolInterface::nodeModel ( ) const
pure virtual

method for getting node-specific datamodel

Implemented in Model.

◆ privateMessageModel()

virtual PrivMessageModel& MModelProtocolInterface::privateMessageModel ( ) const
pure virtual

method for getting the private message datamodel

Implemented in Model.

◆ profileCommentModel()

virtual ProfileCommentModel& MModelProtocolInterface::profileCommentModel ( ) const
pure virtual

method for getting the comment datamodel

Implemented in Model.

◆ profileModel()

virtual ProfileModel& MModelProtocolInterface::profileModel ( ) const
pure virtual

method for getting profile-specific datamodel

Implemented in Model.

◆ searchModel()

virtual SearchModel* MModelProtocolInterface::searchModel ( ) const
pure virtual

method for getting the full text search datamodel

Implemented in Model.

◆ tclModel()

virtual TclModel& MModelProtocolInterface::tclModel ( ) const
pure virtual

Implemented in Model.

◆ unlock()

virtual void MModelProtocolInterface::unlock ( )
pure virtual

thread sync: releases data model to other threads

Implemented in Model.


The documentation for this class was generated from the following file: