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:54:26 +02:00

36 lines
587 B
C++

#ifndef GUHCORE_H
#define GUHCORE_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 // GUHCORE_H