Modified SetFrame
authorHeeJu Kang <mobum.kang@samsung.com>
Fri, 21 Dec 2012 07:23:35 +0000 (16:23 +0900)
committerHeeJu Kang <mobum.kang@samsung.com>
Fri, 21 Dec 2012 07:23:35 +0000 (16:23 +0900)
Change-Id: I7eba75db936e93e1de7a70cd4da5d723a4012c33
Signed-off-by: HeeJu Kang <mobum.kang@samsung.com>
inc/FShellLiveboxPopupProvider.h
src/FShellLiveboxPopupProvider.cpp
src/FShell_LiveboxProviderImpl.cpp

index d46977b..4179749 100644 (file)
@@ -162,7 +162,7 @@ protected:
        virtual void LiveboxPopupProvider_Reserved3(void) {}
 
 private:
-       Tizen::Shell::LiveboxPopup*   __pLiveboxFrame;//Todo to impl
+       Tizen::Shell::LiveboxPopup*   __pLiveboxPopup;//Todo to impl
        class _LiveboxProviderImpl* __pLiveboxProviderImpl;
 
        friend class _LiveboxManagerImpl;
index 8bcb638..9c3acbe 100644 (file)
@@ -21,6 +21,7 @@
 
 #include "FShell_LiveboxProviderImpl.h"
 #include "FShellLiveboxPopupProvider.h"
+#include "FShell_LiveboxPopupImpl.h"
 
 namespace Tizen { namespace Shell
 {
@@ -56,16 +57,22 @@ LiveboxPopupProvider::GetId() const
 }
 
 void
-LiveboxPopupProvider::SetLiveboxPopup(LiveboxPopup* pLiveboxFrame)
+LiveboxPopupProvider::SetLiveboxPopup(LiveboxPopup* pLiveboxPopup)
 {
-       __pLiveboxFrame = pLiveboxFrame;
-//     return __pLiveboxProviderImpl->SetLiveboxFrame(pLiveboxFrame);
+       __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);
 }
 
 LiveboxPopup*
 LiveboxPopupProvider::GetLiveboxPopup() const
 {
-       return __pLiveboxFrame;
+       return __pLiveboxPopup;
 //     return __pLiveboxProviderImpl->GetLiveboxFrame();
 }
 
index 951f304..cbca71b 100644 (file)
@@ -20,6 +20,7 @@
 
 //#include <FShellLiveboxProvider.h>
 #include "FShell_LiveboxProviderImpl.h"
+#include "FShell_LiveboxFrameImpl.h"
 
 namespace Tizen { namespace Shell
 {
@@ -48,6 +49,12 @@ result
 _LiveboxProviderImpl::SetLiveboxFrame(LiveboxFrame* pLiveboxFrame)
 {
        __pLiveboxFrame = pLiveboxFrame;
+
+       _LiveboxFrameImpl* pLiveboxFrameImpl = _LiveboxFrameImpl::GetInstance(*pLiveboxFrame);
+       SysAssertf(pLiveboxFrameImpl != null, "Not-yet constructed! Construct() should be called before use.");
+
+       pLiveboxFrameImpl->SetProviderId(GetId());
+
        return E_SUCCESS;
 }