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.
powersync-core/server/hivecore.h
2014-01-26 18:39:09 +01:00

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