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
 

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

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, and MockUpModel.

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

method for getting blob-specific datamodel

Implemented in Model, and MockUpModel.

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

method for getting the ads datamodel

Implemented in Model, and MockUpModel.

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

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

Implemented in Model, and MockUpModel.

virtual bool MModelProtocolInterface::lock ( )
pure virtual

thread sync: this claims access to datamodel

Implemented in Model, and MockUpModel.

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

method for getting node-specific datamodel

Implemented in Model, and MockUpModel.

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

method for getting the private message datamodel

Implemented in Model, and MockUpModel.

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

method for getting the comment datamodel

Implemented in Model, and MockUpModel.

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

method for getting profile-specific datamodel

Implemented in Model, and MockUpModel.

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

method for getting the full text search datamodel

Implemented in Model, and MockUpModel.

virtual void MModelProtocolInterface::unlock ( )
pure virtual

thread sync: releases data model to other threads

Implemented in Model, and MockUpModel.


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