mirror of https://github.com/nymea/nymea.git
36 lines
594 B
C++
36 lines
594 B
C++
#ifndef HIVECORE_H
|
|
#define HIVECORE_H
|
|
|
|
#include "rule.h"
|
|
#include "event.h"
|
|
|
|
#include <QObject>
|
|
|
|
class JsonRPCServer;
|
|
class DeviceManager;
|
|
class RuleEngine;
|
|
|
|
class HiveCore : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
static HiveCore* instance();
|
|
|
|
DeviceManager* deviceManager() const;
|
|
RuleEngine *ruleEngine() const;
|
|
|
|
private:
|
|
explicit HiveCore(QObject *parent = 0);
|
|
static HiveCore *s_instance;
|
|
|
|
JsonRPCServer *m_jsonServer;
|
|
DeviceManager *m_deviceManager;
|
|
RuleEngine *m_ruleEngine;
|
|
|
|
private slots:
|
|
void gotSignal(const Event &event);
|
|
|
|
};
|
|
|
|
#endif // HIVECORE_H
|