Patronum
Loading...
Searching...
No Matches
IPController.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2018-2025 QuasarApp.
3 * Distributed under the lgplv3 software license, see the accompanying
4 * Everyone is permitted to copy and distribute verbatim copies
5 * of this license document, but changing it is not allowed.
6*/
7
8#ifndef ICONTROLER_H
9#define ICONTROLER_H
10
11#include <QList>
12#include <QVariantMap>
13#include "Patronum_global.h"
14
15namespace Patronum {
16
17class Feature;
18
24{
25public:
26 IController() = default;
27 virtual ~IController() = default;
28
34 virtual void handleFeatures(const QList<Feature>& features) = 0;
35
41 virtual void handleResponce(const QVariantMap& responce) = 0;
42
48 virtual void handleError(PatronumError errorCode) = 0;
49
53 virtual void finished() = 0;
54
55};
56}
57
58#endif // ICONTROLER_H
#define PATRONUM_LIBRARYSHARED_EXPORT
The Feature class it is atomic type for describe service command.
Definition PFeature.h:22
The IController class This is base interface for the handling network events.
virtual void handleFeatures(const QList< Feature > &features)=0
handleFeatures This method should be handle all Command::Features resuests. This method will invoked ...
virtual void finished()=0
finished This method ivoked when controler received Command::CloseConnection from the server.
virtual void handleResponce(const QVariantMap &responce)=0
handleResponce This method should be handle all responces of the service. This method will invoked wh...
virtual void handleError(PatronumError errorCode)=0
handleError This method shold be handle all error messages. This method will invoked when a controlee...
virtual ~IController()=default
The Patronum namespace - It is main name space of Patronum Library. The Patronum library support the ...
PatronumError
The PatronumError enum - controller work error codes.