Add mainloop interface and backend layer 12/107312/7
authorKyungwook Tak <k.tak@samsung.com>
Tue, 27 Dec 2016 11:42:35 +0000 (20:42 +0900)
committerKyungwook Tak <k.tak@samsung.com>
Mon, 2 Jan 2017 00:38:36 +0000 (09:38 +0900)
commit29fa466ca487fbec2e3574e7c4ce7bab2f95df8a
treeca128b35744b9c32ec96972abaf26002cbcadf32
parent8756a58db5971eec1864c27da179966aa8050b76
Add mainloop interface and backend layer

popup service needs to use ecore loop based mainloop so as to expand
ecore main loop life cycle to process life cycle to fix restart ecore
loop bug.

Make Mainloop class abstract and declare Event which can converted to
backend specific event enums(e.g., epoll events, ecore events) then
mainloop and service class can be defined generically.

Mainloop backend is selected in each service impl's constructor.

Change-Id: Ie965bbcca45c31a950cbb86649a2d22dd0d494d1
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
18 files changed:
src/framework/CMakeLists.txt
src/framework/client/async-logic.cpp
src/framework/client/async-logic.h
src/framework/common/mainloop.h
src/framework/common/native-mainloop.cpp [moved from src/framework/common/mainloop.cpp with 60% similarity]
src/framework/common/native-mainloop.h [new file with mode: 0644]
src/framework/common/service.cpp
src/framework/common/service.h
src/framework/common/socket.h
src/framework/service/server-service.cpp
src/framework/ui/popup/CMakeLists.txt
src/framework/ui/popup/ecore-mainloop.cpp [new file with mode: 0644]
src/framework/ui/popup/ecore-mainloop.h [new file with mode: 0644]
src/framework/ui/popup/logic.cpp [changed mode: 0755->0644]
src/framework/ui/popup/logic.h
src/framework/ui/popup/popup-service.cpp
src/framework/ui/popup/popup.cpp
src/framework/ui/popup/popup.h