working on big refactor

This commit is contained in:
Jonas Zeunert
2018-12-14 01:09:54 +01:00
parent f3100004b9
commit 2aee0f4f9d
67 changed files with 914 additions and 619 deletions

View File

@@ -6,17 +6,18 @@
#define flippR_driver_DISTRIBUTINGEVENT_H
#include "input/Event.h"
#include "IEventNotifier.h"
#include "input/EventNotifier.h"
namespace flippR_driver
{
namespace input
{
class DistributingEvent : public Event
{
public:
DistributingEvent(char address, int priority, std::string name,
std::chrono::milliseconds bounce_time, std::shared_ptr<IEventNotifier> event_notifier);
std::chrono::milliseconds bounce_time, std::shared_ptr<EventNotifier> event_notifier);
void active();
void inactive();
@@ -37,11 +38,12 @@ private:
ACTIVATED
};
const std::shared_ptr<IEventNotifier> event_notifier;
const std::shared_ptr<EventNotifier> event_notifier;
ActivationState activation_state;
};
}
}