delete pItem;
pItem = null;
- ContentInformation* pContentInfoStruct = __pPresentationModel->GetContentInfo(itemIndex);
- if (pContentInfoStruct == null)
+ ContentInformation* pContentInfo = __pPresentationModel->GetContentInfoN(itemIndex);
+ if (pContentInfo == null)
{
return null;
}
if (itemIndex < __pPresentationModel->GetAlbumIndex())
{
Label* pArtistNameLabel = new (std::nothrow) Label();
- pArtistNameLabel->Construct(Rectangle(X_GAP_THUMBNAIL, 0, W_CLIENT_AREA - X_GAP_THUMBNAIL, ITEM_HEIGHT), pContentInfoStruct->ArtistName);
+ pArtistNameLabel->Construct(Rectangle(X_GAP_THUMBNAIL, 0, W_CLIENT_AREA - X_GAP_THUMBNAIL, ITEM_HEIGHT), pContentInfo->ArtistName);
pArtistNameLabel->SetTextColor(COLOR_MAIN_TEXT);
pArtistNameLabel->SetTextConfig(MAIN_TEXT_SIZE, LABEL_TEXT_STYLE_NORMAL);
pArtistNameLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
else if (itemIndex < __pPresentationModel->GetSongIndex())
{
Label* pAlbumNameLabel = new (std::nothrow) Label();
- pAlbumNameLabel->Construct(Rectangle(X_GAP_THUMBNAIL, 0, W_CLIENT_AREA - X_GAP_THUMBNAIL, ITEM_HEIGHT / 2), pContentInfoStruct->AlbumName);
+ pAlbumNameLabel->Construct(Rectangle(X_GAP_THUMBNAIL, 0, W_CLIENT_AREA - X_GAP_THUMBNAIL, ITEM_HEIGHT / 2), pContentInfo->AlbumName);
pAlbumNameLabel->SetTextColor(COLOR_MAIN_TEXT);
pAlbumNameLabel->SetTextConfig(MAIN_TEXT_SIZE, LABEL_TEXT_STYLE_NORMAL);
pAlbumNameLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
Label* pArtistNameLabel = new (std::nothrow) Label();
- pArtistNameLabel->Construct(Rectangle(X_GAP_THUMBNAIL, pAlbumNameLabel->GetHeight(), W_CLIENT_AREA - X_GAP_THUMBNAIL, ITEM_HEIGHT / 2), pContentInfoStruct->ArtistName);
+ pArtistNameLabel->Construct(Rectangle(X_GAP_THUMBNAIL, pAlbumNameLabel->GetHeight(), W_CLIENT_AREA - X_GAP_THUMBNAIL, ITEM_HEIGHT / 2), pContentInfo->ArtistName);
pArtistNameLabel->SetTextColor(COLOR_SUB_TEXT);
pArtistNameLabel->SetTextConfig(MAIN_TEXT_SIZE, LABEL_TEXT_STYLE_NORMAL);
pArtistNameLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
else
{
Label* pSongNameLabel = new (std::nothrow) Label();
- pSongNameLabel->Construct(Rectangle(X_GAP_THUMBNAIL, 0, W_CLIENT_AREA - X_GAP_THUMBNAIL, ITEM_HEIGHT), pContentInfoStruct->TitleName);
+ pSongNameLabel->Construct(Rectangle(X_GAP_THUMBNAIL, 0, W_CLIENT_AREA - X_GAP_THUMBNAIL, ITEM_HEIGHT), pContentInfo->TitleName);
pSongNameLabel->SetTextColor(COLOR_MAIN_TEXT);
pSongNameLabel->SetTextConfig(MAIN_TEXT_SIZE, LABEL_TEXT_STYLE_NORMAL);
pSongNameLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pItem->AddControl(*pSongNameLabel);
}
- delete pContentInfoStruct;
- pContentInfoStruct = null;
+ delete pContentInfo;
+ pContentInfo = null;
AppLogDebug("EXIT");
return pItem;
return;
}
- ContentInformation* pContentInfoStruct;
+ ContentInformation* pContentInfo;
SceneManager* pSceneManager = SceneManager::GetInstance();
AppAssert(pSceneManager);
if (itemIndex < __pPresentationModel->GetAlbumIndex())
{
- pContentInfoStruct = __pPresentationModel->GetContentInfo(itemIndex);
+ pContentInfo = __pPresentationModel->GetContentInfoN(itemIndex);
ArrayList* pData = new (std::nothrow) ArrayList();
pData->Construct();
- pData->Add(*(new (std::nothrow) String(pContentInfoStruct->ArtistName)));
+ pData->Add(*(new (std::nothrow) String(IDSCN_ARTIST_LIST)));
+ pData->Add(*(new (std::nothrow) String(pContentInfo->ArtistName)));
- pSceneManager->GoForward(ForwardSceneTransition(IDSCN_ARTIST_ALBUM_SEARCH_LIST), pData);
+ pSceneManager->GoForward(ForwardSceneTransition(IDSCN_ARTIST_CONTENT_LIST), pData);
}
else if (itemIndex < __pPresentationModel->GetSongIndex())
{
- pContentInfoStruct = __pPresentationModel->GetContentInfo(itemIndex);
+ pContentInfo = __pPresentationModel->GetContentInfoN(itemIndex);
String temp;
- temp = CommonUtil::SpecialReplaceChange(pContentInfoStruct->AlbumName);
+ temp = CommonUtil::SpecialReplaceChange(pContentInfo->AlbumName);
temp = CommonUtil::MakeQuery(STRING_SORT_ALBUM, temp);
ArrayList* pData = new (std::nothrow) ArrayList();
}
else
{
- pContentInfoStruct = __pPresentationModel->GetContentInfo(itemIndex);
+ pContentInfo = __pPresentationModel->GetContentInfoN(itemIndex);
ArrayList* pPath = new (std::nothrow) ArrayList();
pPath->Construct();
- pPath->Add(*(new (std::nothrow) String(pContentInfoStruct->ContentFilePath)));
+ pPath->Add(*(new (std::nothrow) String(pContentInfo->ContentFilePath)));
ArrayList* pData = new (std::nothrow) ArrayList();
pData->Construct();
pSceneManager->GoForward(ForwardSceneTransition(IDSCN_PLAYER), pData);
}
- delete pContentInfoStruct;
- pContentInfoStruct = null;
+ delete pContentInfo;
+ pContentInfo = null;
AppLogDebug("EXIT");
}
pSceneManager->GoForward(ForwardSceneTransition(__pSceneId->GetPointer(), SCENE_TRANSITION_ANIMATION_TYPE_NONE, SCENE_HISTORY_OPTION_NO_HISTORY, SCENE_DESTROY_OPTION_DESTROY));
AppLogDebug("EXIT");
-}
\ No newline at end of file
+}