summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Olshevskyi <i.olshevskyi@samsung.com>2017-08-11 09:58:00 +0300
committerIgor Olshevskyi <i.olshevskyi@samsung.com>2017-08-23 10:26:03 +0300
commit7f3c6db9d5efcc65b8f2519f3f96e252c824c02f (patch)
tree67e19069c88bf9b59f3e0a4daa4bec8f0b9a7a97
parentd7a2d4c3eb77f400ab89ee5553599e103442c49c (diff)
downloadcall-ui-7f3c6db9d5efcc65b8f2519f3f96e252c824c02f.tar.gz
call-ui-7f3c6db9d5efcc65b8f2519f3f96e252c824c02f.tar.bz2
call-ui-7f3c6db9d5efcc65b8f2519f3f96e252c824c02f.zip
TizenRefApp-9096 [Call UI] Update UCL library
Change-Id: Ib0ad8d859015e058413830ab4ed72b1abb41db6f
-rw-r--r--.cproject14
-rw-r--r--call-ui/common.h4
-rw-r--r--call-ui/model/impl/IncomingCall.h6
-rw-r--r--call-ui/presenters/Instance.cpp4
-rw-r--r--call-ui/presenters/base/Page.cpp21
-rw-r--r--call-ui/presenters/base/Page.h11
-rw-r--r--call-ui/presenters/dialogs/AcceptDialog.cpp4
-rw-r--r--call-ui/presenters/misc/AccessoryPresenter.cpp9
-rw-r--r--call-ui/presenters/misc/CallInfoPresenter.cpp5
-rw-r--r--call-ui/presenters/misc/IndicatorPresenter.cpp7
-rw-r--r--call-ui/presenters/misc/MoreOptionsPresenter.cpp9
-rw-r--r--call-ui/presenters/misc/RejectMsgPresenter.cpp12
-rw-r--r--call-ui/presenters/misc/common.h6
-rw-r--r--call-ui/presenters/pages/KeypadPage.cpp5
-rw-r--r--call-ui/presenters/pages/MainPage.cpp4
-rw-r--r--call-ui/presenters/pages/common.h6
-rw-r--r--call-ui/view/AcceptRejectWidget.cpp9
-rw-r--r--call-ui/view/Slider.cpp3
-rw-r--r--call-ui/view/VolumeControl.cpp1
-rw-r--r--call-ui/view/helpers.cpp5
-rw-r--r--project_def.prop4
-rw-r--r--ucl/include/ucl/appfw/IInstance.h (renamed from ucl/inc/ucl/appfw/IInstance.h)0
-rw-r--r--ucl/include/ucl/appfw/IInstanceAppControlExt.h (renamed from ucl/inc/ucl/appfw/IInstanceAppControlExt.h)0
-rw-r--r--ucl/include/ucl/appfw/IInstanceContext.h (renamed from ucl/inc/ucl/appfw/IInstanceContext.h)0
-rw-r--r--ucl/include/ucl/appfw/InstanceManagerBase.h (renamed from ucl/inc/ucl/appfw/InstanceManagerBase.h)0
-rw-r--r--ucl/include/ucl/appfw/SysEventProvider.h (renamed from ucl/inc/ucl/appfw/SysEventProvider.h)0
-rw-r--r--ucl/include/ucl/appfw/SysEventProvider.hpp (renamed from ucl/inc/ucl/appfw/SysEventProvider.hpp)0
-rw-r--r--ucl/include/ucl/appfw/UIApp.h (renamed from ucl/inc/ucl/appfw/UIApp.h)0
-rw-r--r--ucl/include/ucl/appfw/helpers.h (renamed from ucl/inc/ucl/appfw/helpers.h)0
-rw-r--r--ucl/include/ucl/appfw/types.h (renamed from ucl/inc/ucl/appfw/types.h)0
-rw-r--r--ucl/include/ucl/config.h (renamed from ucl/inc/ucl/config.h)0
-rw-r--r--ucl/include/ucl/gui/EdjeWidget.h (renamed from ucl/inc/ucl/gui/EdjeWidget.h)2
-rw-r--r--ucl/include/ucl/gui/EdjeWidget.hpp (renamed from ucl/inc/ucl/gui/EdjeWidget.hpp)0
-rw-r--r--ucl/include/ucl/gui/ElmWidget.h (renamed from ucl/inc/ucl/gui/ElmWidget.h)4
-rw-r--r--ucl/include/ucl/gui/ElmWidget.hpp (renamed from ucl/inc/ucl/gui/ElmWidget.hpp)0
-rw-r--r--ucl/include/ucl/gui/Genlist.h (renamed from ucl/inc/ucl/gui/Genlist.h)2
-rw-r--r--ucl/include/ucl/gui/Genlist.hpp (renamed from ucl/inc/ucl/gui/Genlist.hpp)2
-rw-r--r--ucl/include/ucl/gui/GenlistItem.h (renamed from ucl/inc/ucl/gui/GenlistItem.h)0
-rw-r--r--ucl/include/ucl/gui/GenlistItem.hpp (renamed from ucl/inc/ucl/gui/GenlistItem.hpp)0
-rw-r--r--ucl/include/ucl/gui/Layout.h (renamed from ucl/inc/ucl/gui/Layout.h)2
-rw-r--r--ucl/include/ucl/gui/Layout.hpp (renamed from ucl/inc/ucl/gui/Layout.hpp)2
-rw-r--r--ucl/include/ucl/gui/NaviItem.h (renamed from ucl/inc/ucl/gui/NaviItem.h)0
-rw-r--r--ucl/include/ucl/gui/NaviItem.hpp (renamed from ucl/inc/ucl/gui/NaviItem.hpp)0
-rw-r--r--ucl/include/ucl/gui/Naviframe.h (renamed from ucl/inc/ucl/gui/Naviframe.h)0
-rw-r--r--ucl/include/ucl/gui/Naviframe.hpp (renamed from ucl/inc/ucl/gui/Naviframe.hpp)0
-rw-r--r--ucl/include/ucl/gui/StyledWidget.h (renamed from ucl/inc/ucl/gui/StyledWidget.h)2
-rw-r--r--ucl/include/ucl/gui/StyledWidget.hpp (renamed from ucl/inc/ucl/gui/StyledWidget.hpp)0
-rw-r--r--ucl/include/ucl/gui/Theme.h (renamed from ucl/inc/ucl/gui/Theme.h)0
-rw-r--r--ucl/include/ucl/gui/Theme.hpp (renamed from ucl/inc/ucl/gui/Theme.hpp)0
-rw-r--r--ucl/include/ucl/gui/Widget.h (renamed from ucl/inc/ucl/gui/Widget.h)4
-rw-r--r--ucl/include/ucl/gui/Widget.hpp (renamed from ucl/inc/ucl/gui/Widget.hpp)0
-rw-r--r--ucl/include/ucl/gui/WidgetItem.h (renamed from ucl/inc/ucl/gui/WidgetItem.h)0
-rw-r--r--ucl/include/ucl/gui/WidgetItem.hpp (renamed from ucl/inc/ucl/gui/WidgetItem.hpp)0
-rw-r--r--ucl/include/ucl/gui/Window.h (renamed from ucl/inc/ucl/gui/Window.h)0
-rw-r--r--ucl/include/ucl/gui/Window.hpp (renamed from ucl/inc/ucl/gui/Window.hpp)0
-rw-r--r--ucl/include/ucl/gui/helpers.h (renamed from ucl/inc/ucl/gui/helpers.h)0
-rw-r--r--ucl/include/ucl/gui/helpers.hpp (renamed from ucl/inc/ucl/gui/helpers.hpp)0
-rw-r--r--ucl/include/ucl/gui/stdTheme.h (renamed from ucl/inc/ucl/gui/stdTheme.h)0
-rw-r--r--ucl/include/ucl/gui/stdTheme/common.h (renamed from ucl/inc/ucl/gui/stdTheme/common.h)0
-rw-r--r--ucl/include/ucl/gui/stdTheme/layout.h (renamed from ucl/inc/ucl/gui/stdTheme/layout.h)0
-rw-r--r--ucl/include/ucl/gui/stdTheme/naviframe.h (renamed from ucl/inc/ucl/gui/stdTheme/naviframe.h)0
-rw-r--r--ucl/include/ucl/gui/types.h (renamed from ucl/inc/ucl/gui/types.h)0
-rw-r--r--ucl/include/ucl/gui/types.hpp (renamed from ucl/inc/ucl/gui/types.hpp)0
-rw-r--r--ucl/include/ucl/misc/Aspect.h (renamed from ucl/inc/ucl/misc/Aspect.h)0
-rw-r--r--ucl/include/ucl/misc/Aspect.hpp (renamed from ucl/inc/ucl/misc/Aspect.hpp)0
-rw-r--r--ucl/include/ucl/misc/AutoHandle.h (renamed from ucl/inc/ucl/misc/AutoHandle.h)0
-rw-r--r--ucl/include/ucl/misc/CString.h (renamed from ucl/inc/ucl/misc/CString.h)0
-rw-r--r--ucl/include/ucl/misc/CString.hpp (renamed from ucl/inc/ucl/misc/CString.hpp)0
-rw-r--r--ucl/include/ucl/misc/ConstCString.h (renamed from ucl/inc/ucl/misc/ConstCString.h)0
-rw-r--r--ucl/include/ucl/misc/ConstCString.hpp (renamed from ucl/inc/ucl/misc/ConstCString.hpp)0
-rw-r--r--ucl/include/ucl/misc/Event.h (renamed from ucl/inc/ucl/misc/Event.h)0
-rw-r--r--ucl/include/ucl/misc/Event.hpp (renamed from ucl/inc/ucl/misc/Event.hpp)0
-rw-r--r--ucl/include/ucl/misc/HashMap.h (renamed from ucl/inc/ucl/misc/HashMap.h)0
-rw-r--r--ucl/include/ucl/misc/HashMap.hpp (renamed from ucl/inc/ucl/misc/HashMap.hpp)0
-rw-r--r--ucl/include/ucl/misc/RefCountAware.h (renamed from ucl/inc/ucl/misc/RefCountAware.h)0
-rw-r--r--ucl/include/ucl/misc/RefCountAware.hpp (renamed from ucl/inc/ucl/misc/RefCountAware.hpp)0
-rw-r--r--ucl/include/ucl/misc/TString.h (renamed from ucl/inc/ucl/misc/TString.h)0
-rw-r--r--ucl/include/ucl/misc/TString.hpp (renamed from ucl/inc/ucl/misc/TString.hpp)0
-rw-r--r--ucl/include/ucl/misc/Timeout.h (renamed from ucl/inc/ucl/misc/Timeout.h)0
-rw-r--r--ucl/include/ucl/misc/Variant.h (renamed from ucl/inc/ucl/misc/Variant.h)0
-rw-r--r--ucl/include/ucl/misc/Variant.hpp (renamed from ucl/inc/ucl/misc/Variant.hpp)0
-rw-r--r--ucl/include/ucl/mvp/GuiPresenter.h (renamed from ucl/inc/ucl/mvp/GuiPresenter.h)0
-rw-r--r--ucl/include/ucl/mvp/ListItemPresenter.h (renamed from ucl/inc/ucl/mvp/ListItemPresenter.h)9
-rw-r--r--ucl/include/ucl/mvp/ListPresenter.h (renamed from ucl/inc/ucl/mvp/ListPresenter.h)0
-rw-r--r--ucl/include/ucl/mvp/types.h (renamed from ucl/inc/ucl/mvp/types.h)0
-rw-r--r--ucl/include/ucl/util/delegation.h (renamed from ucl/inc/ucl/util/delegation.h)0
-rw-r--r--ucl/include/ucl/util/delegation/BaseDelegate.h (renamed from ucl/inc/ucl/util/delegation/BaseDelegate.h)0
-rw-r--r--ucl/include/ucl/util/delegation/BaseDelegate.hpp (renamed from ucl/inc/ucl/util/delegation/BaseDelegate.hpp)0
-rw-r--r--ucl/include/ucl/util/delegation/BaseDelegate2.h (renamed from ucl/inc/ucl/util/delegation/BaseDelegate2.h)0
-rw-r--r--ucl/include/ucl/util/delegation/BaseDelegate2.hpp (renamed from ucl/inc/ucl/util/delegation/BaseDelegate2.hpp)0
-rw-r--r--ucl/include/ucl/util/delegation/Callback.h (renamed from ucl/inc/ucl/util/delegation/Callback.h)0
-rw-r--r--ucl/include/ucl/util/delegation/Callback.hpp (renamed from ucl/inc/ucl/util/delegation/Callback.hpp)0
-rw-r--r--ucl/include/ucl/util/delegation/Delegate.h (renamed from ucl/inc/ucl/util/delegation/Delegate.h)0
-rw-r--r--ucl/include/ucl/util/delegation/Delegate.hpp (renamed from ucl/inc/ucl/util/delegation/Delegate.hpp)0
-rw-r--r--ucl/include/ucl/util/delegation/Delegate2.h (renamed from ucl/inc/ucl/util/delegation/Delegate2.h)0
-rw-r--r--ucl/include/ucl/util/delegation/Delegate2.hpp (renamed from ucl/inc/ucl/util/delegation/Delegate2.hpp)0
-rw-r--r--ucl/include/ucl/util/delegation/helpers.h (renamed from ucl/inc/ucl/util/delegation/helpers.h)0
-rw-r--r--ucl/include/ucl/util/delegation/macro.h (renamed from ucl/inc/ucl/util/delegation/macro.h)0
-rw-r--r--ucl/include/ucl/util/delegation/shortMacro.h (renamed from ucl/inc/ucl/util/delegation/shortMacro.h)0
-rw-r--r--ucl/include/ucl/util/helpers.h (renamed from ucl/inc/ucl/util/helpers.h)11
-rw-r--r--ucl/include/ucl/util/helpers.hpp (renamed from ucl/inc/ucl/util/helpers.hpp)0
-rw-r--r--ucl/include/ucl/util/logging.h (renamed from ucl/inc/ucl/util/logging.h)0
-rw-r--r--ucl/include/ucl/util/memory.h (renamed from ucl/inc/ucl/util/memory.h)0
-rw-r--r--ucl/include/ucl/util/memory/BaseRef.h (renamed from ucl/inc/ucl/util/memory/BaseRef.h)0
-rw-r--r--ucl/include/ucl/util/memory/BaseRef.hpp (renamed from ucl/inc/ucl/util/memory/BaseRef.hpp)0
-rw-r--r--ucl/include/ucl/util/memory/IRefCountObj.h (renamed from ucl/inc/ucl/util/memory/IRefCountObj.h)0
-rw-r--r--ucl/include/ucl/util/memory/RefCountObj.h (renamed from ucl/inc/ucl/util/memory/RefCountObj.h)0
-rw-r--r--ucl/include/ucl/util/memory/RefCountObj.hpp (renamed from ucl/inc/ucl/util/memory/RefCountObj.hpp)0
-rw-r--r--ucl/include/ucl/util/memory/RefCounterMT.h (renamed from ucl/inc/ucl/util/memory/RefCounterMT.h)0
-rw-r--r--ucl/include/ucl/util/memory/RefCounterMT.hpp (renamed from ucl/inc/ucl/util/memory/RefCounterMT.hpp)0
-rw-r--r--ucl/include/ucl/util/memory/RefCounterST.h (renamed from ucl/inc/ucl/util/memory/RefCounterST.h)0
-rw-r--r--ucl/include/ucl/util/memory/RefCounterST.hpp (renamed from ucl/inc/ucl/util/memory/RefCounterST.hpp)0
-rw-r--r--ucl/include/ucl/util/memory/ReffedObj.h (renamed from ucl/inc/ucl/util/memory/ReffedObj.h)0
-rw-r--r--ucl/include/ucl/util/memory/ReffedObj.hpp (renamed from ucl/inc/ucl/util/memory/ReffedObj.hpp)0
-rw-r--r--ucl/include/ucl/util/memory/SharedRef.h (renamed from ucl/inc/ucl/util/memory/SharedRef.h)0
-rw-r--r--ucl/include/ucl/util/memory/SharedRef.hpp (renamed from ucl/inc/ucl/util/memory/SharedRef.hpp)0
-rw-r--r--ucl/include/ucl/util/memory/WeakRef.h (renamed from ucl/inc/ucl/util/memory/WeakRef.h)0
-rw-r--r--ucl/include/ucl/util/memory/WeakRef.hpp (renamed from ucl/inc/ucl/util/memory/WeakRef.hpp)0
-rw-r--r--ucl/include/ucl/util/memory/helpers.h (renamed from ucl/inc/ucl/util/memory/helpers.h)25
-rw-r--r--ucl/include/ucl/util/memory/macro.h (renamed from ucl/inc/ucl/util/memory/macro.h)0
-rw-r--r--ucl/include/ucl/util/shortLogs.h (renamed from ucl/inc/ucl/util/shortLogs.h)0
-rw-r--r--ucl/include/ucl/util/smartDelegation.h (renamed from ucl/inc/ucl/util/smartDelegation.h)0
-rw-r--r--ucl/include/ucl/util/smartDelegation/WeakDelegate.h (renamed from ucl/inc/ucl/util/smartDelegation/WeakDelegate.h)0
-rw-r--r--ucl/include/ucl/util/smartDelegation/WeakDelegate.hpp (renamed from ucl/inc/ucl/util/smartDelegation/WeakDelegate.hpp)0
-rw-r--r--ucl/include/ucl/util/smartDelegation/macro.h (renamed from ucl/inc/ucl/util/smartDelegation/macro.h)0
-rw-r--r--ucl/include/ucl/util/smartDelegation/shortMacro.h (renamed from ucl/inc/ucl/util/smartDelegation/shortMacro.h)0
-rw-r--r--ucl/include/ucl/util/threading.h (renamed from ucl/inc/ucl/util/threading.h)0
-rw-r--r--ucl/include/ucl/util/threading/CondVar.h (renamed from ucl/inc/ucl/util/threading/CondVar.h)0
-rw-r--r--ucl/include/ucl/util/threading/CondVar.hpp (renamed from ucl/inc/ucl/util/threading/CondVar.hpp)0
-rw-r--r--ucl/include/ucl/util/threading/Mutex.h (renamed from ucl/inc/ucl/util/threading/Mutex.h)0
-rw-r--r--ucl/include/ucl/util/threading/Mutex.hpp (renamed from ucl/inc/ucl/util/threading/Mutex.hpp)0
-rw-r--r--ucl/include/ucl/util/threading/MutexLock.h (renamed from ucl/inc/ucl/util/threading/MutexLock.h)0
-rw-r--r--ucl/include/ucl/util/threading/MutexLock.hpp (renamed from ucl/inc/ucl/util/threading/MutexLock.hpp)0
-rw-r--r--ucl/include/ucl/util/threading/Thread.h (renamed from ucl/inc/ucl/util/threading/Thread.h)0
-rw-r--r--ucl/include/ucl/util/threading/Thread.hpp (renamed from ucl/inc/ucl/util/threading/Thread.hpp)0
-rw-r--r--ucl/include/ucl/util/types.h (renamed from ucl/inc/ucl/util/types.h)0
-rw-r--r--ucl/include/ucl/util/types/Result.h (renamed from ucl/inc/ucl/util/types/Result.h)0
-rw-r--r--ucl/include/ucl/util/types/Result.hpp (renamed from ucl/inc/ucl/util/types/Result.hpp)0
-rw-r--r--ucl/include/ucl/util/types/baseTypes.h (renamed from ucl/inc/ucl/util/types/baseTypes.h)0
-rw-r--r--ucl/include/ucl/util/types/classTypes.h (renamed from ucl/inc/ucl/util/types/classTypes.h)0
-rw-r--r--ucl/source/appfw/InstanceManagerBase.cpp (renamed from ucl/src/appfw/InstanceManagerBase.cpp)0
-rw-r--r--ucl/source/appfw/SysEventProvider.cpp (renamed from ucl/src/appfw/SysEventProvider.cpp)0
-rw-r--r--ucl/source/appfw/UIApp.cpp (renamed from ucl/src/appfw/UIApp.cpp)1
-rw-r--r--ucl/source/appfw/common.h (renamed from ucl/src/mvp/common.h)8
-rw-r--r--ucl/source/appfw/helpers.cpp (renamed from ucl/src/appfw/helpers.cpp)0
-rw-r--r--ucl/source/common.h (renamed from ucl/src/common.h)6
-rw-r--r--ucl/source/gui/EdjeWidget.cpp (renamed from ucl/src/gui/EdjeWidget.cpp)0
-rw-r--r--ucl/source/gui/ElmWidget.cpp (renamed from ucl/src/gui/ElmWidget.cpp)0
-rw-r--r--ucl/source/gui/Genlist.cpp (renamed from ucl/src/gui/Genlist.cpp)0
-rw-r--r--ucl/source/gui/Layout.cpp (renamed from ucl/src/gui/Layout.cpp)0
-rw-r--r--ucl/source/gui/NaviItem.cpp (renamed from ucl/src/gui/NaviItem.cpp)0
-rw-r--r--ucl/source/gui/Naviframe.cpp (renamed from ucl/src/gui/Naviframe.cpp)2
-rw-r--r--ucl/source/gui/Widget.cpp (renamed from ucl/src/gui/Widget.cpp)0
-rw-r--r--ucl/source/gui/WidgetItem.cpp (renamed from ucl/src/gui/WidgetItem.cpp)0
-rw-r--r--ucl/source/gui/Window.cpp (renamed from ucl/src/gui/Window.cpp)0
-rw-r--r--ucl/source/gui/common.h (renamed from ucl/src/misc/common.h)8
-rw-r--r--ucl/source/misc/Timeout.cpp (renamed from ucl/src/misc/Timeout.cpp)0
-rw-r--r--ucl/source/misc/Variant.cpp (renamed from ucl/src/misc/Variant.cpp)2
-rw-r--r--ucl/source/misc/common.h (renamed from ucl/src/gui/common.h)8
-rw-r--r--ucl/source/mvp/GuiPresenter.cpp (renamed from ucl/src/mvp/GuiPresenter.cpp)0
-rw-r--r--ucl/source/mvp/ListItemPresenter.cpp (renamed from ucl/src/mvp/ListItemPresenter.cpp)36
-rw-r--r--ucl/source/mvp/ListPresenter.cpp (renamed from ucl/src/mvp/ListPresenter.cpp)6
-rw-r--r--ucl/source/mvp/common.h (renamed from ucl/src/appfw/common.h)8
-rw-r--r--ucl/source/util/logging.cpp (renamed from ucl/src/util/logging.cpp)0
-rw-r--r--ucl/source/util/types/Result.cpp (renamed from ucl/src/util/types/Result.cpp)0
165 files changed, 173 insertions, 126 deletions
diff --git a/.cproject b/.cproject
index 74dfbc8..ae875a3 100644
--- a/.cproject
+++ b/.cproject
@@ -226,7 +226,7 @@
<listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/lib/dbus-1.0/include&quot;"/>
<listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/lib/glib-2.0/include&quot;"/>
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}}&quot;"/>
- <listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/ucl/inc}&quot;"/>
+ <listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/ucl/include}&quot;"/>
</option>
<option id="sbi.gnu.cpp.compiler.option.frameworks.core.1469916614" name="Tizen-Frameworks" superClass="sbi.gnu.cpp.compiler.option.frameworks.core" valueType="userObjs">
<listOptionValue builtIn="false" value="Native_API"/>
@@ -445,7 +445,7 @@
<listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/ug-1&quot;"/>
<listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/vconf&quot;"/>
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}}&quot;"/>
- <listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/ucl/inc}&quot;"/>
+ <listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/ucl/include}&quot;"/>
</option>
<option id="sbi.gnu.c.compiler.option.frameworks.core.1478193049" name="Tizen-Frameworks" superClass="sbi.gnu.c.compiler.option.frameworks.core" valueType="userObjs">
<listOptionValue builtIn="false" value="Native_API"/>
@@ -498,8 +498,7 @@
<sourceEntries>
<entry flags="VALUE_WORKSPACE_PATH" kind="sourcePath" name="call-ui"/>
<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="res"/>
- <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="ucl/inc"/>
- <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="ucl/src"/>
+ <entry flags="VALUE_WORKSPACE_PATH" kind="sourcePath" name="ucl/source"/>
</sourceEntries>
</configuration>
</storageModule>
@@ -718,7 +717,7 @@
<listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/lib/dbus-1.0/include&quot;"/>
<listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/lib/glib-2.0/include&quot;"/>
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}}&quot;"/>
- <listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/ucl/inc}&quot;"/>
+ <listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/ucl/include}&quot;"/>
</option>
<option id="sbi.gnu.cpp.compiler.option.frameworks.core.863139267" name="Tizen-Frameworks" superClass="sbi.gnu.cpp.compiler.option.frameworks.core" valueType="userObjs">
<listOptionValue builtIn="false" value="Native_API"/>
@@ -922,7 +921,7 @@
<listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/ug-1&quot;"/>
<listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/vconf&quot;"/>
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}}&quot;"/>
- <listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/ucl/inc}&quot;"/>
+ <listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/ucl/include}&quot;"/>
</option>
<option id="sbi.gnu.c.compiler.option.frameworks.core.1251626395" name="Tizen-Frameworks" superClass="sbi.gnu.c.compiler.option.frameworks.core" valueType="userObjs">
<listOptionValue builtIn="false" value="Native_API"/>
@@ -965,8 +964,7 @@
<sourceEntries>
<entry flags="VALUE_WORKSPACE_PATH" kind="sourcePath" name="call-ui"/>
<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="res"/>
- <entry flags="VALUE_WORKSPACE_PATH" kind="sourcePath" name="ucl/inc"/>
- <entry flags="VALUE_WORKSPACE_PATH" kind="sourcePath" name="ucl/src"/>
+ <entry flags="VALUE_WORKSPACE_PATH" kind="sourcePath" name="ucl/source"/>
</sourceEntries>
</configuration>
</storageModule>
diff --git a/call-ui/common.h b/call-ui/common.h
index 43fd570..8b27447 100644
--- a/call-ui/common.h
+++ b/call-ui/common.h
@@ -41,6 +41,10 @@ namespace callui {
constexpr SmartEvent WIN_POWER_KEY_UP_EVENT {"callui,powerkey,up"};
+ namespace util {
+
+ using ucl::util::dispose;
+ }
}
#endif // __CALL_UI_COMMON_H__
diff --git a/call-ui/model/impl/IncomingCall.h b/call-ui/model/impl/IncomingCall.h
index 7b1e3e0..2a163a4 100644
--- a/call-ui/model/impl/IncomingCall.h
+++ b/call-ui/model/impl/IncomingCall.h
@@ -14,8 +14,8 @@
* limitations under the License.
*/
-#ifndef __CALL_UI_MODEL_IMPL_ICOMING_CALL_H__
-#define __CALL_UI_MODEL_IMPL_ICOMING_CALL_H__
+#ifndef __CALL_UI_MODEL_IMPL_INCOMING_CALL_H__
+#define __CALL_UI_MODEL_IMPL_INCOMING_CALL_H__
#include <call-manager-ext.h>
@@ -58,4 +58,4 @@ namespace callui {
}
-#endif // __CALL_UI_MODEL_IMPL_ICOMING_CALL_H__
+#endif // __CALL_UI_MODEL_IMPL_INCOMING_CALL_H__
diff --git a/call-ui/presenters/Instance.cpp b/call-ui/presenters/Instance.cpp
index 58f62dd..7086452 100644
--- a/call-ui/presenters/Instance.cpp
+++ b/call-ui/presenters/Instance.cpp
@@ -59,9 +59,7 @@ namespace callui {
ecore_event_handler_del(m_keyUpEventHandler);
}
- if (const auto page = m_page.lock()) {
- page->exitNoTransition();
- }
+ util::dispose(m_page);
}
Result Instance::onCreate(IInstanceContext *const context)
diff --git a/call-ui/presenters/base/Page.cpp b/call-ui/presenters/base/Page.cpp
index f2f1fa3..4286fda 100644
--- a/call-ui/presenters/base/Page.cpp
+++ b/call-ui/presenters/base/Page.cpp
@@ -100,20 +100,27 @@ namespace callui {
m_navi->pop();
m_item = nullptr;
} else {
- exitNoTransition();
+ dispose();
}
}
- void Page::exitNoTransition()
+ void Page::dispose()
{
- if (isAtTop()) {
- m_item.del();
- dispatchTopPageChanged();
- } else if (m_item) {
- m_item.del();
+ if (m_item) {
+ if (isAtTop()) {
+ m_item.del();
+ dispatchTopPageChanged();
+ } else {
+ m_item.del();
+ }
}
}
+ bool Page::isDisposed() const
+ {
+ return m_item;
+ }
+
void Page::popTo()
{
if (m_item && !isAtTop()) {
diff --git a/call-ui/presenters/base/Page.h b/call-ui/presenters/base/Page.h
index ef039b3..59295ec 100644
--- a/call-ui/presenters/base/Page.h
+++ b/call-ui/presenters/base/Page.h
@@ -21,13 +21,12 @@
#include "ucl/mvp/GuiPresenter.h"
-#include "call-ui/types.h"
-
namespace callui {
UCL_DECLARE_REF_ALIASES(Page);
- class Page : public ucl::GuiPresenter {
+ class Page : public ucl::GuiPresenter,
+ public ucl::IDisposable {
public:
using ExitRequestHandler = ucl::WeakDelegate<void(Page &page)>;
@@ -38,7 +37,6 @@ namespace callui {
bool isAtBottom() const;
void exit();
- void exitNoTransition();
void popTo();
void deleteTo();
@@ -50,6 +48,11 @@ namespace callui {
template <class ...ARGS>
ucl::NaviItem insertBefore(ARGS &&...args);
+ // ucl::IDisposable
+
+ virtual void dispose() override;
+ virtual bool isDisposed() const final override;
+
protected:
Page(ucl::IRefCountObj &rc, const ucl::NaviframeSRef &navi,
const ExitRequestHandler &onExitRequest);
diff --git a/call-ui/presenters/dialogs/AcceptDialog.cpp b/call-ui/presenters/dialogs/AcceptDialog.cpp
index b6b31e9..2bbffa9 100644
--- a/call-ui/presenters/dialogs/AcceptDialog.cpp
+++ b/call-ui/presenters/dialogs/AcceptDialog.cpp
@@ -112,7 +112,7 @@ namespace callui {
if (!popupEo) {
LOG_RETURN(RES_FAIL, "elm_popup_add() failed!");
}
- m_popup = makeShared<StyledWidget>(popupEo, true);
+ m_popup = makeShared<StyledWidget>(popupEo);
m_popup->setStyle(style);
m_popup->setWeight(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
show(*m_popup);
@@ -144,7 +144,7 @@ namespace callui {
elm_genlist_mode_set(glEo, ELM_LIST_COMPRESS);
elm_genlist_homogeneous_set(glEo, EINA_TRUE);
- m_genlist = makeShared<StyledWidget>(glEo);
+ m_genlist = makeShared<StyledWidget>(glEo, false);
m_genlist->setWeight(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
m_genlist->setAlign(EVAS_HINT_FILL, EVAS_HINT_FILL);
diff --git a/call-ui/presenters/misc/AccessoryPresenter.cpp b/call-ui/presenters/misc/AccessoryPresenter.cpp
index 61c8eab..0b463c1 100644
--- a/call-ui/presenters/misc/AccessoryPresenter.cpp
+++ b/call-ui/presenters/misc/AccessoryPresenter.cpp
@@ -264,7 +264,6 @@ namespace callui {
{
m_widget = Layout::Builder().
setTheme(impl::LAYOUT_ACCESSORY_WIDGET).
- setIsOwner(true).
build(parent);
if (!m_widget) {
LOG_RETURN(RES_FAIL, "Layout::build() failed!");
@@ -322,7 +321,7 @@ namespace callui {
LOG_RETURN(RES_FAIL, "eo is NULL");
}
- m_volumeBtn = makeShared<StyledWidget>(eo, true);
+ m_volumeBtn = makeShared<StyledWidget>(eo);
m_volumeBtn->setStyle(impl::STYLE_BTN_VOLUME);
m_volumeBtn->addEventHandler(BTN_CLICKED,
WEAK_DELEGATE(AccessoryPresenter::onVolumeBtnClicked,
@@ -342,7 +341,7 @@ namespace callui {
if (!eo) {
LOG_RETURN(RES_FAIL, "eo is NULL");
}
- m_muteBtn = makeShared<StyledWidget>(eo, true);
+ m_muteBtn = makeShared<StyledWidget>(eo);
m_muteBtn->setStyle(impl::STYLE_BTN_MUTE);
m_muteBtn->addEventHandler(BTN_CLICKED,
WEAK_DELEGATE(AccessoryPresenter::onMuteBtnClicked,
@@ -363,7 +362,7 @@ namespace callui {
if (!eo) {
LOG_RETURN(RES_FAIL, "eo is NULL");
}
- m_bluetoothBtn = makeShared<StyledWidget>(eo, true);
+ m_bluetoothBtn = makeShared<StyledWidget>(eo);
m_bluetoothBtn->setStyle(impl::STYLE_BTN_BT);
m_bluetoothBtn->addEventHandler(BTN_CLICKED,
WEAK_DELEGATE(AccessoryPresenter::onBluetoothBtnClicked,
@@ -398,7 +397,7 @@ namespace callui {
if (!eo) {
LOG_RETURN(RES_FAIL, "eo is NULL");
}
- m_addContactBtn = makeShared<StyledWidget>(eo, true);
+ m_addContactBtn = makeShared<StyledWidget>(eo);
m_addContactBtn->setStyle(impl::STYLE_BTN_ADD_CONTACT);
m_addContactBtn->addEventHandler(BTN_CLICKED,
WEAK_DELEGATE(AccessoryPresenter::onAddContactBtnClicked,
diff --git a/call-ui/presenters/misc/CallInfoPresenter.cpp b/call-ui/presenters/misc/CallInfoPresenter.cpp
index c36741d..1dba75f 100644
--- a/call-ui/presenters/misc/CallInfoPresenter.cpp
+++ b/call-ui/presenters/misc/CallInfoPresenter.cpp
@@ -174,7 +174,6 @@ namespace callui {
{
m_widget = Layout::Builder().
setTheme(impl::LAYOUT_CALLER_INFO_WIDGET).
- setIsOwner(true).
build(parent);
if (!m_widget) {
LOG_RETURN(RES_FAIL, "Layout::build() failed!");
@@ -336,7 +335,7 @@ namespace callui {
txtStyle = impl::STR_LABEL_SUB_CID_ENABLE;
}
- m_label = makeShared<StyledWidget>(eo, true);
+ m_label = makeShared<StyledWidget>(eo);
m_label->setStyle(impl::STYLE_SLIDING_LABEL);
m_label->setText(txtStyle.format(text.c_str()));
@@ -361,7 +360,7 @@ namespace callui {
if (!eo) {
LOG_RETURN(RES_FAIL, "elm_image_add() failed");
}
- auto callerId = makeShared<StyledWidget>(eo, true);
+ auto callerId = makeShared<StyledWidget>(eo);
elm_image_file_set(*callerId, imagePath.c_str(), NULL);
elm_image_aspect_fixed_set(*callerId, EINA_TRUE);
elm_image_fill_outside_set(*callerId, EINA_TRUE);
diff --git a/call-ui/presenters/misc/IndicatorPresenter.cpp b/call-ui/presenters/misc/IndicatorPresenter.cpp
index 983d0fe..f8f2ee6 100644
--- a/call-ui/presenters/misc/IndicatorPresenter.cpp
+++ b/call-ui/presenters/misc/IndicatorPresenter.cpp
@@ -241,7 +241,6 @@ namespace callui {
{
m_widget = Layout::Builder().
setTheme(impl::LAYOUT_INDICATOR_WIDGET).
- setIsOwner(true).
build(parent);
if (!m_widget) {
LOG_RETURN(RES_FAIL, "Layout::build() failed!");
@@ -254,6 +253,7 @@ namespace callui {
{
m_connLayout = Layout::Builder().
setTheme(impl::LAYOUT_CONNECTION).
+ setIsOwner(false).
build(*m_widget);
if (!m_connLayout) {
LOG_RETURN(RES_FAIL, "Layout::build() failed!");
@@ -269,6 +269,7 @@ namespace callui {
{
m_rssiLayout = Layout::Builder().
setTheme(impl::LAYOUT_RSSI).
+ setIsOwner(false).
build(*m_widget);
if (!m_rssiLayout) {
LOG_RETURN(RES_FAIL, "Layout::build() failed!");
@@ -284,6 +285,7 @@ namespace callui {
{
m_batteryLayout = Layout::Builder().
setTheme(impl::LAYOUT_BATTERY).
+ setIsOwner(false).
build(*m_widget);
if (!m_batteryLayout) {
LOG_RETURN(RES_FAIL, "Layout::build() failed!");
@@ -299,6 +301,7 @@ namespace callui {
{
m_voiceControlLayout = Layout::Builder().
setTheme(impl::LAYOUT_VOICE_CONTROL).
+ setIsOwner(false).
build(*m_widget);
if (!m_voiceControlLayout) {
LOG_RETURN(RES_FAIL, "Layout::build() failed!");
@@ -313,6 +316,7 @@ namespace callui {
{
m_simLayout = Layout::Builder().
setTheme(impl::LAYOUT_SIM).
+ setIsOwner(false).
build(*m_widget);
if (!m_simLayout) {
LOG_RETURN(RES_FAIL, "Layout::build() failed!");
@@ -328,6 +332,7 @@ namespace callui {
{
m_hdCallLayout = Layout::Builder().
setTheme(impl::LAYOUT_HD_CALL).
+ setIsOwner(false).
build(*m_widget);
if (!m_hdCallLayout) {
LOG_RETURN(RES_FAIL, "Layout::build() failed!");
diff --git a/call-ui/presenters/misc/MoreOptionsPresenter.cpp b/call-ui/presenters/misc/MoreOptionsPresenter.cpp
index a220ee1..6aa148c 100644
--- a/call-ui/presenters/misc/MoreOptionsPresenter.cpp
+++ b/call-ui/presenters/misc/MoreOptionsPresenter.cpp
@@ -136,9 +136,7 @@ namespace callui {
sendActivate(*m_widget);
}
- if (const auto keypad = m_keypad.lock()) {
- keypad->exitNoTransition();
- }
+ util::dispose(m_keypad);
}
Result MoreOptionsPresenter::prepare(GuiPresenter &parent,
@@ -170,7 +168,6 @@ namespace callui {
{
m_widget = Layout::Builder().
setTheme(impl::LAYOUT_DRAWER_PANEL).
- setIsOwner(true).
build(parent);
if (!m_widget) {
@@ -200,7 +197,7 @@ namespace callui {
if (!eo) {
LOG_RETURN(RES_FAIL, "elm_panel_add() failed!");
}
- m_panel = makeShared<StyledWidget>(eo, true);
+ m_panel = makeShared<StyledWidget>(eo);
elm_panel_orient_set(*m_panel, ELM_PANEL_ORIENT_RIGHT);
show(*m_panel);
@@ -350,7 +347,7 @@ namespace callui {
if (!eo) {
LOG_RETURN_VALUE(RES_FAIL, {}, "elm_button_add() failed!");
}
- auto btn = makeShared<StyledWidget>(eo, true);
+ auto btn = makeShared<StyledWidget>(eo);
btn->setStyle(style);
btn->setText(txt);
btn->addEventHandler(BTN_CLICKED, handler);
diff --git a/call-ui/presenters/misc/RejectMsgPresenter.cpp b/call-ui/presenters/misc/RejectMsgPresenter.cpp
index c3864d3..c6a14c8 100644
--- a/call-ui/presenters/misc/RejectMsgPresenter.cpp
+++ b/call-ui/presenters/misc/RejectMsgPresenter.cpp
@@ -185,7 +185,6 @@ namespace callui {
{
m_widget = Layout::Builder().
setTheme(impl::LAYOUT_DRAWER_PANEL).
- setIsOwner(true).
build(parent);
if (!m_widget) {
@@ -251,7 +250,7 @@ namespace callui {
Result RejectMsgPresenter::createPanel()
{
- m_panel = makeShared<StyledWidget>(elm_panel_add(*m_widget), true);
+ m_panel = makeShared<StyledWidget>(elm_panel_add(*m_widget));
if (!m_panel) {
LOG_RETURN(RES_FAIL, "elm_panel_add() failed!");
}
@@ -275,7 +274,7 @@ namespace callui {
Result RejectMsgPresenter::createPanelBg()
{
m_panelBg = makeShared<ElmWidget>(
- evas_object_rectangle_add(evas_object_evas_get(*m_widget)));
+ evas_object_rectangle_add(evas_object_evas_get(*m_widget)), false);
if (!m_panelBg) {
LOG_RETURN(RES_FAIL, "evas_object_rectangle_add() failed!");
}
@@ -291,7 +290,6 @@ namespace callui {
{
m_panelLy = Layout::Builder().
setTheme(impl::LAYOUT_RM_PANEL_CONTENT).
- setIsOwner(true).
build(*m_panel);
if (!m_panelLy) {
LOG_RETURN(RES_FAIL, "Layout::build failed!");
@@ -304,7 +302,9 @@ namespace callui {
Result RejectMsgPresenter::createGenlist()
{
// Genlist scroller Layout
- auto circlLy = Layout::Builder().build(*m_panelLy);
+ auto circlLy = Layout::Builder().
+ setIsOwner(false).
+ build(*m_panelLy);
if (!circlLy) {
LOG_RETURN(RES_FAIL, "Layout::build failed!");
}
@@ -322,7 +322,7 @@ namespace callui {
elm_genlist_mode_set(glEo, ELM_LIST_COMPRESS);
elm_genlist_homogeneous_set(glEo, EINA_TRUE);
- m_genlist = makeShared<StyledWidget>(glEo, true);
+ m_genlist = makeShared<StyledWidget>(glEo);
m_genlist->setWeight(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
m_genlist->setAlign(EVAS_HINT_FILL, EVAS_HINT_FILL);
diff --git a/call-ui/presenters/misc/common.h b/call-ui/presenters/misc/common.h
index 638f819..9d901ec 100644
--- a/call-ui/presenters/misc/common.h
+++ b/call-ui/presenters/misc/common.h
@@ -14,9 +14,9 @@
* limitations under the License.
*/
-#ifndef __CALL_UI_PRESENTERS_MISC_MISC_COMMON_H__
-#define __CALL_UI_PRESENTERS_MISC_MISC_COMMON_H__
+#ifndef __CALL_UI_PRESENTERS_MISC_COMMON_H__
+#define __CALL_UI_PRESENTERS_MISC_COMMON_H__
#include "call-ui/presenters/common.h"
-#endif // __CALL_UI_PRESENTERS_MISC_MISC_COMMON_H__
+#endif // __CALL_UI_PRESENTERS_MISC_COMMON_H__
diff --git a/call-ui/presenters/pages/KeypadPage.cpp b/call-ui/presenters/pages/KeypadPage.cpp
index ca920b1..2c06b75 100644
--- a/call-ui/presenters/pages/KeypadPage.cpp
+++ b/call-ui/presenters/pages/KeypadPage.cpp
@@ -219,7 +219,6 @@ namespace callui {
{
m_widget = Layout::Builder().
setTheme(impl::LAYOUT_KEYPAD_WIDGET).
- setIsOwner(true).
build(getNaviframe());
if (!m_widget) {
@@ -237,7 +236,7 @@ namespace callui {
if (!entry) {
LOG_RETURN(RES_FAIL, "elm_entry_add() failed!");
}
- m_entry = makeShared<ElmWidget>(entry, true);
+ m_entry = makeShared<ElmWidget>(entry);
static Elm_Entry_Filter_Accept_Set digitsFilterData;
@@ -268,7 +267,7 @@ namespace callui {
LOG_RETURN(RES_FAIL, "elm_button_add() failed!");
}
- buttonSRef = makeShared<StyledWidget>(button);
+ buttonSRef = makeShared<StyledWidget>(button, false);
buttonSRef->bindToEo();
buttonSRef->setData(impl::BTN_DATA_KEY, &(impl::buttonsInfo[i]));
buttonSRef->setStyle(impl::buttonsInfo[i].style);
diff --git a/call-ui/presenters/pages/MainPage.cpp b/call-ui/presenters/pages/MainPage.cpp
index 9500909..3cf0ef3 100644
--- a/call-ui/presenters/pages/MainPage.cpp
+++ b/call-ui/presenters/pages/MainPage.cpp
@@ -227,7 +227,6 @@ namespace callui {
{
m_rmLy = Layout::Builder().
setTheme(impl::LAYOUT_REJECT_MSG_WIDGET).
- setIsOwner(true).
build(*m_widget);
if (!m_rmLy) {
LOG_RETURN(RES_FAIL, "Layout::build() failed!");
@@ -369,7 +368,7 @@ namespace callui {
Result MainPage::createBottomBtn(const ElmStyle &style, bool setVisible)
{
m_bottomBtn = makeShared<StyledWidget>(
- elm_button_add(*m_widget), true);
+ elm_button_add(*m_widget));
m_bottomBtn->setStyle(style);
m_bottomBtn->addEventHandler(BTN_CLICKED,
@@ -485,7 +484,6 @@ namespace callui {
{
m_widget = Layout::Builder().
setTheme(impl::LAYOUT_MAIN_WIDGET).
- setIsOwner(true).
build(getNaviframe());
if (!m_widget) {
diff --git a/call-ui/presenters/pages/common.h b/call-ui/presenters/pages/common.h
index 28cd174..060daa9 100644
--- a/call-ui/presenters/pages/common.h
+++ b/call-ui/presenters/pages/common.h
@@ -14,9 +14,9 @@
* limitations under the License.
*/
-#ifndef __CALL_UI_PRESENTERS_PAGES_PAGES_COMMON_H__
-#define __CALL_UI_PRESENTERS_PAGES_PAGES_COMMON_H__
+#ifndef __CALL_UI_PRESENTERS_PAGES_COMMON_H__
+#define __CALL_UI_PRESENTERS_PAGES_COMMON_H__
#include "call-ui/presenters/common.h"
-#endif // __CALL_UI_PRESENTERS_PAGES_PAGES_COMMON_H__
+#endif // __CALL_UI_PRESENTERS_PAGES_COMMON_H__
diff --git a/call-ui/view/AcceptRejectWidget.cpp b/call-ui/view/AcceptRejectWidget.cpp
index ed7c2aa..b16d4c9 100644
--- a/call-ui/view/AcceptRejectWidget.cpp
+++ b/call-ui/view/AcceptRejectWidget.cpp
@@ -142,7 +142,6 @@ namespace callui { namespace { namespace impl {
{
auto layout = Layout::Builder().
setTheme(theme).
- setIsOwner(true).
build(parent);
if (!layout) {
LOG_RETURN_VALUE(RES_FAIL, {}, "Layout::build() failed!");
@@ -197,7 +196,6 @@ namespace callui {
{
auto layout = Layout::Builder().
setTheme(impl::LAYOUT_IMG_ACCEPT_REJECT).
- setIsOwner(true).
build(parent);
if (!layout) {
LOG_RETURN_VALUE(RES_FAIL, {}, "Layout::build() failed!");
@@ -219,7 +217,7 @@ namespace callui {
const NotiHandler &acceptHandler,
const NotiHandler &rejectHandler,
AcceptButtonType acceptBtnType):
- ElmWidget(&rc, *layout, true),
+ ElmWidget(&rc, *layout, false),
m_layout(layout.get()),
m_accHandler(acceptHandler),
m_rejHandler(rejectHandler),
@@ -339,13 +337,16 @@ namespace callui {
m_accEventLy = Layout::Builder().
setTheme(impl::LAYOUT_EVENT_ACCEPT_REJECT).
build(*m_layout);
- m_accEventLy->setWeight(EXPAND, EXPAND);
+
m_accEventLy->addEventHandler(WidgetEvent::MOUSE_DOWN,
WEAK_DELEGATE(AcceptRejectWidget::onMouseDown, asWeak(*this)));
+
m_accEventLy->addEventHandler(WidgetEvent::MOUSE_UP,
WEAK_DELEGATE(AcceptRejectWidget::onMouseUp, asWeak(*this)));
+
m_accEventLy->addEventHandler(WidgetEvent::MOUSE_MOVE,
WEAK_DELEGATE(AcceptRejectWidget::onMouseMove, asWeak(*this)));
+
m_layout->setContent(*m_accEventLy,
impl::PART_SWL_ACCEPT_FINGER_EVENT);
diff --git a/call-ui/view/Slider.cpp b/call-ui/view/Slider.cpp
index 3c5b7f0..f127de4 100644
--- a/call-ui/view/Slider.cpp
+++ b/call-ui/view/Slider.cpp
@@ -54,7 +54,6 @@ namespace callui {
{
auto layout = Layout::Builder().
setTheme(impl::LAYOUT_SLIDER).
- setIsOwner(true).
build(parent);
if (!layout) {
LOG_RETURN_VALUE(RES_FAIL, {}, "Layout::build() failed!");
@@ -71,7 +70,7 @@ namespace callui {
const LayoutSRef &layout,
int maxValue,
int curValue):
- ElmWidget(&rc, *layout, true),
+ ElmWidget(&rc, *layout, false),
m_layout(layout.get()),
m_circleLy(elm_layout_add(*m_layout)),
m_circleSurf(eext_circle_surface_layout_add(m_circleLy)),
diff --git a/call-ui/view/VolumeControl.cpp b/call-ui/view/VolumeControl.cpp
index 2e5cfaf..13c06d9 100644
--- a/call-ui/view/VolumeControl.cpp
+++ b/call-ui/view/VolumeControl.cpp
@@ -77,7 +77,6 @@ namespace callui {
{
auto layout = Layout::Builder().
setTheme(impl::LAYOUT_VOLUME).
- setIsOwner(true).
build(parent);
if (!layout) {
LOG_RETURN_VALUE(RES_FAIL, {}, "Layout::build() failed!");
diff --git a/call-ui/view/helpers.cpp b/call-ui/view/helpers.cpp
index 153e8ad..e4f931d 100644
--- a/call-ui/view/helpers.cpp
+++ b/call-ui/view/helpers.cpp
@@ -80,7 +80,6 @@ namespace callui { namespace utils {
{
const auto result = Layout::Builder().
setTheme(impl::LAYOUT_FAKE_ACCESS_OBJECT).
- setIsOwner(true).
setNeedBindToEo(true).
build(parent);
if (!result) {
@@ -127,7 +126,7 @@ namespace callui { namespace utils {
"elm_access_object_register() failed!");
}
- return makeShared<ElmWidget>(ao, true);
+ return makeShared<ElmWidget>(ao);
}
ElmWidgetSRef createAccessObjectFromLyPart(ElmWidget &parent,
@@ -147,7 +146,7 @@ namespace callui { namespace utils {
"elm_access_object_register() failed!");
}
- return makeShared<ElmWidget>(ao, true);
+ return makeShared<ElmWidget>(ao);
}
void destroyAccessObject(ElmWidget &ao)
diff --git a/project_def.prop b/project_def.prop
index 0260b0b..7195d9e 100644
--- a/project_def.prop
+++ b/project_def.prop
@@ -9,7 +9,7 @@ type = app
profile = wearable-4.0
# C/CPP Sources
-USER_SRCS = ucl/src/gui/WidgetItem.cpp src/presenters/InstanceManager.cpp ucl/src/appfw/UIApp.cpp src/model/VoiceControlStateProvider.cpp src/presenters/AcceptDialog.cpp ucl/src/gui/NaviItem.cpp ucl/src/gui/Layout.cpp src/model/IncomingCall.cpp src/presenters/Page.cpp src/resources.cpp src/presenters/DeviceStatePresenter.cpp src/model/ContactInfoProvider.cpp ucl/src/gui/Genlist.cpp ucl/src/gui/Window.cpp src/types.cpp src/presenters/RejectMsgPresenter.cpp src/model/ConnectionStateSource.cpp src/presenters/AccessoryPresenter.cpp src/model/ContactInfo.cpp src/model/EndCall.cpp src/presenters/MainPage.cpp src/view/helpers.cpp ucl/src/mvp/ListItemPresenter.cpp ucl/src/util/types/Result.cpp ucl/src/mvp/ListPresenter.cpp ucl/src/misc/Variant.cpp src/model/CallUI.cpp ucl/src/mvp/GuiPresenter.cpp src/view/VolumeControl.cpp src/view/Slider.cpp src/model/CallInfo.cpp ucl/src/gui/ElmWidget.cpp src/model/SimSlotStateSource.cpp src/presenters/AcceptRejectPresenter.cpp ucl/src/gui/EdjeWidget.cpp ucl/src/gui/Naviframe.cpp src/model/CallManager.cpp ucl/src/misc/Timeout.cpp src/presenters/Instance.cpp ucl/src/gui/Widget.cpp src/model/ActiveCall.cpp src/model/RejectMsgProvider.cpp src/presenters/MoreOptionsPresenter.cpp ucl/src/appfw/SysEventProvider.cpp src/presenters/CallInfoPresenter.cpp src/model/BatteryStateSource.cpp src/model/CallClient.cpp src/model/VoiceControlStateSource.cpp src/model/RssiStateSource.cpp src/model/HdVoiceStateSource.cpp ucl/src/util/logging.cpp src/model/IndicatorStateProvider.cpp src/presenters/KeypadPage.cpp src/presenters/helpers.cpp src/presenters/MotionSensorPresenter.cpp src/main.cpp src/model/MsgClient.cpp src/presenters/IndicatorPresenter.cpp ucl/src/appfw/helpers.cpp src/model/CallUIBuilder.cpp src/presenters/AtspiHighlightHelper.cpp src/presenters/CallStatusPresenter.cpp src/model/ConferenceCallInfo.cpp src/model/HeldCall.cpp src/model/SoundManager.cpp src/model/BluetoothManager.cpp src/model/RejectMsg.cpp src/view/AcceptRejectWidget.cpp ucl/src/appfw/InstanceManagerBase.cpp
+USER_SRCS = call-ui/view/VolumeControl.cpp call-ui/view/Slider.cpp call-ui/model/impl/CallInfo.cpp call-ui/model/impl/RejectMsgProvider.cpp ucl/source/mvp/GuiPresenter.cpp ucl/source/appfw/InstanceManagerBase.cpp call-ui/model/impl/BatteryStateSource.cpp ucl/source/gui/Widget.cpp call-ui/presenters/base/Page.cpp call-ui/model/impl/IncomingCall.cpp call-ui/presenters/dialogs/AcceptDialog.cpp call-ui/types.cpp ucl/source/appfw/helpers.cpp ucl/source/mvp/ListItemPresenter.cpp call-ui/presenters/misc/helpers.cpp call-ui/model/impl/IndicatorStateProvider.cpp call-ui/model/impl/RejectMsg.cpp call-ui/view/AcceptRejectWidget.cpp ucl/source/misc/Timeout.cpp call-ui/resources.cpp ucl/source/gui/Genlist.cpp call-ui/model/CallUIBuilder.cpp ucl/source/util/types/Result.cpp call-ui/presenters/misc/CallStatusPresenter.cpp call-ui/model/impl/ConferenceCallInfo.cpp call-ui/model/impl/HeldCall.cpp call-ui/model/impl/SoundManager.cpp call-ui/model/impl/BluetoothManager.cpp ucl/source/gui/Layout.cpp call-ui/presenters/misc/MotionSensorPresenter.cpp ucl/source/gui/EdjeWidget.cpp call-ui/model/impl/MsgClient.cpp call-ui/model/impl/RssiStateSource.cpp call-ui/presenters/Instance.cpp call-ui/model/impl/ActiveCall.cpp call-ui/presenters/InstanceManager.cpp call-ui/presenters/misc/MoreOptionsPresenter.cpp call-ui/presenters/misc/IndicatorPresenter.cpp call-ui/model/impl/SimSlotStateSource.cpp call-ui/presenters/misc/AtspiHighlightHelper.cpp ucl/source/gui/Naviframe.cpp call-ui/presenters/misc/AcceptRejectPresenter.cpp call-ui/model/impl/CallUI.cpp ucl/source/gui/WidgetItem.cpp call-ui/presenters/pages/MainPage.cpp ucl/source/gui/NaviItem.cpp ucl/source/gui/ElmWidget.cpp call-ui/presenters/misc/DeviceStatePresenter.cpp call-ui/model/impl/ContactInfoProvider.cpp ucl/source/misc/Variant.cpp call-ui/model/impl/HdVoiceStateSource.cpp call-ui/view/helpers.cpp call-ui/main.cpp call-ui/model/impl/VoiceControlStateProvider.cpp ucl/source/gui/Window.cpp call-ui/model/impl/CallManager.cpp call-ui/model/impl/ConnectionStateSource.cpp call-ui/presenters/misc/RejectMsgPresenter.cpp call-ui/presenters/pages/KeypadPage.cpp call-ui/presenters/misc/CallInfoPresenter.cpp ucl/source/appfw/SysEventProvider.cpp ucl/source/util/logging.cpp ucl/source/appfw/UIApp.cpp call-ui/model/impl/CallClient.cpp call-ui/presenters/misc/AccessoryPresenter.cpp call-ui/model/impl/ContactInfo.cpp call-ui/model/impl/EndCall.cpp call-ui/model/impl/VoiceControlStateSource.cpp ucl/source/mvp/ListPresenter.cpp
# EDC Sources
USER_EDCS =
@@ -36,7 +36,7 @@ USER_OBJS =
USER_C_INC_DIRS =
USER_INC_FILES =
## C++ Compiler
-USER_CPP_INC_DIRS = . ucl/inc
+USER_CPP_INC_DIRS = . ucl/include
USER_CPP_INC_FILES =
USER_INC_DIRS = $(USER_C_INC_DIRS) $(USER_CPP_INC_DIRS)
diff --git a/ucl/inc/ucl/appfw/IInstance.h b/ucl/include/ucl/appfw/IInstance.h
index bf09205..bf09205 100644
--- a/ucl/inc/ucl/appfw/IInstance.h
+++ b/ucl/include/ucl/appfw/IInstance.h
diff --git a/ucl/inc/ucl/appfw/IInstanceAppControlExt.h b/ucl/include/ucl/appfw/IInstanceAppControlExt.h
index 6799a84..6799a84 100644
--- a/ucl/inc/ucl/appfw/IInstanceAppControlExt.h
+++ b/ucl/include/ucl/appfw/IInstanceAppControlExt.h
diff --git a/ucl/inc/ucl/appfw/IInstanceContext.h b/ucl/include/ucl/appfw/IInstanceContext.h
index b06c177..b06c177 100644
--- a/ucl/inc/ucl/appfw/IInstanceContext.h
+++ b/ucl/include/ucl/appfw/IInstanceContext.h
diff --git a/ucl/inc/ucl/appfw/InstanceManagerBase.h b/ucl/include/ucl/appfw/InstanceManagerBase.h
index 0fdde8c..0fdde8c 100644
--- a/ucl/inc/ucl/appfw/InstanceManagerBase.h
+++ b/ucl/include/ucl/appfw/InstanceManagerBase.h
diff --git a/ucl/inc/ucl/appfw/SysEventProvider.h b/ucl/include/ucl/appfw/SysEventProvider.h
index 8a72758..8a72758 100644
--- a/ucl/inc/ucl/appfw/SysEventProvider.h
+++ b/ucl/include/ucl/appfw/SysEventProvider.h
diff --git a/ucl/inc/ucl/appfw/SysEventProvider.hpp b/ucl/include/ucl/appfw/SysEventProvider.hpp
index 1d52394..1d52394 100644
--- a/ucl/inc/ucl/appfw/SysEventProvider.hpp
+++ b/ucl/include/ucl/appfw/SysEventProvider.hpp
diff --git a/ucl/inc/ucl/appfw/UIApp.h b/ucl/include/ucl/appfw/UIApp.h
index a8b4dbc..a8b4dbc 100644
--- a/ucl/inc/ucl/appfw/UIApp.h
+++ b/ucl/include/ucl/appfw/UIApp.h
diff --git a/ucl/inc/ucl/appfw/helpers.h b/ucl/include/ucl/appfw/helpers.h
index fe598d9..fe598d9 100644
--- a/ucl/inc/ucl/appfw/helpers.h
+++ b/ucl/include/ucl/appfw/helpers.h
diff --git a/ucl/inc/ucl/appfw/types.h b/ucl/include/ucl/appfw/types.h
index 48f8adc..48f8adc 100644
--- a/ucl/inc/ucl/appfw/types.h
+++ b/ucl/include/ucl/appfw/types.h
diff --git a/ucl/inc/ucl/config.h b/ucl/include/ucl/config.h
index cd36042..cd36042 100644
--- a/ucl/inc/ucl/config.h
+++ b/ucl/include/ucl/config.h
diff --git a/ucl/inc/ucl/gui/EdjeWidget.h b/ucl/include/ucl/gui/EdjeWidget.h
index 0ee57f0..8d045c4 100644
--- a/ucl/inc/ucl/gui/EdjeWidget.h
+++ b/ucl/include/ucl/gui/EdjeWidget.h
@@ -43,7 +43,7 @@ namespace ucl {
EdjeSignalSrc(""));
protected:
- EdjeWidget(IRefCountObj *rc, Evas_Object *eo, bool isOwner = false);
+ EdjeWidget(IRefCountObj *rc, Evas_Object *eo, bool isOwner = true);
};
}
diff --git a/ucl/inc/ucl/gui/EdjeWidget.hpp b/ucl/include/ucl/gui/EdjeWidget.hpp
index 3f989c7..3f989c7 100644
--- a/ucl/inc/ucl/gui/EdjeWidget.hpp
+++ b/ucl/include/ucl/gui/EdjeWidget.hpp
diff --git a/ucl/inc/ucl/gui/ElmWidget.h b/ucl/include/ucl/gui/ElmWidget.h
index 3856b49..f967cc3 100644
--- a/ucl/inc/ucl/gui/ElmWidget.h
+++ b/ucl/include/ucl/gui/ElmWidget.h
@@ -31,7 +31,7 @@ namespace ucl {
class ElmWidget : public Widget {
public:
- explicit ElmWidget(Evas_Object *eo, bool isOwner = false);
+ explicit ElmWidget(Evas_Object *eo, bool isOwner = true);
virtual ~ElmWidget();
void setEnabled(bool value);
@@ -48,7 +48,7 @@ namespace ucl {
protected:
friend class ReffedObj<ElmWidget>;
- ElmWidget(IRefCountObj *rc, Evas_Object *eo, bool isOwner = false);
+ ElmWidget(IRefCountObj *rc, Evas_Object *eo, bool isOwner = true);
virtual void setFocusedImpl(bool value) final override;
virtual bool isFocusedImpl() const final override;
diff --git a/ucl/inc/ucl/gui/ElmWidget.hpp b/ucl/include/ucl/gui/ElmWidget.hpp
index 0673a57..0673a57 100644
--- a/ucl/inc/ucl/gui/ElmWidget.hpp
+++ b/ucl/include/ucl/gui/ElmWidget.hpp
diff --git a/ucl/inc/ucl/gui/Genlist.h b/ucl/include/ucl/gui/Genlist.h
index ebbb43e..366eccf 100644
--- a/ucl/inc/ucl/gui/Genlist.h
+++ b/ucl/include/ucl/gui/Genlist.h
@@ -24,7 +24,7 @@ namespace ucl {
UCL_DECLARE_REF_ALIASES(Genlist);
- class Genlist : public StyledWidget {
+ class Genlist final : public StyledWidget {
public:
enum class Mode {
COMPRESS = ELM_LIST_COMPRESS,
diff --git a/ucl/inc/ucl/gui/Genlist.hpp b/ucl/include/ucl/gui/Genlist.hpp
index d3cfed0..3c93031 100644
--- a/ucl/inc/ucl/gui/Genlist.hpp
+++ b/ucl/include/ucl/gui/Genlist.hpp
@@ -21,7 +21,7 @@ namespace ucl {
inline Genlist::Builder::Builder() :
m_mode(Mode::COMPRESS),
m_isHomogeneous(true),
- m_isOwner(false),
+ m_isOwner(true),
m_needBindToEo(false)
{
}
diff --git a/ucl/inc/ucl/gui/GenlistItem.h b/ucl/include/ucl/gui/GenlistItem.h
index 2c96b9c..2c96b9c 100644
--- a/ucl/inc/ucl/gui/GenlistItem.h
+++ b/ucl/include/ucl/gui/GenlistItem.h
diff --git a/ucl/inc/ucl/gui/GenlistItem.hpp b/ucl/include/ucl/gui/GenlistItem.hpp
index 6920a88..6920a88 100644
--- a/ucl/inc/ucl/gui/GenlistItem.hpp
+++ b/ucl/include/ucl/gui/GenlistItem.hpp
diff --git a/ucl/inc/ucl/gui/Layout.h b/ucl/include/ucl/gui/Layout.h
index 9eb108e..d349f92 100644
--- a/ucl/inc/ucl/gui/Layout.h
+++ b/ucl/include/ucl/gui/Layout.h
@@ -44,7 +44,7 @@ namespace ucl {
public:
friend class ReffedObj<Layout>;
using EdjeWidget::EdjeWidget;
- explicit Layout(Evas_Object *eo, bool isOwner = false);
+ explicit Layout(Evas_Object *eo, bool isOwner = true);
bool setTheme(const LayoutTheme &theme);
bool setEdjeFile(const std::string &filePath, EdjeGroup group);
diff --git a/ucl/inc/ucl/gui/Layout.hpp b/ucl/include/ucl/gui/Layout.hpp
index e3df1db..d6d18a3 100644
--- a/ucl/inc/ucl/gui/Layout.hpp
+++ b/ucl/include/ucl/gui/Layout.hpp
@@ -19,7 +19,7 @@ namespace ucl {
// Layout::Builder //
inline Layout::Builder::Builder() :
- m_isOwner(false),
+ m_isOwner(true),
m_needBindToEo(false)
{
}
diff --git a/ucl/inc/ucl/gui/NaviItem.h b/ucl/include/ucl/gui/NaviItem.h
index 1161847..1161847 100644
--- a/ucl/inc/ucl/gui/NaviItem.h
+++ b/ucl/include/ucl/gui/NaviItem.h
diff --git a/ucl/inc/ucl/gui/NaviItem.hpp b/ucl/include/ucl/gui/NaviItem.hpp
index 6b33fe4..6b33fe4 100644
--- a/ucl/inc/ucl/gui/NaviItem.hpp
+++ b/ucl/include/ucl/gui/NaviItem.hpp
diff --git a/ucl/inc/ucl/gui/Naviframe.h b/ucl/include/ucl/gui/Naviframe.h
index 66693f2..66693f2 100644
--- a/ucl/inc/ucl/gui/Naviframe.h
+++ b/ucl/include/ucl/gui/Naviframe.h
diff --git a/ucl/inc/ucl/gui/Naviframe.hpp b/ucl/include/ucl/gui/Naviframe.hpp
index e8fdc19..e8fdc19 100644
--- a/ucl/inc/ucl/gui/Naviframe.hpp
+++ b/ucl/include/ucl/gui/Naviframe.hpp
diff --git a/ucl/inc/ucl/gui/StyledWidget.h b/ucl/include/ucl/gui/StyledWidget.h
index 2a0280c..223a293 100644
--- a/ucl/inc/ucl/gui/StyledWidget.h
+++ b/ucl/include/ucl/gui/StyledWidget.h
@@ -27,7 +27,7 @@ namespace ucl {
public:
friend class ReffedObj<StyledWidget>;
using EdjeWidget::EdjeWidget;
- explicit StyledWidget(Evas_Object *eo, bool isOwner = false);
+ explicit StyledWidget(Evas_Object *eo, bool isOwner = true);
void setStyle(ElmStyle style);
};
diff --git a/ucl/inc/ucl/gui/StyledWidget.hpp b/ucl/include/ucl/gui/StyledWidget.hpp
index cb32329..cb32329 100644
--- a/ucl/inc/ucl/gui/StyledWidget.hpp
+++ b/ucl/include/ucl/gui/StyledWidget.hpp
diff --git a/ucl/inc/ucl/gui/Theme.h b/ucl/include/ucl/gui/Theme.h
index d8b5b31..d8b5b31 100644
--- a/ucl/inc/ucl/gui/Theme.h
+++ b/ucl/include/ucl/gui/Theme.h
diff --git a/ucl/inc/ucl/gui/Theme.hpp b/ucl/include/ucl/gui/Theme.hpp
index 65910df..65910df 100644
--- a/ucl/inc/ucl/gui/Theme.hpp
+++ b/ucl/include/ucl/gui/Theme.hpp
diff --git a/ucl/inc/ucl/gui/Widget.h b/ucl/include/ucl/gui/Widget.h
index e60c5ec..ac47866 100644
--- a/ucl/inc/ucl/gui/Widget.h
+++ b/ucl/include/ucl/gui/Widget.h
@@ -35,7 +35,7 @@ namespace ucl {
static constexpr auto FILL = EVAS_HINT_FILL;
public:
- explicit Widget(Evas_Object *eo, bool isOwner = false);
+ explicit Widget(Evas_Object *eo, bool isOwner = true);
virtual ~Widget();
void bindToEo();
@@ -98,7 +98,7 @@ namespace ucl {
protected:
friend class ReffedObj<Widget>;
- Widget(IRefCountObj *rc, Evas_Object *eo, bool isOwner = false);
+ Widget(IRefCountObj *rc, Evas_Object *eo, bool isOwner = true);
virtual void setFocusedImpl(bool value);
virtual bool isFocusedImpl() const;
diff --git a/ucl/inc/ucl/gui/Widget.hpp b/ucl/include/ucl/gui/Widget.hpp
index 95da66a..95da66a 100644
--- a/ucl/inc/ucl/gui/Widget.hpp
+++ b/ucl/include/ucl/gui/Widget.hpp
diff --git a/ucl/inc/ucl/gui/WidgetItem.h b/ucl/include/ucl/gui/WidgetItem.h
index 7794444..7794444 100644
--- a/ucl/inc/ucl/gui/WidgetItem.h
+++ b/ucl/include/ucl/gui/WidgetItem.h
diff --git a/ucl/inc/ucl/gui/WidgetItem.hpp b/ucl/include/ucl/gui/WidgetItem.hpp
index 26b6cbd..26b6cbd 100644
--- a/ucl/inc/ucl/gui/WidgetItem.hpp
+++ b/ucl/include/ucl/gui/WidgetItem.hpp
diff --git a/ucl/inc/ucl/gui/Window.h b/ucl/include/ucl/gui/Window.h
index 9aa598d..9aa598d 100644
--- a/ucl/inc/ucl/gui/Window.h
+++ b/ucl/include/ucl/gui/Window.h
diff --git a/ucl/inc/ucl/gui/Window.hpp b/ucl/include/ucl/gui/Window.hpp
index d5b1828..d5b1828 100644
--- a/ucl/inc/ucl/gui/Window.hpp
+++ b/ucl/include/ucl/gui/Window.hpp
diff --git a/ucl/inc/ucl/gui/helpers.h b/ucl/include/ucl/gui/helpers.h
index d42eccb..d42eccb 100644
--- a/ucl/inc/ucl/gui/helpers.h
+++ b/ucl/include/ucl/gui/helpers.h
diff --git a/ucl/inc/ucl/gui/helpers.hpp b/ucl/include/ucl/gui/helpers.hpp
index 29df283..29df283 100644
--- a/ucl/inc/ucl/gui/helpers.hpp
+++ b/ucl/include/ucl/gui/helpers.hpp
diff --git a/ucl/inc/ucl/gui/stdTheme.h b/ucl/include/ucl/gui/stdTheme.h
index 13202cc..13202cc 100644
--- a/ucl/inc/ucl/gui/stdTheme.h
+++ b/ucl/include/ucl/gui/stdTheme.h
diff --git a/ucl/inc/ucl/gui/stdTheme/common.h b/ucl/include/ucl/gui/stdTheme/common.h
index 7ec81b9..7ec81b9 100644
--- a/ucl/inc/ucl/gui/stdTheme/common.h
+++ b/ucl/include/ucl/gui/stdTheme/common.h
diff --git a/ucl/inc/ucl/gui/stdTheme/layout.h b/ucl/include/ucl/gui/stdTheme/layout.h
index 79ff426..79ff426 100644
--- a/ucl/inc/ucl/gui/stdTheme/layout.h
+++ b/ucl/include/ucl/gui/stdTheme/layout.h
diff --git a/ucl/inc/ucl/gui/stdTheme/naviframe.h b/ucl/include/ucl/gui/stdTheme/naviframe.h
index fd99fdc..fd99fdc 100644
--- a/ucl/inc/ucl/gui/stdTheme/naviframe.h
+++ b/ucl/include/ucl/gui/stdTheme/naviframe.h
diff --git a/ucl/inc/ucl/gui/types.h b/ucl/include/ucl/gui/types.h
index 6d43d76..6d43d76 100644
--- a/ucl/inc/ucl/gui/types.h
+++ b/ucl/include/ucl/gui/types.h
diff --git a/ucl/inc/ucl/gui/types.hpp b/ucl/include/ucl/gui/types.hpp
index 7f128c8..7f128c8 100644
--- a/ucl/inc/ucl/gui/types.hpp
+++ b/ucl/include/ucl/gui/types.hpp
diff --git a/ucl/inc/ucl/misc/Aspect.h b/ucl/include/ucl/misc/Aspect.h
index 0c55bf6..0c55bf6 100644
--- a/ucl/inc/ucl/misc/Aspect.h
+++ b/ucl/include/ucl/misc/Aspect.h
diff --git a/ucl/inc/ucl/misc/Aspect.hpp b/ucl/include/ucl/misc/Aspect.hpp
index 9894681..9894681 100644
--- a/ucl/inc/ucl/misc/Aspect.hpp
+++ b/ucl/include/ucl/misc/Aspect.hpp
diff --git a/ucl/inc/ucl/misc/AutoHandle.h b/ucl/include/ucl/misc/AutoHandle.h
index 27c19f4..27c19f4 100644
--- a/ucl/inc/ucl/misc/AutoHandle.h
+++ b/ucl/include/ucl/misc/AutoHandle.h
diff --git a/ucl/inc/ucl/misc/CString.h b/ucl/include/ucl/misc/CString.h
index 396f37d..396f37d 100644
--- a/ucl/inc/ucl/misc/CString.h
+++ b/ucl/include/ucl/misc/CString.h
diff --git a/ucl/inc/ucl/misc/CString.hpp b/ucl/include/ucl/misc/CString.hpp
index 086b3c2..086b3c2 100644
--- a/ucl/inc/ucl/misc/CString.hpp
+++ b/ucl/include/ucl/misc/CString.hpp
diff --git a/ucl/inc/ucl/misc/ConstCString.h b/ucl/include/ucl/misc/ConstCString.h
index 7f600f0..7f600f0 100644
--- a/ucl/inc/ucl/misc/ConstCString.h
+++ b/ucl/include/ucl/misc/ConstCString.h
diff --git a/ucl/inc/ucl/misc/ConstCString.hpp b/ucl/include/ucl/misc/ConstCString.hpp
index 50df605..50df605 100644
--- a/ucl/inc/ucl/misc/ConstCString.hpp
+++ b/ucl/include/ucl/misc/ConstCString.hpp
diff --git a/ucl/inc/ucl/misc/Event.h b/ucl/include/ucl/misc/Event.h
index cd27f29..cd27f29 100644
--- a/ucl/inc/ucl/misc/Event.h
+++ b/ucl/include/ucl/misc/Event.h
diff --git a/ucl/inc/ucl/misc/Event.hpp b/ucl/include/ucl/misc/Event.hpp
index ed4e402..ed4e402 100644
--- a/ucl/inc/ucl/misc/Event.hpp
+++ b/ucl/include/ucl/misc/Event.hpp
diff --git a/ucl/inc/ucl/misc/HashMap.h b/ucl/include/ucl/misc/HashMap.h
index 8470fed..8470fed 100644
--- a/ucl/inc/ucl/misc/HashMap.h
+++ b/ucl/include/ucl/misc/HashMap.h
diff --git a/ucl/inc/ucl/misc/HashMap.hpp b/ucl/include/ucl/misc/HashMap.hpp
index 2ba4ffd..2ba4ffd 100644
--- a/ucl/inc/ucl/misc/HashMap.hpp
+++ b/ucl/include/ucl/misc/HashMap.hpp
diff --git a/ucl/inc/ucl/misc/RefCountAware.h b/ucl/include/ucl/misc/RefCountAware.h
index 6ea5ee9..6ea5ee9 100644
--- a/ucl/inc/ucl/misc/RefCountAware.h
+++ b/ucl/include/ucl/misc/RefCountAware.h
diff --git a/ucl/inc/ucl/misc/RefCountAware.hpp b/ucl/include/ucl/misc/RefCountAware.hpp
index 8fb3812..8fb3812 100644
--- a/ucl/inc/ucl/misc/RefCountAware.hpp
+++ b/ucl/include/ucl/misc/RefCountAware.hpp
diff --git a/ucl/inc/ucl/misc/TString.h b/ucl/include/ucl/misc/TString.h
index 71ca2d9..71ca2d9 100644
--- a/ucl/inc/ucl/misc/TString.h
+++ b/ucl/include/ucl/misc/TString.h
diff --git a/ucl/inc/ucl/misc/TString.hpp b/ucl/include/ucl/misc/TString.hpp
index 01c1327..01c1327 100644
--- a/ucl/inc/ucl/misc/TString.hpp
+++ b/ucl/include/ucl/misc/TString.hpp
diff --git a/ucl/inc/ucl/misc/Timeout.h b/ucl/include/ucl/misc/Timeout.h
index 165265c..165265c 100644
--- a/ucl/inc/ucl/misc/Timeout.h
+++ b/ucl/include/ucl/misc/Timeout.h
diff --git a/ucl/inc/ucl/misc/Variant.h b/ucl/include/ucl/misc/Variant.h
index 6542358..6542358 100644
--- a/ucl/inc/ucl/misc/Variant.h
+++ b/ucl/include/ucl/misc/Variant.h
diff --git a/ucl/inc/ucl/misc/Variant.hpp b/ucl/include/ucl/misc/Variant.hpp
index fe6d977..fe6d977 100644
--- a/ucl/inc/ucl/misc/Variant.hpp
+++ b/ucl/include/ucl/misc/Variant.hpp
diff --git a/ucl/inc/ucl/mvp/GuiPresenter.h b/ucl/include/ucl/mvp/GuiPresenter.h
index 5a94af4..5a94af4 100644
--- a/ucl/inc/ucl/mvp/GuiPresenter.h
+++ b/ucl/include/ucl/mvp/GuiPresenter.h
diff --git a/ucl/inc/ucl/mvp/ListItemPresenter.h b/ucl/include/ucl/mvp/ListItemPresenter.h
index 2c90f42..46d2fb4 100644
--- a/ucl/inc/ucl/mvp/ListItemPresenter.h
+++ b/ucl/include/ucl/mvp/ListItemPresenter.h
@@ -18,6 +18,7 @@
#define __UCL_MVP_LIST_ITEM_PRESENTER_H__
#include "ucl/gui/GenlistItem.h"
+#include "ucl/gui/ElmWidget.h"
#include "ucl/misc/HashMap.h"
@@ -86,7 +87,7 @@ namespace ucl {
bool isActive() const;
GenlistItem getItem();
- ItemClassCacheSRef getItemClassCache();
+ ItemClassCache *getItemClassCache();
Result updateItemStyle(ElmStyle newItemStyle);
@@ -96,7 +97,7 @@ namespace ucl {
virtual void onItemDetached();
virtual CString getItemPartText(EdjePart part);
- virtual WidgetSRef getItemPartContent(EdjePart part);
+ virtual WidgetSRef getItemPartContent(EdjePart part, ElmWidget &parent);
virtual bool getItemPartState(EdjePart part);
virtual void onItemSelected();
@@ -107,6 +108,7 @@ namespace ucl {
private:
void attachItem(GenlistItem item,
+ ElmWidgetSRef &&parent,
const ItemClassCacheSRef &itcCache,
const SharedRef<bool> &isActiveRef);
@@ -119,8 +121,9 @@ namespace ucl {
private:
ListItemPresenterSRef m_selfRef;
GenlistItem m_item;
- ItemClassCacheWRef m_itcCache;
+ ItemClassCacheSRef m_itcCache;
SharedRef<bool> m_isActiveRef;
+ ElmWidgetSRef m_parent;
int m_flags;
};
}
diff --git a/ucl/inc/ucl/mvp/ListPresenter.h b/ucl/include/ucl/mvp/ListPresenter.h
index 1d62e41..1d62e41 100644
--- a/ucl/inc/ucl/mvp/ListPresenter.h
+++ b/ucl/include/ucl/mvp/ListPresenter.h
diff --git a/ucl/inc/ucl/mvp/types.h b/ucl/include/ucl/mvp/types.h
index 6c263e2..6c263e2 100644
--- a/ucl/inc/ucl/mvp/types.h
+++ b/ucl/include/ucl/mvp/types.h
diff --git a/ucl/inc/ucl/util/delegation.h b/ucl/include/ucl/util/delegation.h
index a624c08..a624c08 100644
--- a/ucl/inc/ucl/util/delegation.h
+++ b/ucl/include/ucl/util/delegation.h
diff --git a/ucl/inc/ucl/util/delegation/BaseDelegate.h b/ucl/include/ucl/util/delegation/BaseDelegate.h
index 62b92ff..62b92ff 100644
--- a/ucl/inc/ucl/util/delegation/BaseDelegate.h
+++ b/ucl/include/ucl/util/delegation/BaseDelegate.h
diff --git a/ucl/inc/ucl/util/delegation/BaseDelegate.hpp b/ucl/include/ucl/util/delegation/BaseDelegate.hpp
index f25c0a7..f25c0a7 100644
--- a/ucl/inc/ucl/util/delegation/BaseDelegate.hpp
+++ b/ucl/include/ucl/util/delegation/BaseDelegate.hpp
diff --git a/ucl/inc/ucl/util/delegation/BaseDelegate2.h b/ucl/include/ucl/util/delegation/BaseDelegate2.h
index ff3b635..ff3b635 100644
--- a/ucl/inc/ucl/util/delegation/BaseDelegate2.h
+++ b/ucl/include/ucl/util/delegation/BaseDelegate2.h
diff --git a/ucl/inc/ucl/util/delegation/BaseDelegate2.hpp b/ucl/include/ucl/util/delegation/BaseDelegate2.hpp
index 6d8efa7..6d8efa7 100644
--- a/ucl/inc/ucl/util/delegation/BaseDelegate2.hpp
+++ b/ucl/include/ucl/util/delegation/BaseDelegate2.hpp
diff --git a/ucl/inc/ucl/util/delegation/Callback.h b/ucl/include/ucl/util/delegation/Callback.h
index 69724be..69724be 100644
--- a/ucl/inc/ucl/util/delegation/Callback.h
+++ b/ucl/include/ucl/util/delegation/Callback.h
diff --git a/ucl/inc/ucl/util/delegation/Callback.hpp b/ucl/include/ucl/util/delegation/Callback.hpp
index 28d2145..28d2145 100644
--- a/ucl/inc/ucl/util/delegation/Callback.hpp
+++ b/ucl/include/ucl/util/delegation/Callback.hpp
diff --git a/ucl/inc/ucl/util/delegation/Delegate.h b/ucl/include/ucl/util/delegation/Delegate.h
index e1e7416..e1e7416 100644
--- a/ucl/inc/ucl/util/delegation/Delegate.h
+++ b/ucl/include/ucl/util/delegation/Delegate.h
diff --git a/ucl/inc/ucl/util/delegation/Delegate.hpp b/ucl/include/ucl/util/delegation/Delegate.hpp
index 632ec24..632ec24 100644
--- a/ucl/inc/ucl/util/delegation/Delegate.hpp
+++ b/ucl/include/ucl/util/delegation/Delegate.hpp
diff --git a/ucl/inc/ucl/util/delegation/Delegate2.h b/ucl/include/ucl/util/delegation/Delegate2.h
index 56ff3fb..56ff3fb 100644
--- a/ucl/inc/ucl/util/delegation/Delegate2.h
+++ b/ucl/include/ucl/util/delegation/Delegate2.h
diff --git a/ucl/inc/ucl/util/delegation/Delegate2.hpp b/ucl/include/ucl/util/delegation/Delegate2.hpp
index 085ba46..085ba46 100644
--- a/ucl/inc/ucl/util/delegation/Delegate2.hpp
+++ b/ucl/include/ucl/util/delegation/Delegate2.hpp
diff --git a/ucl/inc/ucl/util/delegation/helpers.h b/ucl/include/ucl/util/delegation/helpers.h
index 54ebb99..54ebb99 100644
--- a/ucl/inc/ucl/util/delegation/helpers.h
+++ b/ucl/include/ucl/util/delegation/helpers.h
diff --git a/ucl/inc/ucl/util/delegation/macro.h b/ucl/include/ucl/util/delegation/macro.h
index 62bf88f..62bf88f 100644
--- a/ucl/inc/ucl/util/delegation/macro.h
+++ b/ucl/include/ucl/util/delegation/macro.h
diff --git a/ucl/inc/ucl/util/delegation/shortMacro.h b/ucl/include/ucl/util/delegation/shortMacro.h
index 3837977..3837977 100644
--- a/ucl/inc/ucl/util/delegation/shortMacro.h
+++ b/ucl/include/ucl/util/delegation/shortMacro.h
diff --git a/ucl/inc/ucl/util/helpers.h b/ucl/include/ucl/util/helpers.h
index 87485b0..117d3de 100644
--- a/ucl/inc/ucl/util/helpers.h
+++ b/ucl/include/ucl/util/helpers.h
@@ -18,6 +18,7 @@
#define __UCL_UTIL_HELPERS_H__
#include "types/baseTypes.h"
+#include "types/classTypes.h"
namespace ucl {
@@ -108,6 +109,16 @@ namespace ucl { namespace util {
template <class T>
std::unique_ptr<T> makeUnique(T *p);
+
+ template <class T, class = typename std::enable_if<
+ std::is_convertible<T *, IDisposable *>::value>::type>
+ inline void dispose(T *&p) noexcept
+ {
+ if (p) {
+ p->dispose();
+ p = nullptr;
+ }
+ }
}}
#include "helpers.hpp"
diff --git a/ucl/inc/ucl/util/helpers.hpp b/ucl/include/ucl/util/helpers.hpp
index a7606f8..a7606f8 100644
--- a/ucl/inc/ucl/util/helpers.hpp
+++ b/ucl/include/ucl/util/helpers.hpp
diff --git a/ucl/inc/ucl/util/logging.h b/ucl/include/ucl/util/logging.h
index 804a513..804a513 100644
--- a/ucl/inc/ucl/util/logging.h
+++ b/ucl/include/ucl/util/logging.h
diff --git a/ucl/inc/ucl/util/memory.h b/ucl/include/ucl/util/memory.h
index cc33960..cc33960 100644
--- a/ucl/inc/ucl/util/memory.h
+++ b/ucl/include/ucl/util/memory.h
diff --git a/ucl/inc/ucl/util/memory/BaseRef.h b/ucl/include/ucl/util/memory/BaseRef.h
index 8146eae..8146eae 100644
--- a/ucl/inc/ucl/util/memory/BaseRef.h
+++ b/ucl/include/ucl/util/memory/BaseRef.h
diff --git a/ucl/inc/ucl/util/memory/BaseRef.hpp b/ucl/include/ucl/util/memory/BaseRef.hpp
index 312c38e..312c38e 100644
--- a/ucl/inc/ucl/util/memory/BaseRef.hpp
+++ b/ucl/include/ucl/util/memory/BaseRef.hpp
diff --git a/ucl/inc/ucl/util/memory/IRefCountObj.h b/ucl/include/ucl/util/memory/IRefCountObj.h
index 69d6a1c..69d6a1c 100644
--- a/ucl/inc/ucl/util/memory/IRefCountObj.h
+++ b/ucl/include/ucl/util/memory/IRefCountObj.h
diff --git a/ucl/inc/ucl/util/memory/RefCountObj.h b/ucl/include/ucl/util/memory/RefCountObj.h
index 7237aa4..7237aa4 100644
--- a/ucl/inc/ucl/util/memory/RefCountObj.h
+++ b/ucl/include/ucl/util/memory/RefCountObj.h
diff --git a/ucl/inc/ucl/util/memory/RefCountObj.hpp b/ucl/include/ucl/util/memory/RefCountObj.hpp
index 8a2c065..8a2c065 100644
--- a/ucl/inc/ucl/util/memory/RefCountObj.hpp
+++ b/ucl/include/ucl/util/memory/RefCountObj.hpp
diff --git a/ucl/inc/ucl/util/memory/RefCounterMT.h b/ucl/include/ucl/util/memory/RefCounterMT.h
index 1d2fb95..1d2fb95 100644
--- a/ucl/inc/ucl/util/memory/RefCounterMT.h
+++ b/ucl/include/ucl/util/memory/RefCounterMT.h
diff --git a/ucl/inc/ucl/util/memory/RefCounterMT.hpp b/ucl/include/ucl/util/memory/RefCounterMT.hpp
index 1ff459b..1ff459b 100644
--- a/ucl/inc/ucl/util/memory/RefCounterMT.hpp
+++ b/ucl/include/ucl/util/memory/RefCounterMT.hpp
diff --git a/ucl/inc/ucl/util/memory/RefCounterST.h b/ucl/include/ucl/util/memory/RefCounterST.h
index 30e5e35..30e5e35 100644
--- a/ucl/inc/ucl/util/memory/RefCounterST.h
+++ b/ucl/include/ucl/util/memory/RefCounterST.h
diff --git a/ucl/inc/ucl/util/memory/RefCounterST.hpp b/ucl/include/ucl/util/memory/RefCounterST.hpp
index 45781c7..45781c7 100644
--- a/ucl/inc/ucl/util/memory/RefCounterST.hpp
+++ b/ucl/include/ucl/util/memory/RefCounterST.hpp
diff --git a/ucl/inc/ucl/util/memory/ReffedObj.h b/ucl/include/ucl/util/memory/ReffedObj.h
index c521544..c521544 100644
--- a/ucl/inc/ucl/util/memory/ReffedObj.h
+++ b/ucl/include/ucl/util/memory/ReffedObj.h
diff --git a/ucl/inc/ucl/util/memory/ReffedObj.hpp b/ucl/include/ucl/util/memory/ReffedObj.hpp
index cfc1e84..cfc1e84 100644
--- a/ucl/inc/ucl/util/memory/ReffedObj.hpp
+++ b/ucl/include/ucl/util/memory/ReffedObj.hpp
diff --git a/ucl/inc/ucl/util/memory/SharedRef.h b/ucl/include/ucl/util/memory/SharedRef.h
index 396d176..396d176 100644
--- a/ucl/inc/ucl/util/memory/SharedRef.h
+++ b/ucl/include/ucl/util/memory/SharedRef.h
diff --git a/ucl/inc/ucl/util/memory/SharedRef.hpp b/ucl/include/ucl/util/memory/SharedRef.hpp
index f085b9c..f085b9c 100644
--- a/ucl/inc/ucl/util/memory/SharedRef.hpp
+++ b/ucl/include/ucl/util/memory/SharedRef.hpp
diff --git a/ucl/inc/ucl/util/memory/WeakRef.h b/ucl/include/ucl/util/memory/WeakRef.h
index 4cccbe6..4cccbe6 100644
--- a/ucl/inc/ucl/util/memory/WeakRef.h
+++ b/ucl/include/ucl/util/memory/WeakRef.h
diff --git a/ucl/inc/ucl/util/memory/WeakRef.hpp b/ucl/include/ucl/util/memory/WeakRef.hpp
index 6634f3c..6634f3c 100644
--- a/ucl/inc/ucl/util/memory/WeakRef.hpp
+++ b/ucl/include/ucl/util/memory/WeakRef.hpp
diff --git a/ucl/inc/ucl/util/memory/helpers.h b/ucl/include/ucl/util/memory/helpers.h
index bef907b..5ce25a3 100644
--- a/ucl/inc/ucl/util/memory/helpers.h
+++ b/ucl/include/ucl/util/memory/helpers.h
@@ -19,6 +19,31 @@
namespace ucl {
+ // Misc //
+
+ namespace util {
+
+ template <class T, class = typename std::enable_if<
+ std::is_convertible<T *, IDisposable *>::value>::type>
+ inline void dispose(SharedRef<T> &r) noexcept
+ {
+ if (r) {
+ r->dispose();
+ r.reset();
+ }
+ }
+
+ template <class T, class = typename std::enable_if<
+ std::is_convertible<T *, IDisposable *>::value>::type>
+ inline void dispose(WeakRef<T> &r) noexcept
+ {
+ if (const auto shared = r.lock()) {
+ shared->dispose();
+ r.reset();
+ }
+ }
+ }
+
// Generic casting functions //
template <class T, class U>
diff --git a/ucl/inc/ucl/util/memory/macro.h b/ucl/include/ucl/util/memory/macro.h
index b97175a..b97175a 100644
--- a/ucl/inc/ucl/util/memory/macro.h
+++ b/ucl/include/ucl/util/memory/macro.h
diff --git a/ucl/inc/ucl/util/shortLogs.h b/ucl/include/ucl/util/shortLogs.h
index 02f8bbf..02f8bbf 100644
--- a/ucl/inc/ucl/util/shortLogs.h
+++ b/ucl/include/ucl/util/shortLogs.h
diff --git a/ucl/inc/ucl/util/smartDelegation.h b/ucl/include/ucl/util/smartDelegation.h
index 6714411..6714411 100644
--- a/ucl/inc/ucl/util/smartDelegation.h
+++ b/ucl/include/ucl/util/smartDelegation.h
diff --git a/ucl/inc/ucl/util/smartDelegation/WeakDelegate.h b/ucl/include/ucl/util/smartDelegation/WeakDelegate.h
index 97e1ae8..97e1ae8 100644
--- a/ucl/inc/ucl/util/smartDelegation/WeakDelegate.h
+++ b/ucl/include/ucl/util/smartDelegation/WeakDelegate.h
diff --git a/ucl/inc/ucl/util/smartDelegation/WeakDelegate.hpp b/ucl/include/ucl/util/smartDelegation/WeakDelegate.hpp
index fa7b3f8..fa7b3f8 100644
--- a/ucl/inc/ucl/util/smartDelegation/WeakDelegate.hpp
+++ b/ucl/include/ucl/util/smartDelegation/WeakDelegate.hpp
diff --git a/ucl/inc/ucl/util/smartDelegation/macro.h b/ucl/include/ucl/util/smartDelegation/macro.h
index b117820..b117820 100644
--- a/ucl/inc/ucl/util/smartDelegation/macro.h
+++ b/ucl/include/ucl/util/smartDelegation/macro.h
diff --git a/ucl/inc/ucl/util/smartDelegation/shortMacro.h b/ucl/include/ucl/util/smartDelegation/shortMacro.h
index ddf5e35..ddf5e35 100644
--- a/ucl/inc/ucl/util/smartDelegation/shortMacro.h
+++ b/ucl/include/ucl/util/smartDelegation/shortMacro.h
diff --git a/ucl/inc/ucl/util/threading.h b/ucl/include/ucl/util/threading.h
index 4595b1b..4595b1b 100644
--- a/ucl/inc/ucl/util/threading.h
+++ b/ucl/include/ucl/util/threading.h
diff --git a/ucl/inc/ucl/util/threading/CondVar.h b/ucl/include/ucl/util/threading/CondVar.h
index e73a763..e73a763 100644
--- a/ucl/inc/ucl/util/threading/CondVar.h
+++ b/ucl/include/ucl/util/threading/CondVar.h
diff --git a/ucl/inc/ucl/util/threading/CondVar.hpp b/ucl/include/ucl/util/threading/CondVar.hpp
index 09b0ae0..09b0ae0 100644
--- a/ucl/inc/ucl/util/threading/CondVar.hpp
+++ b/ucl/include/ucl/util/threading/CondVar.hpp
diff --git a/ucl/inc/ucl/util/threading/Mutex.h b/ucl/include/ucl/util/threading/Mutex.h
index eda90ff..eda90ff 100644
--- a/ucl/inc/ucl/util/threading/Mutex.h
+++ b/ucl/include/ucl/util/threading/Mutex.h
diff --git a/ucl/inc/ucl/util/threading/Mutex.hpp b/ucl/include/ucl/util/threading/Mutex.hpp
index c3b75be..c3b75be 100644
--- a/ucl/inc/ucl/util/threading/Mutex.hpp
+++ b/ucl/include/ucl/util/threading/Mutex.hpp
diff --git a/ucl/inc/ucl/util/threading/MutexLock.h b/ucl/include/ucl/util/threading/MutexLock.h
index 062837f..062837f 100644
--- a/ucl/inc/ucl/util/threading/MutexLock.h
+++ b/ucl/include/ucl/util/threading/MutexLock.h
diff --git a/ucl/inc/ucl/util/threading/MutexLock.hpp b/ucl/include/ucl/util/threading/MutexLock.hpp
index a30d995..a30d995 100644
--- a/ucl/inc/ucl/util/threading/MutexLock.hpp
+++ b/ucl/include/ucl/util/threading/MutexLock.hpp
diff --git a/ucl/inc/ucl/util/threading/Thread.h b/ucl/include/ucl/util/threading/Thread.h
index 0839921..0839921 100644
--- a/ucl/inc/ucl/util/threading/Thread.h
+++ b/ucl/include/ucl/util/threading/Thread.h
diff --git a/ucl/inc/ucl/util/threading/Thread.hpp b/ucl/include/ucl/util/threading/Thread.hpp
index 74259c1..74259c1 100644
--- a/ucl/inc/ucl/util/threading/Thread.hpp
+++ b/ucl/include/ucl/util/threading/Thread.hpp
diff --git a/ucl/inc/ucl/util/types.h b/ucl/include/ucl/util/types.h
index 70a33d3..70a33d3 100644
--- a/ucl/inc/ucl/util/types.h
+++ b/ucl/include/ucl/util/types.h
diff --git a/ucl/inc/ucl/util/types/Result.h b/ucl/include/ucl/util/types/Result.h
index 099223f..099223f 100644
--- a/ucl/inc/ucl/util/types/Result.h
+++ b/ucl/include/ucl/util/types/Result.h
diff --git a/ucl/inc/ucl/util/types/Result.hpp b/ucl/include/ucl/util/types/Result.hpp
index c83db4c..c83db4c 100644
--- a/ucl/inc/ucl/util/types/Result.hpp
+++ b/ucl/include/ucl/util/types/Result.hpp
diff --git a/ucl/inc/ucl/util/types/baseTypes.h b/ucl/include/ucl/util/types/baseTypes.h
index c5062db..c5062db 100644
--- a/ucl/inc/ucl/util/types/baseTypes.h
+++ b/ucl/include/ucl/util/types/baseTypes.h
diff --git a/ucl/inc/ucl/util/types/classTypes.h b/ucl/include/ucl/util/types/classTypes.h
index 5c708d2..5c708d2 100644
--- a/ucl/inc/ucl/util/types/classTypes.h
+++ b/ucl/include/ucl/util/types/classTypes.h
diff --git a/ucl/src/appfw/InstanceManagerBase.cpp b/ucl/source/appfw/InstanceManagerBase.cpp
index 2e90b24..2e90b24 100644
--- a/ucl/src/appfw/InstanceManagerBase.cpp
+++ b/ucl/source/appfw/InstanceManagerBase.cpp
diff --git a/ucl/src/appfw/SysEventProvider.cpp b/ucl/source/appfw/SysEventProvider.cpp
index 8958aaf..8958aaf 100644
--- a/ucl/src/appfw/SysEventProvider.cpp
+++ b/ucl/source/appfw/SysEventProvider.cpp
diff --git a/ucl/src/appfw/UIApp.cpp b/ucl/source/appfw/UIApp.cpp
index 4e1a4de..6f49c2b 100644
--- a/ucl/src/appfw/UIApp.cpp
+++ b/ucl/source/appfw/UIApp.cpp
@@ -158,7 +158,6 @@ namespace ucl {
m_window = Window::Builder().
setType(winType).
setName(paramValue.asString().get()).
- setIsOwner(true).
build();
if (!m_window) {
LOG_RETURN(RES_FAIL, "Window::Builder().build() Failed!");
diff --git a/ucl/src/mvp/common.h b/ucl/source/appfw/common.h
index 2894a14..402bb6e 100644
--- a/ucl/src/mvp/common.h
+++ b/ucl/source/appfw/common.h
@@ -14,9 +14,9 @@
* limitations under the License.
*/
-#ifndef __UCL_MVP_COMMON_H__
-#define __UCL_MVP_COMMON_H__
+#ifndef __UCL_SOURCE_APPFW_COMMON_H__
+#define __UCL_SOURCE_APPFW_COMMON_H__
-#include "../common.h"
+#include "ucl/source/common.h"
-#endif // __UCL_MVP_COMMON_H__
+#endif // __UCL_SOURCE_APPFW_COMMON_H__
diff --git a/ucl/src/appfw/helpers.cpp b/ucl/source/appfw/helpers.cpp
index c547dce..c547dce 100644
--- a/ucl/src/appfw/helpers.cpp
+++ b/ucl/source/appfw/helpers.cpp
diff --git a/ucl/src/common.h b/ucl/source/common.h
index f358669..3312380 100644
--- a/ucl/src/common.h
+++ b/ucl/source/common.h
@@ -14,8 +14,8 @@
* limitations under the License.
*/
-#ifndef __UCL_COMMON_H__
-#define __UCL_COMMON_H__
+#ifndef __UCL_SOURCE_COMMON_H__
+#define __UCL_SOURCE_COMMON_H__
#include <cmath>
#include <cstring>
@@ -32,4 +32,4 @@
#include "ucl/util/delegation/shortMacro.h"
#include "ucl/util/smartDelegation/shortMacro.h"
-#endif // __UCL_COMMON_H__
+#endif // __UCL_SOURCE_COMMON_H__
diff --git a/ucl/src/gui/EdjeWidget.cpp b/ucl/source/gui/EdjeWidget.cpp
index 8d67596..8d67596 100644
--- a/ucl/src/gui/EdjeWidget.cpp
+++ b/ucl/source/gui/EdjeWidget.cpp
diff --git a/ucl/src/gui/ElmWidget.cpp b/ucl/source/gui/ElmWidget.cpp
index b7d227e..b7d227e 100644
--- a/ucl/src/gui/ElmWidget.cpp
+++ b/ucl/source/gui/ElmWidget.cpp
diff --git a/ucl/src/gui/Genlist.cpp b/ucl/source/gui/Genlist.cpp
index b0e31a5..b0e31a5 100644
--- a/ucl/src/gui/Genlist.cpp
+++ b/ucl/source/gui/Genlist.cpp
diff --git a/ucl/src/gui/Layout.cpp b/ucl/source/gui/Layout.cpp
index 1509fc5..1509fc5 100644
--- a/ucl/src/gui/Layout.cpp
+++ b/ucl/source/gui/Layout.cpp
diff --git a/ucl/src/gui/NaviItem.cpp b/ucl/source/gui/NaviItem.cpp
index 02f5da2..02f5da2 100644
--- a/ucl/src/gui/NaviItem.cpp
+++ b/ucl/source/gui/NaviItem.cpp
diff --git a/ucl/src/gui/Naviframe.cpp b/ucl/source/gui/Naviframe.cpp
index 69d80a5..717940b 100644
--- a/ucl/src/gui/Naviframe.cpp
+++ b/ucl/source/gui/Naviframe.cpp
@@ -48,7 +48,7 @@ namespace ucl {
// Naviframe //
Naviframe::Naviframe(IRefCountObj &rc, Evas_Object *eo) :
- StyledWidget(&rc, eo, true),
+ StyledWidget(&rc, eo),
m_isInTransition(false)
{
addEventHandler(NAVI_TRANSITION_FINISHED, WEAK_DELEGATE(
diff --git a/ucl/src/gui/Widget.cpp b/ucl/source/gui/Widget.cpp
index 096c6e1..096c6e1 100644
--- a/ucl/src/gui/Widget.cpp
+++ b/ucl/source/gui/Widget.cpp
diff --git a/ucl/src/gui/WidgetItem.cpp b/ucl/source/gui/WidgetItem.cpp
index 04d1fca..04d1fca 100644
--- a/ucl/src/gui/WidgetItem.cpp
+++ b/ucl/source/gui/WidgetItem.cpp
diff --git a/ucl/src/gui/Window.cpp b/ucl/source/gui/Window.cpp
index 3f74e9e..3f74e9e 100644
--- a/ucl/src/gui/Window.cpp
+++ b/ucl/source/gui/Window.cpp
diff --git a/ucl/src/misc/common.h b/ucl/source/gui/common.h
index 372ad4d..b8a0028 100644
--- a/ucl/src/misc/common.h
+++ b/ucl/source/gui/common.h
@@ -14,9 +14,9 @@
* limitations under the License.
*/
-#ifndef __UCL_MISC_COMMON_H__
-#define __UCL_MISC_COMMON_H__
+#ifndef __UCL_SOURCE_GUI_COMMON_H__
+#define __UCL_SOURCE_GUI_COMMON_H__
-#include "../common.h"
+#include "ucl/source/common.h"
-#endif // __UCL_MISC_COMMON_H__
+#endif // __UCL_SOURCE_GUI_COMMON_H__
diff --git a/ucl/src/misc/Timeout.cpp b/ucl/source/misc/Timeout.cpp
index 41a3d3f..41a3d3f 100644
--- a/ucl/src/misc/Timeout.cpp
+++ b/ucl/source/misc/Timeout.cpp
diff --git a/ucl/src/misc/Variant.cpp b/ucl/source/misc/Variant.cpp
index f723f34..8be8708 100644
--- a/ucl/src/misc/Variant.cpp
+++ b/ucl/source/misc/Variant.cpp
@@ -26,7 +26,7 @@ namespace ucl {
m_type(aString ? TYPE_STRING : TYPE_NIL)
{
if (aString) {
- const int realLength = ((length < 0) ? strlen(aString) : length);
+ const size_t realLength = ((length < 0) ? strlen(aString) : length);
if (realLength < sizeof(m_aSmallStr.buffer)) {
strncpy(m_aSmallStr.buffer, aString, realLength);
m_aSmallStr.buffer[realLength] = '\0';
diff --git a/ucl/src/gui/common.h b/ucl/source/misc/common.h
index 6b543d3..fd9d17e 100644
--- a/ucl/src/gui/common.h
+++ b/ucl/source/misc/common.h
@@ -14,9 +14,9 @@
* limitations under the License.
*/
-#ifndef __UCL_GUI_COMMON_H__
-#define __UCL_GUI_COMMON_H__
+#ifndef __UCL_SOURCE_MISC_COMMON_H__
+#define __UCL_SOURCE_MISC_COMMON_H__
-#include "../common.h"
+#include "ucl/source/common.h"
-#endif // __UCL_GUI_COMMON_H__
+#endif // __UCL_SOURCE_MISC_COMMON_H__
diff --git a/ucl/src/mvp/GuiPresenter.cpp b/ucl/source/mvp/GuiPresenter.cpp
index e23bc02..e23bc02 100644
--- a/ucl/src/mvp/GuiPresenter.cpp
+++ b/ucl/source/mvp/GuiPresenter.cpp
diff --git a/ucl/src/mvp/ListItemPresenter.cpp b/ucl/source/mvp/ListItemPresenter.cpp
index e2ad69a..d27568b 100644
--- a/ucl/src/mvp/ListItemPresenter.cpp
+++ b/ucl/source/mvp/ListItemPresenter.cpp
@@ -57,8 +57,9 @@ namespace ucl {
if (!data) {
LOG_RETURN_VALUE(RES_FATAL, nullptr, "data is NULL");
}
- if (const auto widget = static_cast<ListItemPresenter *>(data)->
- getItemPartContent(EdjePart(part))) {
+ auto &&item = *static_cast<ListItemPresenter *>(data);
+ if (const auto widget = item.getItemPartContent(
+ EdjePart(part), *item.m_parent)) {
widget->setIsOwner(false);
return widget->getEo();
}
@@ -128,14 +129,10 @@ namespace ucl {
}
}
- void ListItemPresenter::attachItem(GenlistItem item,
+ void ListItemPresenter::attachItem(GenlistItem item, ElmWidgetSRef &&parent,
const ItemClassCacheSRef &itcCache,
const SharedRef<bool> &isActiveRef)
{
- if (!item) {
- LOG_RETURN_VOID(RES_FAIL, "item is NULL!");
- }
-
if (m_item) {
deleteDetachedItem();
}
@@ -144,6 +141,8 @@ namespace ucl {
m_item.setData(this);
m_item.setDelCallback(CALLBACK_A(ListItemPresenter::onItemDel));
+ m_parent = std::move(parent);
+
m_itcCache = itcCache;
m_isActiveRef = isActiveRef;
@@ -166,6 +165,11 @@ namespace ucl {
m_item.setData(nullptr);
m_item.setDelCallback(nullptr);
m_item = nullptr;
+
+ m_parent.reset();
+ m_itcCache.reset();
+ m_isActiveRef.reset();
+
if (!silent) {
onItemDetached();
}
@@ -199,10 +203,9 @@ namespace ucl {
return m_item;
}
- ListItemPresenter::ItemClassCacheSRef
- ListItemPresenter::getItemClassCache()
+ ListItemPresenter::ItemClassCache *ListItemPresenter::getItemClassCache()
{
- return m_itcCache.lock();
+ return m_itcCache.get();
}
Result ListItemPresenter::updateItemStyle(const ElmStyle newItemStyle)
@@ -210,15 +213,13 @@ namespace ucl {
if (!m_item) {
LOG_RETURN(RES_ILLEGAL_STATE, "m_item is NULL!");
}
-
- const auto itcCache = getItemClassCache();
- if (!itcCache) {
- LOG_RETURN(RES_FATAL, "itcCache is NULL!");
+ if (!m_itcCache) {
+ LOG_RETURN(RES_FATAL, "m_itcCache is NULL!");
}
- const auto itc = itcCache->getItemClass(newItemStyle);
+ const auto itc = m_itcCache->getItemClass(newItemStyle);
if (!itc) {
- LOG_RETURN(RES_FAIL, "itcCache.getItemClass() failed!");
+ LOG_RETURN(RES_FAIL, "m_itcCache->getItemClass() failed!");
}
m_item.update(itc->get());
@@ -247,7 +248,8 @@ namespace ucl {
{
}
- WidgetSRef ListItemPresenter::getItemPartContent(const EdjePart part)
+ WidgetSRef ListItemPresenter::getItemPartContent(const EdjePart part,
+ ElmWidget &parent)
{
return nullptr;
}
diff --git a/ucl/src/mvp/ListPresenter.cpp b/ucl/source/mvp/ListPresenter.cpp
index 220b10e..2835697 100644
--- a/ucl/src/mvp/ListPresenter.cpp
+++ b/ucl/source/mvp/ListPresenter.cpp
@@ -97,6 +97,9 @@ namespace ucl {
ListPresenter::~ListPresenter()
{
+ if (m_genlist) {
+ m_genlist->clear();
+ }
}
Result ListPresenter::prepare(
@@ -110,7 +113,6 @@ namespace ucl {
setStyle(style).
setMode(Genlist::Mode::COMPRESS).
setHomogeneous(flags & FLAG_HOMOGENEOUS).
- setIsOwner(true).
setNeedBindToEo(true).
build(parentWidget);
if (!m_genlist) {
@@ -236,7 +238,7 @@ namespace ucl {
LOG_RETURN(RES_FAIL, "insertFunc() failed!");
}
- itemPresenter.attachItem(item, m_itcCache, m_isActiveRef);
+ itemPresenter.attachItem(item, m_genlist, m_itcCache, m_isActiveRef);
return RES_OK;
}
diff --git a/ucl/src/appfw/common.h b/ucl/source/mvp/common.h
index b612dfb..11a4d84 100644
--- a/ucl/src/appfw/common.h
+++ b/ucl/source/mvp/common.h
@@ -14,9 +14,9 @@
* limitations under the License.
*/
-#ifndef __UCL_APPFW_COMMON_H__
-#define __UCL_APPFW_COMMON_H__
+#ifndef __UCL_SOURCE_MVP_COMMON_H__
+#define __UCL_SOURCE_MVP_COMMON_H__
-#include "../common.h"
+#include "ucl/source/common.h"
-#endif // __UCL_APPFW_COMMON_H__
+#endif // __UCL_SOURCE_MVP_COMMON_H__
diff --git a/ucl/src/util/logging.cpp b/ucl/source/util/logging.cpp
index 311f25b..311f25b 100644
--- a/ucl/src/util/logging.cpp
+++ b/ucl/source/util/logging.cpp
diff --git a/ucl/src/util/types/Result.cpp b/ucl/source/util/types/Result.cpp
index b42875e..b42875e 100644
--- a/ucl/src/util/types/Result.cpp
+++ b/ucl/source/util/types/Result.cpp