Classified ads
datamodel
mmodelprotocolinterface.h
Go to the documentation of this file.
1
/* -*-C++-*- -*-coding: utf-8-unix;-*-
2
Classified Ads is Copyright (c) Antti Järvinen 2013-2017.
3
4
This file is part of Classified Ads.
5
6
Classified Ads is free software; you can redistribute it and/or
7
modify it under the terms of the GNU Lesser General Public
8
License as published by the Free Software Foundation; either
9
version 2.1 of the License, or (at your option) any later version.
10
11
Classified Ads is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
Lesser General Public License for more details.
15
16
You should have received a copy of the GNU Lesser General Public
17
License along with Classified Ads; if not, write to the Free Software
18
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19
*/
20
21
#ifndef M_MODEL_PROTOCOL_INTERFACE_H
22
#define M_MODEL_PROTOCOL_INTERFACE_H
23
#include <QObject>
24
#include "../mcontroller.h"
25
#include "
netrequestexecutor.h
"
26
#include "
mmodelprotocolinterface.h
"
27
28
class
MNodeModelProtocolInterface
;
29
class
ProfileModel
;
30
class
BinaryFileModel
;
31
class
ClassifiedAdsModel
;
32
class
PrivMessageModel
;
33
class
ContentEncryptionModel
;
34
class
ProfileCommentModel
;
35
class
SearchModel
;
36
class
CaDbRecordModel
;
37
class
TclModel
;
46
class
MModelProtocolInterface
:
public
QObject {
47
Q_OBJECT
48
public
:
54
virtual
void
addNetworkRequest
(
NetworkRequestExecutor::NetworkRequestQueueItem
&
55
aRequest)
const
= 0 ;
59
virtual
bool
lock
() = 0 ;
63
virtual
void
unlock
() = 0 ;
67
virtual
MNodeModelProtocolInterface
&
nodeModel
()
const
= 0 ;
71
virtual
ProfileModel
&
profileModel
()
const
= 0 ;
75
virtual
BinaryFileModel
&
binaryFileModel
()
const
= 0 ;
77
virtual
ClassifiedAdsModel
&
classifiedAdsModel
()
const
= 0 ;
79
virtual
PrivMessageModel
&
privateMessageModel
()
const
= 0 ;
81
virtual
ContentEncryptionModel
&
contentEncryptionModel
()
const
= 0 ;
82
virtual
ProfileCommentModel
&
profileCommentModel
()
const
= 0 ;
83
virtual
SearchModel
*
searchModel
()
const
= 0 ;
84
virtual
CaDbRecordModel
*
caDbRecordModel
()
const
= 0 ;
85
virtual
TclModel
&
tclModel
()
const
= 0 ;
86
};
87
#endif
MModelProtocolInterface::addNetworkRequest
virtual void addNetworkRequest(NetworkRequestExecutor::NetworkRequestQueueItem &aRequest) const =0
MModelProtocolInterface::searchModel
virtual SearchModel * searchModel() const =0
SearchModel
Model-class for performing text-based searches on objects in db This datamodel part is dual-use ; it ...
Definition:
searchmodel.h:45
ProfileCommentModel
This is is part of datamodel for storing comments of user profiles.
Definition:
profilecommentmodel.h:38
PrivMessageModel
This is is part of datamodel for storing private messages.
Definition:
privmsgmodel.h:51
MModelProtocolInterface::tclModel
virtual TclModel & tclModel() const =0
MModelProtocolInterface::nodeModel
virtual MNodeModelProtocolInterface & nodeModel() const =0
MModelProtocolInterface::classifiedAdsModel
virtual ClassifiedAdsModel & classifiedAdsModel() const =0
MModelProtocolInterface::contentEncryptionModel
virtual ContentEncryptionModel & contentEncryptionModel() const =0
mmodelprotocolinterface.h
ClassifiedAdsModel
This is part of datamodel for storage/retrieval of classified ads.
Definition:
camodel.h:40
MModelProtocolInterface::privateMessageModel
virtual PrivMessageModel & privateMessageModel() const =0
MModelProtocolInterface::profileModel
virtual ProfileModel & profileModel() const =0
MModelProtocolInterface
Pure-virtual interface of datamodel for message parser to use.
Definition:
mmodelprotocolinterface.h:46
MModelProtocolInterface::unlock
virtual void unlock()=0
MModelProtocolInterface::profileCommentModel
virtual ProfileCommentModel & profileCommentModel() const =0
netrequestexecutor.h
ProfileModel
This is is part of datamodel for storing user profiles.
Definition:
profilemodel.h:39
MModelProtocolInterface::caDbRecordModel
virtual CaDbRecordModel * caDbRecordModel() const =0
TclModel
Datamodel-part of storage related to TCL-programs.
Definition:
tclmodel.h:38
NetworkRequestExecutor::NetworkRequestQueueItem
Work queue item.
Definition:
netrequestexecutor.h:60
CaDbRecordModel
This is is part of datamodel for storing database records.
Definition:
cadbrecordmodel.h:44
MNodeModelProtocolInterface
Pure-virtual interface of nodemodel.
Definition:
mnodemodelprotocolinterface.h:39
MModelProtocolInterface::binaryFileModel
virtual BinaryFileModel & binaryFileModel() const =0
BinaryFileModel
This is part of datamodel for any binary blobs.
Definition:
binaryfilemodel.h:39
MModelProtocolInterface::lock
virtual bool lock()=0
ContentEncryptionModel
This is content-crypto-operations-specific part of the datamodel.
Definition:
contentencryptionmodel.h:37
Generated by
1.8.13