From 36b4ef34862831b67a9e16569371d418126250f5 Mon Sep 17 00:00:00 2001 From: Wonki Kim Date: Wed, 23 Dec 2020 09:16:01 +0900 Subject: [PATCH] libaurum: Add files that previous commit should've contained some files are missed to add by mistake. this patch adds them. Change-Id: I5f27911887671046c9fb48aa380fdc882995a3ec --- libaurum/inc/Accessibility/IEventConsumer.h | 25 +++++++++++++++++++++++++ libaurum/inc/Accessibility/IEventSource.h | 13 +++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 libaurum/inc/Accessibility/IEventConsumer.h create mode 100644 libaurum/inc/Accessibility/IEventSource.h diff --git a/libaurum/inc/Accessibility/IEventConsumer.h b/libaurum/inc/Accessibility/IEventConsumer.h new file mode 100644 index 0000000..970e516 --- /dev/null +++ b/libaurum/inc/Accessibility/IEventConsumer.h @@ -0,0 +1,25 @@ +#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; +}; diff --git a/libaurum/inc/Accessibility/IEventSource.h b/libaurum/inc/Accessibility/IEventSource.h new file mode 100644 index 0000000..7d976c3 --- /dev/null +++ b/libaurum/inc/Accessibility/IEventSource.h @@ -0,0 +1,13 @@ +#pragma once + +#include "IEventConsumer.h" +#include + +class IEventSource +{ +public: + virtual ~IEventSource() {}; + virtual void attach(std::shared_ptr source) = 0; + virtual void detach(std::shared_ptr source) = 0; + virtual void notifyAll(int type, int type2, void *src) = 0; +}; -- 2.7.4