_ControlManager::_ControlManager(void) // [ToDo] exception check.
: __pWindowList(null)
+ , __pAllWindowList(null)
, __isCoordinateSystemLogical(true)
, __logicalCoordinateSystem(0)
, __logicalBaseScreenSize(BASE_SCREEN_SIZE_NONE)
__pWindowList = new (std::nothrow)LinkedListT<_Window*>;
SysTryCatch(NID_UI, __pWindowList, , E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed.");
+ __pAllWindowList = new (std::nothrow)LinkedListT<_Window*>;
+ SysTryCatch(NID_UI, __pAllWindowList, , E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed.");
+
__pGestureList = new (std::nothrow)LinkedListT<_TouchGestureDetector*>;
SysTryCatch(NID_UI, __pGestureList, , E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed.");
__pWindowList = null;
}
+ if (__pAllWindowList)
+ {
+ delete __pAllWindowList;
+ __pAllWindowList = null;
+ }
+
if (__pGestureList)
{
delete __pGestureList;
__pWindowList = null;
}
+ if (__pAllWindowList)
+ {
+ delete __pAllWindowList;
+ __pAllWindowList = null;
+ }
+
if (__pGestureList)
{
delete __pGestureList;
return __pWindowList->GetCount();
}
+_Window*
+_ControlManager::GetAllWindow(int index) const
+{
+ _Window* pWindow;
+ __pAllWindowList->GetAt(index, pWindow);
+
+ return pWindow;
+}
+
+int
+_ControlManager::GetAllWindowCount(void) const
+{
+ return __pAllWindowList->GetCount();
+}
+
+result
+_ControlManager::DetachAllWindow(_Window& window)
+{
+ return __pAllWindowList->Remove(&window);
+}
+
result
_ControlManager::AttachWindow(_Window& window)
{
}
}
+ __pAllWindowList->Add(&window);
+
return __pWindowList->Add(&window);
}
SysLog(NID_UI, "[Window Manager Rotation][Window : 0x%x] OnWindowStateChanged is called.", targetWin);
- int winCount = pControlManager->GetWindowCount();
+ int winCount = pControlManager->GetAllWindowCount();
for (int i = 0; i < winCount; i++)
{
- _Window* pWindow = pControlManager->GetWindow(i);
+ _Window* pWindow = pControlManager->GetAllWindow(i);
if (!pWindow)
{
continue;
result AddControlManagerEventListener(_IControlManagerEventListener& listener);
result RemoveControlManagerEventListener(_IControlManagerEventListener& listener);
+ _Window* GetAllWindow(int index) const;
+ int GetAllWindowCount(void) const;
+ result DetachAllWindow(_Window& window);
+
private:
~_ControlManager(void);
_ControlManager(void);
private:
Tizen::Base::_ObjectManagerT <_Control> __objectManager;
Tizen::Base::Collection::LinkedListT<_Window*>* __pWindowList;
+ Tizen::Base::Collection::LinkedListT<_Window*>* __pAllWindowList;
bool __isCoordinateSystemLogical;
int __logicalCoordinateSystem;