void SetContentEditHeader(void);\r
\r
virtual int GetCheckedItemCount(void) = 0;\r
+ virtual void OnOrientationPanelChanged(Tizen::Ui::OrientationStatus orientationStatus);\r
\r
private:\r
result Construct(void);\r
public:\r
virtual ~IThumbnailProviderHandler(void){}\r
\r
- virtual void RequestThumbnail(const Tizen::Content::ContentId& contentId, const ThumbnailEvent* event, void* pParam = null) = 0;\r
+ virtual void RequestThumbnail(const Tizen::Content::ContentId& contentId, const ThumbnailEvent* event, Tizen::Base::Object* pParam = null) = 0;\r
virtual void CancelAllThumbnailRequest(const ThumbnailEvent* event) = 0;\r
virtual const Tizen::Graphics::Bitmap* GetDefaultThumbnail(void) const = 0;\r
};\r
virtual ~ThumbnailBase(void);\r
\r
result Construct(void);\r
- void RequestThumbnail(const Tizen::Content::ContentId& contentId, void* pParam) const;\r
+ void Stop(void);\r
+ void RequestThumbnail(const Tizen::Content::ContentId& contentId, Tizen::Base::Object* pParam = null) const;\r
void CancelAllThumbnailRequest(void);\r
const Tizen::Graphics::Bitmap* GetDefaultThumbnail(void) const;\r
\r
private:\r
IThumbnailProviderHandler* __pIThumbnailProviderHandler;\r
ThumbnailEvent* __pThumbnailEvent;\r
+ bool __isForceStop;\r
};\r
\r
#endif // _MP_THUMBNAIL_BASE_H_\r
virtual ~ThumbnailInfo(void);
void Construct(const Tizen::Content::ContentId& contentId,
- const Tizen::Graphics::Bitmap& bitmap, void* pParam);
+ const Tizen::Graphics::Bitmap& bitmap, Tizen::Base::Object* pParam = null);
Tizen::Content::ContentId GetContentId(void) const;
Tizen::Graphics::Bitmap* GetBitmapN(void) const;
- void* GetUserParamN(void);
+ Tizen::Base::Object* GetUserParamN(void) const;
private:
Tizen::Graphics::Bitmap* CloneBitmapN(const Tizen::Graphics::Bitmap& bitmap) const;
private :
Tizen::Content::ContentId __contentId;
const Tizen::Graphics::Bitmap* __pBitmap;
- void* __pParam;
+ mutable Tizen::Base::Object* __pParam;
};
#endif // _MP_THUMBNAIL_INFO_H_
virtual ~ThumbnailJob(void);
void Construct(const Tizen::Content::ContentId& contentId, const unsigned long requestId,
- const ThumbnailEvent* pRequestEvent, void* pParam);
+ const ThumbnailEvent* pRequestEvent, Tizen::Base::Object* pParam);
Tizen::Content::ContentId GetContentId(void) const;
unsigned long GetRequestId(void) const;
const ThumbnailEvent* GetEvent(void) const;
- void* GetUserParam(void) const;
+ Tizen::Base::Object* GetUserParamN(void) const;
private:
ThumbnailJob(const ThumbnailJob&);
Tizen::Content::ContentId __contentId;
unsigned long __requestId;
const ThumbnailEvent* __pRequestEvent;
- void* __pParam;
+ mutable Tizen::Base::Object* __pParam;
};
#endif // _MP_THUMBNAIL_JOB_H_
class ThumbnailEvent;
class ThumbnailProvider
- : IThumbnailProviderHandler
+ : public IThumbnailProviderHandler
, public Tizen::Base::Runtime::EventDrivenThread
{
public:
static IThumbnailProviderHandler* GetInstance(void);
public:
- void RequestThumbnail(const Tizen::Content::ContentId& contentId, const ThumbnailEvent* event, void* pParam = null);
+ void RequestThumbnail(const Tizen::Content::ContentId& contentId, const ThumbnailEvent* event, Tizen::Base::Object* pParam = null);
void CancelThumbnailRequest(const Tizen::Content::ContentId& contentId, const ThumbnailEvent* event);
void CancelAllThumbnailRequest(const ThumbnailEvent* event);
void ClearThumbnailRequests(void);
void CreateDefaultThumbnailBitmap(void);
void DestroyDefaultThumbnailBitmap(void);
- ThumbnailInfo* GetThumbnailInfoN(const Tizen::Content::ContentId& contentId, void* pParam) const;
+ ThumbnailInfo* GetThumbnailInfoN(const Tizen::Content::ContentId& contentId, Tizen::Base::Object* pParam) const;
Tizen::Graphics::Bitmap* GetThumbnailByDecodeN(const Tizen::Base::String& filePath, const Tizen::Content::ContentType contentType) const;
Tizen::Base::String GetFileNameFromFullPath(const Tizen::Base::String& fullPath, bool withExt) const;
This XML file was automatically generated by UiBuilder - do not modify by hand.\r
-->\r
<!DOCTYPE ScenePanel SYSTEM "UIForm.dtd">\r
-<ScenePanel Bversion="2.0.0.201303041025" Dversion="20120315">\r
+<ScenePanel Bversion="2.0.0.201304011927" Dversion="20120315">\r
<Panel id="IDL_CONTENTS_LIBARY_EDITOR_PANEL">\r
<property backgroundColor="" backgroundColorOpacity="0" compositeEnabled="true" groupStyle="GROUP_STYLE_NONE"/>\r
- <layout height="888" mode="Portrait" type="LAYOUT_RELATIVE" width="600" x="0" y="0"/>\r
- <layout height="600" mode="Landscape" type="LAYOUT_RELATIVE" width="800" x="0" y="0"/>\r
+ <layout height="456.0" mode="Portrait" type="LAYOUT_RELATIVE" width="720.0" x="0.0" y="0.0"/>\r
+ <layout height="600.0" mode="Landscape" type="LAYOUT_RELATIVE" width="800.0" x="0.0" y="0.0"/>\r
</Panel>\r
<Label id="IDC_ITEM_SELECTED_COUNT_LABEL" parent="IDL_CONTENTS_LIBARY_EDITOR_PANEL">\r
- <property backgroundBitmapPath="" backgroundColor="#444444" backgroundColorOpacity="100" horizontalAlign="ALIGN_LEFT" text="%d items are selected." textColor="#FFFFFF" textSize="33" textStyle="LABEL_TEXT_STYLE_NORMAL" verticalAlign="ALIGN_MIDDLE"/>\r
- <layout bottomRelation="IDL_CONTENTS_LIBARY_EDITOR_PANEL" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="48" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="IDL_CONTENTS_LIBARY_EDITOR_PANEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="IDL_CONTENTS_LIBARY_EDITOR_PANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="600" x="0" y="840"/>\r
- <layout bottomRelation="IDL_CONTENTS_LIBARY_EDITOR_PANEL" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="48" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_CONTENTS_LIBARY_EDITOR_PANEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="IDL_CONTENTS_LIBARY_EDITOR_PANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="800" x="0" y="552"/>\r
+ <property accessibilityHint="" backgroundBitmapPath="" backgroundColor="#444444" backgroundColorOpacity="100" horizontalAlign="ALIGN_LEFT" leftMargin="16" text="%d items are selected." textColor="#FFFFFF" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_MIDDLE"/>\r
+ <layout bottomRelation="IDL_CONTENTS_LIBARY_EDITOR_PANEL" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="48.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="IDL_CONTENTS_LIBARY_EDITOR_PANEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDL_CONTENTS_LIBARY_EDITOR_PANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0" y="408.0"/>\r
+ <layout bottomRelation="IDL_CONTENTS_LIBARY_EDITOR_PANEL" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="48.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_CONTENTS_LIBARY_EDITOR_PANEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_CONTENTS_LIBARY_EDITOR_PANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="800.0" x="0.0" y="552.0"/>\r
</Label>\r
<TableView id="IDC_CONTENTS_EDIT_TABLEVIEW" parent="IDL_CONTENTS_LIBARY_EDITOR_PANEL">\r
<property backgroundColor="" backgroundColorOpacity="0" fastScrollIndex="" itemDivider="true" itemDividerColor="" scrollBarStyle="TABLE_VIEW_SCROLL_BAR_STYLE_FADE_OUT" scrollInputMode="SCROLL_INPUT_MODE_ALLOW_ANY_DIRECTION" useSearchIcon="false"/>\r
- <layout bottomRelation="IDC_ITEM_SELECTED_COUNT_LABEL" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_TOP" centerHorizontal="false" centerVertical="false" height="840" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="IDL_CONTENTS_LIBARY_EDITOR_PANEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="IDL_CONTENTS_LIBARY_EDITOR_PANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_CONTENTS_LIBARY_EDITOR_PANEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="600" x="0" y="0"/>\r
- <layout bottomRelation="IDC_ITEM_SELECTED_COUNT_LABEL" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_TOP" centerHorizontal="false" centerVertical="false" height="552" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_CONTENTS_LIBARY_EDITOR_PANEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="IDL_CONTENTS_LIBARY_EDITOR_PANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_CONTENTS_LIBARY_EDITOR_PANEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="800" x="0" y="0"/>\r
+ <layout bottomRelation="IDC_ITEM_SELECTED_COUNT_LABEL" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_TOP" centerHorizontal="false" centerVertical="false" height="408.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="IDL_CONTENTS_LIBARY_EDITOR_PANEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDL_CONTENTS_LIBARY_EDITOR_PANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_CONTENTS_LIBARY_EDITOR_PANEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0" y="0.0"/>\r
+ <layout bottomRelation="IDC_ITEM_SELECTED_COUNT_LABEL" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_TOP" centerHorizontal="false" centerVertical="false" height="600.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="IDL_CONTENTS_LIBARY_EDITOR_PANEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_CONTENTS_LIBARY_EDITOR_PANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_CONTENTS_LIBARY_EDITOR_PANEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_PARENT" width="800.0" x="0" y="0"/>\r
</TableView>\r
<Label id="IDC_NO_CONTENTS_LABEL" parent="IDL_CONTENTS_LIBARY_EDITOR_PANEL">\r
- <property backgroundBitmapPath="T02_nocomposers.png" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_CENTER" text="No Songs" textColor="" textSize="33" textStyle="LABEL_TEXT_STYLE_NORMAL" verticalAlign="ALIGN_BOTTOM"/>\r
- <layout bottomRelation="" bottomRelationType="" centerHorizontal="true" centerVertical="true" height="280" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="280" x="160" y="304"/>\r
- <layout bottomRelation="" bottomRelationType="" centerHorizontal="true" centerVertical="true" height="280" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="280" x="260" y="160"/>\r
+ <property accessibilityHint="" backgroundBitmapPath="T02_nocomposers.png" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_CENTER" leftMargin="16" text="No Songs" textColor="" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_BOTTOM"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="true" centerVertical="true" height="280.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="280.0" x="220.0" y="88.0"/>\r
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="true" centerVertical="true" height="280.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="280.0" x="260.0" y="160.0"/>\r
</Label>\r
</ScenePanel>\r
<!DOCTYPE ScenePopup SYSTEM "UIForm.dtd">\r
<ScenePopup Bversion="2.0.0.201303041025" Dversion="20120315">\r
<Popup id="IDL_SHARE_VIA_POPUP">\r
- <property color="" titleText="Share via" titleTextColor=""/>\r
- <layout height="532" mode="Portrait" style="" type="LAYOUT_RELATIVE" width="688"/>\r
- <layout height="532" mode="Landscape" style="" type="LAYOUT_RELATIVE" width="688"/>\r
+ <property accessibilityHint="" color="" titleText="Share via" titleTextColor=""/>\r
+ <layout height="532.0" mode="Portrait" style="" type="LAYOUT_RELATIVE" width="688.0"/>\r
+ <layout height="532.0" mode="Landscape" style="" type="LAYOUT_RELATIVE" width="688.0"/>\r
</Popup>\r
<Button id="IDC_CANCEL_BUTTON" parent="IDL_SHARE_VIA_POPUP">\r
- <property DisabledBitmapX="0" DisabledBitmapY="0" NormalBitmapX="0" NormalBitmapY="0" PressedBitmapX="0" PressedBitmapY="0" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0" highlightedBitmapY="0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="Cancel" textSize="36" verticalAlign="ALIGN_MIDDLE"/>\r
- <layout bottomRelation="" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="true" centerVertical="false" height="74" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="20" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="394" x="127" y="358"/>\r
- <layout bottomRelation="IDL_SHARE_VIA_POPUP" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="74" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="20" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="394" x="127" y="358"/>\r
+ <property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="Cancel" textSize="36.0" verticalAlign="ALIGN_MIDDLE"/>\r
+ <layout bottomRelation="IDL_SHARE_VIA_POPUP" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="true" centerVertical="false" height="74.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="20.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="394.0" x="127.0" y="358.0"/>\r
+ <layout bottomRelation="IDL_SHARE_VIA_POPUP" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="true" centerVertical="false" height="74.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="20.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="394.0" x="127.0" y="358.0"/>\r
</Button>\r
<TableView id="IDC_TABLEVIEW" parent="IDL_SHARE_VIA_POPUP">\r
<property backgroundColor="" backgroundColorOpacity="0" fastScrollIndex="" itemDivider="true" itemDividerColor="" scrollBarStyle="TABLE_VIEW_SCROLL_BAR_STYLE_NONE" scrollInputMode="SCROLL_INPUT_MODE_ALLOW_ANY_DIRECTION" useSearchIcon="false"/>\r
- <layout bottomRelation="IDC_CANCEL_BUTTON" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_TOP" centerHorizontal="false" centerVertical="false" height="338" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_SHARE_VIA_POPUP" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="20" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="IDL_SHARE_VIA_POPUP" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="648" x="0" y="0"/>\r
- <layout bottomRelation="IDC_CANCEL_BUTTON" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_TOP" centerHorizontal="false" centerVertical="false" height="338" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_SHARE_VIA_POPUP" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="20" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="IDL_SHARE_VIA_POPUP" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="648" x="0" y="0"/>\r
+ <layout bottomRelation="IDC_CANCEL_BUTTON" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_TOP" centerHorizontal="true" centerVertical="false" height="338.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_SHARE_VIA_POPUP" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="20.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDL_SHARE_VIA_POPUP" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="648.0" x="0.0" y="0.0"/>\r
+ <layout bottomRelation="IDC_CANCEL_BUTTON" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_TOP" centerHorizontal="false" centerVertical="false" height="338.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_SHARE_VIA_POPUP" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="20.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_SHARE_VIA_POPUP" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="648.0" x="0.0" y="0.0"/>\r
</TableView>\r
</ScenePopup>\r
AlbumContentListForm::OnTerminating(void)
{
AppLogDebug("ENTER");
- CancelAllThumbnailRequest();
+ ThumbnailBase::Stop();
AppLogDebug("EXIT");
return ContentListForm::OnTerminating();
}
delete pBgBitmap;
SetExtraInformaionArea(*pContentInfoPanel);
- RequestThumbnail(pContentInfo->contentId, (new (std::nothrow) String(IDC_CONTENTS_THUMBNAIL)));
+ RequestThumbnail(pContentInfo->contentId);
delete pContentInfo;
}
Label* pThumbnailLabel = static_cast<Label*>(pItemPanel->GetControl(IDC_CONTENTS_THUMBNAIL));
__pThumbnail = pThumbnailInfo->GetBitmapN();
+ delete pThumbnailInfo;
if (__pThumbnail == null || pThumbnailLabel == null)
{
using namespace Tizen::Ui::Scenes;
AlbumListEditorPanel::AlbumListEditorPanel(void)
- : ThumbnailBase::ThumbnailBase()
+ : ContentEditPanel::ContentEditPanel()
+ , ThumbnailBase::ThumbnailBase()
, __checkedItemCount(0)
, __pPlayListPickerPopup(null)
, __pThumbnail(null)
AlbumListEditorPanel::OnInitializing(void)
{
AppLogDebug("ENTER");
- __pPresentationModel = AlbumListPresentationModel::GetInstance();
SetLayoutFitToForm();
+ __pPresentationModel = AlbumListPresentationModel::GetInstance();
AppLogDebug("EXIT");
return ThumbnailBase::Construct();
}
AlbumListEditorPanel::OnTerminating(void)
{
AppLogDebug("ENTER");
- CancelAllThumbnailRequest();
+ ThumbnailBase::Stop();
if (__pPlayListPickerPopup != null)
{
delete __pPlayListPickerPopup;
pItem->Construct(layout, Dimension(itemWidth, ITEM_HEIGHT), TABLE_VIEW_ANNEX_STYLE_MARK);
CreateTableViewItem(*pItem, *pContentInfoStruct);
- RequestThumbnail(pContentInfoStruct->contentId, (new (std::nothrow) int(itemIndex)));
+ RequestThumbnail(pContentInfoStruct->contentId, (new (std::nothrow) Integer(itemIndex)));
delete pContentInfoStruct;
AppLogDebug("EXIT");
static_cast<Label*>(pTableViewItem->GetControl(IDC_CONTENTS_THUMBNAIL))->SetBackgroundBitmap(*GetDefaultThumbnail());
parent.AddControl(*pTableViewItem);
+ CommonUtil::SetLayoutFitToContainer(parent, *pTableViewItem);
AppLogDebug("EXIT");
return E_SUCCESS;
AlbumListEditorPanel::OnThumbnailInfoReveivedN(ThumbnailInfo* pThumbnailInfo)
{
AppLogDebug("ENTER");
- int itemIndex = 0;
- void* pParam = null;
__pThumbnail = pThumbnailInfo->GetBitmapN();
- pParam = pThumbnailInfo->GetUserParamN();
- if (pParam)
+ Object* pParam = pThumbnailInfo->GetUserParamN();
+ if (pParam != null)
{
- itemIndex = *(static_cast<int*>(pParam));
+ __pContentTableView->RefreshItem((static_cast<Integer*>(pParam))->ToInt(), TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+ delete pParam;
}
- __pContentTableView->RefreshItem(itemIndex, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+
delete pThumbnailInfo;
- delete static_cast<int*>(pParam);
AppLogDebug("EXIT");
}
{
AppLogDebug("ENTER");
__pPresentationModel = AlbumListPresentationModel::GetInstance();
- __pContextItem = CommonUtil::CreateTableViewContextItemN(*this, GetWidth(), FLICK_MENU_STYLE_TYPE_02);
SetFooterStyle(STYLE_MORE_ADD);
SetLayoutFitToForm();
+ __pContextItem = CommonUtil::CreateTableViewContextItemN(*this, GetWidth(), FLICK_MENU_STYLE_TYPE_02);
AppLogDebug("EXIT");
return ThumbnailBase::Construct();
}
AlbumListPanel::OnTerminating(void)
{
AppLogDebug("ENTER");
- CancelAllThumbnailRequest();
+ ThumbnailBase::Stop();
RemoveContextMenu();
if (__pPlayListPickerPopup != null)
pItem->Construct(layout, Dimension(itemWidth, ITEM_HEIGHT), TABLE_VIEW_ANNEX_STYLE_NORMAL);
CreateTableViewItem(*pItem, *pContentInfoStruct, __pPresentationModel->GetContentCount(itemIndex));
- RequestThumbnail(pContentInfoStruct->contentId, (new (std::nothrow) int(itemIndex)));
+ RequestThumbnail(pContentInfoStruct->contentId, (new (std::nothrow) Integer(itemIndex)));
pItem->SetContextItem(__pContextItem);
delete pContentInfoStruct;
AlbumListPanel::OnThumbnailInfoReveivedN(ThumbnailInfo* pThumbnailInfo)
{
AppLogDebug("ENTER");
- int itemIndex = 0;
- void* pParam = null;
__pThumbnail = pThumbnailInfo->GetBitmapN();
- pParam = pThumbnailInfo->GetUserParamN();
- if (pParam)
+ Object* pParam = pThumbnailInfo->GetUserParamN();
+ if (pParam != null)
{
- itemIndex = *(static_cast<int*>(pParam));
+ __pContentTableView->RefreshItem((static_cast<Integer*>(pParam))->ToInt(), TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+ delete pParam;
}
- __pContentTableView->RefreshItem(itemIndex, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+
delete pThumbnailInfo;
- delete static_cast<int*>(pParam);
AppLogDebug("EXIT");
}
AllListEditorPanel::OnTerminating(void)
{
AppLogDebug("ENTER");
- CancelAllThumbnailRequest();
+ ThumbnailBase::Stop();
if (__pPlayListPickerPopup != null)
{
delete __pPlayListPickerPopup;
pItem->Construct(layout, Dimension(itemWidth, ITEM_HEIGHT), TABLE_VIEW_ANNEX_STYLE_MARK);
CreateTableViewItem(*pItem, *pContentInfoStruct);
- RequestThumbnail(pContentInfoStruct->contentId, (new (std::nothrow) int(itemIndex)));
+ RequestThumbnail(pContentInfoStruct->contentId, (new (std::nothrow) Integer(itemIndex)));
delete pContentInfoStruct;
AllListEditorPanel::OnThumbnailInfoReveivedN(ThumbnailInfo* pThumbnailInfo)
{
AppLogDebug("ENTER");
- int itemIndex = 0;
- void* pParam = null;
__pThumbnail = pThumbnailInfo->GetBitmapN();
- pParam = pThumbnailInfo->GetUserParamN();
- if (pParam)
+ Object* pParam = pThumbnailInfo->GetUserParamN();
+ if (pParam != null)
{
- itemIndex = *(static_cast<int*>(pParam));
+ __pContentTableView->RefreshItem((static_cast<Integer*>(pParam))->ToInt(), TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+ delete pParam;
}
- __pContentTableView->RefreshItem(itemIndex, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+
delete pThumbnailInfo;
- delete static_cast<int*>(pParam);
AppLogDebug("EXIT");
}
AllListPanel::OnTerminating(void)
{
AppLogDebug("ENTER");
- CancelAllThumbnailRequest();
+ ThumbnailBase::Stop();
RemoveContextMenu();
if (__pPlayListPickerPopup != null)
{
AllListPanel::CreateItem(const int itemIndex, int itemWidth)
{
AppLogDebug("ENTER");
- ContentInformation* pContentInfoStruct = __pPresentationModel->GetContentInfoN(itemIndex);
- if (pContentInfoStruct == null)
+ ContentInformation* pContentInfo = __pPresentationModel->GetContentInfoN(itemIndex);
+ if (pContentInfo == null)
{
return null;
}
TableViewItem* pItem = new (std::nothrow) TableViewItem();
pItem->Construct(layout, Dimension(itemWidth, ITEM_HEIGHT), TABLE_VIEW_ANNEX_STYLE_NORMAL);
- CreateTableViewItem(*pItem, *pContentInfoStruct);
+ CreateTableViewItem(*pItem, *pContentInfo);
pItem->SetContextItem(__pContextItem);
- CommonUtil::SetLayoutFitToContainer(*pItem, *__pContextItem);
- delete pContentInfoStruct;
- RequestThumbnail(pContentInfoStruct->contentId, (new (std::nothrow) int(itemIndex)));
+ RequestThumbnail(pContentInfo->contentId, (new (std::nothrow) Integer(itemIndex)));
+ delete pContentInfo;
AppLogDebug("EXIT");
return pItem;
AllListPanel::OnThumbnailInfoReveivedN(ThumbnailInfo* pThumbnailInfo)
{
AppLogDebug("ENTER");
- int itemIndex = 0;
- void* pParam = null;
__pThumbnail = pThumbnailInfo->GetBitmapN();
- pParam = pThumbnailInfo->GetUserParamN();
- if (pParam)
+ Object* pParam = pThumbnailInfo->GetUserParamN();
+ if (pParam != null)
{
- itemIndex = *(static_cast<int*>(pParam));
+ __pContentTableView->RefreshItem((static_cast<Integer*>(pParam))->ToInt(), TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+ delete pParam;
}
- __pContentTableView->RefreshItem(itemIndex, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+
delete pThumbnailInfo;
- delete static_cast<int*>(pParam);
AppLogDebug("EXIT");
}
ArtistAlbumListEditorForm::OnTerminating(void)
{
AppLogDebug("ENTER");
- CancelAllThumbnailRequest();
+ ThumbnailBase::Stop();
AppLogDebug("EXIT");
return E_SUCCESS;
}
pItem->Construct(Dimension(itemWidth, ITEM_HEIGHT), TABLE_VIEW_ANNEX_STYLE_MARK);
// pItem->SetBackgroundColor(COLOR_ITEM);
- RequestThumbnail(pContentInfoStruct->contentId, (new (std::nothrow) int(itemIndex)));
+ RequestThumbnail(pContentInfoStruct->contentId, (new (std::nothrow) Integer(itemIndex)));
CommonUtil::CreateEditListTableViewItem(*pItem, *(GetDefaultThumbnail()), pContentInfoStruct->AlbumName, __pPresentationModel->GetArtistAlbumContentCount(itemIndex));
delete pContentInfoStruct;
ArtistAlbumListEditorForm::OnThumbnailInfoReveivedN(ThumbnailInfo* pThumbnailInfo)
{
AppLogDebug("ENTER");
- int itemIndex = 0;
- void* pParam = null;
__pThumbnail = pThumbnailInfo->GetBitmapN();
- pParam = pThumbnailInfo->GetUserParamN();
- if (pParam)
+ Object* pParam = pThumbnailInfo->GetUserParamN();
+ if (pParam != null)
{
- itemIndex = *(static_cast<int*>(pParam));
+ __pContentTableView->RefreshItem((static_cast<Integer*>(pParam))->ToInt(), TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+ delete pParam;
}
- __pContentTableView->RefreshItem(itemIndex, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+
delete pThumbnailInfo;
- delete static_cast<int*>(pParam);
AppLogDebug("EXIT");
}
ArtistAlbumListForm::OnTerminating(void)
{
AppLogDebug("ENTER");
- CancelAllThumbnailRequest();
+ ThumbnailBase::Stop();
delete __pContextItem;
__pContextItem = null;
}
int itemTotalCount = __pPresentationModel->GetArtistAlbumContentCount(ALL_SONG_INDEX_COUNT_MINUS(itemIndex));
- RequestThumbnail(pContentInfoStruct->contentId, (new (std::nothrow) int(itemIndex)));
+ RequestThumbnail(pContentInfoStruct->contentId, (new (std::nothrow) Integer(itemIndex)));
CommonUtil::CreateTableViewItem(*pItem, *GetDefaultThumbnail(), pContentInfoStruct->ArtistName, itemTotalCount);
pItem->SetContextItem(__pContextItem);
ArtistAlbumListForm::OnThumbnailInfoReveivedN(ThumbnailInfo* pThumbnailInfo)
{
AppLogDebug("ENTER");
- int itemIndex = 0;
- void* pParam = null;
__pThumbnail = pThumbnailInfo->GetBitmapN();
- pParam = pThumbnailInfo->GetUserParamN();
- if (pParam)
+ Object* pParam = pThumbnailInfo->GetUserParamN();
+ if (pParam != null)
{
- itemIndex = *(static_cast<int*>(pParam));
+ __pContentTableView->RefreshItem((static_cast<Integer*>(pParam))->ToInt(), TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+ delete pParam;
}
- __pContentTableView->RefreshItem(itemIndex, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+
delete pThumbnailInfo;
- delete static_cast<int*>(pParam);
AppLogDebug("EXIT");
}
ArtistAllSongListForm::OnTerminating(void)
{
AppLogDebug("ENTER");
- CancelAllThumbnailRequest();
+ ThumbnailBase::Stop();
delete __pPlayListPickerPopup;
__pPlayListPickerPopup = null;
AppLogDebug("EXIT");
ArtistAllSongListForm::CreateItem(const int itemIndex, int itemWidth)
{
AppLogDebug("ENTER");
- ContentInformation* pContentInfoStruct = __pPresentationModel->GetArtistContentInfoN(itemIndex);
- if (pContentInfoStruct == null)
+ ContentInformation* pContentInfo = __pPresentationModel->GetArtistContentInfoN(itemIndex);
+ if (pContentInfo == null)
{
+ AppLogDebug("EXIT");
return null;
}
TableViewItem* pItem = new (std::nothrow) TableViewItem();
pItem->Construct(Dimension(itemWidth, ITEM_HEIGHT), TABLE_VIEW_ANNEX_STYLE_NORMAL);
-// pItem->SetBackgroundColor(COLOR_ITEM);
-
- RequestThumbnail(pContentInfoStruct->contentId, (new (std::nothrow) int(itemIndex)));
- CreateTableViewItem(*pItem, *pContentInfoStruct);
+ CreateTableViewItem(*pItem, *pContentInfo);
- delete pContentInfoStruct;
- pContentInfoStruct = null;
+ RequestThumbnail(pContentInfo->contentId, (new (std::nothrow) Integer(itemIndex)));
+ delete pContentInfo;
AppLogDebug("EXIT");
return pItem;
ArtistAllSongListForm::OnThumbnailInfoReveivedN(ThumbnailInfo* pThumbnailInfo)
{
AppLogDebug("ENTER");
- int itemIndex = 0;
- void* pParam = null;
__pThumbnail = pThumbnailInfo->GetBitmapN();
- pParam = pThumbnailInfo->GetUserParamN();
- if (pParam)
+ Object* pParam = pThumbnailInfo->GetUserParamN();
+ if (pParam != null)
{
- itemIndex = *(static_cast<int*>(pParam));
+ __pContentTableView->RefreshItem((static_cast<Integer*>(pParam))->ToInt(), TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+ delete pParam;
}
- __pContentTableView->RefreshItem(itemIndex, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+
delete pThumbnailInfo;
- delete static_cast<int*>(pParam);
AppLogDebug("EXIT");
}
ArtistContentListForm::OnTerminating(void)
{
AppLogDebug("ENTER");
- CancelAllThumbnailRequest();
+ ThumbnailBase::Stop();
RemoveCheckedItemMultiHashMap();
delete __pTableViewContextItem;
ArtistContentListForm::OnThumbnailInfoReveivedN(ThumbnailInfo* pThumbnailInfo)
{
AppLogDebug("ENTER");
- TableviewItemTag* pTableviewItemTag;
- void* pParam = null;
__pThumbnail = pThumbnailInfo->GetBitmapN();
- pParam = pThumbnailInfo->GetUserParamN();
- if (pParam)
- {
- pTableviewItemTag = static_cast<TableviewItemTag*>(pParam);
- }
-
- if (pTableviewItemTag != null)
+ Object* pParam = pThumbnailInfo->GetUserParamN();
+ if (pParam != null)
{
+ TableviewItemTag* pTableviewItemTag = static_cast<TableviewItemTag*>(pParam);
__pContentGroupedTableView->RefreshItem(pTableviewItemTag->__groupIndex, pTableviewItemTag->__itemIndex, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
- delete static_cast<TableviewItemTag*>(pParam);
+ delete pParam;
}
delete pThumbnailInfo;
ArtistListEditorPanel::OnTerminating(void)
{
AppLogDebug("ENTER");
- CancelAllThumbnailRequest();
+ ThumbnailBase::Stop();
AppLogDebug("EXIT");
return E_SUCCESS;
}
ArtistListEditorPanel::CreateItem(const int itemIndex, int itemWidth)
{
AppLogDebug("ENTER");
- ContentInformation* pContentInfoStruct = __pPresentationModel->GetArtistnIfoN(itemIndex);
- if (pContentInfoStruct == null)
+ ContentInformation* pContentInfo = __pPresentationModel->GetArtistnIfoN(itemIndex);
+ if (pContentInfo == null)
{
return null;
}
TableViewItem* pItem = new (std::nothrow) TableViewItem();
pItem->Construct(layout, Dimension(itemWidth, ITEM_HEIGHT), TABLE_VIEW_ANNEX_STYLE_MARK);
- CreateTableViewItem(*pItem, *pContentInfoStruct);
- RequestThumbnail(pContentInfoStruct->contentId, (new (std::nothrow) int(itemIndex)));
- delete pContentInfoStruct;
+ CreateTableViewItem(*pItem, *pContentInfo);
+ RequestThumbnail(pContentInfo->contentId, (new (std::nothrow) Integer(itemIndex)));
+ delete pContentInfo;
AppLogDebug("EXIT");
return pItem;
{
SetUnCheckedIconAllCheckButton();
}
-
+ SetCheckedCountBallonTooltip(__checkedItemCount);
Invalidate(true);
AppLogDebug("EXIT");
}
{
AppLogDebug("ENTER");
Header* pHeader = GetParentHeader();
- String titleText(L"EDIT");
+ String titleText(L"Edit");
CommonUtil::SetEditHeaderStyle(*pHeader, titleText);
pHeader->Invalidate(true);
AppLogDebug("EXIT");
{
AppLogDebug("ENTER");
Header* pHeader = GetParentHeader();
- String titleText(L"EDIT");
+ String titleText(L"Edit");
CommonUtil::SetEditHeaderStyle(*pHeader, titleText);
pHeader->Invalidate(true);
AppLogDebug("EXIT");
ArtistListEditorPanel::OnThumbnailInfoReveivedN(ThumbnailInfo* pThumbnailInfo)
{
AppLogDebug("ENTER");
- int itemIndex = 0;
- void* pParam = null;
__pThumbnail = pThumbnailInfo->GetBitmapN();
- pParam = pThumbnailInfo->GetUserParamN();
- if (pParam)
+ Object* pParam = pThumbnailInfo->GetUserParamN();
+ if (pParam != null)
{
- itemIndex = *(static_cast<int*>(pParam));
+ __pContentTableView->RefreshItem((static_cast<Integer*>(pParam))->ToInt(), TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+ delete pParam;
}
- __pContentTableView->RefreshItem(itemIndex, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+
delete pThumbnailInfo;
- delete static_cast<int*>(pParam);
AppLogDebug("EXIT");
}
ArtistListPanel::OnTerminating(void)
{
AppLogDebug("ENTER");
- CancelAllThumbnailRequest();
+ ThumbnailBase::Stop();
RemoveContextMenu();
AppLogDebug("EXIT");
return E_SUCCESS;
ArtistListPanel::CreateItem(const int itemIndex, int itemWidth)
{
AppLogDebug("ENTER");
- ContentInformation* pContentInfoStruct = __pPresentationModel->GetArtistnIfoN(itemIndex);
- if (pContentInfoStruct == null)
+ ContentInformation* pContentInfo = __pPresentationModel->GetArtistnIfoN(itemIndex);
+ if (pContentInfo == null)
{
+ AppLogDebug("EXIT");
return null;
}
TableViewItem* pItem = new (std::nothrow) TableViewItem();
pItem->Construct(layout, Dimension(itemWidth, ITEM_HEIGHT), TABLE_VIEW_ANNEX_STYLE_NORMAL);
- CreateTableViewItem(*pItem, *pContentInfoStruct, __pPresentationModel->GetArtistContentCount(itemIndex));
+ CreateTableViewItem(*pItem, *pContentInfo, __pPresentationModel->GetArtistContentCount(itemIndex));
pItem->SetContextItem(__pContextItem);
- delete pContentInfoStruct;
- RequestThumbnail(pContentInfoStruct->contentId, (new (std::nothrow) int(itemIndex)));
+ RequestThumbnail(pContentInfo->contentId, (new (std::nothrow) Integer(itemIndex)));
+ delete pContentInfo;
+
AppLogDebug("EXIT");
return pItem;
}
ArtistListPanel::OnThumbnailInfoReveivedN(ThumbnailInfo* pThumbnailInfo)
{
AppLogDebug("ENTER");
- int itemIndex = 0;
- void* pParam = null;
__pThumbnail = pThumbnailInfo->GetBitmapN();
- pParam = pThumbnailInfo->GetUserParamN();
- if (pParam)
+ Object* pParam = pThumbnailInfo->GetUserParamN();
+ if (pParam != null)
{
- itemIndex = *(static_cast<int*>(pParam));
+ __pContentTableView->RefreshItem((static_cast<Integer*>(pParam))->ToInt(), TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+ delete pParam;
}
- __pContentTableView->RefreshItem(itemIndex, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+
delete pThumbnailInfo;
- delete static_cast<int*>(pParam);
AppLogDebug("EXIT");
}
pItem->Construct(Dimension(itemWidth, ITEM_HEIGHT), TABLE_VIEW_ANNEX_STYLE_MARK);
// pItem->SetBackgroundColor(COLOR_ITEM);
- RequestThumbnail(pContentInfoStruct->contentId, (new (std::nothrow) int(itemIndex)));
+// RequestThumbnail(pContentInfoStruct->contentId, (new (std::nothrow) int(itemIndex)));
CommonUtil::CreateEditListTableViewItem(*pItem, *GetDefaultThumbnail(), pContentInfoStruct->ComposerName, __pPresentationModel->GetContentCount(itemIndex));
delete pContentInfoStruct;
pItem->Construct(Dimension(itemWidth, ITEM_HEIGHT), TABLE_VIEW_ANNEX_STYLE_NORMAL);
// pItem->SetBackgroundColor(COLOR_ITEM);
- RequestThumbnail(pContentInfoStruct->contentId, (new (std::nothrow) int(itemIndex)));
+// RequestThumbnail(pContentInfoStruct->contentId, (new (std::nothrow) int(itemIndex)));
CommonUtil::CreateTableViewItem(*pItem, *GetDefaultThumbnail(), pContentInfoStruct->ComposerName, __pPresentationModel->GetContentCount(itemIndex));
pItem->SetContextItem(__pContextItem);
ContentEditPanel::SetContentEditHeader(void)\r
{\r
AppLogDebug("ENTER");\r
- CommonUtil::SetSimpleTitleStyle(*GetHeader(), L"EDIT"); //NEED String\r
+ CommonUtil::SetSimpleTitleStyle(*GetHeader(), L"Edit"); //NEED String\r
CommonUtil::SetButtonItemUnCheckedIcon(*GetParentHeader());\r
AppLogDebug("EXIT");\r
+}\r
+\r
+void\r
+ContentEditPanel::OnOrientationPanelChanged(Tizen::Ui::OrientationStatus orientationStatus)\r
+{\r
+ AppLogDebug("ENTER");\r
+ __pContentTableView->Invalidate(true);\r
+ AppLogDebug("EXIT");\r
}
\ No newline at end of file
FolderContentListForm::OnTerminating(void)
{
AppLogDebug("ENTER");
- CancelAllThumbnailRequest();
+ ThumbnailBase::Stop();
__pPresentationModel = null;
delete __pTableViewContextItem;
__pTableViewContextItem = null;
return null;
}
- ContentInformation* pContentInfoStruct = __pPresentationModel->GetContentInfoN(itemIndex);
- if (pContentInfoStruct != null)
+ ContentInformation* pContentInfo = __pPresentationModel->GetContentInfoN(itemIndex);
+ if (pContentInfo != null)
{
- CreateTableViewItem(*pItem, *pContentInfoStruct);
- RequestThumbnail(pContentInfoStruct->contentId, (new (std::nothrow) int(itemIndex)));
+ CreateTableViewItem(*pItem, *pContentInfo);
+ RequestThumbnail(pContentInfo->contentId, (new (std::nothrow) Integer(itemIndex)));
+ delete pContentInfo;
}
- delete pContentInfoStruct;
- pContentInfoStruct = null;
-
AppLogDebug("EXIT");
return pItem;
}
FolderContentListForm::OnThumbnailInfoReveivedN(ThumbnailInfo* pThumbnailInfo)
{
AppLogDebug("ENTER");
- int itemIndex = 0;
- void* pParam = null;
__pThumbnail = pThumbnailInfo->GetBitmapN();
- pParam = pThumbnailInfo->GetUserParamN();
- if (pParam)
+ Object* pParam = pThumbnailInfo->GetUserParamN();
+ if (pParam != null)
{
- itemIndex = *(static_cast<int*>(pParam));
+ __pContentListTableView->RefreshItem((static_cast<Integer*>(pParam))->ToInt(), TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+ delete pParam;
}
- __pContentListTableView->RefreshItem(itemIndex, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+
delete pThumbnailInfo;
- delete static_cast<int*>(pParam);
AppLogDebug("EXIT");
}
result r = directory.Construct(CONTENT_TYPE_AUDIO);
if (IsFailed(r))
{
+ AppLogDebug("EXIT");
return null;
}
AppLogDebug("EXIT");
}
ContentDirectory contentDirectory;
result r = contentDirectory.Construct(CONTENT_TYPE_AUDIO);
-
if (IsFailed(r))
{
+ AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
return null;
}
IList* pSearchList = contentDirectory.GetContentDirectoryItemListN(*(static_cast<String*>(__pFolderPathList->GetAt(folderIndex))), SEARCH_PAGE_NO, SEARCH_COUNT_PER_PAGE, STRING_SORT_TITLE, SORT_ORDER_ASCENDING);
- if (pSearchList == null)
+ if (pSearchList == null || IsFailed(GetLastResult()))
{
+ AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
+ if (pSearchList != null)
+ {
+ pSearchList->RemoveAll();
+ delete pSearchList;
+ }
return null;
}
AppLogDebug("ENTER");
if (__pFolderPathList == null)
{
+ AppLogDebug("EXIT");
return null;
}
result r = contentDirectory.Construct(CONTENT_TYPE_AUDIO);
if (IsFailed(r))
{
+ AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
return null;
}
IList* pSearchList = contentDirectory.GetContentDirectoryItemListN(*(static_cast<String*>(__pFolderPathList->GetAt(folderIndex))), SEARCH_PAGE_NO, SEARCH_COUNT_PER_PAGE, STRING_SORT_TITLE, SORT_ORDER_ASCENDING);
- if (pSearchList == null)
+ if (pSearchList == null || IsFailed(GetLastResult()))
{
+ AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
+ if (pSearchList != null)
+ {
+ pSearchList->RemoveAll();
+ }
+ delete pSearchList;
return null;
}
for (int iCount = 0; iCount < pSearchList->GetCount(); iCount++)
{
ContentInfo* pContentInfo = static_cast<ContentInfo*>(pSearchList->GetAt(iCount));
- pContentPathList->Add(*(new (std::nothrow) String(pContentInfo->GetContentPath())));
+ if (pContentInfo != null)
+ {
+ pContentPathList->Add(*(new (std::nothrow) String(pContentInfo->GetContentPath())));
+ }
}
pSearchList->RemoveAll(true);
delete pSearchList;
- pSearchList = null;
AppLogDebug("EXIT");
return pContentPathList;
AppLogDebug("ENTER");
if (__pFolderPathList == null)
{
+ AppLogDebug("EXIT");
return null;
}
AppLogDebug("EXIT");
FolderListPresentationModel::InitializeContentList(int folderIndex)
{
AppLogDebug("ENTER");
- if (__pContentList != null)
- {
- __pContentList->RemoveAll(true);
- }
-
- String* pFolderPath = static_cast<String*>(__pFolderPathList->GetAt(folderIndex));
-
ContentDirectory contentDirectory;
result r = contentDirectory.Construct(CONTENT_TYPE_AUDIO);
if (IsFailed(r))
{
+ AppLogDebug("EXIT(%s)", GetErrorMessage(r));
return;
}
- __pContentList = contentDirectory.GetContentDirectoryItemListN(*pFolderPath,
- SEARCH_PAGE_NO,
- SEARCH_COUNT_PER_PAGE,
- STRING_SORT_TITLE,
- SORT_ORDER_ASCENDING);
+
+ String* pFolderPath = static_cast<String*>(__pFolderPathList->GetAt(folderIndex));
+ if (__pContentList != null)
+ {
+ __pContentList->RemoveAll(true);
+ delete __pContentList;
+ }
+
+ __pContentList = contentDirectory.GetContentDirectoryItemListN(*pFolderPath, SEARCH_PAGE_NO, SEARCH_COUNT_PER_PAGE, STRING_SORT_TITLE, SORT_ORDER_ASCENDING);
__currentFolderIndex = folderIndex;
AppLogDebug("EXIT");
}
if (pContentInfo != null && pContentInfo->GetContentType() == CONTENT_TYPE_AUDIO)
{
AudioContentInfo* pAudioContentInfo = static_cast<AudioContentInfo*>(pContentInfo);
- pContentInfoStruct = CommonUtil::GetContentInformationN(*pAudioContentInfo);
+ if (pAudioContentInfo != null)
+ {
+ pContentInfoStruct = CommonUtil::GetContentInformationN(*pAudioContentInfo);
+ }
}
AppLogDebug("EXIT");
int totalCount = 0;
ContentManager contentManager;
- contentManager.Construct();
-
- if (__pFolderPathList == null)
+ result r = contentManager.Construct();
+ if (IsFailed(r))
{
+ AppLogDebug("EXIT(%s)", GetErrorMessage(r));
return ;
}
- String* pFolderPath = static_cast<String*>(__pFolderPathList->GetAt(folderIndex));
-
ContentDirectory contentDirectory;
- result r = contentDirectory.Construct(CONTENT_TYPE_AUDIO);
-
+ r = contentDirectory.Construct(CONTENT_TYPE_AUDIO);
if (IsFailed(r))
{
+ AppLogDebug("EXIT(%s)", GetErrorMessage(r));
return;
}
- pRemoveFolderList = contentDirectory.GetContentDirectoryItemListN(*pFolderPath,
- SEARCH_PAGE_NO,
- SEARCH_COUNT_PER_PAGE,
- STRING_SORT_TITLE,
- SORT_ORDER_ASCENDING);
-
- totalCount = pRemoveFolderList->GetCount();
- ContentInfo* pContentInfo = null;
- ContentInformation* pContentInfoStruct = null;
+ if (__pFolderPathList != null)
+ {
+ String* pFolderPath = static_cast<String*>(__pFolderPathList->GetAt(folderIndex));
+ pRemoveFolderList = contentDirectory.GetContentDirectoryItemListN(*pFolderPath, SEARCH_PAGE_NO, SEARCH_COUNT_PER_PAGE, STRING_SORT_TITLE, SORT_ORDER_ASCENDING);
+ }
+ else
+ {
+ AppLogDebug("EXIT(__pFolderPathList is null)");
+ return;
+ }
+ totalCount = pRemoveFolderList->GetCount();
for (int iCount = 0; iCount < totalCount; iCount++)
{
- pContentInfo = static_cast<ContentInfo*>(pRemoveFolderList->GetAt(iCount));
+ ContentInfo* pContentInfo = static_cast<ContentInfo*>(pRemoveFolderList->GetAt(iCount));
if (pContentInfo != null && pContentInfo->GetContentType() == CONTENT_TYPE_AUDIO)
{
AudioContentInfo* pAudioContentInfo = static_cast<AudioContentInfo*>(pContentInfo);
- pContentInfoStruct = CommonUtil::GetContentInformationN(*pAudioContentInfo);
- contentManager.DeleteContent(pContentInfoStruct->contentId);
-
- delete pContentInfoStruct;
- pContentInfoStruct = null;
+ ContentInformation* pContentInfoStruct = CommonUtil::GetContentInformationN(*pAudioContentInfo);
+ if (pContentInfoStruct != null)
+ {
+ contentManager.DeleteContent(pContentInfoStruct->contentId);
+ delete pContentInfoStruct;
+ }
}
}
FolderListPresentationModel::RefreshContentList(int folderIndex)
{
AppLogDebug("ENTER");
- if (__pContentList != null)
- {
- __pContentList->RemoveAll(true);
- }
-
- String* pFolderPath = static_cast<String*>(__pFolderPathList->GetAt(folderIndex));
-
ContentDirectory contentDirectory;
result r = contentDirectory.Construct(CONTENT_TYPE_AUDIO);
if (IsFailed(r))
{
+ AppLogDebug("EXIT(%s)", GetErrorMessage(r));
return;
}
- __pContentList = contentDirectory.GetContentDirectoryItemListN(*pFolderPath,
- SEARCH_PAGE_NO,
- SEARCH_COUNT_PER_PAGE,
- STRING_SORT_TITLE,
- SORT_ORDER_ASCENDING);
+ if (__pContentList != null)
+ {
+ __pContentList->RemoveAll(true);
+ delete __pContentList;
+ }
+ String* pFolderPath = static_cast<String*>(__pFolderPathList->GetAt(folderIndex));
+ __pContentList = contentDirectory.GetContentDirectoryItemListN(*pFolderPath, SEARCH_PAGE_NO, SEARCH_COUNT_PER_PAGE, STRING_SORT_TITLE, SORT_ORDER_ASCENDING);
if (__pContentList->GetCount() == INIT_VALUE)
{
__pContentList->RemoveAll(true);
AppLogDebug("ENTER");
ContentInformation* pContentInfoStruct = GetContentInfoN(playlistIndex);
PlayList* pPlayList = PlayListManager::GetInstance()->GetPlayListN(path);
- pPlayList->AddItem(pContentInfoStruct->contentId);
-
- delete pContentInfoStruct;
- pContentInfoStruct = null;
+ if (pContentInfoStruct != null)
+ {
+ pPlayList->AddItem(pContentInfoStruct->contentId);
+ delete pContentInfoStruct;
+ }
delete pPlayList;
- pPlayList = null;
AppLogDebug("EXIT");
}
pItem->Construct(Dimension(itemWidth, ITEM_HEIGHT), TABLE_VIEW_ANNEX_STYLE_MARK);
// pItem->SetBackgroundColor(COLOR_ITEM);
- RequestThumbnail(pContentInfoStruct->contentId, (new (std::nothrow) int(itemIndex)));
+// RequestThumbnail(pContentInfoStruct->contentId, (new (std::nothrow) int(itemIndex)));
CommonUtil::CreateEditListTableViewItem(*pItem, *GetDefaultThumbnail(), pContentInfoStruct->GenreName, __pPresentationModel->GetContentCount(itemIndex));
delete pContentInfoStruct;
pItem->Construct(Dimension(itemWidth, ITEM_HEIGHT), TABLE_VIEW_ANNEX_STYLE_NORMAL);
// pItem->SetBackgroundColor(COLOR_ITEM);
- RequestThumbnail(pContentInfoStruct->contentId, (new (std::nothrow) int(itemIndex)));
+// RequestThumbnail(pContentInfoStruct->contentId, (new (std::nothrow) int(itemIndex)));
CommonUtil::CreateTableViewItem(*pItem, *GetDefaultThumbnail(), pContentInfoStruct->GenreName, __pPresentationModel->GetContentCount(itemIndex));
pItem->SetContextItem(__pContextItem);
Scene* pScene = pSceneManager->GetCurrentScene();
AppAssert(pScene);
- BasePanel* pBasePanel = dynamic_cast<BasePanel*>(pScene->GetPanel());
- PlayerForm* pBaseForm = dynamic_cast<PlayerForm*>(pScene->GetForm());
- if (pBasePanel)
- {
- pBasePanel->OnUpdateContentList();
- }
+// BasePanel* pBasePanel = dynamic_cast<BasePanel*>(pScene->GetPanel());
+// PlayerForm* pBaseForm = dynamic_cast<PlayerForm*>(pScene->GetForm());
+// if (pBasePanel)
+// {
+// pBasePanel->OnUpdateContentList();
+// }
// else
// {
// if (pBaseForm)
// }
// }
+ PlayerForm* pBaseForm = dynamic_cast<PlayerForm*>(pScene->GetForm());
if (pScene->GetSceneId() == IDSCN_PLAYER)
{
if (pBaseForm)
__pVolumePanel->Invalidate(true);
}
}
+
+ __pContentsListViewPanel->Invalidate(true);
AppLogDebug("EXIT");
}
PlayerForm::OnTerminating(void)
{
AppLogDebug("ENTER");
- CancelAllThumbnailRequest();
+ ThumbnailBase::Stop();
if (__pAlbumArtElements)
{
__pAlbumArtElements->Destroy();
PlayerForm::CreateItem(int index, int itemWidth)
{
AppLogDebug("ENTER");
- ContentInformation* pContentInfoStruct = __pPlayerPresentationModel->GetContentInfoN(index);
- if (pContentInfoStruct == null)
+ ContentInformation* pContentInfo = __pPlayerPresentationModel->GetContentInfoN(index);
+ if (pContentInfo == null)
{
return null;
}
layout.Construct();
TableViewItem* pItem = new (std::nothrow) TableViewItem();
- pItem->Construct(layout, Dimension(itemWidth, ITEM_HEIGHT), TABLE_VIEW_ANNEX_STYLE_NORMAL);
+ result r = pItem->Construct(layout, Dimension(itemWidth, ITEM_HEIGHT), TABLE_VIEW_ANNEX_STYLE_NORMAL);
+ if (IsFailed(r))
+ {
+ AppLogDebug("EXIT(%s)", GetErrorMessage(r));
+ delete pContentInfo;
+ delete pItem;
+ return null;
+ }
- CreateTableViewItem(*pItem, *pContentInfoStruct);
- RequestThumbnail(pContentInfoStruct->contentId, (new (std::nothrow) int(index)));
- delete pContentInfoStruct;
+ CreateTableViewItem(*pItem, *pContentInfo);
+ RequestThumbnail(pContentInfo->contentId, (new (std::nothrow) Integer(index)));
+ delete pContentInfo;
AppLogDebug("EXIT");
return pItem;
Tizen::Base::Collection::IList* pArgs)
{
AppLogDebug("ENTER");
- CancelAllThumbnailRequest();
-
MusicPlayerApp* pMusicPlayerApp = static_cast<MusicPlayerApp*>(MusicPlayerApp::GetInstance());
TryReturnVoid(pMusicPlayerApp != null, "Unable to cast UiApp to MusicPlayerApp");
/* Comment out this code temporarily in 2.0. This will be supported in 2.1.
PlayerForm::OnThumbnailInfoReveivedN(ThumbnailInfo* pThumbnailInfo)
{
AppLogDebug("ENTER");
- int itemIndex = 0;
- void* pParam = null;
__pThumbnail = pThumbnailInfo->GetBitmapN();
- pParam = pThumbnailInfo->GetUserParamN();
- if (pParam)
+ Object* pParam = pThumbnailInfo->GetUserParamN();
+ if (pParam != null)
{
- itemIndex = *(static_cast<int*>(pParam));
+ static_cast<TableView*>(__pContentsListViewPanel->GetControl(IDC_CONTENTS_TABLEVIEW))->RefreshItem((static_cast<Integer*>(pParam))->ToInt(), TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+ delete pParam;
}
- TableView* pContentsTableView = static_cast<TableView*>(__pContentsListViewPanel->GetControl(IDC_CONTENTS_TABLEVIEW));
- pContentsTableView->RefreshItem(itemIndex, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+
delete pThumbnailInfo;
- delete static_cast<int*>(pParam);
AppLogDebug("EXIT");
}
__seekCompleted = true;
}
}
+
+ AppLogDebug("EXIT");
return r;
CATCH:
PlaylistContentListForm::OnTerminating(void)
{
AppLogDebug("ENTER");
- CancelAllThumbnailRequest();
+ ThumbnailBase::Stop();
AppLogDebug("EXIT");
return ContentListForm::OnTerminating();
}
}
CreateTableViewItem(*pItem, *pContentInfo);
- RequestThumbnail(pContentInfo->contentId, (new (std::nothrow) int(itemIndex)));
+ RequestThumbnail(pContentInfo->contentId, (new (std::nothrow) Integer(itemIndex)));
delete pContentInfo;
AppLogDebug("EXIT");
PlaylistContentListForm::OnThumbnailInfoReveivedN(ThumbnailInfo* pThumbnailInfo)
{
AppLogDebug("ENTER");
- int itemIndex = 0;
- void* pParam = null;
+ Object* pParam = null;
__pThumbnail = pThumbnailInfo->GetBitmapN();
pParam = pThumbnailInfo->GetUserParamN();
- if (pParam)
+ if (pParam != null)
{
- itemIndex = *(static_cast<int*>(pParam));
+ __pContentListTableView->RefreshItem((static_cast<Integer*>(pParam))->ToInt(), TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+ delete pParam;
}
- __pContentListTableView->RefreshItem(itemIndex, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+
delete pThumbnailInfo;
- delete static_cast<int*>(pParam);
AppLogDebug("EXIT");
}
PlaylistListEditorPanel::OnTerminating(void)
{
AppLogDebug("ENTER");
- CancelAllThumbnailRequest();
+ ThumbnailBase::Stop();
AppLogDebug("EXIT");
return E_SUCCESS;
}
if (playlistItemCount > 0 && !IsFailed(GetLastResult()))
{
static_cast<Label*>(pTableViewItem->GetControl(IDC_CONTENTS_THUMBNAIL))->SetBackgroundBitmap(*GetDefaultThumbnail());
- RequestThumbnail(contentId, (new (std::nothrow) int(itemIndex)));
+ RequestThumbnail(contentId, (new (std::nothrow) Integer(itemIndex)));
}
else
{
PlaylistListEditorPanel::OnThumbnailInfoReveivedN(ThumbnailInfo* pThumbnailInfo)
{
AppLogDebug("ENTER");
- int itemIndex = 0;
- void* pParam = null;
__pThumbnail = pThumbnailInfo->GetBitmapN();
- pParam = pThumbnailInfo->GetUserParamN();
- if (pParam)
+ Object* pParam = pThumbnailInfo->GetUserParamN();
+ if (pParam != null)
{
- itemIndex = *(static_cast<int*>(pParam));
+ __pContentTableView->RefreshItem((static_cast<Integer*>(pParam))->ToInt(), TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+ delete pParam;
}
- __pContentTableView->RefreshItem(itemIndex, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+
delete pThumbnailInfo;
- delete static_cast<int*>(pParam);
AppLogDebug("EXIT");
}
PlaylistListPanel::OnTerminating(void)
{
AppLogDebug("ENTER");
- CancelAllThumbnailRequest();
+ ThumbnailBase::Stop();
RemoveContextMenu();
if (__pDeletePopup != null)
{
if (playlistItemCount > 0 && !IsFailed(GetLastResult()))
{
CreateTableViewItem(*pTableItem, *playlistName, *GetDefaultThumbnail(), playlistItemCount);
- RequestThumbnail(contentId, (new (std::nothrow) int(itemIndex)));
+ RequestThumbnail(contentId, (new (std::nothrow) Integer(itemIndex)));
}
else
{
PlaylistListPanel::OnThumbnailInfoReveivedN(ThumbnailInfo* pThumbnailInfo)
{
AppLogDebug("ENTER");
- int itemIndex = 0;
- void* pParam = null;
__pThumbnail = pThumbnailInfo->GetBitmapN();
- pParam = pThumbnailInfo->GetUserParamN();
- if (pParam)
+ Object* pParam = pThumbnailInfo->GetUserParamN();
+ if (pParam != null)
{
- itemIndex = *(static_cast<int*>(pParam));
+ __pContentTableView->RefreshItem((static_cast<Integer*>(pParam))->ToInt(), TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+ delete pParam;
}
- __pContentTableView->RefreshItem(itemIndex, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+
delete pThumbnailInfo;
- delete static_cast<int*>(pParam);
AppLogDebug("EXIT");
}
using namespace Tizen::Ui::Controls;
using namespace Tizen::Ui::Scenes;
-static const Tizen::Graphics::Rectangle RECT_LABEL (0, 0, 560, 128);
+static const Tizen::Graphics::Rectangle RECT_LABEL (0, 25, 560, 60);
static const int HEIGHT_POPUP_ITEM = 110;
PlayListPickerPopup::PlayListPickerPopup(void)
ThumbnailBase::ThumbnailBase(void)\r
: __pIThumbnailProviderHandler(null)\r
, __pThumbnailEvent(null)\r
+ , __isForceStop(false)\r
{\r
AppLogDebug("ENTER");\r
AppLogDebug("EXIT");\r
ThumbnailBase::~ThumbnailBase(void)\r
{\r
AppLogDebug("ENTER");\r
- RemoveThumbnailEventListner();\r
+ delete __pThumbnailEvent;\r
+ __pThumbnailEvent = null;\r
__pIThumbnailProviderHandler = null;\r
AppLogDebug("EXIT");\r
}\r
}\r
\r
void\r
+ThumbnailBase::Stop(void)\r
+{\r
+ AppLogDebug("ENTER");\r
+ __isForceStop = true;\r
+ CancelAllThumbnailRequest();\r
+ RemoveThumbnailEventListner();\r
+ AppLogDebug("EXIT");\r
+}\r
+\r
+void\r
ThumbnailBase::SetThumbnailEventListner(void)\r
{\r
AppLogDebug("ENTER");\r
ThumbnailBase::RemoveThumbnailEventListner(void)\r
{\r
AppLogDebug("ENTER");\r
- CancelAllThumbnailRequest();\r
-\r
__pThumbnailEvent->RemoveListener(*(static_cast<IThumbnailEventListener*>(this)));\r
- delete __pThumbnailEvent;\r
- __pThumbnailEvent = null;\r
AppLogDebug("EXIT");\r
}\r
\r
}\r
\r
void\r
-ThumbnailBase::RequestThumbnail(const Tizen::Content::ContentId& contentId, void* pParam) const\r
+ThumbnailBase::RequestThumbnail(const Tizen::Content::ContentId& contentId, Tizen::Base::Object* pParam) const\r
{\r
AppLogDebug("ENTER");\r
+ if (__isForceStop == true)\r
+ {\r
+ AppLogDebug("EXIT");\r
+ delete pParam;\r
+ return;\r
+ }\r
__pIThumbnailProviderHandler->RequestThumbnail(contentId, __pThumbnailEvent, pParam);\r
AppLogDebug("EXIT");\r
}\r
{\r
AppLogDebug("ENTER");\r
ThumbnailInfo* pThumbnailInfo = GetThumbnailInfo(eventArg);\r
- OnThumbnailInfoReveivedN(pThumbnailInfo);\r
+ if (pThumbnailInfo != null && __isForceStop == false)\r
+ {\r
+ OnThumbnailInfoReveivedN(pThumbnailInfo);\r
+ }\r
+ else\r
+ {\r
+ delete pThumbnailInfo;\r
+ }\r
AppLogDebug("EXIT");\r
}\r
\r
ThumbnailBase::GetThumbnailInfo(Tizen::Base::Runtime::IEventArg& eventArg)\r
{\r
AppLogDebug("ENTER");\r
- ThumbnailEventArg* pThumbnailEventArg = static_cast<ThumbnailEventArg*>(&eventArg);\r
- if (pThumbnailEventArg == null)\r
- {\r
- AppLogDebug("pThumbnailEventArg is null(%s)", GetErrorMessage(GetLastResult()));\r
- return null;\r
- }\r
-\r
- ThumbnailInfo* pThumbnailInfo = pThumbnailEventArg->GetThumbnailInfoN();\r
+ ThumbnailEventArg& pThumbnailEventArg = static_cast<ThumbnailEventArg&>(eventArg);\r
+ ThumbnailInfo* pThumbnailInfo = pThumbnailEventArg.GetThumbnailInfoN();\r
AppLogDebug("EXIT");\r
return pThumbnailInfo;\r
}
\ No newline at end of file
ThumbnailEventArg::~ThumbnailEventArg(void)
{
AppLogDebug("ENTER");
- if (_pThumbnailInfo != null)
- {
- delete _pThumbnailInfo;
- }
+ delete _pThumbnailInfo;
+ _pThumbnailInfo = null;
AppLogDebug("EXIT");
}
AppLogDebug("ENTER");
delete __pBitmap;
__pBitmap = null;
+ delete __pParam;
+ __pParam = null;
AppLogDebug("EXIT");
}
void
ThumbnailInfo::Construct(const Tizen::Content::ContentId& contentId,
- const Tizen::Graphics::Bitmap& bitmap, void* pParam)
+ const Tizen::Graphics::Bitmap& bitmap, Tizen::Base::Object* pParam)
{
AppLogDebug("ENTER");
__contentId = contentId;
return CloneBitmapN(*__pBitmap);
}
-void*
-ThumbnailInfo::GetUserParamN(void)
+Tizen::Base::Object*
+ThumbnailInfo::GetUserParamN(void) const
{
AppLogDebug("ENTER");
+ Object* pUserParam = __pParam;
+ __pParam = null;
AppLogDebug("EXIT");
- return __pParam;
+ return pUserParam;
}
Bitmap*
ThumbnailJob::~ThumbnailJob(void)
{
AppLogDebug("ENTER");
+ delete __pParam;
+ __pParam = null;
AppLogDebug("EXIT");
}
void
ThumbnailJob::Construct(const ContentId& contentId, const unsigned long requestId,
- const ThumbnailEvent* pRequestEvent, void* pParam)
+ const ThumbnailEvent* pRequestEvent, Tizen::Base::Object* pParam)
{
AppLogDebug("ENTER");
__contentId = contentId;
return __pRequestEvent;
}
-void*
-ThumbnailJob::GetUserParam(void) const
+Tizen::Base::Object*
+ThumbnailJob::GetUserParamN(void) const
{
AppLogDebug("ENTER");
+ Object* pUserParam = __pParam;
+ __pParam = null;
AppLogDebug("EXIT");
- return __pParam;
+ return pUserParam;
}
\ No newline at end of file
AppLogDebug("ENTER");
__pThumbnailProviderInstance = new (std::nothrow) ThumbnailProvider();
result r = __pThumbnailProviderInstance->Construct();
-
if (IsFailed(r))
{
delete __pThumbnailProviderInstance;
}
void
-ThumbnailProvider::RequestThumbnail(const ContentId& contentId, const ThumbnailEvent* event, void* pParam)
+ThumbnailProvider::RequestThumbnail(const ContentId& contentId, const ThumbnailEvent* event, Tizen::Base::Object* pParam)
{
AppLogDebug("ENTER");
AppLogDebug("[THREAD] Request Job - (MainThread)");
|| __pMutexCmd == null || __pCmdQueue == null || __isForceClose == true)
{
AppLogDebug("EXIT 1(%s)", GetErrorMessage(GetLastResult()));
+ delete pParam;
return;
}
{
AppLogDebug("ENTER");
AppLogDebug("[THREAD] Receive Job Message - (SubThread)");
- ThumbnailJob* pThumbnailJob = null;
- ThumbnailInfo* pThumbnailInfo = null;
- ContentId contentId;
-
if (__pMutexCmd == null || __pCmdQueue == null)
{
delete pArgs;
__pMutexCmd->Acquire();
if (__pCmdQueue->GetCount() > 0)
{
- pThumbnailJob = static_cast<ThumbnailJob*>(__pCmdQueue->GetAt(0));
+ ThumbnailJob* pThumbnailJob = static_cast<ThumbnailJob*>(__pCmdQueue->GetAt(0));
if (pThumbnailJob == null)
{
__pCmdQueue->RemoveAt(0);
ContentId contentId = pThumbnailJob->GetContentId();
__pMutexCmd->Release();
- pThumbnailInfo = GetThumbnailInfoN(contentId, pThumbnailJob->GetUserParam());
+ ThumbnailInfo* pThumbnailInfo = GetThumbnailInfoN(contentId, pThumbnailJob->GetUserParamN());
if (pThumbnailInfo == null)
{
__pMutexCmd->Acquire();
{
ThumbnailEventArg* pSendingArg = new (std::nothrow) ThumbnailEventArg(pThumbnailInfo);
pThumbnailEvent->Fire(*pSendingArg);
+ pThumbnailInfo = null;
}
+
__pCmdQueue->RemoveAt(0, true);
+ delete pThumbnailInfo;
}
else
{
}
ThumbnailInfo*
-ThumbnailProvider::GetThumbnailInfoN(const ContentId& contentId, void* pParam) const
+ThumbnailProvider::GetThumbnailInfoN(const ContentId& contentId, Tizen::Base::Object* pParam) const
{
AppLogDebug("ENTER");
ThumbnailInfo* pNewThumbnailInfo = null;
+ Bitmap* pBitmap = null;
+ ContentInfo* pContentInfo = null;
ContentManager contentManager;
result r = contentManager.Construct();
- if (r == E_SUCCESS)
- {
- Bitmap* pBitmap = null;
- long duration = 0;
-
- ContentInfo* pContentInfo = contentManager.GetContentInfoN(contentId);
+ TryCatch(r == E_SUCCESS, , "ContentManager.Construct() failed(%s)", GetErrorMessage(r));
- if (pContentInfo != null && GetLastResult() == E_SUCCESS)
- {
- pBitmap = pContentInfo->GetThumbnailN();
+ pContentInfo = contentManager.GetContentInfoN(contentId);
+ TryCatch(GetLastResult() == E_SUCCESS, , "ContentManager.GetContentInfoN() failed(%s)", GetErrorMessage(r));
+ TryCatch(pContentInfo != null, delete pContentInfo, "pContentInfo is null(%s)", GetErrorMessage(GetLastResult()));
- if (pBitmap == null)
- {
- pBitmap = GetThumbnailByDecodeN(pContentInfo->GetContentPath(), pContentInfo->GetContentType());
- if (pBitmap == null)
- {
- delete pContentInfo;
- return null;
- }
- }
+ pBitmap = pContentInfo->GetThumbnailN();
+ if (pBitmap == null)
+ {
+ pBitmap = GetThumbnailByDecodeN(pContentInfo->GetContentPath(), pContentInfo->GetContentType());
+ TryCatch(pBitmap != null, delete pContentInfo , "GetThumbnailByDecodeN failed(%s)", GetErrorMessage(GetLastResult()));
+ }
+ pBitmap->Scale(Dimension(W_THUMBNAIL, H_THUMBNAIL));
- pBitmap->Scale(Dimension(W_THUMBNAIL, H_THUMBNAIL));
- }
- else
- {
- delete pContentInfo;
- AppLogDebug("EXIT 1(%s)", GetErrorMessage(GetLastResult()));
- return null;
- }
+ pNewThumbnailInfo = new (std::nothrow) ThumbnailInfo();
+ pNewThumbnailInfo->Construct(contentId, *pBitmap, pParam);
- ContentType contentType = pContentInfo->GetContentType();
- if (contentType == CONTENT_TYPE_VIDEO)
- {
- VideoContentInfo* pVideoContentInfo = static_cast<VideoContentInfo*>(pContentInfo);
- duration = pVideoContentInfo->GetDuration();
- }
- pNewThumbnailInfo = new (std::nothrow) ThumbnailInfo();
- pNewThumbnailInfo->Construct(contentId, *pBitmap, pParam);
- }
+ AppLogDebug("EXIT");
+ return pNewThumbnailInfo;
+CATCH:
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
- return pNewThumbnailInfo;
+ return null;
}
Bitmap*
else
{
AudioMetadata* pAudioMeta = ContentManagerUtil::GetAudioMetaN(filePath);
-
TryReturn(pAudioMeta != null, null, "filepath is [%ls]", filePath.GetPointer());
pBitmap = pAudioMeta->GetAlbumArtN();
UserPlaylistContentListForm::OnTerminating(void)
{
AppLogDebug("ENTER");
- CancelAllThumbnailRequest();
+ ThumbnailBase::Stop();
__pPresentationModel = null;
AppLogDebug("EXIT");
return ContentListForm::OnTerminating();
}
CreateTableViewItem(*pItem, *pContentInfo);
- RequestThumbnail(pContentInfo->contentId, (new (std::nothrow) int(itemIndex)));
+ RequestThumbnail(pContentInfo->contentId, (new (std::nothrow) Integer(itemIndex)));
delete pContentInfo;
AppLogDebug("EXIT");
UserPlaylistContentListForm::OnThumbnailInfoReveivedN(ThumbnailInfo* pThumbnailInfo)
{
AppLogDebug("ENTER");
- int itemIndex = 0;
- void* pParam = null;
__pThumbnail = pThumbnailInfo->GetBitmapN();
- pParam = pThumbnailInfo->GetUserParamN();
- if (pParam)
+ Object* pParam = pThumbnailInfo->GetUserParamN();
+ if (pParam != null)
{
- itemIndex = *(static_cast<int*>(pParam));
+ __pContentListTableView->RefreshItem((static_cast<Integer*>(pParam))->ToInt(), TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+ delete pParam;
}
- __pContentListTableView->RefreshItem(itemIndex, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+
delete pThumbnailInfo;
- delete static_cast<int*>(pParam);
AppLogDebug("EXIT");
}
{
strYear = STRING_UNKNOWN;
}
- RequestThumbnail(pContentInfoStruct->contentId, (new (std::nothrow) int(itemIndex)));
+// RequestThumbnail(pContentInfoStruct->contentId, (new (std::nothrow) int(itemIndex)));
CommonUtil::CreateEditListTableViewItem(*pItem, *GetDefaultThumbnail(), strYear, __pPresentationModel->GetContentCount(itemIndex));
delete pContentInfoStruct;
strYear = STRING_UNKNOWN;
}
- RequestThumbnail(pContentInfoStruct->contentId, (new (std::nothrow) int(itemIndex)));
+// RequestThumbnail(pContentInfoStruct->contentId, (new (std::nothrow) int(itemIndex)));
CommonUtil::CreateTableViewItem(*pItem, *GetDefaultThumbnail(), strYear, __pPresentationModel->GetContentCount(itemIndex));
pItem->SetContextItem(__pContextItem);