Patronum
Loading...
Searching...
No Matches
Patronum::IController Class Referenceabstract

The IController class This is base interface for the handling network events. More...

#include <IPController.h>

Inheritance diagram for Patronum::IController:
Inheritance graph
Collaboration diagram for Patronum::IController:
Collaboration graph

Public Member Functions

 IController ()=default
 
virtual ~IController ()=default
 
virtual void handleFeatures (const QList< Feature > &features)=0
 handleFeatures This method should be handle all Command::Features resuests. This method will invoked when controller receive commands list for execute (features) from controller or terminal.
 
virtual void handleResponce (const QVariantMap &responce)=0
 handleResponce This method should be handle all responces of the service. This method will invoked when controller receive responce from service.
 
virtual void handleError (PatronumError errorCode)=0
 handleError This method shold be handle all error messages. This method will invoked when a controlee receive a error responce from a service.
 
virtual void finished ()=0
 finished This method ivoked when controler received Command::CloseConnection from the server.
 

Detailed Description

The IController class This is base interface for the handling network events.

Definition at line 23 of file IPController.h.

Constructor & Destructor Documentation

◆ IController()

Patronum::IController::IController ( )
default

◆ ~IController()

virtual Patronum::IController::~IController ( )
virtualdefault

Member Function Documentation

◆ finished()

virtual void Patronum::IController::finished ( )
pure virtual

finished This method ivoked when controler received Command::CloseConnection from the server.

Implemented in Patronum::Controller.

◆ handleError()

virtual void Patronum::IController::handleError ( PatronumError  errorCode)
pure virtual

handleError This method shold be handle all error messages. This method will invoked when a controlee receive a error responce from a service.

Parameters
errorCodeThis is code of a error.

Implemented in Patronum::Controller.

◆ handleFeatures()

virtual void Patronum::IController::handleFeatures ( const QList< Feature > &  features)
pure virtual

handleFeatures This method should be handle all Command::Features resuests. This method will invoked when controller receive commands list for execute (features) from controller or terminal.

Parameters
featuresThis is list of the requests (features)

Implemented in Patronum::Controller.

◆ handleResponce()

virtual void Patronum::IController::handleResponce ( const QVariantMap &  responce)
pure virtual

handleResponce This method should be handle all responces of the service. This method will invoked when controller receive responce from service.

Parameters
responceThis is responce message.

Implemented in Patronum::Controller.


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