Patronum
serviceprivate.h
Go to the documentation of this file.
1 #ifndef SERVICEPRIVATE_H
2 #define SERVICEPRIVATE_H
3 #include <QObject>
4 #include <feature.h>
5 
6 namespace Patronum {
7 
8 class LocalSocket;
9 class IService;
10 class IController;
11 
12 class ServicePrivate: public QObject
13 {
14  Q_OBJECT
15 public:
16  ServicePrivate(const QString& name, IController* controller = nullptr,
17  IService* service = nullptr, QObject *parent = nullptr);
18 
19  bool sendCmdResult(const QVariantMap& result);
20  bool sendFeaturesRequest();
21  bool sendCmd(const QList<Feature>& result);
22 
23 signals:
24  void sigListFeatures(QList<Feature>);
25 
26 private:
27  LocalSocket *_socket = nullptr;
28  IService *_service = nullptr;
29  IController *_controller = nullptr;
30 
31 private slots:
32  void handleReceve(QByteArray data);
33 };
34 
35 }
36 #endif // SERVICEPRIVATE_H
ServicePrivate(const QString &name, IController *controller=nullptr, IService *service=nullptr, QObject *parent=nullptr)
The LocalSocket class this socket work only with locale data.
Definition: localsocket.h:15
bool sendCmd(const QList< Feature > &result)
bool sendCmdResult(const QVariantMap &result)
void sigListFeatures(QList< Feature >)