some files are missed to add by mistake.
this patch adds them.
Change-Id: I5f27911887671046c9fb48aa380fdc882995a3ec
--- /dev/null
+#pragma once
+
+enum class EventType {
+ Window,
+ Object,
+};
+
+enum class WindowEventType {
+ WindowActivated,
+ WindowDeactivated,
+ WindowCreated,
+ WindowDestroyed,
+};
+
+enum class ObjectEventType {
+ ObjectStateVisible,
+ ObjectStateDefunct,
+};
+
+class IEventConsumer
+{
+public:
+ virtual ~IEventConsumer() {};
+ virtual void notify(int type, int type2, void *src) = 0;
+};
--- /dev/null
+#pragma once
+
+#include "IEventConsumer.h"
+#include <memory>
+
+class IEventSource
+{
+public:
+ virtual ~IEventSource() {};
+ virtual void attach(std::shared_ptr<IEventConsumer> source) = 0;
+ virtual void detach(std::shared_ptr<IEventConsumer> source) = 0;
+ virtual void notifyAll(int type, int type2, void *src) = 0;
+};