SysAssertf(_pControlImpl == null, "Already constructed. Calling Construct() twice or more on a same instance is not allowed for this class.");
unique_ptr<_AppWidgetFrameImpl> pImpl(_AppWidgetFrameImpl::CreateAppWidgetFrameImplN(*this, null, null));
result r = GetLastResult();
- SysTryReturn(NID_UI_CTRL, pImpl, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, pImpl, r, r, "[%s] Propagating.", GetErrorMessage(r));
r = pImpl->Initialize(size);
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
_pControlImpl = pImpl.release();
unique_ptr<_AppWidgetFrameImpl> pImpl(_AppWidgetFrameImpl::CreateAppWidgetFrameImplN(*this, &layout, &layout));
result r = GetLastResult();
- SysTryReturn(NID_UI_CTRL, pImpl, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, pImpl, r, r, "[%s] Propagating.", GetErrorMessage(r));
r = pImpl->Initialize(size);
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
_pControlImpl = pImpl.release();
unique_ptr<_AppWidgetPopupImpl> pImpl(_AppWidgetPopupImpl::CreateAppWidgetPopupImplN(*this, null, null));
result r = GetLastResult();
- SysTryReturn(NID_UI_CTRL, pImpl, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, pImpl, r, r, "[%s] Propagating.", GetErrorMessage(r));
r = pImpl->Initialize(size);
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
_pControlImpl = pImpl.release();
unique_ptr<_AppWidgetPopupImpl> pImpl(_AppWidgetPopupImpl::CreateAppWidgetPopupImplN(*this, &layout, &layout));
result r = GetLastResult();
- SysTryReturn(NID_UI_CTRL, pImpl, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, pImpl, r, r, "[%s] Propagating.", GetErrorMessage(r));
r = pImpl->Initialize(size);
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
_pControlImpl = pImpl.release();
Canvas* pCanvas = pImpl->GetClientAreaCanvasN();
result r = GetLastResult();
- SysTryReturn(NID_UI_CTRL, pCanvas, null, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, pCanvas, null, r, "[%s] Propagating.", GetErrorMessage(r));
return pCanvas;
}
result
AppWidgetView::Construct(const AppId& appId, const String& providerName, const FloatRectangle& rect, const String& userInfo)
{
- SysTryReturnResult(NID_UI_CTRL, _Aul::IsInstalled(appId) == true, E_APP_NOT_INSTALLED, "The application is not installed.");
+ SysTryReturnResult(NID_SHELL, _Aul::IsInstalled(appId) == true, E_APP_NOT_INSTALLED, "The application is not installed.");
SysAssertf(_pControlImpl == null, "Already constructed. Calling Construct() twice or more on a same instance is not allowed for this class.");
unique_ptr<_AppWidgetViewImpl> pImpl(_AppWidgetViewImpl::CreateAppWidgetViewImplN(*this));
result r = GetLastResult();
- SysTryReturn(NID_UI_CTRL, pImpl, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, pImpl, r, r, "[%s] Propagating.", GetErrorMessage(r));
r = pImpl->Initialize(appId, providerName, rect, userInfo);
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
_pControlImpl = pImpl.release();
AppWidgetProviderInfo* pProviderInfo = pImpl->GetAppWidgetProviderInfoN();
result r = GetLastResult();
- SysTryReturn(NID_UI_CTRL, pProviderInfo, null, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, pProviderInfo, null, r, "[%s] Propagating.", GetErrorMessage(r));
return pProviderInfo;
}
SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
result r = pImpl->AddAppWidgetViewEventListener(listener);
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
return r;
}
SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
result r = pImpl->RemoveAppWidgetViewEventListener(listener);
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
return r;
}
QuickPanelFrame::Construct(int height)
{
result r = _AccessController::CheckUserPrivilege(_PRV_NOTIFICATION);
- SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
+ SysTryReturnResult(NID_SHELL, r == E_SUCCESS, E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
SysAssertf(_pControlImpl == null, "Already constructed. Calling Construct() twice or more on a same instance is not allowed for this class.");
_QuickPanelFrameImpl* pImpl = _QuickPanelFrameImpl::CreateQuickPanelFrameImplN(*this, null, null);
r = GetLastResult();
- SysTryReturn(NID_UI_CTRL, pImpl, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, pImpl, r, r, "[%s] Propagating.", GetErrorMessage(r));
_pControlImpl = pImpl;
float heightF = static_cast<float>(height);
r = pImpl->Initialize(heightF);
- SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryCatch(NID_SHELL, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
return r;
ClearLastResult();
result r = _AccessController::CheckUserPrivilege(_PRV_NOTIFICATION);
- SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
+ SysTryReturnResult(NID_SHELL, r == E_SUCCESS, E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
// Parse UiBuilder XML file
unique_ptr<_UiBuilder> pBuilder(new (std::nothrow) _UiBuilder());
- SysTryReturn(NID_UI_CTRL, pBuilder, E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryReturn(NID_SHELL, pBuilder, E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
r = pBuilder->Construct(resourceId, this);
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
r = pBuilder->Parse();
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
return r;
}
QuickPanelFrame::Construct(const Layout& layout, int height)
{
result r = _AccessController::CheckUserPrivilege(_PRV_NOTIFICATION);
- SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
+ SysTryReturnResult(NID_SHELL, r == E_SUCCESS, E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
r = Construct(layout, layout, height);
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
return r;
}
QuickPanelFrame::Construct(const Layout& portraitLayout, const Layout& landscapeLayout, int height)
{
result r = _AccessController::CheckUserPrivilege(_PRV_NOTIFICATION);
- SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
+ SysTryReturnResult(NID_SHELL, r == E_SUCCESS, E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
SysAssertf(_pControlImpl == null, "Already constructed. Calling Construct() twice or more on a same instance is not allowed for this class.");
_QuickPanelFrameImpl* pImpl = _QuickPanelFrameImpl::CreateQuickPanelFrameImplN(*this, &portraitLayout, &landscapeLayout);
r = GetLastResult();
- SysTryReturn(NID_UI_CTRL, pImpl, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, pImpl, r, r, "[%s] Propagating.", GetErrorMessage(r));
_pControlImpl = pImpl;
float heightF = static_cast<float>(height);
r = pImpl->Initialize(heightF);
- SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryCatch(NID_SHELL, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
return r;
QuickPanelFrame::Construct(float height)
{
result r = _AccessController::CheckUserPrivilege(_PRV_NOTIFICATION);
- SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
+ SysTryReturnResult(NID_SHELL, r == E_SUCCESS, E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
SysAssertf(_pControlImpl == null, "Already constructed. Calling Construct() twice or more on a same instance is not allowed for this class.");
_QuickPanelFrameImpl* pImpl = _QuickPanelFrameImpl::CreateQuickPanelFrameImplN(*this, null, null);
r = GetLastResult();
- SysTryReturn(NID_UI_CTRL, pImpl, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, pImpl, r, r, "[%s] Propagating.", GetErrorMessage(r));
_pControlImpl = pImpl;
r = pImpl->Initialize(height);
- SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryCatch(NID_SHELL, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
return r;
QuickPanelFrame::Construct(const Layout& layout, float height)
{
result r = _AccessController::CheckUserPrivilege(_PRV_NOTIFICATION);
- SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
+ SysTryReturnResult(NID_SHELL, r == E_SUCCESS, E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
r = Construct(layout, layout, height);
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
return r;
}
QuickPanelFrame::Construct(const Layout& portraitLayout, const Layout& landscapeLayout, float height)
{
result r = _AccessController::CheckUserPrivilege(_PRV_NOTIFICATION);
- SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
+ SysTryReturnResult(NID_SHELL, r == E_SUCCESS, E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
SysAssertf(_pControlImpl == null, "Already constructed. Calling Construct() twice or more on a same instance is not allowed for this class.");
_QuickPanelFrameImpl* pImpl = _QuickPanelFrameImpl::CreateQuickPanelFrameImplN(*this, &portraitLayout, &landscapeLayout);
r = GetLastResult();
- SysTryReturn(NID_UI_CTRL, pImpl, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, pImpl, r, r, "[%s] Propagating.", GetErrorMessage(r));
_pControlImpl = pImpl;
r = pImpl->Initialize(height);
- SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryCatch(NID_SHELL, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
return r;
SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
result r = pImpl->AddOrientationEventListener(listener);
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
return r;
}
SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
result r = pImpl->RemoveOrientationEventListener(listener);
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
return r;
}
float heightF = static_cast<float>(height);
result r = pImpl->SetHeight(heightF);
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
return r;
}
SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
result r = pImpl->SetHeight(height);
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
return r;
}
, __pAppWidgetFrameRootVisualElement(null)
, __pEventManager(null)
{
- SysTryReturnVoidResult(NID_UI_CTRL, __pAppWidgetFramePresenter, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryReturnVoidResult(NID_SHELL, __pAppWidgetFramePresenter, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
_UiEventManager* pEventManager = _UiEventManager::GetInstance();
- SysTryReturnVoidResult(NID_UI_CTRL, pEventManager, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryReturnVoidResult(NID_SHELL, pEventManager, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
__pEventManager = pEventManager->GetEventManager();
- SysTryReturnVoidResult(NID_UI_CTRL, __pEventManager, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryReturnVoidResult(NID_SHELL, __pEventManager, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
}
_AppWidgetFrame::~_AppWidgetFrame(void)
_AppWidgetFrame::CreateAppWidgetFrameN(void)
{
unique_ptr<_AppWidgetFrame> pAppWidgetFrame(new (std::nothrow) _AppWidgetFrame());
- SysTryReturn(NID_UI_CTRL, pAppWidgetFrame, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryReturn(NID_SHELL, pAppWidgetFrame, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
result r = GetLastResult();
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, null, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, null, r, "[%s] Propagating.", GetErrorMessage(r));
pAppWidgetFrame->AcquireHandle();
__appwidgetSize = size;
r = CreateRootVisualElement();
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
FloatRectangle bounds(0.0f, 0.0f, appwidgetSize.width, appwidgetSize.height);
r = SetBounds(bounds);
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
r = __pAppWidgetFramePresenter->Initialize();
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
__pAppWidgetLayer->SetLayerBounds(bounds);
__pAppWidgetLayer->SetShowState(false);
SetBackgroundColor(Color(0, 0, 0, 0));
r = __pEventManager->RegisterTouchEventHandler(*this);
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
return r;
}
__pAppWidgetFramePresenter->SetProviderId(providerId);
result r = __pAppWidgetLayer->SetProviderId(providerId);
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
return r;
}
if (__pAppWidgetFrameRootVisualElement)
{
_AppWidgetLayer* pLayer = dynamic_cast<_AppWidgetLayer*>(__pAppWidgetFrameRootVisualElement->GetNativeLayer());
- SysTryReturn(NID_UI_CTRL, pLayer, E_SYSTEM, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
+ SysTryReturn(NID_SHELL, pLayer, E_SYSTEM, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
r = pLayer->SetShowState(showState);
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
__pAppWidgetFrameRootVisualElement->SetShowState(showState);
}
{
_AppWidgetLayer* pLayer = dynamic_cast<_AppWidgetLayer*>(__pAppWidgetFrameRootVisualElement->GetNativeLayer());
r = GetLastResult();
- SysTryReturn(NID_UI_CTRL, pLayer, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, pLayer, r, r, "[%s] Propagating.", GetErrorMessage(r));
pLayer->SetLayerBounds(bounds);
__pAppWidgetFrameRootVisualElement->SetBounds(bounds);
_AppWidgetFrame::CreateLayer(void)
{
unique_ptr<_AppWidgetLayer> pLayer(new (std::nothrow) _AppWidgetLayer(__appwidgetSize));
- SysTryReturn(NID_UI_CTRL, pLayer, E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryReturn(NID_SHELL, pLayer, E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
result r = pLayer->Construct();
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
__pAppWidgetLayer = pLayer.release();
__pAppWidgetFrameRootVisualElement = __pAppWidgetLayer->GetRootVisualElement();
_AppWidgetFrame::OnActivated(void)
{
result r = SetLayerShowState(true);
- SysTryReturnVoidResult(NID_UI_CTRL, r == E_SUCCESS, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturnVoidResult(NID_SHELL, r == E_SUCCESS, r, "[%s] Propagating.", GetErrorMessage(r));
}
void
{
unique_ptr<_AppWidgetFrame> pCore(_AppWidgetFrame::CreateAppWidgetFrameN());
result r = GetLastResult();
- SysTryReturn(NID_UI_CTRL, pCore, null, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, pCore, null, r, "[%s] Propagating.", GetErrorMessage(r));
unique_ptr<_AppWidgetFrameImpl> pImpl(new (std::nothrow) _AppWidgetFrameImpl(&appwidgetFrame, pCore.get(), pPortraitLayout, pLandscapeLayout));
- SysTryReturn(NID_UI_CTRL, pImpl, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryReturn(NID_SHELL, pImpl, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
pCore.release();
r = GetLastResult();
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, null, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, null, r, "[%s] Propagating.", GetErrorMessage(r));
return pImpl.release();
}
_AppWidgetFrameImpl::Initialize(const FloatDimension& size)
{
result r = GetCore().Initialize(size);
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
return r;
}
_AppWidgetFrameImpl::SetProviderId(const String& providerId)
{
result r = GetCore().SetProviderId(providerId);
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
return r;
}
AllocRenderBuffer(void* pData, int size)
{
_AppWidgetLayer* pAppWidgetLayer = static_cast<_AppWidgetLayer*>(pData);
- SysTryReturn(NID_UI_CTRL, pAppWidgetLayer, null, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
+ SysTryReturn(NID_SHELL, pAppWidgetLayer, null, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
return pAppWidgetLayer->AllocCanvas(size);
}
void
FreeRenderBuffer(void* pData, void* pCanvas)
{
- SysTryReturnVoidResult(NID_UI_CTRL, pCanvas, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
+ SysTryReturnVoidResult(NID_SHELL, pCanvas, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
_AppWidgetLayer* pAppWidgetLayer = static_cast<_AppWidgetLayer*>(pData);
- SysTryReturnVoidResult(NID_UI_CTRL, pAppWidgetLayer, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
+ SysTryReturnVoidResult(NID_SHELL, pAppWidgetLayer, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
pAppWidgetLayer->FreeCanvas(pCanvas);
}
PostRender(void* pData, Evas* pEvas, void* pEventInfo)
{
_AppWidgetLayer* pAppWidgetLayer = static_cast<_AppWidgetLayer*>(pData);
- SysTryReturnVoidResult(NID_UI_CTRL, pAppWidgetLayer, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
+ SysTryReturnVoidResult(NID_SHELL, pAppWidgetLayer, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
pAppWidgetLayer->OnRendered();
}
result r = E_SUCCESS;
unique_ptr<Ecore_Evas, _EcoreEvasDeleter> pEcoreEvas(ecore_evas_buffer_allocfunc_new(__size.width, __size.height, AllocRenderBuffer, FreeRenderBuffer, this));
- SysTryReturn(NID_UI_CTRL, pEcoreEvas, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryReturn(NID_SHELL, pEcoreEvas, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
ecore_evas_alpha_set(pEcoreEvas.get(), EINA_TRUE);
ecore_evas_manual_render_set(pEcoreEvas.get(), EINA_FALSE);
ecore_evas_activate(pEcoreEvas.get());
Evas* pEvas = ecore_evas_get(pEcoreEvas.get());
- SysTryReturn(NID_UI_CTRL, pEvas, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryReturn(NID_SHELL, pEvas, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
evas_event_callback_add(pEvas, EVAS_CALLBACK_RENDER_POST, PostRender, this);
unique_ptr<Evas_Object, _EvasObjectDeleter> pEvasObject(evas_object_rectangle_add(pEvas));
- SysTryReturn(NID_UI_CTRL, pEvasObject, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryReturn(NID_SHELL, pEvasObject, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
evas_object_resize(pEvasObject.get(), __size.width, __size.height);
evas_object_color_set(pEvasObject.get(), 0, 0, 0, 255);
r = Initialize(pEvasObject.get());
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, null, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, null, r, "[%s] Propagating.", GetErrorMessage(r));
__pEcoreEvas = move(pEcoreEvas);
__pEvasObject = move(pEvasObject);
__providerId = providerId;
__pixmapId = AcquirePixmap();
- SysTryReturn(NID_UI_CTRL, __pixmapId != -1, E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryReturn(NID_SHELL, __pixmapId != -1, E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
- SysLog(NID_UI_CTRL, "pixmapId (%d)", __pixmapId);
+ SysLog(NID_SHELL, "pixmapId (%d)", __pixmapId);
result r = RegisterTouchEventListener();
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
return r;
}
void*
_AppWidgetLayer::AllocCanvas(int size)
{
- SysTryReturn(NID_UI_CTRL, size > 0, null, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
+ SysTryReturn(NID_SHELL, size > 0, null, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
__bufferSize = size;
void* pBuffer = malloc(__bufferSize);
- SysTryReturn(NID_UI_CTRL, pBuffer, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryReturn(NID_SHELL, pBuffer, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
__pRenderBuffer = pBuffer;
- SysLog(NID_UI_CTRL, "buffer (0x%x) size (%d)", pBuffer, __bufferSize);
+ SysLog(NID_SHELL, "buffer (0x%x) size (%d)", pBuffer, __bufferSize);
__isReleased = false;
result
_AppWidgetLayer::SyncPixmap(const FloatDimension& size)
{
- SysTryReturn(NID_UI_CTRL, __pRenderBuffer, E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryReturn(NID_SHELL, __pRenderBuffer, E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
- SysLog(NID_UI_CTRL, "buffer (0x%x) size (%d) pixmapId (%d) width(%f) height(%f)", __pRenderBuffer, __bufferSize, __pixmapId, size.width, size.height);
+ SysLog(NID_SHELL, "buffer (0x%x) size (%d) pixmapId (%d) width(%f) height(%f)", __pRenderBuffer, __bufferSize, __pixmapId, size.width, size.height);
Display* pDisplay = static_cast<Display*>(ecore_x_display_get());
- SysTryReturn(NID_UI_CTRL, pDisplay, E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryReturn(NID_SHELL, pDisplay, E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
result r = E_SUCCESS;
XShmSegmentInfo xShmSegmentInfo;
Visual* pVisual = null;
xShmSegmentInfo.shmid = shmget(IPC_PRIVATE, __bufferSize, IPC_CREAT | 0666);
- SysTryReturn(NID_UI_CTRL, xShmSegmentInfo.shmid >= 0, E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryReturn(NID_SHELL, xShmSegmentInfo.shmid >= 0, E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
xShmSegmentInfo.readOnly = False;
xShmSegmentInfo.shmaddr = static_cast<char*>(shmat(xShmSegmentInfo.shmid, null, 0));
- SysTryCatch(NID_UI_CTRL, xShmSegmentInfo.shmaddr != (void *)-1, , E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryCatch(NID_SHELL, xShmSegmentInfo.shmaddr != (void *)-1, , E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
pScreen = DefaultScreenOfDisplay(pDisplay);
- SysTryCatch(NID_UI_CTRL, pScreen, , E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryCatch(NID_SHELL, pScreen, , E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
pVisual = DefaultVisualOfScreen(pScreen);
- SysTryCatch(NID_UI_CTRL, pVisual, , E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryCatch(NID_SHELL, pVisual, , E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
pXImage = XShmCreateImage(pDisplay, pVisual, 32, ZPixmap, null, &xShmSegmentInfo, size.width, size.height);
- SysTryCatch(NID_UI_CTRL, pXImage, , E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryCatch(NID_SHELL, pXImage, , E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
pXImage->data = xShmSegmentInfo.shmaddr;
XShmAttach(pDisplay, &xShmSegmentInfo);
XSync(pDisplay, False);
gc = XCreateGC(pDisplay, static_cast<Pixmap>(__pixmapId), 0, null);
- SysTryCatch(NID_UI_CTRL, gc, , E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryCatch(NID_SHELL, gc, , E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
memcpy(pXImage->data, __pRenderBuffer, __bufferSize);
{
fwrite(__pRenderBuffer, __bufferSize, 1, pFile);
fclose(pFile);
- SysLog(NID_UI_CTRL, "_BUFFER_TEST: buffer (0x%x) size (%d) pixmapId (%d) width(%f) height(%f)", __pRenderBuffer, __bufferSize, __pixmapId, size.width, size.height);
+ SysLog(NID_SHELL, "_BUFFER_TEST: buffer (0x%x) size (%d) pixmapId (%d) width(%f) height(%f)", __pRenderBuffer, __bufferSize, __pixmapId, size.width, size.height);
}
else
{
- SysLog(NID_UI_CTRL, "File open failed: (%s) buffer (0x%x) size (%d) pixmapId (%d)", strerror(errno), __pRenderBuffer, __bufferSize, __pixmapId);
+ SysLog(NID_SHELL, "File open failed: (%s) buffer (0x%x) size (%d) pixmapId (%d)", strerror(errno), __pRenderBuffer, __bufferSize, __pixmapId);
}
}
#endif // _BUFFER_TEST
{
if (!__rendered)
{
- SysLog(NID_UI_CTRL, "do not sync");
+ SysLog(NID_SHELL, "do not sync");
return;
}
if (__pixmapId == -1)
{
__pixmapId = AcquirePixmap();
- SysTryReturnVoidResult(NID_UI_CTRL, __pixmapId >= 0, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryReturnVoidResult(NID_SHELL, __pixmapId >= 0, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
}
result r = SyncPixmap(__size);
- SysTryReturnVoidResult(NID_UI_CTRL, r == E_SUCCESS, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturnVoidResult(NID_SHELL, r == E_SUCCESS, r, "[%s] Propagating.", GetErrorMessage(r));
r = Sync(__size);
- SysTryReturnVoidResult(NID_UI_CTRL, r == E_SUCCESS, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturnVoidResult(NID_SHELL, r == E_SUCCESS, r, "[%s] Propagating.", GetErrorMessage(r));
}
result
_AppWidgetLayer::RegisterTouchEventListener(void)
{
result r = _AppWidgetProviderManagerImpl::GetInstance()->SetAppWidgetTouchEventListener(__providerId, *this);
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
return r;
}
int
_AppWidgetLayer::AcquirePixmap(void)
{
- SysTryReturn(NID_UI_CTRL, !__providerId.IsEmpty(), -1, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
+ SysTryReturn(NID_SHELL, !__providerId.IsEmpty(), -1, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
int pixmapId = -1;
result r = _AppWidgetProviderManagerImpl::GetInstance()->RequestSharedMemoryId(__providerId, __size.width, __size.height, pixmapId);
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, -1, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, -1, r, "[%s] Propagating.", GetErrorMessage(r));
- SysLog(NID_UI_CTRL, "pixmapId(%d) size(%f %f)", pixmapId, __size.width, __size.height);
+ SysLog(NID_SHELL, "pixmapId(%d) size(%f %f)", pixmapId, __size.width, __size.height);
return pixmapId;
}
result
_AppWidgetLayer::Sync(const FloatDimension& size)
{
- SysTryReturn(NID_UI_CTRL, !__providerId.IsEmpty(), E_INVALID_ARG, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
+ SysTryReturn(NID_SHELL, !__providerId.IsEmpty(), E_INVALID_ARG, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
result r = _AppWidgetProviderManagerImpl::GetInstance()->RequestSyncSharedMemory(__providerId, size.width, size.height);
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
return r;
}
void
_AppWidgetLayer::ReleasePixmap(void)
{
- SysTryReturnVoidResult(NID_UI_CTRL, !__providerId.IsEmpty(), E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
+ SysTryReturnVoidResult(NID_SHELL, !__providerId.IsEmpty(), E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
_AppWidgetProviderManagerImpl::GetInstance()->RequestReleaseSharedMemory(__providerId);
}
int
_AppWidgetLayer::OnTouchEventRecevied(int eventType, double timestamp, double x, double y)
{
- SysLog(NID_UI_CTRL, "eventType (%d) timestamp (%f) (%f, %f)", eventType, timestamp, x, y);
+ SysLog(NID_SHELL, "eventType (%d) timestamp (%f) (%f, %f)", eventType, timestamp, x, y);
int xPos = __size.width * x;
int yPos = __size.height * y;
Evas* pEvas = ecore_evas_get(__pEcoreEvas.get());
- SysTryReturn(NID_UI_CTRL, pEvas, 0, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryReturn(NID_SHELL, pEvas, 0, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
switch (eventType)
{
_AppWidgetPopupLayer::RegisterTouchEventListener(void)
{
result r = _AppWidgetProviderManagerImpl::GetInstance()->SetAppWidgetPopupEventListener(*this);
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
return r;
}
{
long long ticks = 0;
SystemTime::GetTicks(ticks);
- SysLog(NID_UI_CTRL, "%lld", ticks);
+ SysLog(NID_SHELL, "%lld", ticks);
int pixmapId = -1;
result r = _AppWidgetProviderManagerImpl::GetInstance()->RequestSharedMemoryIdForPD(GetProviderId(), __size.width, __size.height, pixmapId);
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, -1, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, -1, r, "[%s] Propagating.", GetErrorMessage(r));
SystemTime::GetTicks(ticks);
- SysLog(NID_UI_CTRL, "%lld", ticks);
+ SysLog(NID_SHELL, "%lld", ticks);
- SysLog(NID_UI_CTRL, "pixmapId(%d) size(%f %f)", pixmapId, __size.width, __size.height);
+ SysLog(NID_SHELL, "pixmapId(%d) size(%f %f)", pixmapId, __size.width, __size.height);
return pixmapId;
}
_AppWidgetPopupLayer::Sync(const FloatDimension& size)
{
result r = _AppWidgetProviderManagerImpl::GetInstance()->RequestSyncSharedMemoryForPD(GetProviderId());
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
return r;
}
, __pAppWidgetPopupRootVisualElement(null)
, __pEventManager(null)
{
- SysTryReturnVoidResult(NID_UI_CTRL, __pAppWidgetPopupPresenter, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryReturnVoidResult(NID_SHELL, __pAppWidgetPopupPresenter, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
_UiEventManager* pEventManager = _UiEventManager::GetInstance();
- SysTryReturnVoidResult(NID_UI_CTRL, pEventManager, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryReturnVoidResult(NID_SHELL, pEventManager, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
__pEventManager = pEventManager->GetEventManager();
- SysTryReturnVoidResult(NID_UI_CTRL, __pEventManager, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryReturnVoidResult(NID_SHELL, __pEventManager, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
}
_AppWidgetPopup::~_AppWidgetPopup(void)
_AppWidgetPopup::CreateAppWidgetPopupN(void)
{
unique_ptr<_AppWidgetPopup> pAppWidgetPopup(new (std::nothrow) _AppWidgetPopup());
- SysTryReturn(NID_UI_CTRL, pAppWidgetPopup, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryReturn(NID_SHELL, pAppWidgetPopup, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
result r = GetLastResult();
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, null, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, null, r, "[%s] Propagating.", GetErrorMessage(r));
pAppWidgetPopup->AcquireHandle();
long long ticks = 0;
SystemTime::GetTicks(ticks);
- SysLog(NID_UI_CTRL, "(%d %d) %lld", size.width, size.height, ticks);
+ SysLog(NID_SHELL, "(%d %d) %lld", size.width, size.height, ticks);
result r = E_SUCCESS;
SetSystemWindow(true);
r = CreateRootVisualElement();
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
FloatRectangle bounds(0.0f, 0.0f, size.width, size.height);
r = SetBounds(bounds);
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
r = __pAppWidgetPopupPresenter->Initialize();
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
__pAppWidgetPopupLayer->SetLayerBounds(bounds);
__pAppWidgetPopupLayer->SetShowState(false);
__pEventManager->RegisterTouchEventHandler(*this);
r = GetLastResult();
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
return r;
}
__pAppWidgetPopupPresenter->SetProviderId(providerId);
result r = __pAppWidgetPopupLayer->SetProviderId(providerId);
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
return r;
}
{
Canvas* pCanvas = GetCanvasN(GetClientBoundsF());
result r = GetLastResult();
- SysTryReturn(NID_UI_CTRL, pCanvas, null, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, pCanvas, null, r, "[%s] Propagating.", GetErrorMessage(r));
return pCanvas;
}
if (__pAppWidgetPopupRootVisualElement)
{
_AppWidgetPopupLayer* pLayer = dynamic_cast<_AppWidgetPopupLayer*>(__pAppWidgetPopupRootVisualElement->GetNativeLayer());
- SysTryReturn(NID_UI_CTRL, pLayer, E_SYSTEM, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
+ SysTryReturn(NID_SHELL, pLayer, E_SYSTEM, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
r = pLayer->SetShowState(showState);
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
__pAppWidgetPopupRootVisualElement->SetShowState(showState);
}
{
_AppWidgetPopupLayer* pLayer = dynamic_cast<_AppWidgetPopupLayer*>(__pAppWidgetPopupRootVisualElement->GetNativeLayer());
r = GetLastResult();
- SysTryReturn(NID_UI_CTRL, pLayer, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, pLayer, r, r, "[%s] Propagating.", GetErrorMessage(r));
pLayer->SetLayerBounds(bounds);
__pAppWidgetPopupRootVisualElement->SetBounds(bounds);
FloatRectangle clientBounds(bounds.x + leftMargin, bounds.y + topMargin, bounds.width - leftMargin - rightMargin, bounds.height - topMargin - bottomMargin);
- SysLog(NID_UI_CTRL, "[%d %d %d %d]", clientBounds.x, clientBounds.y, clientBounds.width, clientBounds.height);
+ SysLog(NID_SHELL, "[%d %d %d %d]", clientBounds.x, clientBounds.y, clientBounds.width, clientBounds.height);
return clientBounds;
}
_AppWidgetPopup::CreateLayer(void)
{
unique_ptr<_AppWidgetPopupLayer> pLayer(new (std::nothrow) _AppWidgetPopupLayer(__appwidgetSize));
- SysTryReturn(NID_UI_CTRL, pLayer, E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryReturn(NID_SHELL, pLayer, E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
result r = pLayer->Construct();
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
__pAppWidgetPopupLayer = pLayer.release();
__pAppWidgetPopupRootVisualElement = __pAppWidgetPopupLayer->GetRootVisualElement();
_AppWidgetPopup::OnActivated(void)
{
result r = SetLayerShowState(true);
- SysTryReturnVoidResult(NID_UI_CTRL, r == E_SUCCESS, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturnVoidResult(NID_SHELL, r == E_SUCCESS, r, "[%s] Propagating.", GetErrorMessage(r));
}
void
{
unique_ptr<_AppWidgetPopup> pCore(_AppWidgetPopup::CreateAppWidgetPopupN());
result r = GetLastResult();
- SysTryReturn(NID_UI_CTRL, pCore, null, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, pCore, null, r, "[%s] Propagating.", GetErrorMessage(r));
unique_ptr<_AppWidgetPopupImpl> pImpl(new (std::nothrow) _AppWidgetPopupImpl(&appwidgetPopup, pCore.get(), pPortraitLayout, pLandscapeLayout));
- SysTryReturn(NID_UI_CTRL, pImpl, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryReturn(NID_SHELL, pImpl, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
pCore.release();
r = GetLastResult();
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, null, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, null, r, "[%s] Propagating.", GetErrorMessage(r));
return pImpl.release();
}
_AppWidgetPopupImpl::Initialize(const FloatDimension& size)
{
result r = GetCore().Initialize(size);
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
return r;
}
_AppWidgetPopupImpl::SetProviderId(const String& providerId)
{
result r = GetCore().SetProviderId(providerId);
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
return r;
}
Bitmap* pBitmap = null;
result r = GET_BITMAP_CONFIG_N(LIVEBOX::POPUP_BG, BITMAP_PIXEL_FORMAT_ARGB8888, pBitmap);
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
std::unique_ptr<Bitmap> pBackgroundBitmap(pBitmap);
r = GET_BITMAP_CONFIG_N(LIVEBOX::POPUP_BG_ARROW_UP, BITMAP_PIXEL_FORMAT_ARGB8888, pBitmap);
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
std::unique_ptr<Bitmap> pArrowUpBitmap(pBitmap);
r = GET_BITMAP_CONFIG_N(LIVEBOX::POPUP_BG_ARROW_DOWN, BITMAP_PIXEL_FORMAT_ARGB8888, pBitmap);
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
__pBackgroundBitmap = move(pBackgroundBitmap);
__pArrowUpBitmap = move(pArrowUpBitmap);
_AppWidgetPopupPresenter::Draw(void)
{
unique_ptr<Canvas> pCanvas(__pAppWidgetPopup->GetCanvasN());
- SysTryReturnVoidResult(NID_UI_CTRL, pCanvas, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryReturnVoidResult(NID_SHELL, pCanvas, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
DrawBackground(*pCanvas);
DrawAnchor(*pCanvas);
_AppWidgetPopupView*
_AppWidgetPopupView::CreateAppWidgetPopupN(_AppWidgetView& appwidgetView)
{
- SysTryReturn(NID_UI_CTRL, livebox_has_pd(appwidgetView.__pAppWidget), null, E_SYSTEM, "[E_SYSTEM] A system error occured.");
+ SysTryReturn(NID_SHELL, livebox_has_pd(appwidgetView.__pAppWidget), null, E_SYSTEM, "[E_SYSTEM] A system error occured.");
unique_ptr<_AppWidgetPopupView> pAppWidgetPopup(new (std::nothrow) _AppWidgetPopupView(appwidgetView));
- SysTryReturn(NID_UI_CTRL, pAppWidgetPopup, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryReturn(NID_SHELL, pAppWidgetPopup, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
result r = GetLastResult();
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, null, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, null, r, "[%s] Propagating.", GetErrorMessage(r));
r = pAppWidgetPopup->CreateRootVisualElement();
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, null, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, null, r, "[%s] Propagating.", GetErrorMessage(r));
pAppWidgetPopup->AcquireHandle();
y = 1.0f;
}
- SysLog(NID_UI_CTRL, "[%f %f %f %f]", bounds.x, bounds.y, bounds.width, bounds.height);
- SysLog(NID_UI_CTRL, "[%f %f %f %f]", viewAbsoluteBounds.x, viewAbsoluteBounds.y, viewAbsoluteBounds.width, viewAbsoluteBounds.height);
- SysLog(NID_UI_CTRL, "[%f %f]", x, y);
+ SysLog(NID_SHELL, "[%f %f %f %f]", bounds.x, bounds.y, bounds.width, bounds.height);
+ SysLog(NID_SHELL, "[%f %f %f %f]", viewAbsoluteBounds.x, viewAbsoluteBounds.y, viewAbsoluteBounds.width, viewAbsoluteBounds.height);
+ SysLog(NID_SHELL, "[%f %f]", x, y);
int ret = livebox_create_pd_with_position(__pAppWidgetView->__pAppWidget, x, y, OnAppWidgetPopupCreated, this);
- SysTryReturn(NID_UI_CTRL, ret == 0, E_SYSTEM, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
+ SysTryReturn(NID_SHELL, ret == 0, E_SYSTEM, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
result r = SetBounds(bounds);
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
SetBackgroundColor(Color(0, 0, 0, 0));
_AppWidgetPopupView::AddAppWidgetPopupEventListener(const _IAppWidgetPopupViewEventListener& listener)
{
result r = __pAppWidgetPopupViewEvent->AddListener(listener);
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
return r;
}
_AppWidgetPopupView::RemoveAppWidgetPopupEventListener(const _IAppWidgetPopupViewEventListener& listener)
{
result r = __pAppWidgetPopupViewEvent->RemoveListener(listener);
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
return r;
}
SetBounds(popupBounds);
- SysLog(NID_UI_CTRL, "[%f %f %f %f]", popupBounds.x, popupBounds.y, popupBounds.width, popupBounds.height);
+ SysLog(NID_SHELL, "[%f %f %f %f]", popupBounds.x, popupBounds.y, popupBounds.width, popupBounds.height);
}
void
{
IEventArg* pEventArg = _AppWidgetPopupViewEvent::CreateAppWidgetPopupViewEventArgN(open);
result r = GetLastResult();
- SysTryReturnVoidResult(NID_UI_CTRL, pEventArg != null, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturnVoidResult(NID_SHELL, pEventArg != null, r, "[%s] Propagating.", GetErrorMessage(r));
__pAppWidgetPopupViewEvent->Fire(*pEventArg);
}
_VisualElement* pVisualElement = GetVisualElement();
result r = GetLastResult();
- SysTryReturnVoidResult(NID_UI_CTRL, pVisualElement, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturnVoidResult(NID_SHELL, pVisualElement, r, "[%s] Propagating.", GetErrorMessage(r));
VisualElementAnimationGroup animationGroup;
if (__pPixmapObject)
{
_VisualElement* pVisualElement = GetVisualElement();
- SysTryReturn(NID_UI_CTRL, pVisualElement, E_SYSTEM, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
+ SysTryReturn(NID_SHELL, pVisualElement, E_SYSTEM, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
_EflNode* pEflNode = dynamic_cast<_EflNode*>(pVisualElement->GetNativeNode());
- SysTryReturn(NID_UI_CTRL, pEflNode, E_SYSTEM, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
+ SysTryReturn(NID_SHELL, pEflNode, E_SYSTEM, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
Evas_Object* pSmartObject = (Evas_Object*)pEflNode->GetGroupContainer();
- SysTryReturn(NID_UI_CTRL, pSmartObject, E_SYSTEM, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
+ SysTryReturn(NID_SHELL, pSmartObject, E_SYSTEM, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
Evas* pEvas = evas_object_evas_get(pSmartObject);
- SysTryReturn(NID_UI_CTRL, pEvas, E_SYSTEM, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
+ SysTryReturn(NID_SHELL, pEvas, E_SYSTEM, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
pEflNode->AddNativeSmartObject(*pVisualElement, __pPixmapObject.get());
{
if (keyName == CLOSE_ANIMATION)
{
- SysLog(NID_UI_CTRL, "Close AppWidgetPopup");
+ SysLog(NID_SHELL, "Close AppWidgetPopup");
Close();
FireAppWidgetPopupEvent(false);
}
long long ticks = 0;
SystemTime::GetTicks(ticks);
- SysLog(NID_UI_CTRL, "(%f %f) %lld", size.width, size.height, ticks);
+ SysLog(NID_SHELL, "(%f %f) %lld", size.width, size.height, ticks);
if (size != GetSizeF())
{
int height = 0;
ecore_x_pixmap_geometry_get(pixmap, &x, &y, &width, &height);
- SysTryReturnVoidResult(NID_UI_CTRL, (width > 0) && (height > 0), E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid [0x%x %d %d].", pixmap, width , height);
+ SysTryReturnVoidResult(NID_SHELL, (width > 0) && (height > 0), E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid [0x%x %d %d].", pixmap, width , height);
if (__pixmap != pixmap )
{
_VisualElement* pVisualElement = GetVisualElement();
// _VisualElement* pVisualElement = __pAppWidgetView->GetVisualElement();
- SysTryReturnVoidResult(NID_UI_CTRL, pVisualElement, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
+ SysTryReturnVoidResult(NID_SHELL, pVisualElement, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
_EflNode* pEflNode = dynamic_cast<_EflNode*>(pVisualElement->GetNativeNode());
- SysTryReturnVoidResult(NID_UI_CTRL, pEflNode, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
+ SysTryReturnVoidResult(NID_SHELL, pEflNode, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
Evas_Object* pSmartObject = (Evas_Object*)pEflNode->GetGroupContainer();
- SysTryReturnVoidResult(NID_UI_CTRL, pSmartObject, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
+ SysTryReturnVoidResult(NID_SHELL, pSmartObject, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
Evas* pEvas = evas_object_evas_get(pSmartObject);
- SysTryReturnVoidResult(NID_UI_CTRL, pEvas, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
+ SysTryReturnVoidResult(NID_SHELL, pEvas, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
__pPixmapObject.reset(evas_object_image_filled_add(pEvas));
- SysTryReturnVoidResult(NID_UI_CTRL, __pPixmapObject.get(), E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryReturnVoidResult(NID_SHELL, __pPixmapObject.get(), E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
pEflNode->AddNativeSmartObject(*pVisualElement, __pPixmapObject.get());
evas_object_image_native_surface_set(__pPixmapObject.get(), &surface);
/*__pixmapDamage.reset(ecore_x_damage_new(pixmap, ECORE_X_DAMAGE_REPORT_RAW_RECTANGLES));
- SysTryReturnVoidResult(NID_UI_CTRL, __pixmapDamage.get() != 0, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryReturnVoidResult(NID_SHELL, __pixmapDamage.get() != 0, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
__pPixmapEventHandler.reset(ecore_event_handler_add(ECORE_X_EVENT_DAMAGE_NOTIFY, OnPixmapDamaged, (void*)this));
- SysTryReturnVoidResult(NID_UI_CTRL, __pPixmapEventHandler, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");*/
+ SysTryReturnVoidResult(NID_SHELL, __pPixmapEventHandler, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");*/
- SysLog(NID_UI_CTRL, "[0x%x]", surface.data.x11.pixmap);
+ SysLog(NID_SHELL, "[0x%x]", surface.data.x11.pixmap);
}
- SysLog(NID_UI_CTRL, "[%d %d %d %d]", x, y, width, height);
+ SysLog(NID_SHELL, "[%d %d %d %d]", x, y, width, height);
evas_object_image_size_set(__pPixmapObject.get(), width, height);
evas_object_image_pixels_dirty_set(__pPixmapObject.get(), EINA_TRUE);
void
_AppWidgetPopupView::OnAppWidgetPopupCreated(struct livebox *pAppWidget, int ret, void* pData)
{
- SysTryReturnVoidResult(NID_UI_CTRL, pAppWidget, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
- SysTryReturnVoidResult(NID_UI_CTRL, ret == 0, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
+ SysTryReturnVoidResult(NID_SHELL, pAppWidget, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
+ SysTryReturnVoidResult(NID_SHELL, ret == 0, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
_AppWidgetPopupView* pAppWidgetViewManager = static_cast<_AppWidgetPopupView*>(pData);
- SysTryReturnVoidResult(NID_UI_CTRL, pAppWidgetViewManager, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
+ SysTryReturnVoidResult(NID_SHELL, pAppWidgetViewManager, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
}
void
_AppWidgetPopupView::OnAppWidgetPopupDestroyed(struct livebox *pAppWidget, int ret, void* pData)
{
- SysTryReturnVoidResult(NID_UI_CTRL, pAppWidget, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
- SysTryReturnVoidResult(NID_UI_CTRL, ret == 0, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
+ SysTryReturnVoidResult(NID_SHELL, pAppWidget, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
+ SysTryReturnVoidResult(NID_SHELL, ret == 0, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
_AppWidgetPopupView* pAppWidgetViewManager = static_cast<_AppWidgetPopupView*>(pData);
- SysTryReturnVoidResult(NID_UI_CTRL, pAppWidgetViewManager, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
+ SysTryReturnVoidResult(NID_SHELL, pAppWidgetViewManager, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
}
Eina_Bool
_AppWidgetPopupView::OnPixmapDamaged(void* pData, int type, void* pEvent)
{
_AppWidgetPopupView* pPopupView = static_cast<_AppWidgetPopupView*>(pData);
- SysTryReturn(NID_UI_CTRL, pPopupView != null, ECORE_CALLBACK_PASS_ON, E_INVALID_ARG, "[[E_INVALID_ARG] The argument is invalid.");
+ SysTryReturn(NID_SHELL, pPopupView != null, ECORE_CALLBACK_PASS_ON, E_INVALID_ARG, "[[E_INVALID_ARG] The argument is invalid.");
Ecore_X_Event_Damage* pDamageEvent = static_cast<Ecore_X_Event_Damage*>(pEvent);
- SysTryReturn(NID_UI_CTRL, pDamageEvent != null, ECORE_CALLBACK_PASS_ON, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
+ SysTryReturn(NID_SHELL, pDamageEvent != null, ECORE_CALLBACK_PASS_ON, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
unsigned int pixmap = static_cast<unsigned int>(pPopupView->__pixmap);
- SysTryReturn(NID_UI_CTRL, pDamageEvent->drawable == pixmap, ECORE_CALLBACK_PASS_ON, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid [%d %d].", pDamageEvent->drawable, pixmap);
+ SysTryReturn(NID_SHELL, pDamageEvent->drawable == pixmap, ECORE_CALLBACK_PASS_ON, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid [%d %d].", pDamageEvent->drawable, pixmap);
int x = 0;
int y = 0;
int height = 0;
ecore_x_pixmap_geometry_get(pixmap, &x, &y, &width, &height);
- SysTryReturn(NID_UI_CTRL, (width > 0) && (height > 0), ECORE_CALLBACK_PASS_ON, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid [0x%x %d %d].", pixmap, width , height);
+ SysTryReturn(NID_SHELL, (width > 0) && (height > 0), ECORE_CALLBACK_PASS_ON, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid [0x%x %d %d].", pixmap, width , height);
Evas_Object* pPixmapObject = pPopupView->__pPixmapObject.get();
- SysTryReturn(NID_UI_CTRL, pPixmapObject, ECORE_CALLBACK_PASS_ON, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
+ SysTryReturn(NID_SHELL, pPixmapObject, ECORE_CALLBACK_PASS_ON, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
evas_object_image_pixels_dirty_set(pPixmapObject, EINA_TRUE);
evas_object_image_fill_set(pPixmapObject, 0, 0, width, height);
evas_object_image_data_update_add(pPixmapObject, 0, 0, width, height);
- SysLog(NID_UI_CTRL, "[%d %d %d]", pixmap, width, height);
+ SysLog(NID_SHELL, "[%d %d %d]", pixmap, width, height);
return ECORE_CALLBACK_DONE;
}
: __pSource(null)
{
result r = _Event::Initialize();
- SysTryReturnVoidResult(NID_UI_CTRL, r == E_SUCCESS, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturnVoidResult(NID_SHELL, r == E_SUCCESS, r, "[%s] Propagating.", GetErrorMessage(r));
__pSource = &source;
SetLastResult(E_SUCCESS);
_AppWidgetPopupViewEvent::CreateInstanceN(const _Control& source)
{
_AppWidgetPopupViewEvent* pAppWidgetPopupEvent = new (std::nothrow) _AppWidgetPopupViewEvent(source);
- SysTryReturn(NID_UI_CTRL, pAppWidgetPopupEvent, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory shortage.");
+ SysTryReturn(NID_SHELL, pAppWidgetPopupEvent, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory shortage.");
return pAppWidgetPopupEvent;
}
_AppWidgetPopupViewEvent::FireImpl(IEventListener& pListener, const IEventArg& arg)
{
_IAppWidgetPopupViewEventListener* pAppWidgetPopupViewEventListener = dynamic_cast<_IAppWidgetPopupViewEventListener*>(&pListener);
- SysTryReturnVoidResult(NID_UI_CTRL, pAppWidgetPopupViewEventListener, E_INVALID_ARG, "[E_INVALID_ARG] The invalid listener was given.\n");
+ SysTryReturnVoidResult(NID_SHELL, pAppWidgetPopupViewEventListener, E_INVALID_ARG, "[E_INVALID_ARG] The invalid listener was given.\n");
const _AppWidgetPopupEventArg* pAppWidgetPopupEventArg = dynamic_cast <const _AppWidgetPopupEventArg*>(&arg);
- SysTryReturnVoidResult(NID_UI_CTRL, pAppWidgetPopupEventArg, E_INVALID_ARG, "[E_INVALID_ARG] The invalid Event Argument was given.\n");
+ SysTryReturnVoidResult(NID_SHELL, pAppWidgetPopupEventArg, E_INVALID_ARG, "[E_INVALID_ARG] The invalid Event Argument was given.\n");
if ( pAppWidgetPopupEventArg->IsOpened() )
{
_AppWidgetPopupViewEvent::CreateAppWidgetPopupViewEventArgN(bool open)
{
_AppWidgetPopupEventArg* pEventArg = new (std::nothrow) _AppWidgetPopupEventArg(open);
- SysTryReturn(NID_UI_CTRL, pEventArg != null, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory shortage.");
+ SysTryReturn(NID_SHELL, pEventArg != null, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory shortage.");
return pEventArg;
}
_AppWidgetPopupViewPresenter::Draw(void)
{
Bitmap* pBitmap = __pAppWidgetPopupView->GetBitmap();
- SysTryReturnVoidResult(NID_UI_CTRL, pBitmap, E_SYSTEM, "Bitmap is invalid.");
+ SysTryReturnVoidResult(NID_SHELL, pBitmap, E_SYSTEM, "Bitmap is invalid.");
unique_ptr<Canvas> pCanvas(__pAppWidgetPopupView->GetCanvasN());
- SysTryReturnVoidResult(NID_UI_CTRL, pCanvas, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryReturnVoidResult(NID_SHELL, pCanvas, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
pCanvas->SetBackgroundColor(Color(0, 0, 0, 0));
pCanvas->Clear();
, __pAppWidgetViewEventListenerList(new (std::nothrow) LinkedListT<_IAppWidgetViewEventListener*>)
{
__pAppWidgetViewManager = _AppWidgetViewManager::GetInstance();
- SysTryReturnVoidResult(NID_UI_CTRL, __pAppWidgetViewManager, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
+ SysTryReturnVoidResult(NID_SHELL, __pAppWidgetViewManager, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
}
_AppWidgetView::~_AppWidgetView(void)
_AppWidgetView::CreateAppWidgetViewN(void)
{
unique_ptr<_AppWidgetView> pAppWidgetView(new (std::nothrow) _AppWidgetView());
- SysTryReturn(NID_UI_CTRL, pAppWidgetView, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryReturn(NID_SHELL, pAppWidgetView, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
result r = GetLastResult();
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, null, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, null, r, "[%s] Propagating.", GetErrorMessage(r));
pAppWidgetView->AcquireHandle();
result
_AppWidgetView::Initialize(const AppId& appId, const Tizen::Base::String& providerName, const Tizen::Graphics::FloatRectangle& rect, const String& userInfo)
{
- SysLog(NID_UI_CTRL, "appId [%ls]", appId.GetPointer());
- SysLog(NID_UI_CTRL, "providerName [%ls]", providerName.GetPointer());
- SysLog(NID_UI_CTRL, "[%d %d %d %d]", rect.x, rect.y, rect.width, rect.height);
- SysLog(NID_UI_CTRL, "userInfo [%ls]", userInfo.GetPointer());
+ SysLog(NID_SHELL, "appId [%ls]", appId.GetPointer());
+ SysLog(NID_SHELL, "providerName [%ls]", providerName.GetPointer());
+ SysLog(NID_SHELL, "[%d %d %d %d]", rect.x, rect.y, rect.width, rect.height);
+ SysLog(NID_SHELL, "userInfo [%ls]", userInfo.GetPointer());
result r = SetBounds(rect);
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
r = __pAppWidgetViewPresenter->Initialize(appId, providerName);
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
int width = 0;
int height = 0;
__pAppWidget = __pAppWidgetViewManager->AddAppWidgetView(this, userInfo);
r = GetLastResult();
- SysTryReturn(NID_UI_CTRL, __pAppWidget, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, __pAppWidget, r, r, "[%s] Propagating.", GetErrorMessage(r));
if (!IsTouchEventEnabled())
{
unique_ptr<_TouchFlickGestureDetector> pTouchFlickGestureDetector(new (std::nothrow) _TouchFlickGestureDetector());
- SysTryReturn(NID_UI_CTRL, pTouchFlickGestureDetector, E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryReturn(NID_SHELL, pTouchFlickGestureDetector, E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
pTouchFlickGestureDetector->SetDelayTouchEventEnabled(true);
pTouchFlickGestureDetector->SetCancelTouchEventOnSuccessEnabled(true);
r = AddGestureDetector(*pTouchFlickGestureDetector.get());
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
r = pTouchFlickGestureDetector->AddGestureListener(*this);
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
__pTouchFlickGestureDetector = move(pTouchFlickGestureDetector);
}
Bitmap* pResourceBitmap = null;
r = GET_BITMAP_CONFIG_N(LIVEBOX::POPUP_BG_ARROW_UP, BITMAP_PIXEL_FORMAT_ARGB8888, pResourceBitmap);
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
std::unique_ptr<Bitmap> pArrowUpBitmap(pResourceBitmap);
r = GET_BITMAP_CONFIG_N(LIVEBOX::POPUP_BG_ARROW_DOWN, BITMAP_PIXEL_FORMAT_ARGB8888, pResourceBitmap);
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
__pArrowUpBitmap = move(pArrowUpBitmap);
__pArrowDownBitmap.reset(pResourceBitmap);
{
AppWidgetProviderInfo* pProviderInfo = _AppWidgetManagerImpl::GetInstance()->GetAppWidgetProviderInfoN(GetAppId(), GetProviderName());
result r = GetLastResult();
- SysTryReturn(NID_UI_CTRL, pProviderInfo, null, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, pProviderInfo, null, r, "[%s] Propagating.", GetErrorMessage(r));
return pProviderInfo;
}
_AppWidgetView::AddAppWidgetViewEventListener(_IAppWidgetViewEventListener& listener)
{
bool exist = __pAppWidgetViewEventListenerList->Contains(&listener);
- SysTryReturn(NID_UI_CTRL, exist == false, E_OBJ_ALREADY_EXIST, E_OBJ_ALREADY_EXIST, "[%s] Propagating.", GetErrorMessage(E_OBJ_ALREADY_EXIST));
+ SysTryReturn(NID_SHELL, exist == false, E_OBJ_ALREADY_EXIST, E_OBJ_ALREADY_EXIST, "[%s] Propagating.", GetErrorMessage(E_OBJ_ALREADY_EXIST));
__pAppWidgetViewEventListenerList->Add(&listener);
_AppWidgetView::RemoveAppWidgetViewEventListener(_IAppWidgetViewEventListener& listener)
{
result r = __pAppWidgetViewEventListenerList->Remove(&listener);
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, E_OBJ_NOT_FOUND, E_OBJ_NOT_FOUND, "[%s] Propagating.", GetErrorMessage(E_OBJ_NOT_FOUND));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, E_OBJ_NOT_FOUND, E_OBJ_NOT_FOUND, "[%s] Propagating.", GetErrorMessage(E_OBJ_NOT_FOUND));
return E_SUCCESS;
}
const _Control* pParent = GetParent();
r = GetLastResult();
- SysTryReturn(NID_UI_CTRL, pParent, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, pParent, r, r, "[%s] Propagating.", GetErrorMessage(r));
FloatDimension size = __pAppWidgetViewManager->GetAppWidgetPopupSize(__pAppWidget);
FloatRectangle popupBounds(0, 0, size.width, size.height);
popupBounds.y = absoluteBounds.y + absoluteBounds.height - anchorSize.height;
}
- SysLog(NID_UI_CTRL, "[%d %d]", popupBounds.y, size.height);
+ SysLog(NID_SHELL, "[%d %d]", popupBounds.y, size.height);
if (!__pAppWidgetPopupView)
{
unique_ptr<_AppWidgetPopupView> pAppWidgetPopupView(_AppWidgetPopupView::CreateAppWidgetPopupN(*this));
r = GetLastResult();
- SysTryReturn(NID_UI_CTRL, pAppWidgetPopupView, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, pAppWidgetPopupView, r, r, "[%s] Propagating.", GetErrorMessage(r));
r = pAppWidgetPopupView->Initialize(popupBounds);
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
r = pAppWidgetPopupView->AddAppWidgetPopupEventListener(*this);
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
__pAppWidgetPopupView = move(pAppWidgetPopupView);
}
__pAppWidgetPopupView->SetOwner(this);
r = __pAppWidgetPopupView->Open();
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
return r;
}
_VisualElement* pVisualElement = GetVisualElement();
result r = GetLastResult();
- SysTryReturnVoidResult(NID_UI_CTRL, pVisualElement, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturnVoidResult(NID_SHELL, pVisualElement, r, "[%s] Propagating.", GetErrorMessage(r));
pVisualElement->AddAnimation(CLICK_ANIMATION, animation);
}
_VisualElement* pVisualElement = GetVisualElement();
result r = GetLastResult();
- SysTryReturnVoidResult(NID_UI_CTRL, pVisualElement, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturnVoidResult(NID_SHELL, pVisualElement, r, "[%s] Propagating.", GetErrorMessage(r));
FloatRectangle startBounds(pVisualElement->GetBounds());
FloatRectangle endBounds(startBounds);
{
const _Control* pParent = GetParent();
result r = GetLastResult();
- SysTryReturnVoidResult(NID_UI_CTRL, pParent, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturnVoidResult(NID_SHELL, pParent, r, "[%s] Propagating.", GetErrorMessage(r));
FloatRectangle parentClientBounds = pParent->GetClientBoundsF();
FloatRectangle viewBounds = GetBoundsF();
lower = viewBounds.y;
upper = parentClientBounds.height - viewBounds.y - viewBounds.height;
- SysLog(NID_UI_CTRL, "[%d %d]", lower, upper);
+ SysLog(NID_SHELL, "[%d %d]", lower, upper);
}
bool
int height = 0;
ecore_x_pixmap_geometry_get(pixmap, &x, &y, &width, &height);
- SysTryReturnVoidResult(NID_UI_CTRL, (width > 0) && (height > 0), E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid [0x%x %d %d].", pixmap, width , height);
+ SysTryReturnVoidResult(NID_SHELL, (width > 0) && (height > 0), E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid [0x%x %d %d].", pixmap, width , height);
if (__pixmap != pixmap )
{
SetBackgroundColor(Color(0, 0, 0, 0));
_VisualElement* pVisualElement = GetVisualElement();
- SysTryReturnVoidResult(NID_UI_CTRL, pVisualElement, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
+ SysTryReturnVoidResult(NID_SHELL, pVisualElement, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
_EflNode* pEflNode = dynamic_cast<_EflNode*>(pVisualElement->GetNativeNode());
- SysTryReturnVoidResult(NID_UI_CTRL, pEflNode, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
+ SysTryReturnVoidResult(NID_SHELL, pEflNode, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
Evas_Object* pSmartObject = (Evas_Object*)pEflNode->GetGroupContainer();
- SysTryReturnVoidResult(NID_UI_CTRL, pSmartObject, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
+ SysTryReturnVoidResult(NID_SHELL, pSmartObject, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
Evas* pEvas = evas_object_evas_get(pSmartObject);
- SysTryReturnVoidResult(NID_UI_CTRL, pEvas, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
+ SysTryReturnVoidResult(NID_SHELL, pEvas, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
__pPixmapObject.reset(evas_object_image_filled_add(pEvas));
- SysTryReturnVoidResult(NID_UI_CTRL, __pPixmapObject, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryReturnVoidResult(NID_SHELL, __pPixmapObject, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
pEflNode->AddNativeSmartObject(*pVisualElement, __pPixmapObject.get());
evas_object_image_native_surface_set(__pPixmapObject.get(), &surface);
/*
__pixmapDamage.reset(ecore_x_damage_new(pixmap, ECORE_X_DAMAGE_REPORT_RAW_RECTANGLES));
- SysTryReturnVoidResult(NID_UI_CTRL, __pixmapDamage.get() != 0, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryReturnVoidResult(NID_SHELL, __pixmapDamage.get() != 0, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
__pPixmapEventHandler.reset(ecore_event_handler_add(ECORE_X_EVENT_DAMAGE_NOTIFY, OnPixmapDamaged, (void*)this));
- SysTryReturnVoidResult(NID_UI_CTRL, __pPixmapEventHandler, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryReturnVoidResult(NID_SHELL, __pPixmapEventHandler, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
*/
- SysLog(NID_UI_CTRL, "[0x%x][%d %d]", surface.data.x11.pixmap, absoluteBounds.x, absoluteBounds.y);
+ SysLog(NID_SHELL, "[0x%x][%d %d]", surface.data.x11.pixmap, absoluteBounds.x, absoluteBounds.y);
}
- SysLog(NID_UI_CTRL, "[%d %d %d %d]", x, y, width, height);
+ SysLog(NID_SHELL, "[%d %d %d %d]", x, y, width, height);
evas_object_image_size_set(__pPixmapObject.get(), width, height);
evas_object_image_pixels_dirty_set(__pPixmapObject.get(), EINA_TRUE);
_AppWidgetView::OnPixmapDamaged(void* pData, int type, void* pEvent)
{
_AppWidgetView* pAppWidgetView = static_cast<_AppWidgetView*>(pData);
- SysTryReturn(NID_UI_CTRL, pAppWidgetView != null, ECORE_CALLBACK_PASS_ON, E_INVALID_ARG, "[[E_INVALID_ARG] The argument is invalid.");
+ SysTryReturn(NID_SHELL, pAppWidgetView != null, ECORE_CALLBACK_PASS_ON, E_INVALID_ARG, "[[E_INVALID_ARG] The argument is invalid.");
Ecore_X_Event_Damage* pDamageEvent = static_cast<Ecore_X_Event_Damage*>(pEvent);
- SysTryReturn(NID_UI_CTRL, pDamageEvent != null, ECORE_CALLBACK_PASS_ON, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
+ SysTryReturn(NID_SHELL, pDamageEvent != null, ECORE_CALLBACK_PASS_ON, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
unsigned int pixmap = static_cast<unsigned int>(pAppWidgetView->__pixmap);
- SysTryReturn(NID_UI_CTRL, pDamageEvent->drawable == pixmap, ECORE_CALLBACK_PASS_ON, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid [%d %d].", pDamageEvent->drawable, pixmap);
+ SysTryReturn(NID_SHELL, pDamageEvent->drawable == pixmap, ECORE_CALLBACK_PASS_ON, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid [%d %d].", pDamageEvent->drawable, pixmap);
int x = 0;
int y = 0;
int height = 0;
ecore_x_pixmap_geometry_get(pixmap, &x, &y, &width, &height);
- SysTryReturn(NID_UI_CTRL, (width > 0) && (height > 0), ECORE_CALLBACK_PASS_ON, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid [0x%x %d %d].", pixmap, width , height);
+ SysTryReturn(NID_SHELL, (width > 0) && (height > 0), ECORE_CALLBACK_PASS_ON, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid [0x%x %d %d].", pixmap, width , height);
Evas_Object* pPixmapObject = pAppWidgetView->__pPixmapObject.get();
- SysTryReturn(NID_UI_CTRL, pPixmapObject, ECORE_CALLBACK_PASS_ON, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
+ SysTryReturn(NID_SHELL, pPixmapObject, ECORE_CALLBACK_PASS_ON, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
evas_object_image_pixels_dirty_set(pPixmapObject, EINA_TRUE);
evas_object_image_fill_set(pPixmapObject, 0, 0, width, height);
evas_object_image_data_update_add(pPixmapObject, 0, 0, width, height);
- SysLog(NID_UI_CTRL, "[%d %d %d]", pixmap, width, height);
+ SysLog(NID_SHELL, "[%d %d %d]", pixmap, width, height);
return ECORE_CALLBACK_DONE;
}
{
unique_ptr<_AppWidgetView> pCore(_AppWidgetView::CreateAppWidgetViewN());
result r = GetLastResult();
- SysTryReturn(NID_UI_CTRL, pCore, null, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, pCore, null, r, "[%s] Propagating.", GetErrorMessage(r));
unique_ptr<_AppWidgetViewImpl> pImpl(new (std::nothrow) _AppWidgetViewImpl(&appWidgetView, pCore.get()));
- SysTryReturn(NID_UI_CTRL, pImpl, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryReturn(NID_SHELL, pImpl, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
pCore.release();
r = GetLastResult();
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, null, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, null, r, "[%s] Propagating.", GetErrorMessage(r));
return pImpl.release();
}
_AppWidgetViewImpl::Initialize(const AppId& appId, const Tizen::Base::String& providerName, const Tizen::Graphics::FloatRectangle& rect, const String& userInfo)
{
result r = GetCore().Initialize(appId, providerName, rect, userInfo);
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
r = GetCore().AddAppWidgetViewEventListener(*this);
{
AppWidgetProviderInfo* pProviderInfo = GetCore().GetAppWidgetProviderInfoN();
result r = GetLastResult();
- SysTryReturn(NID_UI_CTRL, pProviderInfo, null, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, pProviderInfo, null, r, "[%s] Propagating.", GetErrorMessage(r));
return pProviderInfo;
}
_AppWidgetViewImpl::AddAppWidgetViewEventListener(IAppWidgetViewEventListener& listener)
{
bool exist = __pAppWidgetViewEventListenerList->Contains(&listener);
- SysTryReturn(NID_UI_CTRL, exist, E_OBJ_ALREADY_EXIST, E_OBJ_ALREADY_EXIST, "[%s] Propagating.", GetErrorMessage(E_OBJ_ALREADY_EXIST));
+ SysTryReturn(NID_SHELL, exist, E_OBJ_ALREADY_EXIST, E_OBJ_ALREADY_EXIST, "[%s] Propagating.", GetErrorMessage(E_OBJ_ALREADY_EXIST));
__pAppWidgetViewEventListenerList->Add(&listener);
_AppWidgetViewImpl::RemoveAppWidgetViewEventListener(IAppWidgetViewEventListener& listener)
{
result r = __pAppWidgetViewEventListenerList->Remove(&listener);
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, E_OBJ_NOT_FOUND, E_OBJ_NOT_FOUND, "[%s] Propagating.", GetErrorMessage(E_OBJ_NOT_FOUND));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, E_OBJ_NOT_FOUND, E_OBJ_NOT_FOUND, "[%s] Propagating.", GetErrorMessage(E_OBJ_NOT_FOUND));
return E_SUCCESS;
}
FILE* pFile = fopen(pFileName, "w+");
if (pFile == null)
{
- SysLog(NID_UI_CTRL, "failed to fopen [%s]", pFileName);
+ SysLog(NID_SHELL, "failed to fopen [%s]", pFileName);
return;
}
else
/* DRI2 */
if (!DRI2QueryExtension (pDisplay, &eventBase, &errorBase))
{
- SysLog(NID_UI_CTRL, "!!Error : DRI2QueryExtension !!\n");
+ SysLog(NID_SHELL, "!!Error : DRI2QueryExtension !!\n");
return null;
}
if (!DRI2QueryVersion (pDisplay, &dri2Major, &dri2Minor))
{
- SysLog(NID_UI_CTRL, "!!Error : DRI2QueryVersion !!\n");
+ SysLog(NID_SHELL, "!!Error : DRI2QueryVersion !!\n");
return null;
}
if (!DRI2Connect (pDisplay, RootWindow(pDisplay, screen), &pDriverName, &pDeviceName))
{
- SysLog(NID_UI_CTRL, "!!Error : DRI2Connect !!\n");
+ SysLog(NID_SHELL, "!!Error : DRI2Connect !!\n");
return null;
}
- SysLog(NID_UI_CTRL, "Open drm device : %s\n", pDeviceName);
+ SysLog(NID_SHELL, "Open drm device : %s\n", pDeviceName);
/* get the drm_fd though opening the deviceName */
drm_fd = open (pDeviceName, O_RDWR);
if (drm_fd < 0)
{
- SysLog(NID_UI_CTRL, "!!Error : cannot open drm device (%s)\n", pDeviceName);
+ SysLog(NID_SHELL, "!!Error : cannot open drm device (%s)\n", pDeviceName);
return null;
}
if (!DRI2Authenticate(pDisplay, RootWindow(pDisplay, screen), magic))
{
- SysLog(NID_UI_CTRL, "!!Error : DRI2Authenticate !!\n");
+ SysLog(NID_SHELL, "!!Error : DRI2Authenticate !!\n");
close (drm_fd);
return null;
}
bufmgr = drm_slp_bufmgr_init (drm_fd, null);
if (!bufmgr)
{
- SysLog(NID_UI_CTRL, "!!Error : failed to init buffer manager \n");
+ SysLog(NID_SHELL, "!!Error : failed to init buffer manager \n");
close (drm_fd);
return null;
}
if (!pDri2_buffers)
{
- SysLog(NID_UI_CTRL, "[Error] : failed to get buffers\n");
+ SysLog(NID_SHELL, "[Error] : failed to get buffers\n");
goto update_done;
}
if (!pDri2_buffers[0].name)
{
- SysLog(NID_UI_CTRL, "[Error] : a handle of the dri2 buffer is null \n ");
+ SysLog(NID_SHELL, "[Error] : a handle of the dri2 buffer is null \n ");
goto update_done;
}
- SysLog(NID_UI_CTRL, "pDri2_buffers[0].name : %d", pDri2_buffers[0].name);
+ SysLog(NID_SHELL, "pDri2_buffers[0].name : %d", pDri2_buffers[0].name);
bo = drm_slp_bo_import(bufmgr, pDri2_buffers[0].name);
if (!bo)
{
- SysLog(NID_UI_CTRL, "[Error] : cannot import bo (key:%d)\n", pDri2_buffers[0].name);
+ SysLog(NID_SHELL, "[Error] : cannot import bo (key:%d)\n", pDri2_buffers[0].name);
goto update_done;
}
pVirtualBuf = (void*)drm_slp_bo_map (bo, DRM_SLP_DEVICE_CPU, opt);
if (!pVirtualBuf)
{
- SysLog(NID_UI_CTRL, "[Error] : failed to map \n");
+ SysLog(NID_SHELL, "[Error] : failed to map \n");
goto update_done;
}
int height = 0;
ecore_x_pixmap_geometry_get(pixmap, &x, &y, &width, &height);
- SysTryReturnVoidResult(NID_UI_CTRL, (width > 0) && (height > 0), E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid [0x%x %d %d].", pixmap, width , height);
+ SysTryReturnVoidResult(NID_SHELL, (width > 0) && (height > 0), E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid [0x%x %d %d].", pixmap, width , height);
if (__bufMgr)
{
pixmap_update((Display*)ecore_x_display_get(), __bufMgr, pixmap, 0, 0, width, height);
}
else
- SysLog(NID_UI_CTRL, "can't get pixmap __bufMgr");
+ SysLog(NID_SHELL, "can't get pixmap __bufMgr");
- SysLog(NID_UI_CTRL, "dump pixmap [%d]", pixmap);
+ SysLog(NID_SHELL, "dump pixmap [%d]", pixmap);
}
#endif // _PIXMAP_TEST
livebox*
_AppWidgetViewManager::AddAppWidgetView(_AppWidgetView* pAppWidgetView, const String& userInfo)
{
- SysTryReturn(NID_UI_CTRL, pAppWidgetView, null, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
+ SysTryReturn(NID_SHELL, pAppWidgetView, null, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
unique_ptr<char[]> pAppWidgetId(_StringConverter::CopyToCharArrayN(pAppWidgetView->GetAppWidgetId()));
- SysTryReturn(NID_UI_CTRL, pAppWidgetId, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryReturn(NID_SHELL, pAppWidgetId, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
unique_ptr<char[]> pContent(_StringConverter::CopyToCharArrayN(userInfo));
- SysTryReturn(NID_UI_CTRL, pContent, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryReturn(NID_SHELL, pContent, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
const char* pCluster = "user,created";
const char* pCategory = "default";
int sizeType = GetAppWidgetSizeType(pAppWidgetView->GetSizeF());
livebox* pAppWidget = livebox_add_with_size(pAppWidgetId.get(), pContent.get(), pCluster, pCategory, period, sizeType, OnAppWidgetAdded, this);
- SysTryReturn(NID_UI_CTRL, pAppWidget, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryReturn(NID_SHELL, pAppWidget, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
__pViewMap->Add(pAppWidget, pAppWidgetView);
void
_AppWidgetViewManager::RemoveAppWidgetView(_AppWidgetView* pAppWidgetView)
{
- SysTryReturnVoidResult(NID_UI_CTRL, pAppWidgetView, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
+ SysTryReturnVoidResult(NID_SHELL, pAppWidgetView, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
livebox* pAppWidget = pAppWidgetView->GetNativeAppWidget();
- SysTryReturnVoidResult(NID_UI_CTRL, pAppWidget, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
+ SysTryReturnVoidResult(NID_SHELL, pAppWidget, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
__pViewMap->Remove(pAppWidget);
FloatDimension
_AppWidgetViewManager::GetAppWidgetSize(livebox* pAppWidget) const
{
- SysTryReturn(NID_UI_CTRL, pAppWidget, FloatDimension(0, 0), E_SYSTEM, "[E_SYSTEM] A system error occurred.");
+ SysTryReturn(NID_SHELL, pAppWidget, FloatDimension(0, 0), E_SYSTEM, "[E_SYSTEM] A system error occurred.");
int width = 0;
int height = 0;
int type = livebox_size(pAppWidget);
livebox_service_get_size(type, &width, &height);
-// SysLog(NID_UI_CTRL, "size [%d %d]", width, height);
+// SysLog(NID_SHELL, "size [%d %d]", width, height);
return FloatDimension(width, height);
}
FloatDimension
_AppWidgetViewManager::GetAppWidgetPopupSize(livebox* pAppWidget) const
{
- SysTryReturn(NID_UI_CTRL, pAppWidget, FloatDimension(0, 0), E_SYSTEM, "[E_SYSTEM] A system error occurred.");
+ SysTryReturn(NID_SHELL, pAppWidget, FloatDimension(0, 0), E_SYSTEM, "[E_SYSTEM] A system error occurred.");
int width = 0;
int height = 0;
livebox_get_pdsize(pAppWidget, &width, &height);
-// SysLog(NID_UI_CTRL, "size [%d %d]", width, height);
+// SysLog(NID_SHELL, "size [%d %d]", width, height);
return FloatDimension(width, height);
}
_AppWidgetViewManager::SetAppWidgetSize(const _AppWidgetView& appwidgetView, const FloatDimension& size)
{
livebox* pAppWidget = appwidgetView.GetNativeAppWidget();
- SysTryReturnVoidResult(NID_UI_CTRL, pAppWidget, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
+ SysTryReturnVoidResult(NID_SHELL, pAppWidget, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
int sizeType = GetAppWidgetSizeType(size);
if (!__pFrameEventListener)
{
unique_ptr<_FrameEventListener> pFrameEventListener(new (std::nothrow) _FrameEventListener());
- SysTryReturnVoidResult(NID_UI_CTRL, pFrameEventListener, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryReturnVoidResult(NID_SHELL, pFrameEventListener, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
_Window* pWindow = _ControlManager::GetInstance()->GetCurrentFrame();
- SysTryReturnVoidResult(NID_UI_CTRL, pWindow, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
+ SysTryReturnVoidResult(NID_SHELL, pWindow, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
__pFrameEventListener = move(pFrameEventListener);
}
}
- SysLog(NID_UI_CTRL, "[%d %d] type [%d][%d]", size.width, size.height, sizeType, sizetypeCount);
+ SysLog(NID_SHELL, "[%d %d] type [%d][%d]", size.width, size.height, sizeType, sizetypeCount);
return sizeType;
}
livebox_subscribe_group("*", "*");
__eventHandler.reset(livebox_set_event_handler(OnAppWidgetEventReceived, this));
- SysTryReturnVoidResult(NID_UI_CTRL, __eventHandler == 0, E_SYSTEM, "[E_SYSTEM] A system error occured.");
+ SysTryReturnVoidResult(NID_SHELL, __eventHandler == 0, E_SYSTEM, "[E_SYSTEM] A system error occured.");
__faultEventHandler.reset(livebox_set_fault_handler(OnAppWidgetFaultReceived, this));
- SysTryReturnVoidResult(NID_UI_CTRL, __faultEventHandler == 0, E_SYSTEM, "[E_SYSTEM] A system error occured.");
+ SysTryReturnVoidResult(NID_SHELL, __faultEventHandler == 0, E_SYSTEM, "[E_SYSTEM] A system error occured.");
unique_ptr<HashMapT<livebox*, _AppWidgetView*> > pViewMap(new (std::nothrow) HashMapT<livebox*, _AppWidgetView*>);
- SysTryReturnVoidResult(NID_UI_CTRL, pViewMap, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryReturnVoidResult(NID_SHELL, pViewMap, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
result r = pViewMap->Construct();
- SysTryReturnVoidResult(NID_UI_CTRL, r == E_SUCCESS, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturnVoidResult(NID_SHELL, r == E_SUCCESS, r, "[%s] Propagating.", GetErrorMessage(r));
__pViewMap = move(pViewMap);
__glMode = IsGlMode();
// r = _CreateCoordinateTransformer(__pCoordinateTransformer, sourceResolution, BASE_SCREEN_SIZE_NORMAL, destResolution, BASE_SCREEN_SIZE_NORMAL);
-// SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
+// SysTryCatch(NID_SHELL, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
}
_AppWidgetViewManager::~_AppWidgetViewManager(void)
MediaPixelFormat format = GetPixelFormat(BITMAP_PIXEL_FORMAT_ARGB8888);
unique_ptr<ByteBuffer> pByteBuffer(_ImageDecoder::DecodeToBufferN(fileName, format, width, height));
- SysTryReturn(NID_UI_CTRL, pByteBuffer, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryReturn(NID_SHELL, pByteBuffer, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
unique_ptr<Bitmap> pBitmap(_BitmapImpl::GetNonScaledBitmapN(*pByteBuffer, Dimension(width, height), BITMAP_PIXEL_FORMAT_ARGB8888));
- SysTryReturn(NID_UI_CTRL, pBitmap, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryReturn(NID_SHELL, pBitmap, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
return pBitmap.release();
}
Bitmap*
_AppWidgetViewManager::GetBitmapN(void* pBuffer, const FloatDimension& size) const
{
- SysTryReturn(NID_UI_CTRL, pBuffer, null, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
+ SysTryReturn(NID_SHELL, pBuffer, null, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
byte* pTempBuffer = static_cast<byte*>(pBuffer);
const int BITS_PER_PIXEL = 32;
{
fwrite(pBuffer, length, 1, pFile);
fclose(pFile);
- SysLog(NID_UI_CTRL, "_BUFFER_TEST: buffer (0x%x) size (%d) width(%f) height(%f)", pBuffer, length, size.width, size.height);
+ SysLog(NID_SHELL, "_BUFFER_TEST: buffer (0x%x) size (%d) width(%f) height(%f)", pBuffer, length, size.width, size.height);
}
else
{
- SysLog(NID_UI_CTRL, "File open failed: (%s) buffer (0x%x) size (%d)", strerror(errno), pBuffer, length);
+ SysLog(NID_SHELL, "File open failed: (%s) buffer (0x%x) size (%d)", strerror(errno), pBuffer, length);
}
}
#endif // _BUFFER_TEST
unique_ptr<ByteBuffer> pByteBuffer(new (std::nothrow) ByteBuffer());
- SysTryReturn(NID_UI_CTRL, pByteBuffer, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryReturn(NID_SHELL, pByteBuffer, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
result r = pByteBuffer->Construct(pTempBuffer, 0, length, length);
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, null, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, null, r, "[%s] Propagating.", GetErrorMessage(r));
unique_ptr<Bitmap> pBitmap(_BitmapImpl::GetNonScaledBitmapN(*pByteBuffer.get(), Dimension(size.width, size.height), BITMAP_PIXEL_FORMAT_ARGB8888));
- SysTryReturn(NID_UI_CTRL, pBitmap, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryReturn(NID_SHELL, pBitmap, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
return pBitmap.release();
}
}
}
- SysLog(NID_UI_CTRL, "[%d %d]", mode, glMode);
+ SysLog(NID_SHELL, "[%d %d]", mode, glMode);
return glMode;
}
_AppWidgetViewManager::OnAppWidgetUpdated(livebox* pAppWidget)
{
_AppWidgetView* pAppWidgetView = GetAppWidgetView(pAppWidget);
- SysTryReturnVoidResult(NID_UI_CTRL, pAppWidgetView, E_SYSTEM, "[E_SYSTEM] A system error occured.");
+ SysTryReturnVoidResult(NID_SHELL, pAppWidgetView, E_SYSTEM, "[E_SYSTEM] A system error occured.");
int type = livebox_lb_type(pAppWidget);
-// SysLog(NID_UI_CTRL, "type (%d)", type);
+// SysLog(NID_SHELL, "type (%d)", type);
switch (type)
{
case LB_TYPE_IMAGE:
{
unique_ptr<Bitmap> pBitmap(GetBitmapN(livebox_filename(pAppWidget)));
- SysTryReturnVoidResult(NID_UI_CTRL, pBitmap, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryReturnVoidResult(NID_SHELL, pBitmap, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
pAppWidgetView->OnAppWidgetUpdated(*pBitmap.get(), GetAppWidgetSize(pAppWidget));
pBitmap.release();
case LB_TYPE_BUFFER:
{
void* pBuffer = livebox_acquire_fb(pAppWidget);
- SysTryReturnVoidResult(NID_UI_CTRL, pBuffer, E_SYSTEM, "[E_SYSTEM] A system error occured.");
+ SysTryReturnVoidResult(NID_SHELL, pBuffer, E_SYSTEM, "[E_SYSTEM] A system error occured.");
FloatDimension sourceSize = GetAppWidgetSize(pAppWidget);
- SysLog(NID_UI_CTRL, "size [%d %d]", sourceSize.width, sourceSize.height);
+ SysLog(NID_SHELL, "size [%d %d]", sourceSize.width, sourceSize.height);
unique_ptr<Bitmap> pBitmap(GetBitmapN(pBuffer, sourceSize));
- SysTryReturnVoidResult(NID_UI_CTRL, pBitmap, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryReturnVoidResult(NID_SHELL, pBitmap, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
pAppWidgetView->OnAppWidgetUpdated(*pBitmap.get(), sourceSize);
livebox_release_fb(pBuffer);
else
{
void* pBuffer = livebox_acquire_fb(pAppWidget);
- SysTryReturnVoidResult(NID_UI_CTRL, pBuffer, E_SYSTEM, "[E_SYSTEM] A system error occured.");
+ SysTryReturnVoidResult(NID_SHELL, pBuffer, E_SYSTEM, "[E_SYSTEM] A system error occured.");
FloatDimension sourceSize = GetAppWidgetSize(pAppWidget);
unique_ptr<Bitmap> pBitmap(GetBitmapN(pBuffer, sourceSize));
- SysTryReturnVoidResult(NID_UI_CTRL, pBitmap, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryReturnVoidResult(NID_SHELL, pBitmap, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
pAppWidgetView->OnAppWidgetUpdated(*pBitmap.get(), sourceSize);
livebox_release_fb(pBuffer);
_AppWidgetViewManager::OnAppWidgetDeleted(livebox* pAppWidget)
{
_AppWidgetView* pAppWidgetView = GetAppWidgetView(pAppWidget);
- SysTryReturnVoidResult(NID_UI_CTRL, pAppWidgetView, E_SYSTEM, "[E_SYSTEM] A system error occured.");
+ SysTryReturnVoidResult(NID_SHELL, pAppWidgetView, E_SYSTEM, "[E_SYSTEM] A system error occured.");
pAppWidgetView->CallProviderRemoved();
}
_AppWidgetViewManager::OnAppWidgetPopupUpdated(livebox* pAppWidget)
{
_AppWidgetView* pAppWidgetView = GetAppWidgetView(pAppWidget);
- SysTryReturnVoidResult(NID_UI_CTRL, pAppWidgetView, E_SYSTEM, "[E_SYSTEM] A system error occured.");
+ SysTryReturnVoidResult(NID_SHELL, pAppWidgetView, E_SYSTEM, "[E_SYSTEM] A system error occured.");
_AppWidgetPopupView* pAppWidgetPopupView = pAppWidgetView->GetAppWidgetPopup();
- SysTryReturnVoidResult(NID_UI_CTRL, pAppWidgetPopupView, E_SYSTEM, "[E_SYSTEM] A system error occured.");
+ SysTryReturnVoidResult(NID_SHELL, pAppWidgetPopupView, E_SYSTEM, "[E_SYSTEM] A system error occured.");
int type = livebox_pd_type(pAppWidget);
-// SysLog(NID_UI_CTRL, "type (%d)", type);
+// SysLog(NID_SHELL, "type (%d)", type);
switch (type)
{
case PD_TYPE_BUFFER:
{
void* pBuffer = livebox_acquire_pdfb(pAppWidget);
- SysTryReturnVoidResult(NID_UI_CTRL, pBuffer, E_SYSTEM, "[E_SYSTEM] A system error occured.");
+ SysTryReturnVoidResult(NID_SHELL, pBuffer, E_SYSTEM, "[E_SYSTEM] A system error occured.");
FloatDimension sourceSize = GetAppWidgetPopupSize(pAppWidget);
unique_ptr<Bitmap> pBitmap(GetBitmapN(pBuffer, sourceSize));
- SysTryReturnVoidResult(NID_UI_CTRL, pBitmap, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryReturnVoidResult(NID_SHELL, pBitmap, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
pAppWidgetPopupView->OnAppWidgetUpdated(*pBitmap.get(), sourceSize);
livebox_release_pdfb(pBuffer);
else
{
void* pBuffer = livebox_acquire_pdfb(pAppWidget);
- SysTryReturnVoidResult(NID_UI_CTRL, pBuffer, E_SYSTEM, "[E_SYSTEM] A system error occured.");
+ SysTryReturnVoidResult(NID_SHELL, pBuffer, E_SYSTEM, "[E_SYSTEM] A system error occured.");
FloatDimension sourceSize = GetAppWidgetPopupSize(pAppWidget);
unique_ptr<Bitmap> pBitmap(GetBitmapN(pBuffer, sourceSize));
- SysTryReturnVoidResult(NID_UI_CTRL, pBitmap, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryReturnVoidResult(NID_SHELL, pBitmap, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
pAppWidgetPopupView->OnAppWidgetUpdated(*pBitmap.get(), sourceSize);
livebox_release_pdfb(pBuffer);
int
_AppWidgetViewManager::OnAppWidgetEventReceived(livebox* pAppWidget, livebox_event_type eventType, void* pData)
{
- SysTryReturn(NID_UI_CTRL, pAppWidget, EXIT_SUCCESS, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
+ SysTryReturn(NID_SHELL, pAppWidget, EXIT_SUCCESS, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
_AppWidgetViewManager* pAppWidgetViewManager = static_cast<_AppWidgetViewManager*>(pData);
- SysTryReturn(NID_UI_CTRL, pAppWidgetViewManager, EXIT_SUCCESS, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
+ SysTryReturn(NID_SHELL, pAppWidgetViewManager, EXIT_SUCCESS, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
switch (eventType)
{
break;
default:
- SysLog(NID_UI_CTRL, "Not supported event type: %d", eventType);
+ SysLog(NID_SHELL, "Not supported event type: %d", eventType);
break;
}
{
if (faultType == LB_FAULT_DEACTIVATED)
{
- SysLog(NID_UI_CTRL, "type (%d) packageName (%s) fileName (%s) funcName (%s)", faultType, pAppWidgetId, pFilename, pFuncName);
+ SysLog(NID_SHELL, "type (%d) packageName (%s) fileName (%s) funcName (%s)", faultType, pAppWidgetId, pFilename, pFuncName);
livebox_activate(pAppWidgetId, OnAppWidgetActivated, pData);
}
void
_AppWidgetViewManager::OnAppWidgetActivated(livebox* pAppWidget, int ret, void* pData)
{
- SysTryReturnVoidResult(NID_UI_CTRL, pAppWidget, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
- SysTryReturnVoidResult(NID_UI_CTRL, ret == 0, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
+ SysTryReturnVoidResult(NID_SHELL, pAppWidget, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
+ SysTryReturnVoidResult(NID_SHELL, ret == 0, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
_AppWidgetViewManager* pAppWidgetViewManager = static_cast<_AppWidgetViewManager*>(pData);
- SysTryReturnVoidResult(NID_UI_CTRL, pAppWidgetViewManager, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
+ SysTryReturnVoidResult(NID_SHELL, pAppWidgetViewManager, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
}
void
_AppWidgetViewManager::OnAppWidgetAdded(livebox* pAppWidget, int ret, void* pData)
{
- SysTryReturnVoidResult(NID_UI_CTRL, pAppWidget, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
- SysTryReturnVoidResult(NID_UI_CTRL, ret == 0, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
+ SysTryReturnVoidResult(NID_SHELL, pAppWidget, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
+ SysTryReturnVoidResult(NID_SHELL, ret == 0, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
_AppWidgetViewManager* pAppWidgetViewManager = static_cast<_AppWidgetViewManager*>(pData);
- SysTryReturnVoidResult(NID_UI_CTRL, pAppWidgetViewManager, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
+ SysTryReturnVoidResult(NID_SHELL, pAppWidgetViewManager, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
}
void
_AppWidgetViewManager::OnAppWidgetDeleted(livebox* pAppWidget, int ret, void* pData)
{
- SysTryReturnVoidResult(NID_UI_CTRL, pAppWidget, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
- SysTryReturnVoidResult(NID_UI_CTRL, ret == 0, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
+ SysTryReturnVoidResult(NID_SHELL, pAppWidget, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
+ SysTryReturnVoidResult(NID_SHELL, ret == 0, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
_AppWidgetViewManager* pAppWidgetViewManager = static_cast<_AppWidgetViewManager*>(pData);
- SysTryReturnVoidResult(NID_UI_CTRL, pAppWidgetViewManager, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
+ SysTryReturnVoidResult(NID_SHELL, pAppWidgetViewManager, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
}
void
_AppWidgetViewManager::OnAppWidgetResized(livebox* pAppWidget, int ret, void* pData)
{
- SysTryReturnVoidResult(NID_UI_CTRL, pAppWidget, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
- SysTryReturnVoidResult(NID_UI_CTRL, ret == 0, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
+ SysTryReturnVoidResult(NID_SHELL, pAppWidget, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
+ SysTryReturnVoidResult(NID_SHELL, ret == 0, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
_AppWidgetViewManager* pAppWidgetViewManager = static_cast<_AppWidgetViewManager*>(pData);
- SysTryReturnVoidResult(NID_UI_CTRL, pAppWidgetViewManager, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
+ SysTryReturnVoidResult(NID_SHELL, pAppWidgetViewManager, E_INVALID_ARG, "[E_INVALID_ARG] The argument is invalid.");
// pAppWidgetViewManager->OnAppWidgetUpdated(pAppWidget);
}
_AppWidgetViewManager::_FrameEventListener::OnFrameActivated(const Tizen::Ui::Controls::_Frame& source)
{
int ret = livebox_client_resumed();
- SysLog(NID_UI_CTRL, "ret (%d)", ret);
+ SysLog(NID_SHELL, "ret (%d)", ret);
}
void
_AppWidgetViewManager::_FrameEventListener::OnFrameDeactivated(const Tizen::Ui::Controls::_Frame& source)
{
int ret = livebox_client_paused();
- SysLog(NID_UI_CTRL, "ret (%d)", ret);
+ SysLog(NID_SHELL, "ret (%d)", ret);
}
void
__providerName = providerName;
__appwidgetId = _AppWidgetManagerImpl::MakeProviderName(appId, providerName);
- SysLog(NID_UI_CTRL, "(%ls %ls %ls)", __appId.GetPointer(), __providerName.GetPointer(), __appwidgetId.GetPointer());
+ SysLog(NID_SHELL, "(%ls %ls %ls)", __appId.GetPointer(), __providerName.GetPointer(), __appwidgetId.GetPointer());
AppWidgetProviderInfo* pAppWidgetProviderInfo = AppWidgetManager::GetInstance()->GetAppWidgetProviderInfoN(appId, providerName);
- SysTryReturnVoidResult(NID_UI_CTRL, pAppWidgetProviderInfo, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryReturnVoidResult(NID_SHELL, pAppWidgetProviderInfo, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
__pAppWidgetProviderInfo.reset(pAppWidgetProviderInfo);
- SysLog(NID_UI_CTRL, "(%ls %ls)", __appId.GetPointer(), __providerName.GetPointer());
+ SysLog(NID_SHELL, "(%ls %ls)", __appId.GetPointer(), __providerName.GetPointer());
- SysLog(NID_UI_CTRL, "ProviderInfo(%ls %ls %ls %ls)", __pAppWidgetProviderInfo->GetName().GetPointer(), __pAppWidgetProviderInfo->GetDisplayName().GetPointer(),
+ SysLog(NID_SHELL, "ProviderInfo(%ls %ls %ls %ls)", __pAppWidgetProviderInfo->GetName().GetPointer(), __pAppWidgetProviderInfo->GetDisplayName().GetPointer(),
__pAppWidgetProviderInfo->GetIconPath().GetPointer(), __pAppWidgetProviderInfo->GetConfigurationAppControlAppId().GetPointer());
}
, __pAppWidgetViewModel(new (std::nothrow) _AppWidgetViewModel())
, __pSimpleText(null)
{
- SysTryReturnVoidResult(NID_UI_CTRL, __pAppWidgetViewModel, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryReturnVoidResult(NID_SHELL, __pAppWidgetViewModel, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
}
_AppWidgetViewPresenter::~_AppWidgetViewPresenter(void)
__pAppWidgetViewModel->Initialize(appId, providerName);
unique_ptr<Font> pFont(new (std::nothrow) Font());
- SysTryReturn(NID_UI_CTRL, pFont, E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryReturn(NID_SHELL, pFont, E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
result r = pFont->Construct(FONT_STYLE_BOLD, FONT_SIZE);
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
std::unique_ptr<TextObject> pTextObject(new (std::nothrow) TextObject());
- SysTryReturn(NID_UI_CTRL, pTextObject, E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryReturn(NID_SHELL, pTextObject, E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
r = pTextObject->Construct();
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
pTextObject->SetWrap(TEXT_OBJECT_WRAP_TYPE_WORD);
pTextObject->SetAction(TEXT_OBJECT_ACTION_TYPE_ABBREV);
pBitmap = __pAppWidgetView->GetAppIconBitmap();
}
- SysTryReturnVoidResult(NID_UI_CTRL, pBitmap, E_SYSTEM, "Bitmap is invalid (%d).", imageDone);
+ SysTryReturnVoidResult(NID_SHELL, pBitmap, E_SYSTEM, "Bitmap is invalid (%d).", imageDone);
Dimension appwidgetSize = __pAppWidgetView->GetSize();
int bitmapWidth = pBitmap->GetWidth();
}
unique_ptr<Canvas> pCanvas(__pAppWidgetView->GetCanvasN());
- SysTryReturnVoidResult(NID_UI_CTRL, pCanvas, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryReturnVoidResult(NID_SHELL, pCanvas, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
pCanvas->SetBackgroundColor(Color(0, 0, 0, 0));
pCanvas->Clear();
if (!__pSimpleText)
{
unique_ptr<TextSimple> pSimpleText(new (std::nothrow) TextSimple(appName.GetPointer(), appName.GetLength()));
- SysTryReturnVoidResult(NID_UI_CTRL, pSimpleText, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryReturnVoidResult(NID_SHELL, pSimpleText, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
r = __pTextObject->AppendElement(*pSimpleText);
- SysTryReturnVoidResult(NID_UI_CTRL, r == E_SUCCESS, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturnVoidResult(NID_SHELL, r == E_SUCCESS, r, "[%s] Propagating.", GetErrorMessage(r));
__pSimpleText = pSimpleText.release();
}
__pTextObject->SetFont(__pFont.get(), 0, __pTextObject->GetTextLength());
r = __pTextObject->Compose();
- SysTryReturnVoidResult(NID_UI_CTRL, r == E_SUCCESS, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturnVoidResult(NID_SHELL, r == E_SUCCESS, r, "[%s] Propagating.", GetErrorMessage(r));
r = __pTextObject->Draw(*_CanvasImpl::GetInstance(canvas));
- SysTryReturnVoidResult(NID_UI_CTRL, r == E_SUCCESS, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturnVoidResult(NID_SHELL, r == E_SUCCESS, r, "[%s] Propagating.", GetErrorMessage(r));
}
}} // Tizen::Shell
notiCount++;
char* pName = _StringConverter::CopyToCharArrayN(name);
- SysTryReturnResult(NID_UI_CTRL, pName, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
+ SysTryReturnResult(NID_SHELL, pName, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
pWindow = minicontrol_win_add((const char*)pName);
- SysTryCatch(NID_UI_CTRL, pWindow, , E_SYSTEM, "[E_SYSTEM] A system error occurred.");
+ SysTryCatch(NID_SHELL, pWindow, , E_SYSTEM, "[E_SYSTEM] A system error occurred.");
r = Initialize(pWindow);
- SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryCatch(NID_SHELL, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
delete [] pName;
_UiEventManager* pEventManager = null;
__pQuickPanelFramePresenter = new (std::nothrow) _QuickPanelFramePresenter(*this);
- SysTryReturnVoidResult(NID_UI_CTRL, __pQuickPanelFramePresenter, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryReturnVoidResult(NID_SHELL, __pQuickPanelFramePresenter, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
result r = E_SUCCESS;
pEventManager = _UiEventManager::GetInstance();
- SysTryCatch(NID_UI_CTRL, pEventManager, , r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryCatch(NID_SHELL, pEventManager, , r, "[%s] Propagating.", GetErrorMessage(r));
__pEventManager = pEventManager->GetEventManager();
- SysTryCatch(NID_UI_CTRL, __pEventManager, , r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryCatch(NID_SHELL, __pEventManager, , r, "[%s] Propagating.", GetErrorMessage(r));
// SetSystemWindow
SetSystemWindow(true);
_QuickPanelFrame::CreateQuickPanelFrameN(void)
{
_QuickPanelFrame* pQuickPanelFrame = new (std::nothrow) _QuickPanelFrame();
- SysTryReturn(NID_UI_CTRL, pQuickPanelFrame, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryReturn(NID_SHELL, pQuickPanelFrame, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
result r = GetLastResult();
- SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryCatch(NID_SHELL, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
r = pQuickPanelFrame->CreateRootVisualElement();
- SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryCatch(NID_SHELL, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
pQuickPanelFrame->AcquireHandle();
result
_QuickPanelFrame::Initialize(float height)
{
- SysTryReturn(NID_UI_CTRL, height >= 0, E_INVALID_ARG, E_INVALID_ARG, "[E_INVALID_ARG] The height %d is out of height range(0 ~ ).", height);
+ SysTryReturn(NID_SHELL, height >= 0, E_INVALID_ARG, E_INVALID_ARG, "[E_INVALID_ARG] The height %d is out of height range(0 ~ ).", height);
result r = E_SUCCESS;
_ControlManager* pControlManager = _ControlManager::GetInstance();
r = GetLastResult();
- SysTryReturn(NID_UI_CTRL, pControlManager, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, pControlManager, r, r, "[%s] Propagating.", GetErrorMessage(r));
Dimension size = pControlManager->GetScreenSize();
__pLayer = dynamic_cast<_QuickPanelFrameLayer*>(pRootVE->GetNativeLayer());
r = GetLastResult();
- SysTryReturn(NID_UI_CTRL, __pLayer, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, __pLayer, r, r, "[%s] Propagating.", GetErrorMessage(r));
FloatDimension phySize = _CoordinateSystemUtils::Transform(sizeF);
FloatRectangle fPhyBounds(0.0f, 0.0f, phySize.width, phySize.height);
_VisualElement* pVisualElement = GetVisualElement();
r = GetLastResult();
- SysTryReturn(NID_UI_CTRL, pVisualElement, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, pVisualElement, r, r, "[%s] Propagating.", GetErrorMessage(r));
pVisualElement->SetShowState(true);
__pEventManager->RegisterTouchEventHandler(*this);
r = GetLastResult();
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
r = SetBounds(FloatRectangle(0.0f, 0.0f, sizeF.width, sizeF.height));
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
SetMovable(false);
SetResizable(false);
result
_QuickPanelFrame::SetHeight(float height)
{
- SysTryReturn(NID_UI_CTRL, height >= 0, E_INVALID_ARG, E_INVALID_ARG, "[E_INVALID_ARG] The height %d is out of height range(0 ~ ).", height);
+ SysTryReturn(NID_SHELL, height >= 0, E_INVALID_ARG, E_INVALID_ARG, "[E_INVALID_ARG] The height %d is out of height range(0 ~ ).", height);
result r = E_SUCCESS;
_EflLayer* pEflLayer = null;
result r = pLayer->Construct();
- SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage );
+ SysTryCatch(NID_SHELL, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage );
SetLayer(*pLayer);
SetRootVisualElement(*(pLayer->GetRootVisualElement()));
_QuickPanelFrame* pCore = _QuickPanelFrame::CreateQuickPanelFrameN();
r = GetLastResult();
- SysTryReturn(NID_UI_CTRL, pCore, null, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, pCore, null, r, "[%s] Propagating.", GetErrorMessage(r));
_QuickPanelFrameImpl* pImpl = new (std::nothrow) _QuickPanelFrameImpl(&quickpanelFrame, pCore, pPortraitLayout, pLandscapeLayout);
r = GetLastResult();
- SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryCatch(NID_SHELL, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
SetLastResult(E_SUCCESS);
, __rotation(_CONTROL_ROTATION_0)
{
__pOrientationEvent = _PublicOrientationEvent::CreateInstanceN(*pPublic);
- SysTryReturnVoidResult(NID_UI_CTRL, __pOrientationEvent, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
+ SysTryReturnVoidResult(NID_SHELL, __pOrientationEvent, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory is insufficient.");
}
_QuickPanelFrameImpl::~_QuickPanelFrameImpl(void)
_QuickPanelFrameImpl::Initialize(float height)
{
result r = GetCore().Initialize(height);
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
return r;
}
_QuickPanelFrameImpl::AddOrientationEventListener(IOrientationEventListener& listener)
{
result r = __pOrientationEvent->AddListener(listener);
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
return r;
}
_QuickPanelFrameImpl::RemoveOrientationEventListener(IOrientationEventListener& listener)
{
result r = __pOrientationEvent->RemoveListener(listener);
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
return r;
}
_QuickPanelFrameImpl::SetHeight(float height)
{
result r = GetCore().SetHeight(height);
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
return r;
}
{
_ContainerImpl::OnChangeLayout(orientation);
result r = GetLastResult();
- SysTryReturnVoidResult(NID_UI_CTRL, r == E_SUCCESS, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturnVoidResult(NID_SHELL, r == E_SUCCESS, r, "[%s] Propagating.", GetErrorMessage(r));
bool resizable = IsResizable();
SetResizable(true);
float quickpanelFrameHeight = 0.0f;
QuickPanelFrame* pQuickPanelFrame = dynamic_cast <QuickPanelFrame*>(GetContainer());
- SysTryReturn(NID_UI_CTRL, pQuickPanelFrame != null, null, E_SYSTEM, "[E_SYSTEM] This instance is not constructed.");
+ SysTryReturn(NID_SHELL, pQuickPanelFrame != null, null, E_SYSTEM, "[E_SYSTEM] This instance is not constructed.");
GetProperty(pControl, &pControlProperty);
if (r != E_SUCCESS)
{
- SysLog(NID_UI_CTRL, "Failed to create QuickPanelFrame.");
+ SysLog(NID_SHELL, "Failed to create QuickPanelFrame.");
return null;
}