*
* @since 2.1
*
+ * @param[in] appId The Id of the application that provides Livebox
+ * @param[in] providerName The name of the Livebox provider
* @return A pointer to the LiveboxProviderInfo of the specified LiveboxProvider@n
* else @c null if an error occurs
*
LiveboxProviderInfo* GetLiveboxProviderInfoN(const Tizen::App::AppId& appId, const Tizen::Base::String& providerName);
/**
- * Request livebox service to trigger specified livebox update
+ * Request Livebox service to trigger specified Livebox update
*
* @since 2.1
*
* @exception E_SUCCESS The method is successful.
* @exception E_APP_NOT_INSTALLED The application is not installed.
* @exception E_OBJ_NOT_FOUND The specified Livebox provider is not found.
- * @exception E_INVALID_OPERATION The application isn't permitted to request add Livebox of other application package.
+ * @exception E_INVALID_OPERATION The application isn't permitted to request to update Livebox of other application package.@n
+ * To get permission, current application package should have same signature with the other.
* @exception E_SYSTEM A system error has occurred.
*/
result RequestUpdate(const Tizen::App::AppId& appId, const Tizen::Base::String& providerName, const Tizen::Base::String& argument = L"");
* Request add Livebox to a Livebox viewer(eg, Home screen, Lock screen)
*
* @since 2.1
- * @visibility partner
- * @privlevel system
- * @privilege http://tizen.org/privilege/shell.install
+ * @privlevel user
+ * @privilege http://tizen.org/privilege/liveboxmanager.install
*
* @param[in] targetAppId The ID of the application that the specified Livebox will be added to
* @param[in] providerAppId The ID of the application providing Livebox
* @param[in] providerName The name of Livebox provider to be added
- * @param[in] userInfo User information for the Livebox provider
* @param[in] text Text to represent the Livebox
+ * @param[in] userInfo User information for the Livebox provider
*
* @exception E_SUCCESS The method is successful.
* @exception E_APP_NOT_INSTALLED The application is not installed.
* @exception E_UNSUPPORTED_OPERATION The specifed Livebox provider doesn't support this operation.
* @exception E_SYSTEM A system error has occurred.
*
+ * @remark Only Livebox provider that is packaged with the caller application can be added by this API.
* @see SetLiveboxRequestEventHandler
*/
result AddLivebox(const Tizen::App::AppId& targetAppId, const Tizen::Base::String& providerAppId, const Tizen::Base::String& providerName, const Tizen::Base::String& text, const Tizen::Base::String& userInfo);
namespace Tizen { namespace Shell
{
-class LiveboxFrame;
class LiveboxPopup;
/**
*
* @since 2.1
*
- * @param[in] width The width of the Livebox
- * @param[in] height The height of the Livebox
* @param[in] userInfo User information that specifed when the Livebox is added
*
* @remarks LiveboxPopup should be created and set here
virtual void OnLiveboxPopupProviderTerminating() = 0;
/**
- * Gets the Livebox's Id.
- *
- * @since 2.1
- *
- * @return The Livebox Id
- */
- Tizen::Base::String GetId() const;
-
- /**
- * Sets the frame to the Livebox
+ * Sets the Livebox popup to the Livebox
*
* @since 2.1
*
* @return An error code
- * @param[in] frame The frame to be set to the Livebox
+ * @param[in] pLiveboxPopup The pointer to LiveboxPopup instance to be set to the Livebox
* @exception E_SUCCESS The method is successful.
- * @exception E_INVALID_ARG The specified input parameter is invalid.
- * @exception E_OBJ_ALREADY_EXIST The frame to be added is already registered with the UI application.
+ * @exception E_INVALID_OPERATION The LiveboxFrame to be set is not constructed.
+ * @exception E_OBJ_ALREADY_EXIST The LiveboxFrame to be set is already registered with the LiveboxPopupProvider.
* @exception E_SYSTEM A system error has occurred.
*/
- void SetLiveboxPopup(Tizen::Shell::LiveboxPopup* pLiveboxPopup);
+ result SetLiveboxPopup(Tizen::Shell::LiveboxPopup* pLiveboxPopup);
/**
- * Get the frame from the Livebox
+ * Get the Livebox popup from the Livebox
*
* @since 2.1
*
- * @return The LiveBoxFrame instnace, or null if any LiveboxFrame is set yet.
- * @param[in] frame The frame to be set to the Livebox
+ * @return The LiveboxPopup instnace, or null if any LiveboxPopup is set yet.
* @exception E_SUCCESS The method is successful.
* @exception E_INVALID_ARG The specified input parameter is invalid.
* @exception E_OBJ_ALREADY_EXIST The frame to be added is already registered with the UI application.
virtual void LiveboxPopupProvider_Reserved3(void) {}
private:
- Tizen::Shell::LiveboxPopup* __pLiveboxPopup;//Todo to impl
- class _LiveboxProviderImpl* __pLiveboxProviderImpl;
-
+ class _LiveboxPopupProviderImpl* __pLiveboxPopupProviderImpl;
friend class _LiveboxManagerImpl;
};
* void MyLiveboxProvider::OnLiveboxProviderInitializing(int width, int height, const String& userInfo)
* {
* LiveboxFrame* pFrame = new MyLiveboxProviderFrame();
- * pFrame->Construct(id, Dimension(width, height));
+ * pFrame->Construct(Dimension(width, height));
* __pLabel = new Label();
*
* Rectangle bounds = GetBounds();
*
* @since 2.1
*
+ * @param[in] argument The argument for updating the Livebox.
+ *
+ * @Remark This function is called when UpdatePeriod timer is expired or LiveboxManager::RequestUpdate() is called.@n
+ * The argument is passsed by LiveboxManager::RequestUpdate() API.
*/
virtual void OnLiveboxProviderUpdating(const Tizen::Base::String& argument) = 0;
/**
- * Gets the LiveboxProvider's Id.
+ * Sets the LiveboxFrame to the LiveboxProvider
*
* @since 2.1
*
- * @return the LiveboxProvider Id
+ * @return An error code
+ * @param[in] pLiveboxFrame The LiveboxFrame to be set to the LiveboxProvider
+ * @exception E_SUCCESS The method is successful.
+ * @exception E_INVALID_OPERATION The LiveboxFrame to be set is not constructed.
+ * @exception E_OBJ_ALREADY_EXIST The LiveboxFrame to be set is already registered with the LiveboxProvider.
+ * @exception E_SYSTEM A system error has occurred.
+ *
+ * @remark This function should be called only in OnLiveboxProviderInitializing
*/
- Tizen::Base::String GetId() const;
+ result SetLiveboxFrame(LiveboxFrame* pLiveboxFrame);
/**
- * Sets the frame to the LiveboxProvider
+ * Get the LiveboxFrame from the LiveboxProvider
*
* @since 2.1
*
- * @return An error code
- * @param[in] frame The frame to be set to the LiveboxProvider
+ * @return the LiveboxFrame instnace, or null if any LiveboxFrame isn't set yet.
* @exception E_SUCCESS The method is successful.
* @exception E_INVALID_ARG The specified input parameter is invalid.
- * @exception E_OBJ_ALREADY_EXIST The frame to be added is already registered with the UI application.
+ * @exception E_OBJ_ALREADY_EXIST The LiveboxFrame to be added is already registered with the UI application.
* @exception E_SYSTEM A system error has occurred.
- *
- * @remark This function should be called only in OnLiveboxProviderInitializing
*/
- result SetLiveboxFrame(Tizen::Shell::LiveboxFrame* pLiveboxFrame);
+ LiveboxFrame* GetLiveboxFrame() const;
+
/**
- * Get the frame from the LiveboxProvider
+ * Gets the correspondent LiveboxProvider instance for the current LiveboxPopupProvider
*
* @since 2.1
*
- * @return the LiveboxFrame instnace, or null if any LiveboxFrame isn't set yet.
+ * @return the LiveboxProvider instnace, or null if any exception occured.
* @exception E_SUCCESS The method is successful.
- * @exception E_INVALID_ARG The specified input parameter is invalid.
- * @exception E_OBJ_ALREADY_EXIST The frame to be added is already registered with the UI application.
* @exception E_SYSTEM A system error has occurred.
*/
- Tizen::Shell::LiveboxFrame* GetLiveboxFrame() const;
+ LiveboxProvider* GetLiveboxProviderInstance();
private:
* This is the constructor that initializes an instance of %LiveboxProviderInfo with the specified values.
*
* @since 2.1
+ *
+ * @param[in] appId The Id of the application that provides Livebox
+ * @param[in] providerName The name of the Livebox provider
*/
LiveboxProviderInfo(const Tizen::App::AppId& appId, const Tizen::Base::String& name);
FShell_QuickPanelFrameImpl.cpp
FShell_QuickPanelFramePresenter.cpp
FShell_LiveboxProviderImpl.cpp
+ FShell_LiveboxPopupProviderImpl.cpp
FShell_LiveboxProviderInfoImpl.cpp
FShell_LiveboxSizeInfoImpl.cpp
FShell_LiveboxManagerImpl.cpp
//
// Open Service Platform
// Copyright (c) 2012 Samsung Electronics Co., Ltd.
-// All rights reserved.
//
-// This software contains confidential and proprietary information
-// of Samsung Electronics Co., Ltd.
-// The user of this software agrees not to disclose, disseminate or copy such
-// Confidential Information and shall use the software only in accordance with
-// the terms of the license agreement the user entered into with Samsung.
+// Licensed under the Apache License, Version 2.0 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
//
/**
//
// Open Service Platform
// Copyright (c) 2012 Samsung Electronics Co., Ltd.
-// All rights reserved.
//
-// This software contains confidential and proprietary information
-// of Samsung Electronics Co., Ltd.
-// The user of this software agrees not to disclose, disseminate or copy such
-// Confidential Information and shall use the software only in accordance with
-// the terms of the license agreement the user entered into with Samsung.
+// Licensed under the Apache License, Version 2.0 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
//
/**
#include <FBaseSysLog.h>
#include <FShellLiveboxFrame.h>
#include <FShellLiveboxPopup.h>
+#include <FShellLiveboxPopupProvider.h>
-#include "FShell_LiveboxProviderImpl.h"
-#include "FShellLiveboxPopupProvider.h"
+#include "FShell_LiveboxPopupProviderImpl.h"
#include "FShell_LiveboxPopupImpl.h"
namespace Tizen { namespace Shell
LiveboxPopupProvider::Construct(const String& instanceId)
{
SysLog(NID_APP, "");
- __pLiveboxProviderImpl = new _LiveboxProviderImpl(instanceId);
- SysTryReturnResult(NID_APP, __pLiveboxProviderImpl, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY]");
+ __pLiveboxPopupProviderImpl = new _LiveboxPopupProviderImpl(instanceId);
+ SysTryReturnResult(NID_APP, __pLiveboxPopupProviderImpl, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY]");
return E_SUCCESS;
}
-String
+/*String
LiveboxPopupProvider::GetId() const
{
- return __pLiveboxProviderImpl->GetId();
-}
+ return __pLiveboxPopupProviderImpl->GetId();
+}*/
-void
+result
LiveboxPopupProvider::SetLiveboxPopup(LiveboxPopup* pLiveboxPopup)
{
- __pLiveboxPopup = pLiveboxPopup;
-
- _LiveboxPopupImpl* pLiveboxPopupImpl = _LiveboxPopupImpl::GetInstance(*pLiveboxPopup);
- SysAssertf(pLiveboxPopupImpl != null, "Not-yet constructed! Construct() should be called before use.");
-
- pLiveboxPopupImpl->SetProviderId(GetId());
-
-// return __pLiveboxProviderImpl->SetLiveboxFrame(pLiveboxPopup);
+ return __pLiveboxPopupProviderImpl->SetLiveboxPopup(pLiveboxPopup);
}
LiveboxPopup*
LiveboxPopupProvider::GetLiveboxPopup() const
{
- return __pLiveboxPopup;
-// return __pLiveboxProviderImpl->GetLiveboxFrame();
+ return __pLiveboxPopupProviderImpl->GetLiveboxPopup();
}
}} // Tizen::Shell
//
// Open Service Platform
// Copyright (c) 2012 Samsung Electronics Co., Ltd.
-// All rights reserved.
//
-// This software contains confidential and proprietary information
-// of Samsung Electronics Co., Ltd.
-// The user of this software agrees not to disclose, disseminate or copy such
-// Confidential Information and shall use the software only in accordance with
-// the terms of the license agreement the user entered into with Samsung.
+// Licensed under the Apache License, Version 2.0 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
//
/**
return E_SUCCESS;
}
-String
+/*String
LiveboxProvider::GetId() const
{
return __pLiveboxProviderImpl->GetId();
-}
+}*/
result
LiveboxProvider::SetLiveboxFrame(LiveboxFrame* pLiveboxFrame)
//
// Open Service Platform
// Copyright (c) 2012 Samsung Electronics Co., Ltd.
-// All rights reserved.
//
-// This software contains confidential and proprietary information
-// of Samsung Electronics Co., Ltd.
-// The user of this software agrees not to disclose, disseminate or copy such
-// Confidential Information and shall use the software only in accordance with
-// the terms of the license agreement the user entered into with Samsung.
+// Licensed under the Apache License, Version 2.0 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
//
/**
//
// Open Service Platform
// Copyright (c) 2012 Samsung Electronics Co., Ltd.
-// All rights reserved.
//
-// This software contains confidential and proprietary information
-// of Samsung Electronics Co., Ltd.
-// The user of this software agrees not to disclose, disseminate or copy such
-// Confidential Information and shall use the software only in accordance with
-// the terms of the license agreement the user entered into with Samsung.
+// Licensed under the Apache License, Version 2.0 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
//
/**
//
// Open Service Platform
// Copyright (c) 2012 Samsung Electronics Co., Ltd.
-// All rights reserved.
//
-// This software contains confidential and proprietary information
-// of Samsung Electronics Co., Ltd.
-// The user of this software agrees not to disclose, disseminate or copy such
-// Confidential Information and shall use the software only in accordance with
-// the terms of the license agreement the user entered into with Samsung.
+// Licensed under the Apache License, Version 2.0 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
//
/**
_LiveboxManagerImpl::RequestUpdate(const Tizen::App::AppId& appId, const Tizen::Base::String& providerName)
{
- _LiveboxManagerProxy::GetInstance()->RequestUpdate(appId, providerName);
+ /*if( appId == App::App::GetInstance()->GetAppId()) //TODO: optimazing
+ {
+
+ }
+ else*/
+ {
+ _LiveboxManagerProxy::GetInstance()->RequestUpdate(appId, providerName);
+ }
return E_SUCCESS;
}
//
// Open Service Platform
// Copyright (c) 2012 Samsung Electronics Co., Ltd.
-// All rights reserved.
//
-// This software contains confidential and proprietary information
-// of Samsung Electronics Co., Ltd.
-// The user of this software agrees not to disclose, disseminate or copy such
-// Confidential Information and shall use the software only in accordance with
-// the terms of the license agreement the user entered into with Samsung.
+// Licensed under the Apache License, Version 2.0 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
//
/**
//
// Open Service Platform
// Copyright (c) 2012 Samsung Electronics Co., Ltd.
-// All rights reserved.
//
-// This software contains confidential and proprietary information
-// of Samsung Electronics Co., Ltd.
-// The user of this software agrees not to disclose, disseminate or copy such
-// Confidential Information and shall use the software only in accordance with
-// the terms of the license agreement the user entered into with Samsung.
+// Licensed under the Apache License, Version 2.0 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
//
/**
//
// Open Service Platform
// Copyright (c) 2012 Samsung Electronics Co., Ltd.
-// All rights reserved.
//
-// This software contains confidential and proprietary information
-// of Samsung Electronics Co., Ltd.
-// The user of this software agrees not to disclose, disseminate or copy such
-// Confidential Information and shall use the software only in accordance with
-// the terms of the license agreement the user entered into with Samsung.
+// Licensed under the Apache License, Version 2.0 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
//
/**
*/
#include <FBaseSysLog.h>
-#include <FShellLiveboxFrame.h>
#include <FShellLiveboxPopup.h>
-#include "FShell_LiveboxProviderImpl.h"
-#include "FShellLiveboxPopupProvider.h"
+#include "FShell_LiveboxPopupProviderImpl.h"
+#include "FShell_LiveboxPopupImpl.h"
namespace Tizen { namespace Shell
{
using namespace Tizen::Base;
+_LiveboxPopupProviderImpl::_LiveboxPopupProviderImpl(const String& instanceId)
+ :__instanceId(instanceId)
+ ,__pLiveboxPopup(null)
+{
+}
-LiveboxPopupProvider::LiveboxPopupProvider()
+_LiveboxPopupProviderImpl::~_LiveboxPopupProviderImpl()
{
- SysLog(NID_APP, "");
+
}
-LiveboxPopupProvider::~LiveboxPopupProvider()
+const String&
+_LiveboxPopupProviderImpl::GetInstanceId() const
{
- SysLog(NID_APP, "");
+ return __instanceId;
}
result
-LiveboxPopupProvider::Construct(const String& instanceId)
+_LiveboxPopupProviderImpl::SetLiveboxPopup(LiveboxPopup* pLiveboxPopup)
{
- SysLog(NID_APP, "");
- __pLiveboxProviderImpl = new _LiveboxProviderImpl(instanceId);
- SysTryReturnResult(NID_APP, __pLiveboxProviderImpl, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY]");
+ SysTryReturnResult(NID_APP, pLiveboxPopup != null && __pLiveboxPopup == pLiveboxPopup, E_OBJ_ALREADY_EXIST, "");
- return E_SUCCESS;
-}
+ __pLiveboxPopup = pLiveboxPopup;
+ if( pLiveboxPopup == null)
+ {
+ return E_SUCCESS;
+ }
-String
-LiveboxPopupProvider::GetId() const
-{
- return __pLiveboxProviderImpl->GetId();
-}
+ _LiveboxPopupImpl* pLiveboxPopupImpl = _LiveboxPopupImpl::GetInstance(*pLiveboxPopup);
+ SysTryReturnResult(NID_APP, pLiveboxPopupImpl, E_INVALID_OPERATION, "Not-yet constructed! LiveboxPopup::Construct() should be called before use.");
-void
-LiveboxPopupProvider::SetLiveboxPopup(LiveboxPopup* pLiveboxFrame)
-{
- __pLiveboxFrame = pLiveboxFrame;
-// return __pLiveboxProviderImpl->SetLiveboxFrame(pLiveboxFrame);
+ pLiveboxPopupImpl->SetProviderId(GetInstanceId());
+
+ return E_SUCCESS;
}
LiveboxPopup*
-LiveboxPopupProvider::GetLiveboxPopup() const
+_LiveboxPopupProviderImpl::GetLiveboxPopup() const
{
- return __pLiveboxFrame;
-// return __pLiveboxProviderImpl->GetLiveboxFrame();
+ return __pLiveboxPopup;
}
}} // Tizen::Shell
//
// Open Service Platform
// Copyright (c) 2012 Samsung Electronics Co., Ltd.
-// All rights reserved.
//
-// This software contains confidential and proprietary information
-// of Samsung Electronics Co., Ltd.
-// The user of this software agrees not to disclose, disseminate or copy such
-// Confidential Information and shall use the software only in accordance with
-// the terms of the license agreement the user entered into with Samsung.
+// Licensed under the Apache License, Version 2.0 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
//
/**
#include <FBase.h>
#include <FShellLiveboxFrame.h>
-//#include <FShellLiveboxProvider.h>
#include "FShell_LiveboxProviderImpl.h"
#include "FShell_LiveboxFrameImpl.h"
using namespace Tizen::Base;
-_LiveboxProviderImpl::_LiveboxProviderImpl(const String& id)
- :__id(id)
+_LiveboxProviderImpl::_LiveboxProviderImpl(const String& instanceId)
+ :__instanceId(instanceId)
,__pLiveboxFrame(null)
{
}
const String&
-_LiveboxProviderImpl::GetId() const
+_LiveboxProviderImpl::GetInstanceId() const
{
- return __id;
+ return __instanceId;
}
result
_LiveboxProviderImpl::SetLiveboxFrame(LiveboxFrame* pLiveboxFrame)
{
+ SysTryReturnResult(NID_APP, (pLiveboxFrame != null && __pLiveboxFrame == pLiveboxFrame), E_OBJ_ALREADY_EXIST, "");
+
__pLiveboxFrame = pLiveboxFrame;
+ if( pLiveboxFrame == null)
+ {
+ return E_SUCCESS;
+ }
+
_LiveboxFrameImpl* pLiveboxFrameImpl = _LiveboxFrameImpl::GetInstance(*pLiveboxFrame);
- SysAssertf(pLiveboxFrameImpl != null, "Not-yet constructed! Construct() should be called before use.");
+// SysAssertf(pLiveboxFrameImpl != null, "Not-yet constructed! Construct() should be called before use.");
+ SysTryReturnResult(NID_APP, pLiveboxFrameImpl, E_INVALID_OPERATION, "Not-yet constructed! LiveboxFrame::Construct() should be called before use.");
- pLiveboxFrameImpl->SetProviderId(GetId());
+ pLiveboxFrameImpl->SetProviderId(GetInstanceId());
return E_SUCCESS;
}
//
// Open Service Platform
// Copyright (c) 2012 Samsung Electronics Co., Ltd.
-// All rights reserved.
//
-// This software contains confidential and proprietary information
-// of Samsung Electronics Co., Ltd.
-// The user of this software agrees not to disclose, disseminate or copy such
-// Confidential Information and shall use the software only in accordance with
-// the terms of the license agreement the user entered into with Samsung.
+// Licensed under the Apache License, Version 2.0 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
//
/**
//
// Open Service Platform
// Copyright (c) 2012 Samsung Electronics Co., Ltd.
-// All rights reserved.
//
-// This software contains confidential and proprietary information
-// of Samsung Electronics Co., Ltd.
-// The user of this software agrees not to disclose, disseminate or copy such
-// Confidential Information and shall use the software only in accordance with
-// the terms of the license agreement the user entered into with Samsung.
+// Licensed under the Apache License, Version 2.0 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
//
/**
//
// Open Service Platform
// Copyright (c) 2012 Samsung Electronics Co., Ltd.
-// All rights reserved.
//
-// This software contains confidential and proprietary information
-// of Samsung Electronics Co., Ltd.
-// The user of this software agrees not to disclose, disseminate or copy such
-// Confidential Information and shall use the software only in accordance with
-// the terms of the license agreement the user entered into with Samsung.
+// Licensed under the Apache License, Version 2.0 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
//
/**
//
// Open Service Platform
// Copyright (c) 2012 Samsung Electronics Co., Ltd.
-// All rights reserved.
//
-// This software contains confidential and proprietary information
-// of Samsung Electronics Co., Ltd.
-// The user of this software agrees not to disclose, disseminate or copy such
-// Confidential Information and shall use the software only in accordance with
-// the terms of the license agreement the user entered into with Samsung.
+// Licensed under the Apache License, Version 2.0 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
//
/**
//
// Open Service Platform
// Copyright (c) 2012 Samsung Electronics Co., Ltd.
-// All rights reserved.
//
-// This software contains confidential and proprietary information
-// of Samsung Electronics Co., Ltd.
-// The user of this software agrees not to disclose, disseminate or copy such
-// Confidential Information and shall use the software only in accordance with
-// the terms of the license agreement the user entered into with Samsung.
+// Licensed under the Apache License, Version 2.0 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
/**
- * @file .h
+ * @file FShell_LiveboxManagerIpcMessage.h
* @brief This is the header file for the LiveboxManagerService Ipc message types.
*/
#include "ipc/ipc_message_macros.h"
#include "FIo_IpcCommonParamTraits.h"
+#include "FIo_IpcMessageStart.h"
-#define IPC_MESSAGE_START AppManagerServiceStart
+#define IPC_MESSAGE_START LiveboxManagerServiceStart
IPC_SYNC_MESSAGE_CONTROL2_1(LiveboxManager_RequestUpdate, Tizen::Base::String, Tizen::Base::String, result)
IPC_SYNC_MESSAGE_CONTROL3_1(LiveboxManager_RequestSharedMemoryId, Tizen::Base::String, int, int, int)
//
// Open Service Platform
// Copyright (c) 2012 Samsung Electronics Co., Ltd.
-// All rights reserved.
//
-// This software contains confidential and proprietary information
-// of Samsung Electronics Co., Ltd.
-// The user of this software agrees not to disclose, disseminate or copy such
-// Confidential Information and shall use the software only in accordance with
-// the terms of the license agreement the user entered into with Samsung.
+// Licensed under the Apache License, Version 2.0 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
//
-
/**
* @file FShell_LiveboxManagerProxy.h
* @brief This is the header file for the _LiveboxManagerProxy class.
//
-// Tizen C++ SDK
+// Open Service Platform
// Copyright (c) 2012 Samsung Electronics Co., Ltd.
-// All rights reserved.
//
-// This software contains confidential and proprietary information
-// of Samsung Electronics Co., Ltd.
-// The user of this software agrees not to disclose, disseminate or copy such
-// Confidential Information and shall use the software only in accordance with
-// the terms of the license agreement the user entered into with Samsung.
+// Licensed under the Apache License, Version 2.0 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
//
/**
- * @file FShellLiveboxPopupProvider.h
- * @brief This is the header file for the LiveboxPopupProvider class.
+ * @file FShell_LiveboxPopupProviderImpl.h
+ * @brief This is the header file for the _LiveboxPopupProviderImpl class.
*
- * This header file contains the declarations of the %LiveboxPopupProvider class.
+ * This header file contains the declarations of the %_LiveboxPopupProviderImpl class.
*/
-#ifndef _FSHELL_LIVEBOX_POPUP_PROVIDER_H_
-#define _FSHELL_LIVEBOX_POPUP_PROVIDER_H_
+#ifndef _FSHELL_INTERNAL_LIVEBOX_POPUP_PROVIDER_IMPL_H_
+#define _FSHELL_INTERNAL_LIVEBOX_POPUP_PROVIDER_IMPL_H_
#include <FBaseObject.h>
-#include <FBaseColIList.h>
+#include <FBaseString.h>
namespace Tizen { namespace Shell
{
-class LiveboxFrame;
class LiveboxPopup;
-/**
- * @class LiveboxPopupProvider
- * @brief This class is the abstract base class of all Livebox popup provider
- *
- * @since 2.1
- *
- * The %LiveboxPopupProvider class is a base class which represents a Livebox provider
- */
-class _OSP_EXPORT_ LiveboxPopupProvider
+class _OSP_EXPORT_ _LiveboxPopupProviderImpl
: public Tizen::Base::Object
{
public:
- /**
- * This is the default constructor for this class.
- *
- * @since 2.1
- */
- LiveboxPopupProvider();
-
- /**
- * This destructor overrides Tizen::Base::Object::~Object().
- *
- * @since 2.1
- */
- virtual ~LiveboxPopupProvider();
-
-protected:
- /**
- * Called when the Livebox popup provider is required to be created @n
- *
- * @since 2.1
- *
- * @param[in] width The width of the Livebox
- * @param[in] height The height of the Livebox
- * @param[in] userInfo User information that specifed when the Livebox is added
- *
- * @remarks LiveboxPopup should be created and set here
- * @see SetLiveboxPopup
- */
- virtual void OnLiveboxPopupProviderInitializing(const Tizen::Base::String& userInfo) = 0;
-
- /**
- * Called when the Livebox popup provider is required to be destroyed @n
- *
- * @since 2.1
- */
- virtual void OnLiveboxPopupProviderTerminating() = 0;
+ _LiveboxPopupProviderImpl(const Tizen::Base::String& instanceId);
+ virtual ~_LiveboxPopupProviderImpl();
- /**
- * Gets the Livebox's Id.
- *
- * @since 2.1
- *
- * @return The Livebox Id
- */
- Tizen::Base::String GetId() const;
-
- /**
- * Sets the frame to the Livebox
- *
- * @since 2.1
- *
- * @return An error code
- * @param[in] frame The frame to be set to the Livebox
- * @exception E_SUCCESS The method is successful.
- * @exception E_INVALID_ARG The specified input parameter is invalid.
- * @exception E_OBJ_ALREADY_EXIST The frame to be added is already registered with the UI application.
- * @exception E_SYSTEM A system error has occurred.
- */
- void SetLiveboxPopup(Tizen::Shell::LiveboxPopup* pLiveboxPopup);
-
- /**
- * Get the frame from the Livebox
- *
- * @since 2.1
- *
- * @return The LiveBoxFrame instnace, or null if any LiveboxFrame is set yet.
- * @param[in] frame The frame to be set to the Livebox
- * @exception E_SUCCESS The method is successful.
- * @exception E_INVALID_ARG The specified input parameter is invalid.
- * @exception E_OBJ_ALREADY_EXIST The frame to be added is already registered with the UI application.
- * @exception E_SYSTEM A system error has occurred.
- */
+ const Tizen::Base::String& GetInstanceId() const;
+ result SetLiveboxPopup(Tizen::Shell::LiveboxPopup* pLiveboxPopup);
Tizen::Shell::LiveboxPopup* GetLiveboxPopup() const;
private:
- /**
- * Initializes this instance of %LiveboxPopupProvider
- *
- * @since 2.1
- */
- result Construct(const Tizen::Base::String& instanceId);
-
- /*
- * The implementation of this copy constructor is intentionally blank and declared as private to prohibit copying of objects.
- *
- * @since 2.1
- */
- LiveboxPopupProvider(const LiveboxPopupProvider& rhs);
-
- /*
- * The implementation of this copy assignment operator is intentionally blank and declared as private to prohibit copying of objects.
- *
- * @since 2.1
- */
- LiveboxPopupProvider& operator =(const LiveboxPopupProvider& rhs);
-
-protected:
- //
- // This method is for internal use only. Using this method can cause behavioral,
- // security-related, and consistency-related issues in the application.
- //
- // @since 2.1
- //
- virtual void LiveboxPopupProvider_Reserved1(void) {}
-
- //
- // This method is for internal use only. Using this method can cause behavioral,
- // security-related, and consistency-related issues in the application.
- //
- // @since 2.1
- //
- virtual void LiveboxPopupProvider_Reserved2(void) {}
-
- //
- // This method is for internal use only. Using this method can cause behavioral,
- // security-related, and consistency-related issues in the application.
- //
- // @since 2.1
- //
- virtual void LiveboxPopupProvider_Reserved3(void) {}
+ _LiveboxPopupProviderImpl();
+ _LiveboxPopupProviderImpl(const _LiveboxPopupProviderImpl& rhs);
+ _LiveboxPopupProviderImpl& operator =(const _LiveboxPopupProviderImpl& rhs);
private:
- Tizen::Shell::LiveboxPopup* __pLiveboxFrame;
- class _LiveboxProviderImpl* __pLiveboxProviderImpl;
-
- friend class _LiveboxManagerImpl;
+ Tizen::Base::String __instanceId;
+ LiveboxPopup* __pLiveboxPopup;
};
} /* namespace Livebox */
-} /* namespace Samsung */
-#endif /* _FSHELL_LIVEBOX_POPUP_PROVIDER_H_ */
+}
+#endif /* _FSHELL_INTERNAL_LIVEBOX_POPUP_PROVIDER_IMPL_H_ */
//
// Open Service Platform
// Copyright (c) 2012 Samsung Electronics Co., Ltd.
-// All rights reserved.
//
-// This software contains confidential and proprietary information
-// of Samsung Electronics Co., Ltd.
-// The user of this software agrees not to disclose, disseminate or copy such
-// Confidential Information and shall use the software only in accordance with
-// the terms of the license agreement the user entered into with Samsung.
+// Licensed under the Apache License, Version 2.0 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
//
/**
* This header file contains the declarations of the _LiveboxProviderImpl class.
*/
-#ifndef FShell_LiveboxIMPL_H_
-#define FShell_LiveboxIMPL_H_
+#ifndef _FSHELL_LIVEBOXPROVIDER_IMPL_H_
+#define _FSHELL_LIVEBOXPROVIDER_IMPL_H_
#include <FBaseObject.h>
#include <FBaseString.h>
: public Tizen::Base::Object
{
public:
- _LiveboxProviderImpl(const Tizen::Base::String& id);
+ _LiveboxProviderImpl(const Tizen::Base::String& instanceId);
virtual ~_LiveboxProviderImpl();
- const Tizen::Base::String& GetId() const;
+ const Tizen::Base::String& GetInstanceId() const;
result SetLiveboxFrame(LiveboxFrame* pLiveboxFrame);
LiveboxFrame* GetLiveboxFrame() const;
private:
- Tizen::Base::String __id;
+ Tizen::Base::String __instanceId;
LiveboxFrame* __pLiveboxFrame;
- class LiveboxProvider* __pLivebox;
};
}} // Tizen::Shell
-#endif /* FShell_LiveboxIMPL_H_ */
+#endif /* _FSHELL_LIVEBOXPROVIDER_IMPL_H_ */
//
// Open Service Platform
// Copyright (c) 2012 Samsung Electronics Co., Ltd.
-// All rights reserved.
//
-// This software contains confidential and proprietary information
-// of Samsung Electronics Co., Ltd.
-// The user of this software agrees not to disclose, disseminate or copy such
-// Confidential Information and shall use the software only in accordance with
-// the terms of the license agreement the user entered into with Samsung.
+// Licensed under the Apache License, Version 2.0 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
//
/**
//
// Open Service Platform
// Copyright (c) 2012 Samsung Electronics Co., Ltd.
-// All rights reserved.
//
-// This software contains confidential and proprietary information
-// of Samsung Electronics Co., Ltd.
-// The user of this software agrees not to disclose, disseminate or copy such
-// Confidential Information and shall use the software only in accordance with
-// the terms of the license agreement the user entered into with Samsung.
+// Licensed under the Apache License, Version 2.0 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
//
/**
//
// Open Service Platform
// Copyright (c) 2012 Samsung Electronics Co., Ltd.
-// All rights reserved.
//
-// This software contains confidential and proprietary information
-// of Samsung Electronics Co., Ltd.
-// The user of this software agrees not to disclose, disseminate or copy such
-// Confidential Information and shall use the software only in accordance with
-// the terms of the license agreement the user entered into with Samsung.
+// Licensed under the Apache License, Version 2.0 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
//
/**
- * @file FAppAppManager.h
- * @brief This is the header file for the %AppManager class.
+ * @file FShell_TemplateUtil.h
+ * @brief This is the header file for the internap Tizen::Shell utilities.
*
* This header file contains the declarations of the %AppManager class.
*/
-#ifndef FAPP_INTERNAL_STRINGKEY_HASHMAP_UTIL_H_
-#define FAPP_INTERNAL_STRINGKEY_HASHMAP_UTIL_H_
+#ifndef FSHELL_INTERNAL_STRINGKEY_TEMPLATE_UTIL_H_
+#define FSHELL_INTERNAL_STRINGKEY_TEMPLATE_UTIL_H_
#include <FBaseString.h>
-#endif // FAPP_INTERNAL_STRINGKEY_HASHMAP_UTIL_H_
+#endif // FSHELL_INTERNAL_STRINGKEY_TEMPLATE_UTIL_H_