Patronum
|
The Patronum namespace - It is main name space of Patronum Library. The Patronum library support the two work mode. More...
Classes | |
class | Controller |
The Controller class provide control functionality for your service. More... | |
class | Feature |
The Feature class it is atomic type for describe service command. More... | |
class | IController |
The IController class This is base interface for the handling network events. More... | |
class | IService |
The IService class is base interface of the service. More... | |
class | Service |
The Service class it is class for create a services from daemons. More... | |
class | ServiceBase |
The ServiceBase class This is Base service class. Please for create your own services use the Patronum::Service class. More... | |
Enumerations | |
enum | PatronumError { Undefined , ServiceUnavailable , InvalidPackage , WrongCommand , TimeOutError , SystemError , FailedToStart , UnsupportedPlatform } |
The PatronumError enum - controller work error codes. More... | |
Functions | |
QString | patronumLibVersion () |
patronumLibVersion This method return current version of library. | |
void | init () |
QString | errorToString (PatronumError error) |
errorToString This method convert the PatronumError to QString. | |
QDataStream & | operator<< (QDataStream &stream, const Feature &obj) |
QDataStream & | operator>> (QDataStream &stream, Feature &obj) |
bool | operator== (const Feature &left, const Feature &right) |
uint | qHash (const Feature &feature) |
The Patronum namespace - It is main name space of Patronum Library. The Patronum library support the two work mode.
In this case you have a service with single executable file. All service operations (instalation deinstalation, send commnad and another) will sends from the one executable.
Fits one you need to start service executable as a daemon.
For send any command to service use the service command.
In this mode you create two executable file.
Fits one you need to start service executable as a daemon.
For send any command to service use the terminal executable.
The PatronumError enum - controller work error codes.
Enumerator | |
---|---|
Undefined | Unknown error. |
ServiceUnavailable | Service is unavailable. Try send start command or restart the service manually. |
InvalidPackage | Invalid package received. |
WrongCommand | Library unsupported command received. |
TimeOutError | Timeout error. service unavailable or not started. |
SystemError | Internal error of the work of the Patronum library. Contact the developers and provide them with an error report. https://github.com/QuasarApp/Patronum/issues. |
FailedToStart | This error ocured when user srvice failed to start. |
UnsupportedPlatform | This error ocured when service not supportded using platform. |
Definition at line 27 of file Patronum_global.h.
QString Patronum::errorToString | ( | PatronumError | error | ) |
errorToString This method convert the PatronumError to QString.
error | This is error id. |
Definition at line 13 of file Patronum_global.cpp.
void Patronum::init | ( | ) |
Definition at line 17 of file patronum.cpp.
QDataStream & Patronum::operator<< | ( | QDataStream & | stream, |
const Feature & | obj | ||
) |
Definition at line 61 of file PFeature.cpp.
Definition at line 75 of file PFeature.cpp.
QDataStream & Patronum::operator>> | ( | QDataStream & | stream, |
Feature & | obj | ||
) |
Definition at line 67 of file PFeature.cpp.
QString Patronum::patronumLibVersion | ( | ) |
patronumLibVersion This method return current version of library.
Definition at line 13 of file patronum.cpp.
uint PATRONUM_LIBRARYSHARED_EXPORT Patronum::qHash | ( | const Feature & | feature | ) |
Definition at line 79 of file PFeature.cpp.