Divide interface, Combine Accessble, Move header to proper location etc...
Change-Id: I6c27896543ceca46cf61c57a746f2060e16ac4b5
--- /dev/null
+#ifndef _ACCESSIBLE_H_
+#define _ACCESSIBLE_H_
+
+#include "AccessibleNode.h"
+#include "AccessibleUtils.h"
+#include "AccessibleWatcher.h"
+#include "AccessibleApplication.h"
+#include "AccessibleWindow.h"
+#include "IEventConsumer.h"
+#include "IEventSource.h"
+
+#endif /* _ACCESSIBLE_H_ */
#pragma once
-
#include "AccessibleApplication.h"
#include "AccessibleWindow.h"
#include "AccessibleNode.h"
#include "Waiter.h"
#include "ISearchable.h"
#include "IDevice.h"
-#include "AccessibleNode.h"
-#include "AccessibleUtils.h"
-#include "AccessibleWatcher.h"
-#include "AccessibleApplication.h"
-#include "AccessibleWindow.h"
-#include "IEventConsumer.h"
-#include "IEventSource.h"
+#include "Accessible.h"
#include "Point2D.h"
#include "Rect.h"
#include "PartialMatch.h"
+++ /dev/null
-#pragma once
-#include "config.h"
-
-#include <string>
-
-/**
- * @brief TimeRequestType enum class
- * @since_tizen 5.5
- */
-enum class TimeRequestType {
- WALLCLOCK,
- MONOTONIC,
-};
-
-/**
- * @brief KeyRequestType enum class
- * @since_tizen 5.5
- */
-enum class KeyRequestType {
- STROKE,
- LONG_STROKE,
- PRESS,
- RELEASE,
-};
-
-/**
- * @brief IDevice interface
- * @since_tizen 5.5
- */
-class IDevice {
-public:
- /**
- * @brief TBD virtual dtor
- * @since_tizen 5.5
- */
- virtual ~IDevice() {}
-
- /**
- * @brief TBD
- * @since_tizen 5.5
- */
- virtual bool click(const int x, const int y) = 0;
-
- /**
- * @brief TBD click method
- * @since_tizen 5.5
- */
- virtual bool click(const int x, const int y, const unsigned int intv) = 0;
-
- /**
- * @brief TBD
- * @since_tizen 5.5
- */
- virtual bool drag(const int sx, const int sy, const int ex, const int ey,
- const int steps, const int durationMs) = 0;
-
- /**
- * @brief TBD
- * @since_tizen 5.5
- */
- virtual int touchDown(const int x, const int y) = 0;
-
- /**
- * @brief TBD
- * @since_tizen 5.5
- */
- virtual bool touchMove(const int x, const int y, const int seq) = 0;
-
- /**
- * @brief TBD
- * @since_tizen 5.5
- */
- virtual bool touchUp(const int x, const int y, const int seq) = 0;
-
- /**
- * @brief TBD
- * @since_tizen 5.5
- */
-
- virtual bool wheelUp(int amount, const int durationMs) = 0;
-
- /**
- * @brief TBD
- * @since_tizen 5.5
- */
- virtual bool wheelDown(int amount, const int durationMs) = 0;
-
- /**
- * @brief TBD
- * @since_tizen 5.5
- */
- virtual bool pressBack(KeyRequestType type) = 0;
-
- /**
- * @brief TBD
- * @since_tizen 5.5
- */
- virtual bool pressHome(KeyRequestType type) = 0;
-
- /**
- * @brief TBD
- * @since_tizen 5.5
- */
- virtual bool pressMenu(KeyRequestType type) = 0;
-
- /**
- * @brief TBD
- * @since_tizen 5.5
- */
- virtual bool pressVolUp(KeyRequestType type) = 0;
-
- /**
- * @brief TBD
- * @since_tizen 5.5
- */
- virtual bool pressVolDown(KeyRequestType type) = 0;
-
- /**
- * @brief TBD
- * @since_tizen 5.5
- */
- virtual bool pressPower(KeyRequestType type) = 0;
-
- /**
- * @brief TBD
- * @since_tizen 5.5
- */
- virtual bool pressKeyCode(std::string keycode, KeyRequestType type) = 0;
-
- /**
- * @brief TBD
- * @since_tizen 5.5
- */
- virtual bool takeScreenshot(std::string path, float scale, int quality) = 0;
-
- /**
- * @brief TBD
- * @since_tizen 5.5
- */
- virtual long long getSystemTime(TimeRequestType type) = 0;
-};
\ No newline at end of file
+++ /dev/null
-#pragma once
-#include "config.h"
-
-#include "UiSelector.h"
-
-#include <memory>
-#include <vector>
-
-class UiObject;
-/**
- * @brief ISearchable interface
- * @since_tizen 5.5
- */
-class ISearchable {
-public:
-
- /**
- * @brief TBD
- * @since_tizen 5.5
- */
- virtual ~ISearchable() {}
-
- /**
- * @brief TBD
- * @since_tizen 5.5
- */
- virtual bool hasObject(const std::shared_ptr<UiSelector> selector) const = 0;
-
- /**
- * @brief TBD
- * @since_tizen 5.5
- */
- virtual std::shared_ptr<UiObject> findObject(
- const std::shared_ptr<UiSelector> selector) const = 0;
-
- /**
- * @brief TBD
- * @since_tizen 5.5
- */
- virtual std::vector<std::shared_ptr<UiObject>> findObjects(
- const std::shared_ptr<UiSelector> selector) const = 0;
-};
\ No newline at end of file
--- /dev/null
+#pragma once
+#include "config.h"
+
+#include <string>
+
+/**
+ * @brief TimeRequestType enum class
+ * @since_tizen 5.5
+ */
+enum class TimeRequestType {
+ WALLCLOCK,
+ MONOTONIC,
+};
+
+/**
+ * @brief KeyRequestType enum class
+ * @since_tizen 5.5
+ */
+enum class KeyRequestType {
+ STROKE,
+ LONG_STROKE,
+ PRESS,
+ RELEASE,
+};
+
+/**
+ * @brief IDevice interface
+ * @since_tizen 5.5
+ */
+class IDevice {
+public:
+ /**
+ * @brief TBD virtual dtor
+ * @since_tizen 5.5
+ */
+ virtual ~IDevice() {}
+
+ /**
+ * @brief TBD
+ * @since_tizen 5.5
+ */
+ virtual bool click(const int x, const int y) = 0;
+
+ /**
+ * @brief TBD click method
+ * @since_tizen 5.5
+ */
+ virtual bool click(const int x, const int y, const unsigned int intv) = 0;
+
+ /**
+ * @brief TBD
+ * @since_tizen 5.5
+ */
+ virtual bool drag(const int sx, const int sy, const int ex, const int ey,
+ const int steps, const int durationMs) = 0;
+
+ /**
+ * @brief TBD
+ * @since_tizen 5.5
+ */
+ virtual int touchDown(const int x, const int y) = 0;
+
+ /**
+ * @brief TBD
+ * @since_tizen 5.5
+ */
+ virtual bool touchMove(const int x, const int y, const int seq) = 0;
+
+ /**
+ * @brief TBD
+ * @since_tizen 5.5
+ */
+ virtual bool touchUp(const int x, const int y, const int seq) = 0;
+
+ /**
+ * @brief TBD
+ * @since_tizen 5.5
+ */
+
+ virtual bool wheelUp(int amount, const int durationMs) = 0;
+
+ /**
+ * @brief TBD
+ * @since_tizen 5.5
+ */
+ virtual bool wheelDown(int amount, const int durationMs) = 0;
+
+ /**
+ * @brief TBD
+ * @since_tizen 5.5
+ */
+ virtual bool pressBack(KeyRequestType type) = 0;
+
+ /**
+ * @brief TBD
+ * @since_tizen 5.5
+ */
+ virtual bool pressHome(KeyRequestType type) = 0;
+
+ /**
+ * @brief TBD
+ * @since_tizen 5.5
+ */
+ virtual bool pressMenu(KeyRequestType type) = 0;
+
+ /**
+ * @brief TBD
+ * @since_tizen 5.5
+ */
+ virtual bool pressVolUp(KeyRequestType type) = 0;
+
+ /**
+ * @brief TBD
+ * @since_tizen 5.5
+ */
+ virtual bool pressVolDown(KeyRequestType type) = 0;
+
+ /**
+ * @brief TBD
+ * @since_tizen 5.5
+ */
+ virtual bool pressPower(KeyRequestType type) = 0;
+
+ /**
+ * @brief TBD
+ * @since_tizen 5.5
+ */
+ virtual bool pressKeyCode(std::string keycode, KeyRequestType type) = 0;
+
+ /**
+ * @brief TBD
+ * @since_tizen 5.5
+ */
+ virtual bool takeScreenshot(std::string path, float scale, int quality) = 0;
+
+ /**
+ * @brief TBD
+ * @since_tizen 5.5
+ */
+ virtual long long getSystemTime(TimeRequestType type) = 0;
+};
\ No newline at end of file
--- /dev/null
+#pragma once
+#include "config.h"
+
+#include "UiSelector.h"
+
+#include <memory>
+#include <vector>
+
+class UiObject;
+/**
+ * @brief ISearchable interface
+ * @since_tizen 5.5
+ */
+class ISearchable {
+public:
+
+ /**
+ * @brief TBD
+ * @since_tizen 5.5
+ */
+ virtual ~ISearchable() {}
+
+ /**
+ * @brief TBD
+ * @since_tizen 5.5
+ */
+ virtual bool hasObject(const std::shared_ptr<UiSelector> selector) const = 0;
+
+ /**
+ * @brief TBD
+ * @since_tizen 5.5
+ */
+ virtual std::shared_ptr<UiObject> findObject(
+ const std::shared_ptr<UiSelector> selector) const = 0;
+
+ /**
+ * @brief TBD
+ * @since_tizen 5.5
+ */
+ virtual std::vector<std::shared_ptr<UiObject>> findObjects(
+ const std::shared_ptr<UiSelector> selector) const = 0;
+};
\ No newline at end of file
--- /dev/null
+#pragma once
+#include <type_traits>
+
+template<typename E>
+struct enable_bitmask_operators{
+ static const bool enable=false;
+};
+
+#define enableEnumClassBitfield(E) template<> \
+ struct enable_bitmask_operators<E>{ \
+ static const bool enable=true; \
+ }
+
+template<typename E>
+typename std::enable_if_t<enable_bitmask_operators<E>::enable,E>
+operator|(E lhs,E rhs){
+ typedef typename std::underlying_type_t<E> underlying;
+ return static_cast<E>(
+ static_cast<underlying>(lhs) | static_cast<underlying>(rhs));
+}
+
+template<typename E>
+typename std::enable_if_t<enable_bitmask_operators<E>::enable,E>
+operator&(E lhs,E rhs){
+ typedef typename std::underlying_type_t<E> underlying;
+ return static_cast<E>(
+ static_cast<underlying>(lhs) & static_cast<underlying>(rhs));
+}
+
+template<typename E>
+typename std::enable_if_t<enable_bitmask_operators<E>::enable,E>
+operator^(E lhs,E rhs){
+ typedef typename std::underlying_type_t<E> underlying;
+ return static_cast<E>(
+ static_cast<underlying>(lhs) ^ static_cast<underlying>(rhs));
+}
+
+template<typename E>
+typename std::enable_if_t<enable_bitmask_operators<E>::enable,E>
+operator~(E lhs){
+ typedef typename std::underlying_type_t<E> underlying;
+ return static_cast<E>(
+ ~static_cast<underlying>(lhs));
+}
+
+template<typename E>
+typename std::enable_if_t<enable_bitmask_operators<E>::enable,E&>
+operator|=(E& lhs,E rhs){
+ typedef typename std::underlying_type_t<E> underlying;
+ lhs=static_cast<E>(
+ static_cast<underlying>(lhs) | static_cast<underlying>(rhs));
+ return lhs;
+}
+
+template<typename E>
+typename std::enable_if_t<enable_bitmask_operators<E>::enable,E&>
+operator&=(E& lhs,E rhs){
+ typedef typename std::underlying_type_t<E> underlying;
+ lhs=static_cast<E>(
+ static_cast<underlying>(lhs) & static_cast<underlying>(rhs));
+ return lhs;
+}
+
+template<typename E>
+typename std::enable_if_t<enable_bitmask_operators<E>::enable,E&>
+operator^=(E& lhs,E rhs){
+ typedef typename std::underlying_type_t<E> underlying;
+ lhs=static_cast<E>(
+ static_cast<underlying>(lhs) ^ static_cast<underlying>(rhs));
+ return lhs;
+}
+
+++ /dev/null
-#pragma once
-#include <type_traits>
-
-template<typename E>
-struct enable_bitmask_operators{
- static const bool enable=false;
-};
-
-#define enableEnumClassBitfield(E) template<> \
- struct enable_bitmask_operators<E>{ \
- static const bool enable=true; \
- }
-
-template<typename E>
-typename std::enable_if_t<enable_bitmask_operators<E>::enable,E>
-operator|(E lhs,E rhs){
- typedef typename std::underlying_type_t<E> underlying;
- return static_cast<E>(
- static_cast<underlying>(lhs) | static_cast<underlying>(rhs));
-}
-
-template<typename E>
-typename std::enable_if_t<enable_bitmask_operators<E>::enable,E>
-operator&(E lhs,E rhs){
- typedef typename std::underlying_type_t<E> underlying;
- return static_cast<E>(
- static_cast<underlying>(lhs) & static_cast<underlying>(rhs));
-}
-
-template<typename E>
-typename std::enable_if_t<enable_bitmask_operators<E>::enable,E>
-operator^(E lhs,E rhs){
- typedef typename std::underlying_type_t<E> underlying;
- return static_cast<E>(
- static_cast<underlying>(lhs) ^ static_cast<underlying>(rhs));
-}
-
-template<typename E>
-typename std::enable_if_t<enable_bitmask_operators<E>::enable,E>
-operator~(E lhs){
- typedef typename std::underlying_type_t<E> underlying;
- return static_cast<E>(
- ~static_cast<underlying>(lhs));
-}
-
-template<typename E>
-typename std::enable_if_t<enable_bitmask_operators<E>::enable,E&>
-operator|=(E& lhs,E rhs){
- typedef typename std::underlying_type_t<E> underlying;
- lhs=static_cast<E>(
- static_cast<underlying>(lhs) | static_cast<underlying>(rhs));
- return lhs;
-}
-
-template<typename E>
-typename std::enable_if_t<enable_bitmask_operators<E>::enable,E&>
-operator&=(E& lhs,E rhs){
- typedef typename std::underlying_type_t<E> underlying;
- lhs=static_cast<E>(
- static_cast<underlying>(lhs) & static_cast<underlying>(rhs));
- return lhs;
-}
-
-template<typename E>
-typename std::enable_if_t<enable_bitmask_operators<E>::enable,E&>
-operator^=(E& lhs,E rhs){
- typedef typename std::underlying_type_t<E> underlying;
- lhs=static_cast<E>(
- static_cast<underlying>(lhs) ^ static_cast<underlying>(rhs));
- return lhs;
-}
-
'./inc/Sel.h',
'./inc/Until.h',
'./inc/Waiter.h',
- './inc/ISearchable.h',
- './inc/IDevice.h',
+ './inc/Interface/ISearchable.h',
+ './inc/Interface/IDevice.h',
'./inc/A11yEvent.h',
- './inc/bitmask.h',
- './inc/Accessibility/AccessibleNode.h',
- './inc/Accessibility/AccessibleUtils.h',
- './inc/Accessibility/AccessibleWatcher.h',
- './inc/Accessibility/AccessibleApplication.h',
- './inc/Accessibility/AccessibleWindow.h',
- './inc/Accessibility/IEventConsumer.h',
- './inc/Accessibility/IEventSource.h',
+ './inc/Accessibility/Accessible.h',
'./inc/Runnable/Runnable.h',
+ './inc/Misc/bitmask.h',
'./inc/Misc/Point2D.h',
'./inc/Misc/Rect.h',
'./inc/Aurum.h',
include_directories('./inc/Impl'),
include_directories('./inc/Impl/Accessibility'),
include_directories('./inc/Misc'),
- include_directories('./inc/Runnable/'),
+ include_directories('./inc/Runnable'),
+ include_directories('./inc/Interface'),
root_inc,
loguru_inc,
]
install_headers(libaurum_install_inc,
)
-
-#include "A11yEvent.h"
-
#include "Aurum.h"
+
#include <unordered_map>
A11yEventInfo::A11yEventInfo() : A11yEventInfo(A11yEvent::EVENT_NONE, nullptr, nullptr) {}