Patronum
Patronum::Service< Application > Class Template Reference

#include <service.h>

Inheritance diagram for Patronum::Service< Application >:
Inheritance graph
Collaboration diagram for Patronum::Service< Application >:
Collaboration graph

Public Member Functions

 Service (int argc, char **argv, const QString &name)
 Service. More...
 

Protected Member Functions

void handleReceve (const QList< Feature > &data)
 handleReceve - this method invoce when service receive new command from terminal of controller of this service More...
 
QList< FeaturesupportedFeatures ()
 supportedFeatures More...
 
bool sendResuylt (const QVariantMap &result)
 sendResuylt - call this method for send responce from service to tour controller More...
 
- Protected Member Functions inherited from Patronum::IService
 IService ()
 

Detailed Description

template<class Application>
class Patronum::Service< Application >

Service - How to use just inherit from the Service class and override the methods you need.

Definition at line 19 of file service.h.

Constructor & Destructor Documentation

◆ Service()

template<class Application >
Patronum::Service< Application >::Service ( int  argc,
char **  argv,
const QString &  name 
)
inline

Service.

Parameters
argc- count params
argv- test of arguments
name- name of your service

Definition at line 28 of file service.h.

Member Function Documentation

◆ handleReceve()

template<class Application >
void Patronum::Service< Application >::handleReceve ( const QList< Feature > &  data)
inlineprotectedvirtual

handleReceve - this method invoce when service receive new command from terminal of controller of this service

Parameters
data- is list of commands from controller

Implements Patronum::IService.

Definition at line 39 of file service.h.

◆ sendResuylt()

template<class Application >
bool Patronum::Service< Application >::sendResuylt ( const QVariantMap &  result)
inlineprotected

sendResuylt - call this method for send responce from service to tour controller

Parameters
result
Returns
true if data sendet is seccusseful

Definition at line 56 of file service.h.

◆ supportedFeatures()

template<class Application >
QList<Feature> Patronum::Service< Application >::supportedFeatures ( )
inlineprotectedvirtual

supportedFeatures

Returns
list of supported features of this service. override this method for correctly work of your pair (service and controller)

Implements Patronum::IService.

Definition at line 47 of file service.h.


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