Patronum
controller.h
Go to the documentation of this file.
1
#ifndef CONTROLLER_H
2
#define CONTROLLER_H
3
#include "
Patronum_global.h
"
4
#include "
icontroller.h
"
5
#include <qtservice.h>
6
7
namespace
Patronum
{
8
9
class
ServicePrivate;
10
17
class
PATRONUM_LIBRARYSHARED_EXPORT
Controller
:
public
QtServiceController,
protected
IController
18
{
19
public
:
24
Controller
(
const
QString& name);
25
32
bool
send(
int
argc,
char
**argv);
33
39
bool
waitForResponce(
int
msec = 10000);
40
41
// IControler interface
42
protected
:
43
49
void
handleFeatures(
const
QList<Feature> &features);
50
56
void
handleResponce(
const
QVariantMap &feature);
57
58
private
:
59
ServicePrivate
*d_ptr =
nullptr
;
60
QList<Feature> _features;
61
bool
_responce =
false
;
62
63
};
64
}
65
#endif // CONTROLLER_H
Patronum_global.h
Patronum::Controller
The Controller class provide control functionality for your service how to use : just inherit from th...
Definition:
controller.h:17
Patronum
Definition:
controller.cpp:7
Patronum::IController
Definition:
icontroller.h:11
PATRONUM_LIBRARYSHARED_EXPORT
#define PATRONUM_LIBRARYSHARED_EXPORT
Definition:
Patronum_global.h:9
icontroller.h
Patronum::ServicePrivate
Definition:
serviceprivate.h:12
Patronum
src
controller.h
Generated by
1.8.13