bool mp_util_notify_popup(void *pUserData, char *szTitle, char *szContents, void *PopupButtonCallbackFunc);
bool mp_util_yes_no_popup(void *pUserData, char *szTitle, char *szContents, void *PopupYesButtonCallbackFunc, void *PopupNoButtonCallbackFunc);
bool mp_util_remove_all_videos_question_popup(void *pUserData, MpListViewAsType viewType, void *PopupDeleteButtonCallbackFunc, void *PopupCancelButtonCallbackFunc, void *PopupHWMouseBackUpCbFunc, void *PopupHWKeyBackCbFunc);
-bool mp_util_remove_question_popup(void *pUserData, MpListViewAsType viewType, void *PopupDeleteButtonCallbackFunc, void *PopupCancelButtonCallbackFunc, void *PopupHWMouseBackUpCbFunc, void *PopupHWKeyBackCbFunc);
+bool mp_util_remove_question_popup(int pUserData, MpListViewAsType viewType, void *PopupDeleteButtonCallbackFunc, void *PopupCancelButtonCallbackFunc, void *PopupHWMouseBackUpCbFunc, void *PopupHWKeyBackCbFunc);
bool mp_util_remove_folder_question_popup(void *pUserData, void *PopupDeleteButtonCallbackFunc, void *PopupCancelButtonCallbackFunc, void *PopupHWMouseBackUpCbFunc, void *PopupHWKeyBackCbFunc);
bool mp_util_download_question_popup(void *pUserData, char *szTitle, char *szContents, void *PopupCancelBtnCallbackFunc, void *PopupDownloadBtnCallbackFunc);
bool mp_util_progress_popup(char* szLabel);
{
media_info_h pVideoItem = NULL;
Eina_List *pIterateList = NULL;
+ Eina_List *pSearchList = NULL;
int index = 0;
if (!VideoItemList) {
return FALSE;
}
+ if (!index_list) {
+ VideoLogError("List IS null");
+ return FALSE;
+ }
+ pSearchList = (Eina_List *)(*index_list);
+
EINA_LIST_FOREACH(VideoItemList, pIterateList, pVideoItem) {
if (pVideoItem) {
char *szTitle = NULL;
media_info_get_display_name(pVideoItem, &szTitle);
if (szTitle && mp_util_str_str_same_case(szTitle, keyword)) {
- *index_list = eina_list_append(*index_list, (const void*)index);
+ pSearchList = eina_list_append(pSearchList, (const void*)index);
}
MP_FREE_STRING(szTitle);
}
}
-bool mp_util_remove_question_popup(void *pUserData,
+bool mp_util_remove_question_popup(int pUserData,
MpListViewAsType viewType,
void *PopupDeleteButtonCallbackFunc,
void *PopupCancelButtonCallbackFunc,
if (PopupCancelButtonCallbackFunc) {
evas_object_smart_callback_add(pButton, "clicked",
PopupCancelButtonCallbackFunc,
- pUserData);
+ (void *)pUserData);
}
pButton = elm_button_add(pPopUpHandle);
if (PopupDeleteButtonCallbackFunc) {
evas_object_smart_callback_add(pButton, "clicked",
PopupDeleteButtonCallbackFunc,
- pUserData);
+ (void *)pUserData);
}
if (PopupHWMouseBackUpCbFunc) {
evas_object_event_callback_add(pPopUpHandle,
EVAS_CALLBACK_MOUSE_UP,
PopupHWMouseBackUpCbFunc,
- pUserData);
+ (void *)pUserData);
}
if (PopupHWKeyBackCbFunc) {
- /*evas_object_event_callback_add(pPopUpHandle, EVAS_CALLBACK_KEY_DOWN, PopupHWKeyBackCbFunc, pUserData);*/
+ /*evas_object_event_callback_add(pPopUpHandle, EVAS_CALLBACK_KEY_DOWN, PopupHWKeyBackCbFunc, (void *)pUserData);*/
}
/*elm_popup_timeout_set(pPopUpHandle, 3.0);*/
snprintf(pTmp, FILE_SIZE_LEN_MAX, "%0.1lf%s", nSize_t,
VIDEOS_DETAILVIEW_BODY_GB);
} else {
- snprintf(pTmp, FILE_SIZE_LEN_MAX, "%zu%s", 0,
+ snprintf(pTmp, FILE_SIZE_LEN_MAX, "%zu%s", (size_t)0,
VIDEOS_DETAILVIEW_BODY_MB);
}
if (g_pListRemoveViewHandle->bSelectallCheckBoxState)
mp_util_remove_all_videos_question_popup((void *) NULL, type, mp_remove_view_response_done_delete_items_popup_cb, mp_remove_view_response_cancel_delete_items_popup_cb, mp_remove_view_HW_mouse_back_popup_cb, mp_remove_view_HW_key_back_popup_cb);
else
- mp_util_remove_question_popup((void *)(-nSelectCounter), type, mp_remove_view_response_done_delete_items_popup_cb, mp_remove_view_response_cancel_delete_items_popup_cb, mp_remove_view_HW_mouse_back_popup_cb, mp_remove_view_HW_key_back_popup_cb);
+ mp_util_remove_question_popup((-nSelectCounter), type, mp_remove_view_response_done_delete_items_popup_cb, mp_remove_view_response_cancel_delete_items_popup_cb, mp_remove_view_HW_mouse_back_popup_cb, mp_remove_view_HW_key_back_popup_cb);
//g_pListRemoveViewHandle->nSelectCounterForEditList = 0;
}
}
int nFolderItemIndex = (int) pUserData;
MpListViewAsType type = MP_LIST_VIEW_AS_FOLDER_LIST;
- mp_util_remove_question_popup((void *) nFolderItemIndex, type,
+ mp_util_remove_question_popup(nFolderItemIndex, type,
__mp_folder_view_respones_delete_popup_cb,
__mp_folder_view_delete_popup_cb,
__mp_folder_view_mouse_back_up_popup_cb,
int nVideoItemIndex = (int)pUserData;
MpListViewAsType type = MP_LIST_VIEW_AS_THUMBNAIL_LIST;
- mp_util_remove_question_popup((void*)nVideoItemIndex, type, __mp_folder_item_view_respones_delete_popup_cb, __mp_folder_item_view_respones_cancel_popup_cb, __mp_folder_item_view_HW_mouse_back_up_popup_cb, __mp_folder_item_view_HW_key_back_popup_cb);
+ mp_util_remove_question_popup(nVideoItemIndex, type, __mp_folder_item_view_respones_delete_popup_cb, __mp_folder_item_view_respones_cancel_popup_cb, __mp_folder_item_view_HW_mouse_back_up_popup_cb, __mp_folder_item_view_HW_key_back_popup_cb);
}
#endif
int nVideoItemIndex = (int) pUserData;
MpListViewAsType type = MP_LIST_VIEW_AS_NORMAL_LIST;
- mp_util_remove_question_popup((void *) nVideoItemIndex, type,
+ mp_util_remove_question_popup(nVideoItemIndex, type,
mp_normal_view_respones_delete_popup_cb,
mp_normal_view_detail_video_popup_cb,
mp_normal_view_detail_mouse_back_popup_cb,
return;
}
int nVideoItemIndex = (int) pUserData;
- mp_util_remove_question_popup((void *) nVideoItemIndex,
+ mp_util_remove_question_popup(nVideoItemIndex,
(MpListViewAsType) 0,
__mp_thumbnail_view_respones_delete_popup_cb,
__mp_thumbnail_view_detail_video_popup_cb,