Patronum
Loading...
Searching...
No Matches
PController.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 CONTROLLER_H
9#define CONTROLLER_H
10#include "Patronum_global.h"
11#include <IPController.h>
12#include "PFeature.h"
13#include <quasarapp.h>
14
15namespace Patronum {
16
17class ControllerPrivate;
18
57{
58public:
62 Controller();
63 ~Controller() override;
64
71 bool send(int argc, char **argv);
72
78 bool send();
79
84 bool sendStop();
85
90 QuasarAppUtils::Help::Section help() const;
91
92 // IControler interface
93protected:
94
100 void handleError(PatronumError error) override;
101
107 void handleFeatures(const QList<Feature> &features) override;
108
114 void handleResponce(const QVariantMap &responce) override;
115
121 void finished() override;
122
128 QList<Feature> features();
129
130
131private:
132 ControllerPrivate *d_ptr = nullptr;
133 bool _disableFinished = false;
134 void printDefaultHelp() const;
135};
136}
137#endif // CONTROLLER_H
#define PATRONUM_LIBRARYSHARED_EXPORT
The Controller class provide control functionality for your service.
Definition PController.h:57
The IController class This is base interface for the handling network events.
The Patronum namespace - It is main name space of Patronum Library. The Patronum library support the ...
PatronumError
The PatronumError enum - controller work error codes.