case NOTI_EX_ERROR_OUT_OF_MEMORY: szErrorVal = "NOTI_EX_ERROR_OUT_OF_MEMORY"; break;
case NOTI_EX_ERROR_IO_ERROR: szErrorVal = "NOTI_EX_ERROR_IO_ERROR"; break;
case NOTI_EX_ERROR_PERMISSION_DENIED: szErrorVal = "NOTI_EX_ERROR_PERMISSION_DENIED"; break;
- case NOTI_EX_ERROR_INVALID_OPERATION: szErrorVal = "NOTI_EX_ERROR_INVALID_OPERATION"; break;
case NOTI_EX_ERROR_FROM_DB: szErrorVal = "NOTI_EX_ERROR_FROM_DB"; break;
case NOTI_EX_ERROR_ALREADY_EXIST_ID: szErrorVal = "NOTI_EX_ERROR_ALREADY_EXIST_ID"; break;
case NOTI_EX_ERROR_FROM_DBUS: szErrorVal = "NOTI_EX_ERROR_FROM_DBUS"; break;
case NOTI_EX_ERROR_NOT_EXIST_ID: szErrorVal = "NOTI_EX_ERROR_NOT_EXIST_ID"; break;
case NOTI_EX_ERROR_SERVICE_NOT_READY: szErrorVal = "NOTI_EX_ERROR_SERVICE_NOT_READY"; break;
- case NOTI_EX_ERROR_MAX_EXCEEDED: szErrorVal = "NOTI_EX_ERROR_MAX_EXCEEDED"; break;
}
return szErrorVal;
}
return 0;
}
-//& type : auto
-//& purpose: Gets the path of shared files.
-/**
-* @testcase ITc_noti_ex_item_get_shared_paths_p
-* @since_tizen 5.5
-* @author SRID(j.abhishek)
-* @reviewer SRID(shobhit.v)
-* @type auto
-* @description Gets the path of shared files.
-* @scenario Creates the notification_ex item, get the item type.\n
-* Gets the path of shared files and check for Pass/Fail.
-* @apicovered noti_ex_item_get_shared_paths
-* @passcase noti_ex_item_get_shared_paths is successful and return correct value
-* @failcase noti_ex_item_get_shared_paths failed or return null value
-* @precondition NA
-* @postcondition Destroy handle.
-*/
-int ITc_noti_ex_item_get_shared_paths_p(void)
-{
- START_TEST;
-
- int nRet = NOTI_EX_ERROR_NONE;
- int nGetCount;
- int nCount;
- char **pszGetSharedPath = NULL;
-
- nRet = CreateButton();
- PRINT_RESULT(NOTI_EX_ERROR_NONE, nRet, "noti_ex_item_button_create", NotificationExGetError(nRet));
- CHECK_HANDLE(g_hItemButton, "noti_ex_item_button_create");
-
- //Target API
- nRet = noti_ex_item_get_shared_paths(g_hItemButton, &pszGetSharedPath, &nGetCount);
- PRINT_RESULT_CLEANUP(NOTI_EX_ERROR_NONE, nRet, "noti_ex_item_get_shared_paths", NotificationExGetError(nRet), noti_ex_item_destroy(g_hItemButton));
- CHECK_HANDLE_CLEANUP(pszGetSharedPath, "noti_ex_item_get_shared_paths", noti_ex_item_destroy(g_hItemButton));
-
- for(nCount = 1; nCount <= nGetCount; nCount++)
- {
- FPRINTF("[Line : %d][%s] noti_ex_item_get_shared_paths: [%d]th Shared path=[%s] \\n", __LINE__, API_NAMESPACE, nCount, pszGetSharedPath[nCount]);
- }
-
- FREE_MEMORY(pszGetSharedPath);
-
- nRet = noti_ex_item_destroy(g_hItemButton);
- PRINT_RESULT_NORETURN(NOTI_EX_ERROR_NONE, nRet, "noti_ex_item_destroy", NotificationExGetError(nRet));
-
- return 0;
-}
-
//& type : auto
//& purpose: Sets and Gets the id of a notification_ex item.
/**
extern int ITc_noti_ex_item_input_selector_set_get_contents_p(void);
extern int ITc_noti_ex_item_find_by_id_p(void);
extern int ITc_noti_ex_item_get_type_p(void);
-extern int ITc_noti_ex_item_get_shared_paths_p(void);
extern int ITc_noti_ex_item_set_get_id_p(void);
extern int ITc_noti_ex_item_set_get_action_p(void);
extern int ITc_noti_ex_item_set_get_style_p(void);
{"ITc_noti_ex_item_input_selector_set_get_contents_p", ITc_noti_ex_item_input_selector_set_get_contents_p, ITs_notification_ex_startup, ITs_notification_ex_cleanup},
{"ITc_noti_ex_item_find_by_id_p", ITc_noti_ex_item_find_by_id_p, ITs_notification_ex_startup, ITs_notification_ex_cleanup},
{"ITc_noti_ex_item_get_type_p", ITc_noti_ex_item_get_type_p, ITs_notification_ex_startup, ITs_notification_ex_cleanup},
- {"ITc_noti_ex_item_get_shared_paths_p", ITc_noti_ex_item_get_shared_paths_p, ITs_notification_ex_startup, ITs_notification_ex_cleanup},
{"ITc_noti_ex_item_set_get_id_p", ITc_noti_ex_item_set_get_id_p, ITs_notification_ex_startup, ITs_notification_ex_cleanup},
{"ITc_noti_ex_item_set_get_action_p", ITc_noti_ex_item_set_get_action_p, ITs_notification_ex_startup, ITs_notification_ex_cleanup},
{"ITc_noti_ex_item_set_get_style_p", ITc_noti_ex_item_set_get_style_p, ITs_notification_ex_startup, ITs_notification_ex_cleanup},
extern int ITc_noti_ex_item_input_selector_set_get_contents_p(void);
extern int ITc_noti_ex_item_find_by_id_p(void);
extern int ITc_noti_ex_item_get_type_p(void);
-extern int ITc_noti_ex_item_get_shared_paths_p(void);
extern int ITc_noti_ex_item_set_get_id_p(void);
extern int ITc_noti_ex_item_set_get_action_p(void);
extern int ITc_noti_ex_item_set_get_style_p(void);
{"ITc_noti_ex_item_input_selector_set_get_contents_p", ITc_noti_ex_item_input_selector_set_get_contents_p, ITs_notification_ex_startup, ITs_notification_ex_cleanup},
{"ITc_noti_ex_item_find_by_id_p", ITc_noti_ex_item_find_by_id_p, ITs_notification_ex_startup, ITs_notification_ex_cleanup},
{"ITc_noti_ex_item_get_type_p", ITc_noti_ex_item_get_type_p, ITs_notification_ex_startup, ITs_notification_ex_cleanup},
- {"ITc_noti_ex_item_get_shared_paths_p", ITc_noti_ex_item_get_shared_paths_p, ITs_notification_ex_startup, ITs_notification_ex_cleanup},
{"ITc_noti_ex_item_set_get_id_p", ITc_noti_ex_item_set_get_id_p, ITs_notification_ex_startup, ITs_notification_ex_cleanup},
{"ITc_noti_ex_item_set_get_action_p", ITc_noti_ex_item_set_get_action_p, ITs_notification_ex_startup, ITs_notification_ex_cleanup},
{"ITc_noti_ex_item_set_get_style_p", ITc_noti_ex_item_set_get_style_p, ITs_notification_ex_startup, ITs_notification_ex_cleanup},
extern int ITc_noti_ex_item_input_selector_set_get_contents_p(void);
extern int ITc_noti_ex_item_find_by_id_p(void);
extern int ITc_noti_ex_item_get_type_p(void);
-extern int ITc_noti_ex_item_get_shared_paths_p(void);
extern int ITc_noti_ex_item_set_get_id_p(void);
extern int ITc_noti_ex_item_set_get_action_p(void);
extern int ITc_noti_ex_item_set_get_style_p(void);
{"ITc_noti_ex_item_input_selector_set_get_contents_p", ITc_noti_ex_item_input_selector_set_get_contents_p, ITs_notification_ex_startup, ITs_notification_ex_cleanup},
{"ITc_noti_ex_item_find_by_id_p", ITc_noti_ex_item_find_by_id_p, ITs_notification_ex_startup, ITs_notification_ex_cleanup},
{"ITc_noti_ex_item_get_type_p", ITc_noti_ex_item_get_type_p, ITs_notification_ex_startup, ITs_notification_ex_cleanup},
- {"ITc_noti_ex_item_get_shared_paths_p", ITc_noti_ex_item_get_shared_paths_p, ITs_notification_ex_startup, ITs_notification_ex_cleanup},
{"ITc_noti_ex_item_set_get_id_p", ITc_noti_ex_item_set_get_id_p, ITs_notification_ex_startup, ITs_notification_ex_cleanup},
{"ITc_noti_ex_item_set_get_action_p", ITc_noti_ex_item_set_get_action_p, ITs_notification_ex_startup, ITs_notification_ex_cleanup},
{"ITc_noti_ex_item_set_get_style_p", ITc_noti_ex_item_set_get_style_p, ITs_notification_ex_startup, ITs_notification_ex_cleanup},