Add GetObject(int)
authorHeeJu Kang <mobum.kang@samsung.com>
Mon, 9 Sep 2013 09:56:09 +0000 (18:56 +0900)
committerHeeJu Kang <mobum.kang@samsung.com>
Mon, 9 Sep 2013 09:56:09 +0000 (18:56 +0900)
Change-Id: Id01b3037e73f526bc5f4aa8599347edb3db5112f
Signed-off-by: HeeJu Kang <mobum.kang@samsung.com>
src/ui/FUi_ControlManager.cpp
src/ui/inc/FUi_ControlManager.h

index de6ecc8..a459d14 100644 (file)
@@ -303,6 +303,20 @@ _ControlManager::GetObject(const _ControlHandle& handle) const
        return __objectManager.GetObject(handle);
 }
 
+_Control*
+_ControlManager::GetObject(int handle)
+{
+       _ControlHandle controlHandle = __objectManager.GetHandle(handle);
+       return __objectManager.GetObject(controlHandle);
+}
+
+const _Control*
+_ControlManager::GetObject(int handle) const
+{
+       _ControlHandle controlHandle = const_cast<_ControlManager*>(this)->__objectManager.GetHandle(handle);
+       return __objectManager.GetObject(controlHandle);
+}
+
 int
 _ControlManager::GetUsedHandleCount(void) const
 {
index 8894258..9e08397 100644 (file)
@@ -61,6 +61,8 @@ public:
        _Control* Release(const _ControlHandle& handle);
        _Control* GetObject(const _ControlHandle& handle);
        const _Control* GetObject(const _ControlHandle& handle) const;
+       _Control* GetObject(int handle);
+       const _Control* GetObject(int handle) const;
        int GetUsedHandleCount(void) const;
 
 // Operations