apply Pre-ACR result, add _LiveboxPopupProviderImpl
authorjungmin76.park <jungmin76.park@samsung.com>
Tue, 18 Dec 2012 03:07:34 +0000 (12:07 +0900)
committerjungmin76.park <jungmin76.park@samsung.com>
Fri, 21 Dec 2012 13:58:24 +0000 (22:58 +0900)
Change-Id: Ia6aa481417afde7073c418efca80300e0fcb8fa1
Signed-off-by: jungmin76.park <jungmin76.park@samsung.com>
26 files changed:
inc/FShellLiveboxManager.h [changed mode: 0644->0755]
inc/FShellLiveboxPopupProvider.h
inc/FShellLiveboxProvider.h [changed mode: 0644->0755]
inc/FShellLiveboxProviderInfo.h
src/CMakeLists.txt
src/FShellLiveboxManager.cpp
src/FShellLiveboxPopupProvider.cpp
src/FShellLiveboxProvider.cpp
src/FShellLiveboxProviderInfo.cpp
src/FShellLiveboxSizeInfo.cpp
src/FShell_LiveboxManagerImpl.cpp
src/FShell_LiveboxManagerIpcMessage.cpp
src/FShell_LiveboxManagerProxy.cpp
src/FShell_LiveboxPopupProviderImpl.cpp
src/FShell_LiveboxProviderImpl.cpp
src/FShell_LiveboxProviderInfoImpl.cpp
src/FShell_LiveboxSizeInfoImpl.cpp
src/inc/FShell_ILiveboxTouchEventListener.h
src/inc/FShell_LiveboxManagerImpl.h
src/inc/FShell_LiveboxManagerIpcMessage.h
src/inc/FShell_LiveboxManagerProxy.h
src/inc/FShell_LiveboxPopupProviderImpl.h
src/inc/FShell_LiveboxProviderImpl.h
src/inc/FShell_LiveboxProviderInfoImpl.h
src/inc/FShell_LiveboxSizeInfoImpl.h
src/inc/FShell_TemplateUtil.h

old mode 100644 (file)
new mode 100755 (executable)
index 7fe788d..32e65f7
@@ -114,6 +114,8 @@ public:
         *
         * @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
         *
@@ -126,7 +128,7 @@ public:
        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
         *
@@ -136,7 +138,8 @@ public:
         * @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"");
@@ -146,15 +149,14 @@ public:
         * 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.
@@ -164,6 +166,7 @@ public:
         * @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);
index 916b76a..d0353fc 100644 (file)
@@ -31,7 +31,6 @@
 namespace Tizen { namespace Shell
 {
 
-class LiveboxFrame;
 class LiveboxPopup;
 
 /**
@@ -66,8 +65,6 @@ protected:
         *
         * @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
@@ -83,35 +80,25 @@ protected:
        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.
@@ -167,9 +154,7 @@ protected:
        virtual void LiveboxPopupProvider_Reserved3(void) {}
 
 private:
-       Tizen::Shell::LiveboxPopup*   __pLiveboxPopup;//Todo to impl
-       class _LiveboxProviderImpl* __pLiveboxProviderImpl;
-
+       class _LiveboxPopupProviderImpl* __pLiveboxPopupProviderImpl;
        friend class _LiveboxManagerImpl;
 };
 
old mode 100644 (file)
new mode 100755 (executable)
index 1dd23a7..98e236b
@@ -82,7 +82,7 @@ protected:
         * 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();
@@ -111,46 +111,53 @@ protected:
         *
         * @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:
 
index e71d5a4..3afa110 100644 (file)
@@ -50,6 +50,9 @@ public:
         * 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);
 
index 463dfd1..d143a42 100644 (file)
@@ -59,6 +59,7 @@ SET (${this_target}_SOURCE_FILES
        FShell_QuickPanelFrameImpl.cpp
        FShell_QuickPanelFramePresenter.cpp
        FShell_LiveboxProviderImpl.cpp
+       FShell_LiveboxPopupProviderImpl.cpp
        FShell_LiveboxProviderInfoImpl.cpp
        FShell_LiveboxSizeInfoImpl.cpp
        FShell_LiveboxManagerImpl.cpp
index d0f1df7..88312e4 100644 (file)
@@ -1,13 +1,18 @@
 //
 // 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.
 //
 
 /**
index 9c3acbe..bb16464 100644 (file)
@@ -1,13 +1,18 @@
 //
 // 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.
 //
 
 /**
@@ -18,9 +23,9 @@
 #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
@@ -44,36 +49,28 @@ result
 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
index abcba7a..91af943 100644 (file)
@@ -1,13 +1,18 @@
 //
 // 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.
 //
 
 /**
@@ -47,11 +52,11 @@ LiveboxProvider::Construct(const String& instanceId)
        return E_SUCCESS;
 }
 
-String
+/*String
 LiveboxProvider::GetId() const
 {
        return __pLiveboxProviderImpl->GetId();
-}
+}*/
 
 result
 LiveboxProvider::SetLiveboxFrame(LiveboxFrame* pLiveboxFrame)
index 681dcd8..375c4c1 100644 (file)
@@ -1,13 +1,18 @@
 //
 // 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.
 //
 
 /**
index 3531cf6..eac6875 100644 (file)
@@ -1,13 +1,18 @@
 //
 // 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.
 //
 
 /**
index b84bf7d..c6e8ce1 100644 (file)
@@ -1,13 +1,18 @@
 //
 // 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.
 //
 
 /**
@@ -233,7 +238,14 @@ result
 _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;
 }
 
index a0d2e5d..a1b49dc 100644 (file)
@@ -1,13 +1,18 @@
 //
 // 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.
 //
 
 /**
index 96618bd..bd1b677 100644 (file)
@@ -1,13 +1,18 @@
 //
 // 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.
 //
 
 /**
index 8bcb638..0485f4c 100644 (file)
@@ -1,13 +1,18 @@
 //
 // 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
index cbca71b..aad972c 100644 (file)
@@ -1,13 +1,18 @@
 //
 // 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.
 //
 
 /**
@@ -18,7 +23,6 @@
 #include <FBase.h>
 #include <FShellLiveboxFrame.h>
 
-//#include <FShellLiveboxProvider.h>
 #include "FShell_LiveboxProviderImpl.h"
 #include "FShell_LiveboxFrameImpl.h"
 
@@ -27,8 +31,8 @@ namespace Tizen { namespace Shell
 
 using namespace Tizen::Base;
 
-_LiveboxProviderImpl::_LiveboxProviderImpl(const String& id)
-       :__id(id)
+_LiveboxProviderImpl::_LiveboxProviderImpl(const String& instanceId)
+       :__instanceId(instanceId)
        ,__pLiveboxFrame(null)
 {
 
@@ -40,20 +44,28 @@ _LiveboxProviderImpl::~_LiveboxProviderImpl()
 }
 
 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;
 }
index 910c76d..e56b909 100644 (file)
@@ -1,13 +1,18 @@
 //
 // 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.
 //
 
 /**
index 190278f..63498ab 100644 (file)
@@ -1,13 +1,18 @@
 //
 // 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.
 //
 
 /**
index 4c2abcc..12aa87a 100644 (file)
@@ -1,13 +1,18 @@
 //
 // 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.
 //
 
 /**
index f700b44..c8f4383 100644 (file)
@@ -1,13 +1,18 @@
 //
 // 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.
 //
 
 /**
index e4897e4..7e0852f 100644 (file)
@@ -1,16 +1,22 @@
 //
 // 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)
index 05a6596..bd65ada 100644 (file)
@@ -1,15 +1,19 @@
 //
 // 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.
index c6ee872..e51a06e 100644 (file)
 //
-// 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_ */
index 29ef674..6a16df0 100644 (file)
@@ -1,13 +1,18 @@
 //
 // 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.
 //
 
 /**
@@ -17,8 +22,8 @@
  * 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>
@@ -32,19 +37,18 @@ class _LiveboxProviderImpl
        : 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_ */
index 456a19b..80e5e17 100644 (file)
@@ -1,13 +1,18 @@
 //
 // 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.
 //
 
 /**
index 2b65af3..39654ef 100644 (file)
@@ -1,13 +1,18 @@
 //
 // 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.
 //
 
 /**
index 3b96997..8f989bc 100644 (file)
@@ -1,24 +1,29 @@
 //
 // 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>
@@ -166,4 +171,4 @@ class __MultiHashMapDefaultProviderT<String>
 
 
 
-#endif // FAPP_INTERNAL_STRINGKEY_HASHMAP_UTIL_H_
+#endif // FSHELL_INTERNAL_STRINGKEY_TEMPLATE_UTIL_H_