Nabi issue fix and API privilege check
authorchitta ranjan <chitta.rs@samsung.com>
Fri, 10 May 2013 07:18:53 +0000 (16:18 +0900)
committerchitta ranjan <chitta.rs@samsung.com>
Fri, 10 May 2013 07:18:53 +0000 (16:18 +0900)
Change-Id: Ia8708094d4d2291b63d5e63a6fac6c0a6bbb1cff
Signed-off-by: chitta ranjan <chitta.rs@samsung.com>
15 files changed:
src/GlAlbumListEditorForm.cpp
src/GlAlbumListForm.cpp [changed mode: 0755->0644]
src/GlAlbumNameEditorForm.cpp
src/GlAllListEditorPanel.cpp
src/GlAllListPanel.cpp
src/GlAllListSelectionPanel.cpp
src/GlBaseForm.cpp
src/GlFileListEditorForm.cpp
src/GlFileListForm.cpp
src/GlFileListPresentationModel.cpp
src/GlImageListEditorPanel.cpp
src/GlImageListPanel.cpp
src/GlProgressAnimation.cpp
src/GlVideoListEditorPanel.cpp
src/GlVideoListPanel.cpp

index d799d71..3a51699 100644 (file)
@@ -141,7 +141,7 @@ void
 AlbumListEditorForm::OnContentUpdated(void)
 {
        AppLogDebug("ENTER");
-       int maxCount = __pPresentationModel->GetFolderCount();\r
+       int maxCount = __pPresentationModel->GetFolderCount();
        if(__pDeletePopup != null)
        {
                if(__pDeletePopup->IsVisible() == true)
@@ -152,10 +152,10 @@ AlbumListEditorForm::OnContentUpdated(void)
                }
        }
 
-       for (int i = 0; i < maxCount; ++i)\r
-       {\r
-               __pEditorFolderIconList->SetItemChecked(i, false);\r
-       }\r
+       for (int i = 0; i < maxCount; ++i)
+       {
+               __pEditorFolderIconList->SetItemChecked(i, false);
+       }
        SceneManager* pSceneManager = SceneManager::GetInstance();
        pSceneManager->GoForward(ForwardSceneTransition(IDSCN_ALBUM_LIST));
        AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
@@ -223,9 +223,9 @@ AlbumListEditorForm::InitializePopup(void)
                pCancelButton->SetActionId(IDA_DELETE_POPUP_CANCEL);
                pCancelButton->AddActionEventListener(*this);
 
-               __pDeletePopup->AddControl(*pLabel);
-               __pDeletePopup->AddControl(*pDeleteButton);
-               __pDeletePopup->AddControl(*pCancelButton);
+               __pDeletePopup->AddControl(pLabel);
+               __pDeletePopup->AddControl(pDeleteButton);
+               __pDeletePopup->AddControl(pCancelButton);
        }
        else
        {
@@ -779,7 +779,7 @@ AlbumListEditorForm::OnRequestMessage(void)
                r = __pPresentationModel->StartAppControl(APPCONTROL_PROVIDER_ID_MESSAGE, APPCONTROL_OPERATION_ID_COMPOSE,
                                null, null, pDataList, null);
 
-               if(r == E_MAX_EXCEEDED)
+               if (r == E_MAX_EXCEEDED)
                {
                        MessageBox messageBox;
                        messageBox.Construct(L"", ResourceManager::GetString(L"IDS_RCS_BODY_MAXIMUM_NUMBER_OF_FILES_EXCEEDED"),
@@ -854,7 +854,7 @@ AlbumListEditorForm::OnRequestEmail(void)
                r = __pPresentationModel->StartAppControl(APPCONTROL_PROVIDER_ID_EMAIL, APPCONTROL_OPERATION_ID_COMPOSE,
                                new (std::nothrow) String(APPCONTROL_URI_MAIL_TO), null, pDataList, null);
 
-               if(r == E_MAX_EXCEEDED)
+               if (r == E_MAX_EXCEEDED)
                {
                        MessageBox messageBox;
                        messageBox.Construct(L"", ResourceManager::GetString(L"IDS_RCS_BODY_MAXIMUM_NUMBER_OF_FILES_EXCEEDED"),
old mode 100755 (executable)
new mode 100644 (file)
index ce2212e..0b9d4c1
@@ -190,7 +190,7 @@ AlbumListForm::InitializeFooter(void)
                        footerMore.SetIcon(BUTTON_ITEM_STATUS_PRESSED, pBitmapMorePressed);
                }
 
-               pFooter->SetButton(BUTTON_POSITION_LEFT,footerMore);
+               pFooter->SetButton(BUTTON_POSITION_LEFT, footerMore);
                delete pBitmapMore;
                delete pBitmapMoreDim;
                delete pBitmapMorePressed;
@@ -501,6 +501,14 @@ AlbumListForm::OnContentUpdated(void)
 
        __itemCount = __pPresentationModel->GetFolderCount();
        __pAlbumViewIconList->UpdateList();
+       if (__itemCount == 0 )
+       {
+               GetFooter()->SetButtonEnabled(BUTTON_POSITION_LEFT, false);
+       }
+       else
+       {
+               GetFooter()->SetButtonEnabled(BUTTON_POSITION_LEFT, true);
+       }
        AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
 }
 
index b99d9d1..d346be5 100644 (file)
@@ -116,7 +116,7 @@ AlbumNameEditorForm::OnInitializing(void)
        __pNameEditField->SetColor(EDIT_STATUS_NORMAL, COLOR_NAME_EDIT_FIELD);
        __pNameEditField->SetOverlayKeypadCommandButtonVisible(false);
 
-       AddControl(*__pNameEditField);
+       AddControl(__pNameEditField);
        __pNameEditField->AddActionEventListener(*this);
 
        return E_SUCCESS;
@@ -280,7 +280,7 @@ AlbumNameEditorForm::OnRenameAlbum(String& strOri)
                Rectangle rect(0, 0, clientRect.width, clientRect.height);
                __pProgressAnim = new (std::nothrow) ProgressAnimation;
                __pProgressAnim->Construct(rect);
-               AddControl(*__pProgressAnim);
+               AddControl(__pProgressAnim);
                __pProgressAnim->SetShowState(true);
                GetFooter()->SetEnabled(false);
                __pProgressAnim->AnimationStart();
@@ -359,7 +359,7 @@ void AlbumNameEditorForm::OnAlbumRenameComplete(void)
        //Hide popup here..
        __pProgressAnim->AnimationStop();
        __pProgressAnim->SetShowState(false);
-       RemoveControl(*__pProgressAnim);
+       RemoveControl(__pProgressAnim);
        _overlayMsg = false;
        GetFooter()->SetEnabled(true);
        SceneManager* pSceneManager = SceneManager::GetInstance();
index c4c28ea..a9946b2 100644 (file)
@@ -118,7 +118,7 @@ AllListEditorPanel::OnInitializing(void)
        __pContentIconListView->SetCheckBoxPosition(ICON_LIST_VIEW_CHECK_BOX_POSITION_TOP_LEFT);
        __pContentIconListView->AddIconListViewItemEventListener(*this);
        __pContentIconListView->SetTouchAnimationEnabled(false);
-       AddControl(*__pContentIconListView);
+       AddControl(__pContentIconListView);
        __pContentIconListView->SetShowState(true);
 
        __pLabelSelectCnt = new (std::nothrow) Label();
@@ -131,7 +131,7 @@ AllListEditorPanel::OnInitializing(void)
        __pLabelSelectCnt->SetBackgroundColor(COLOR_COUNT_LABEL);
        __pLabelSelectCnt->SetTextColor(Color(COLOR_SELECT_COUNT_FONT));
        __pLabelSelectCnt->SetTextConfig(COUNT_LABEL_FONT_SIZE, LABEL_TEXT_STYLE_BOLD);
-       AddControl(*__pLabelSelectCnt);
+       AddControl(__pLabelSelectCnt);
        __pLabelSelectCnt->Invalidate(true);
 
        __pButtonSelectRegion = new (std::nothrow) Button();
@@ -148,7 +148,7 @@ AllListEditorPanel::OnInitializing(void)
                __pButtonSelectRegion->SetNormalBitmap(Point(buttonRegionRect.width, buttonRegionRect.height),
                                *pSelectionBitmap);
        }
-       AddControl(*__pButtonSelectRegion);
+       AddControl(__pButtonSelectRegion);
 
        if (pSelectionBitmap != null)
        {
@@ -655,7 +655,7 @@ AllListEditorPanel::OnRequestMessage(void)
        r = __pPresentationModel->StartAppControl(APPCONTROL_PROVIDER_ID_MESSAGE, APPCONTROL_OPERATION_ID_COMPOSE, null,
                        null, pDataList, null);
 
-       if(r == E_MAX_EXCEEDED)
+       if (r == E_MAX_EXCEEDED)
        {
                MessageBox messageBox;
                messageBox.Construct(L"", ResourceManager::GetString(L"IDS_RCS_BODY_MAXIMUM_NUMBER_OF_FILES_EXCEEDED"),
@@ -705,7 +705,7 @@ AllListEditorPanel::OnRequestEmail(void)
        r = __pPresentationModel->StartAppControl(APPCONTROL_PROVIDER_ID_EMAIL, APPCONTROL_OPERATION_ID_COMPOSE,
                        new (std::nothrow) String(APPCONTROL_URI_MAIL_TO), null, pDataList, null);
 
-       if(r == E_MAX_EXCEEDED)
+       if (r == E_MAX_EXCEEDED)
        {
                MessageBox messageBox;
                messageBox.Construct(L"", ResourceManager::GetString(L"IDS_RCS_BODY_MAXIMUM_NUMBER_OF_FILES_EXCEEDED"),
@@ -755,7 +755,7 @@ AllListEditorPanel::OnRequestSlideShow(void)
        r = __pPresentationModel->StartAppControl(APPCONTROL_PROVIDER_ID_IMAGE, APPCONTROL_OPERATION_ID_VIEW, null,
                        new (std::nothrow) String(APPCONTROL_MIME_IMAGE_ALL), pDataList, null);
 
-       if(r == E_MAX_EXCEEDED)
+       if (r == E_MAX_EXCEEDED)
        {
                MessageBox messageBox;
                messageBox.Construct(L"", ResourceManager::GetString(L"IDS_RCS_BODY_MAXIMUM_NUMBER_OF_FILES_EXCEEDED"),
index 2194165..d16bfcf 100644 (file)
@@ -139,7 +139,7 @@ AllListPanel::OnInitializing(void)
        __pContentIconListView->SetCheckBoxPosition(ICON_LIST_VIEW_CHECK_BOX_POSITION_TOP_RIGHT);
        __pContentIconListView->AddIconListViewItemEventListener(*this);
        __pContentIconListView->SetTouchAnimationEnabled(false);
-       result r = AddControl(*__pContentIconListView);
+       result r = AddControl(__pContentIconListView);
        __pContentIconListView->SetShowState(true);
 
        __itemCount = 0;
@@ -267,7 +267,7 @@ AllListPanel::OnIconListViewItemStateChanged(IconListView& view, int index, Icon
                r = __pPresentationModel->StartAppControl(APPCONTROL_PROVIDER_ID_IMAGE, APPCONTROL_OPERATION_ID_VIEW, null,
                                new (std::nothrow) String(APPCONTROL_MIME_IMAGE_ALL), pDataList, null);
 
-               if(r == E_MAX_EXCEEDED)
+               if (r == E_MAX_EXCEEDED)
                {
                        MessageBox messageBox;
                        messageBox.Construct(L"", ResourceManager::GetString(L"IDS_RCS_BODY_MAXIMUM_NUMBER_OF_FILES_EXCEEDED"),
index 4aa63db..2448bb7 100644 (file)
@@ -109,7 +109,7 @@ AllListSelectionPanel::OnInitializing(void)
        __pContentIconListView->SetCheckBoxPosition(ICON_LIST_VIEW_CHECK_BOX_POSITION_TOP_LEFT);
        __pContentIconListView->AddIconListViewItemEventListener(*this);
        __pContentIconListView->SetTouchAnimationEnabled(false);
-       AddControl(*__pContentIconListView);
+       AddControl(__pContentIconListView);
        __pContentIconListView->SetShowState(true);
 
        __itemCount = 0;
@@ -517,7 +517,7 @@ AllListSelectionPanel::OnRequestMessage(void)
 
        r = __pPresentationModel->StartAppControl(APPCONTROL_PROVIDER_ID_MESSAGE, APPCONTROL_OPERATION_ID_COMPOSE, null,
                        null, pDataList, null);
-       if(r == E_MAX_EXCEEDED)
+       if (r == E_MAX_EXCEEDED)
        {
                MessageBox messageBox;
                messageBox.Construct(L"", ResourceManager::GetString(L"IDS_RCS_BODY_MAXIMUM_NUMBER_OF_FILES_EXCEEDED"),
@@ -568,7 +568,7 @@ AllListSelectionPanel::OnRequestEmail(void)
        r = __pPresentationModel->StartAppControl(APPCONTROL_PROVIDER_ID_EMAIL, APPCONTROL_OPERATION_ID_COMPOSE,
                        new (std::nothrow) String(APPCONTROL_URI_MAIL_TO), null, pDataList, null);
 
-       if(r == E_MAX_EXCEEDED)
+       if (r == E_MAX_EXCEEDED)
        {
                MessageBox messageBox;
                messageBox.Construct(L"", ResourceManager::GetString(L"IDS_RCS_BODY_MAXIMUM_NUMBER_OF_FILES_EXCEEDED"),
@@ -618,7 +618,7 @@ AllListSelectionPanel::OnRequestSlideShow(void)
        r = __pPresentationModel->StartAppControl(APPCONTROL_PROVIDER_ID_IMAGE, APPCONTROL_OPERATION_ID_VIEW, null,
                        new (std::nothrow) String(APPCONTROL_MIME_IMAGE_ALL), pDataList, null);
 
-       if(r == E_MAX_EXCEEDED)
+       if (r == E_MAX_EXCEEDED)
        {
                MessageBox messageBox;
                messageBox.Construct(L"", ResourceManager::GetString(L"IDS_RCS_BODY_MAXIMUM_NUMBER_OF_FILES_EXCEEDED"),
index 2597caa..6c58453 100644 (file)
@@ -47,7 +47,7 @@ BaseForm::GetMoveFileIndexList(String& moveDir, IList* pMoveIndexList, FileListP
        if (pCollisionList != null)
        {
                int loopCount = pCollisionList->GetCount();
-               int collisionCount = 0;\r
+               int collisionCount = 0;
                for (int i = 0; i < loopCount; ++i)
                {
                        String* pCollisionString = const_cast<String*>(static_cast<const String*>(pCollisionList->GetAt(i)));
@@ -75,27 +75,27 @@ BaseForm::GetMoveFileIndexList(String& moveDir, IList* pMoveIndexList, FileListP
                                        st.GetNextToken(fileName);
                                }
 
-                               int innerLoopCount = pMoveIndexList->GetCount();\r
-                               for (int j = 0; j < innerLoopCount; ++j)\r
+                               int innerLoopCount = pMoveIndexList->GetCount();
+                               for (int j = 0; j < innerLoopCount; ++j)
                                {
-                                       if (collisionIndex == (const_cast<Integer*>(static_cast<const Integer*>\r
-                                       (pMoveIndexList->GetAt(j))))->ToInt())\r
+                                       if (collisionIndex == (const_cast<Integer*>(static_cast<const Integer*>
+                                       (pMoveIndexList->GetAt(j))))->ToInt())
                                        {
-                                               pMoveIndexList->RemoveAt(j, true);\r
-                                               --j;\r
-                                               --innerLoopCount;\r
-                                               collisionCount++;\r
+                                               pMoveIndexList->RemoveAt(j, true);
+                                               --j;
+                                               --innerLoopCount;
+                                               collisionCount++;
                                        }
                                }
                        }
-               }\r
-               if ( collisionCount > 0)\r
-               {\r
-                       MessageBox messageBox;\r
-                       messageBox.Construct(L"", L"Unable to move some files. Same files exists",\r
-                                       MSGBOX_STYLE_NONE, 3000);\r
-                       int modalResult;\r
-                       messageBox.ShowAndWait(modalResult);\r
+               }
+               if ( collisionCount > 0)
+               {
+                       MessageBox messageBox;
+                       messageBox.Construct(L"", L"Unable to move some files. Same files exists",
+                                       MSGBOX_STYLE_NONE, 3000);
+                       int modalResult;
+                       messageBox.ShowAndWait(modalResult);
                }
        }
        return pMoveIndexList;
index d7784a9..e7ba8b8 100644 (file)
@@ -112,7 +112,7 @@ FileListEditorForm::OnInitializing(void)
        {
                __pPopUp->Initialize();
                __pPopUp->SetEventListner(this);
-               AddControl(*__pPopUp);
+               AddControl(__pPopUp);
        }
 
        __pPresentationModel = FileListPresentationModel::GetInstance();
@@ -935,7 +935,7 @@ FileListEditorForm::SetUpPopup(void)
                        ResourceManager::GetString(L"IDS_COM_POP_DELETE_Q"));
        pLabelText->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
        pLabelText->SetTextConfig(34,LABEL_TEXT_STYLE_BOLD);
-       __pDeletePopup->AddControl(*pLabelText);
+       __pDeletePopup->AddControl(pLabelText);
 
        Button* pDeleteButton = new (std::nothrow) Button();
        pDeleteButton->Construct(Rectangle(0, Y_DELETE_BUTTON, popupClientBounds.width / 2 - GAP_W_POPUP_ITEM, H_DELETE_BUTTON),
@@ -945,14 +945,14 @@ FileListEditorForm::SetUpPopup(void)
        pDeleteButton->SetTextColor(COLOR_DELETE_BUTTON_TEXT);
        pDeleteButton->SetActionId(IDA_DELETE_POPUP_DEL);
        pDeleteButton->AddActionEventListener(*this);
-       __pDeletePopup->AddControl(*pDeleteButton);
+       __pDeletePopup->AddControl(pDeleteButton);
 
        Button* pButtonCancel = new (std::nothrow) Button();
        pButtonCancel->Construct(Rectangle(popupClientBounds.width / 2 + GAP_W_POPUP_ITEM, Y_DELETE_BUTTON,
                        popupClientBounds.width / 2 - GAP_W_POPUP_ITEM, H_DELETE_BUTTON), ResourceManager::GetString(L"IDS_COM_POP_CANCEL"));
        pButtonCancel->SetActionId(IDA_DELETE_POPUP_CANCEL);
        pButtonCancel->AddActionEventListener(*this);
-       __pDeletePopup->AddControl(*pButtonCancel);
+       __pDeletePopup->AddControl(pButtonCancel);
        AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
 
        return r;
index 6314115..819464e 100644 (file)
@@ -77,7 +77,7 @@ FileListForm::OnInitializing(void)
        {
                __pPopUp->Initialize();
                __pPopUp->SetEventListner(this);
-               AddControl(*__pPopUp);
+               AddControl(__pPopUp);
        }
 
        InitializeFooter();
@@ -310,7 +310,7 @@ FileListForm::OnSlideSettingPopUpItemSelected(int index)
                r = __pPresentationModel->StartAppControl(APPCONTROL_PROVIDER_ID_IMAGE, APPCONTROL_OPERATION_ID_VIEW, null,
                                new (std::nothrow) String(APPCONTROL_MIME_IMAGE_ALL), pDataList, null);
 
-               if(r == E_MAX_EXCEEDED)
+               if (r == E_MAX_EXCEEDED)
                {
                        MessageBox messageBox;
                        messageBox.Construct(L"", ResourceManager::GetString(L"IDS_RCS_BODY_MAXIMUM_NUMBER_OF_FILES_EXCEEDED"),
index 76a07f3..dd61657 100644 (file)
@@ -1596,8 +1596,13 @@ FileListPresentationModel::RotateImage(int index, RotateMode rotateMode)
        ImageFormat imageFormat;
        Image img;
        String filePath = GetContentFilePath(index);
-       r = img.Construct();
+       ContentType contentType = ContentManagerUtil::CheckContentType(filePath);
+       if (contentType == CONTENT_TYPE_VIDEO)
+       {
+               return r;
+       }
 
+       r = img.Construct();
 
        if (r == E_SUCCESS)
        {
@@ -1621,9 +1626,8 @@ FileListPresentationModel::RotateImage(int index, RotateMode rotateMode)
        {
                r = pRotatedBuffer->EncodeToFile(filePath, imageFormat, true, 100);
                delete pRotatedBuffer;
+               ContentManager::ScanFile(filePath);
        }
-
-       ContentManager::ScanFile(filePath);
        return r;
 }
 
index a0399c2..11218cd 100644 (file)
@@ -115,7 +115,7 @@ ImageListEditorPanel::OnInitializing(void)
                        __pContentIconListView->SetCheckBoxPosition(ICON_LIST_VIEW_CHECK_BOX_POSITION_TOP_RIGHT);
                        __pContentIconListView->AddIconListViewItemEventListener(*this);
                        __pContentIconListView->SetTouchAnimationEnabled(false);
-                       AddControl(*__pContentIconListView);
+                       AddControl(__pContentIconListView);
                        __pContentIconListView->SetShowState(true);
 
                        __pLabelSelectCnt = new (std::nothrow) Label();
@@ -126,7 +126,7 @@ ImageListEditorPanel::OnInitializing(void)
                        __pLabelSelectCnt->SetBackgroundColor(COLOR_COUNT_LABEL);
                        __pLabelSelectCnt->SetTextColor(Color(COLOR_SELECT_COUNT_FONT));
                        __pLabelSelectCnt->SetTextConfig(COUNT_LABEL_FONT_SIZE, LABEL_TEXT_STYLE_BOLD);
-                       AddControl(*__pLabelSelectCnt);
+                       AddControl(__pLabelSelectCnt);
                }
                else
                {
@@ -145,7 +145,7 @@ ImageListEditorPanel::OnInitializing(void)
                        __pContentIconListView->SetCheckBoxPosition(ICON_LIST_VIEW_CHECK_BOX_POSITION_TOP_RIGHT);
                        __pContentIconListView->AddIconListViewItemEventListener(*this);
                        __pContentIconListView->SetTouchAnimationEnabled(false);
-                       AddControl(*__pContentIconListView);
+                       AddControl(__pContentIconListView);
                        __pContentIconListView->SetShowState(true);
                }
        }
@@ -167,7 +167,7 @@ ImageListEditorPanel::OnInitializing(void)
                __pContentIconListView->SetCheckBoxPosition(ICON_LIST_VIEW_CHECK_BOX_POSITION_TOP_RIGHT);
                __pContentIconListView->AddIconListViewItemEventListener(*this);
                __pContentIconListView->SetTouchAnimationEnabled(false);
-               AddControl(*__pContentIconListView);
+               AddControl(__pContentIconListView);
                __pContentIconListView->SetShowState(true);
 
                __pLabelSelectCnt = new (std::nothrow) Label();
@@ -178,7 +178,7 @@ ImageListEditorPanel::OnInitializing(void)
                __pLabelSelectCnt->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
                __pLabelSelectCnt->SetBackgroundColor(COLOR_COUNT_LABEL);
                __pLabelSelectCnt->SetTextColor(Color(COLOR_SELECT_COUNT_FONT));
-               AddControl(*__pLabelSelectCnt);
+               AddControl(__pLabelSelectCnt);
        }
        AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
 
index 3ce2f24..e72a490 100644 (file)
@@ -103,7 +103,7 @@ ImageListPanel::OnInitializing(void)
        __pContentIconListView->SetCheckBoxPosition(ICON_LIST_VIEW_CHECK_BOX_POSITION_TOP_RIGHT);
        __pContentIconListView->AddIconListViewItemEventListener(*this);
        __pContentIconListView->SetTouchAnimationEnabled(false);
-       AddControl(*__pContentIconListView);
+       AddControl(__pContentIconListView);
        __pContentIconListView->SetShowState(true);
        __itemCount = 0;
        AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
index 4bca680..bb8a2ed 100644 (file)
@@ -187,7 +187,7 @@ ProgressAnimation::Construct(Tizen::Graphics::Rectangle rect)
                __pAnimation = new (std::nothrow) Animation();
                __pAnimation->Construct(Rectangle((rect.width / 2 - 60 / 2), (rect.height / 2 - 60 / 2), 60, 60), *__pAnimationFrameList);
                __pAnimation->SetRepeatCount(10000);
-               AddControl(*__pAnimation);
+               AddControl(__pAnimation);
        }
 
        return E_SUCCESS;
index f885bcd..e24b490 100644 (file)
@@ -126,7 +126,7 @@ VideoListEditorPanel::OnInitializing(void)
                        __pContentIconListView->SetTextOfEmptyList(ResourceManager::GetString(L"IDS_COM_BODY_NO_ITEMS"));
                        __pContentIconListView->SetItemProvider(*this);
                        __pContentIconListView->AddListViewItemEventListener(*this);
-                       AddControl(*__pContentIconListView);
+                       AddControl(__pContentIconListView);
                        __pContentIconListView->SetShowState(true);
 
                        __pLabelSelectCnt = new (std::nothrow) Label();
@@ -137,7 +137,7 @@ VideoListEditorPanel::OnInitializing(void)
                        __pLabelSelectCnt->SetBackgroundColor(COLOR_COUNT_LABEL);
                        __pLabelSelectCnt->SetTextColor(Color(COLOR_SELECT_COUNT_FONT));
                        __pLabelSelectCnt->SetTextConfig(COUNT_LABEL_FONT_SIZE, LABEL_TEXT_STYLE_BOLD);
-                       AddControl(*__pLabelSelectCnt);
+                       AddControl(__pLabelSelectCnt);
                }
                else
                {
@@ -152,7 +152,7 @@ VideoListEditorPanel::OnInitializing(void)
                        __pContentIconListView->SetTextOfEmptyList(ResourceManager::GetString(L"IDS_COM_BODY_NO_ITEMS"));
                        __pContentIconListView->SetItemProvider(*this);
                        __pContentIconListView->AddListViewItemEventListener(*this);
-                       AddControl(*__pContentIconListView);
+                       AddControl(__pContentIconListView);
                        __pContentIconListView->SetShowState(true);
                }
        }
@@ -171,7 +171,7 @@ VideoListEditorPanel::OnInitializing(void)
                __pContentIconListView->SetTextOfEmptyList(ResourceManager::GetString(L"IDS_COM_BODY_NO_ITEMS"));
                __pContentIconListView->SetItemProvider(*this);
                __pContentIconListView->AddListViewItemEventListener(*this);
-               AddControl(*__pContentIconListView);
+               AddControl(__pContentIconListView);
                __pContentIconListView->SetShowState(true);
 
                __pLabelSelectCnt = new (std::nothrow) Label();
@@ -183,7 +183,7 @@ VideoListEditorPanel::OnInitializing(void)
                __pLabelSelectCnt->SetBackgroundColor(COLOR_COUNT_LABEL);
                __pLabelSelectCnt->SetTextColor(Color(COLOR_SELECT_COUNT_FONT));
                __pLabelSelectCnt->SetTextConfig(COUNT_LABEL_FONT_SIZE, LABEL_TEXT_STYLE_BOLD);
-               AddControl(*__pLabelSelectCnt);
+               AddControl(__pLabelSelectCnt);
 
        }
        AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
index f167ae1..799ebb9 100644 (file)
@@ -103,7 +103,7 @@ VideoListPanel::OnInitializing(void)
        __pContentListView->SetTextOfEmptyList(ResourceManager::GetString(L"IDS_COM_BODY_NO_ITEMS"));
        __pContentListView->SetItemProvider(*this);
        __pContentListView->AddListViewItemEventListener(*this);
-       AddControl(*__pContentListView);
+       AddControl(__pContentListView);
        __pContentListView->SetShowState(true);
        __itemCount = 0;
        AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));