static AppWidgetManager* __pTheInstance;
class _AppWidgetManagerImpl* __pAppWidgetManagerImpl;
friend struct std::default_delete< AppWidgetManager >;
-};
+}; //AppWidgetManager
}} // Tizen::Shell
#endif /* _FSHELL_APPWIDGET_MANAGER_H_ */
}} // Tizen::Shell
-#endif /* _IAPPWIDGET_POPUP_FACTORY_H_ */
+#endif /* _FSHELL_IAPPWIDGET_POPUP_PROVIDER_FACTORY_H_ */
AppWidgetFrame::Construct(const FloatDimension& size)
{
SysTryReturnResult(NID_SHELL, _AppWidgetManagerImpl::HasFeature(), E_UNSUPPORTED_OPERATION, "This operation is not supported.");
+ SysTryReturnResult(NID_SHELL, size.width >= 0.0f && size.height >= 0.0f, E_INVALID_ARG, "Can't construct the AppWidgetFrame which size is less than zero.");
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));
AppWidgetFrame::Construct(const Layout& layout, const FloatDimension& size)
{
SysTryReturnResult(NID_SHELL, _AppWidgetManagerImpl::HasFeature(), E_UNSUPPORTED_OPERATION, "This operation is not supported.");
+ SysTryReturnResult(NID_SHELL, size.width >= 0.0f && size.height >= 0.0f, E_INVALID_ARG, "Can't construct the AppWidgetFrame which size is less than zero.");
SysAssertf(_pControlImpl == null, "Already constructed. Calling Construct() twice or more on a same instance is not allowed for this class.");
AppWidgetPopup::Construct(const FloatDimension& size)
{
SysTryReturnResult(NID_SHELL, _AppWidgetManagerImpl::HasFeature(), E_UNSUPPORTED_OPERATION, "This operation is not supported.");
+ SysTryReturnResult(NID_SHELL, size.width >= 0.0f && size.height >= 0.0f, E_INVALID_ARG, "Can't construct the AppWidgetPopup which size is less than zero.");
SysAssertf(_pControlImpl == null, "Already constructed. Calling Construct() twice or more on a same instance is not allowed for this class.");
AppWidgetPopup::Construct(const Layout& layout, const FloatDimension& size)
{
SysTryReturnResult(NID_SHELL, _AppWidgetManagerImpl::HasFeature(), E_UNSUPPORTED_OPERATION, "This operation is not supported.");
+ SysTryReturnResult(NID_SHELL, size.width >= 0.0f && size.height >= 0.0f, E_INVALID_ARG, "Can't construct the AppWidgetPopup which size is less than zero.");
SysAssertf(_pControlImpl == null, "Already constructed. Calling Construct() twice or more on a same instance is not allowed for this class.");
SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
Canvas* pCanvas = pImpl->GetClientAreaCanvasN();
- result r = GetLastResult();
- SysTryReturn(NID_SHELL, pCanvas, null, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_SHELL, pCanvas, null, E_RESOURCE_UNAVAILABLE, "[E_RESOURCE_UNAVAILABLE] Propagating.");
return pCanvas;
}
std::unique_ptr<char[]> pPackageId(_StringConverter::CopyToCharArrayN(packageId) );
std::unique_ptr<char[]> pDefaultProviderId(livebox_service_pkgname(pPackageId.get()) );
SysTryReturn(NID_SHELL, pDefaultProviderId.get(), null, E_SUCCESS, "Specified package(%ls) has no default provider.", packageId.GetPointer() );
-
+
String providerId(pDefaultProviderId.get());
String appId;
String providerName;
AppWidgetProviderInfo*
_AppWidgetProviderInfoImpl::GetAppWidgetProviderInfoN(const Tizen::App::AppId& appId, const Tizen::Base::String& providerName)
{
+ SysTryReturn(NID_SHELL, !providerName.IsEmpty(), null, E_OBJ_NOT_FOUND, "The provider name is empty.");
std::unique_ptr<char[]> pProviderId(_StringConverter::CopyToCharArrayN(_AppWidgetManagerImpl::MakeProviderName(appId, providerName)));
bool isDefault = livebox_service_is_primary(pProviderId.get());
result
_AppWidgetProviderManagerImpl::RequestUpdate(const AppId& appId, const String& providerName, const String& argument)
{
-
SysLog(NID_SHELL, "Enter.");
+ SysTryReturnResult(NID_SHELL, _Aul::IsInstalled(appId) == true, E_APP_NOT_INSTALLED, "The application(%ls) is not installed.", appId.GetPointer());
result r = CheckCertificate(Tizen::App::App::GetInstance()->GetAppId(), appId);
SysTryReturn(NID_SHELL, !IsFailed(r), r, r, "[%s] VerifyCertification is failed.", GetErrorMessage(r));