This repository has been archived on 2026-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
2014-03-31 20:33:30 +02:00

36 lines
590 B
C++

#ifndef HIVECORE_H
#define HIVECORE_H
#include "rule.h"
#include "event.h"
#include <QObject>
class JsonRPCServer;
class DeviceManager;
class RuleEngine;
class GuhCore : public QObject
{
Q_OBJECT
public:
static GuhCore* instance();
DeviceManager* deviceManager() const;
RuleEngine *ruleEngine() const;
private:
explicit GuhCore(QObject *parent = 0);
static GuhCore *s_instance;
JsonRPCServer *m_jsonServer;
DeviceManager *m_deviceManager;
RuleEngine *m_ruleEngine;
private slots:
void gotSignal(const Event &event);
};
#endif // HIVECORE_H