ERROR_TRACE("app_control_create() is failed !!");
return -1;
}
-
+/*
app_control_set_window(svc_handle, elm_win_xwindow_get(ad->win_main));
-
+*/
int a, b;
evas_object_geometry_get(ad->win_main, NULL, NULL, &a, &b);
ERROR_TRACE("app_control_create() is failed !!");
return -1;
}
-
+/*
app_control_set_window(svc_handle, elm_win_xwindow_get(ad->win_main));
-
+*/
int a, b;
evas_object_geometry_get(ad->win_main, NULL, NULL, &a, &b);
mp_ug_contact_user_sel(const char *filepath, void *user_data)
{
startfunc;
- struct appdata *ad = NULL;
+ //struct appdata *ad = NULL;
app_control_h service = NULL;
int err = 0;
mp_retvm_if (filepath == NULL, -1, "file path is NULL");
- ad = mp_util_get_appdata();
+ //ad = mp_util_get_appdata();
if (app_control_create(&service) != APP_CONTROL_ERROR_NONE)
{
app_control_destroy(service);
return -1;
}
-
+/*
err = app_control_set_window(service, ad->xwin);
if (err != APP_CONTROL_ERROR_NONE)
{
app_control_destroy(service);
return -1;
}
-
+*/
err = app_control_send_launch_request(service, _mp_ug_contact_reply_cb, NULL);
if (err != APP_CONTROL_ERROR_NONE)
{
mp_ug_set_as_alarm_tone(const char *filepath, int position)
{
startfunc;
- struct appdata *ad = NULL;
+ //struct appdata *ad = NULL;
app_control_h service = NULL;
int err = 0;
char *pos = NULL;
mp_retvm_if (filepath == NULL, -1, "file path is NULL");
- ad = mp_util_get_appdata();
+ //ad = mp_util_get_appdata();
if (app_control_create(&service) != APP_CONTROL_ERROR_NONE)
{
app_control_destroy(service);
return -1;
}
-
+/*
err = app_control_set_window(service, ad->xwin);
if (err != APP_CONTROL_ERROR_NONE)
{
app_control_destroy(service);
return -1;
}
-
+*/
err = app_control_send_launch_request(service, NULL, NULL);
if (err != APP_CONTROL_ERROR_NONE)
{
}
/* set window */
+/*
ret = app_control_set_window(service, ad->xwin);
if (ret != APP_CONTROL_ERROR_NONE) {
mp_error("app_control_set_window()... [0x%x]", ret);
goto END;
}
-
+*/
ret = app_control_send_launch_request(service, NULL, NULL);
if (ret != APP_CONTROL_ERROR_NONE) {
mp_error("app_control_send_launch_request()... [0x%x]", ret);
{
startfunc;
- struct appdata *ad = mp_util_get_appdata();
+ //struct appdata *ad = mp_util_get_appdata();
bool result = false;
}
/* set window */
+/*
ret = app_control_set_window(service, ad->xwin);
if (ret != APP_CONTROL_ERROR_NONE) {
mp_error("app_control_set_window()... [0x%x]", ret);
goto END;
}
-
+*/
ret = app_control_send_launch_request(service, NULL, NULL);
if (ret != APP_CONTROL_ERROR_NONE) {
mp_error("app_control_send_launch_request()... [0x%x]", ret);
{
MP_CHECK_FALSE(ug_name);
- struct appdata *ad = mp_util_get_appdata();
- MP_CHECK_FALSE(ad);
+ //struct appdata *ad = mp_util_get_appdata();
+ //MP_CHECK_FALSE(ad);
bool result = false;
}
/* set window */
+/*
ret = app_control_set_window(service, ad->xwin);
if (ret != APP_CONTROL_ERROR_NONE) {
mp_error("app_control_set_window()... [0x%x]", ret);
goto END;
}
-
+*/
ret = app_control_send_launch_request(service, NULL, NULL);
if (ret != APP_CONTROL_ERROR_NONE) {
mp_error("app_control_send_launch_request()... [0x%x]", ret);
}
}
+#ifndef MP_SOUND_PLAYER
static void _mp_player_view_set_shuffle_image(void *data, int shuffle_state)
{
MpPlayerView_t *view = (MpPlayerView_t *)data;
}
mp_util_domain_translatable_part_text_set(view->player_view_control_layout, "shuffle_text", STR_PLAYER_VIEW_SHUFFLE);
}
+#endif
+
/*add favourite begin*/
static void _mp_player_view_set_favourite_image(void *data, int favourite_state)
{
}
/*add favourite end*/
-
+#ifndef MP_SOUND_PLAYER
static void _mp_player_view_set_rep_image(void *data, int repeat_state)
{
MpPlayerView_t *view = (MpPlayerView_t *)data;
}
mp_util_domain_translatable_part_text_set(view->player_view_control_layout, "repeat_text", STR_PLAYER_VIEW_REPEAT);
}
+#endif
void mp_player_view_set_play_image(void *data, bool playing)
{
mp_play_control_reset_ff_rew();
}
+static void _mp_player_view_volume_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info)
+{
+ DEBUG_TRACE("volume button clicked");
+ MpPlayerView_t *view = (MpPlayerView_t *)data;
+ MP_CHECK(view);
+ mp_player_view_volume_popup_control(view, false);
+}
+
+static void _mp_player_view_play_pause_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info)
+{
+ DEBUG_TRACE("play_pause button clicked");
+ struct appdata *ad = mp_util_get_appdata();
+ MP_CHECK(ad);
+
+ MpPlayerView_t *view = (MpPlayerView_t *)data;
+ MP_CHECK(view);
+
+ if (ad->player_state == PLAY_STATE_NONE && ad->music_pos > 0) {
+ DEBUG_TRACE("ad->music_pos = %f", ad->music_pos);
+ ad->start_pos = ad->music_pos * 1000;
+ mp_play_control_play_pause(ad, true);
+ mp_player_view_set_play_image(view, true);
+ } else if (ad->player_state == PLAY_STATE_PLAYING) {
+ mp_play_control_play_pause(ad, false);
+ mp_player_view_set_play_image(view, false);
+ } else {
+ mp_play_control_play_pause(ad, true);
+ /*when player mgr resume failed*/
+ if (ad->player_state != PLAY_STATE_PLAYING) {
+ mp_player_view_set_play_image(view, false);
+ } else {
+ mp_player_view_set_play_image(view, true);
+ }
+ }
+}
+
+#ifndef MP_SOUND_PLAYER
static void _mp_player_view_shuffle_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info)
{
DEBUG_TRACE("shuffle button clicked");
mp_view_mgr_post_event(GET_VIEW_MGR, MP_UPDATE_NOW_PLAYING);
}
-static void _mp_player_view_volume_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info)
-{
- DEBUG_TRACE("volume button clicked");
- MpPlayerView_t *view = (MpPlayerView_t *)data;
- MP_CHECK(view);
- mp_player_view_volume_popup_control(view, false);
-}
-
-static void _mp_player_view_play_pause_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info)
-{
- DEBUG_TRACE("play_pause button clicked");
- struct appdata *ad = mp_util_get_appdata();
- MP_CHECK(ad);
-
- MpPlayerView_t *view = (MpPlayerView_t *)data;
- MP_CHECK(view);
-
- if (ad->player_state == PLAY_STATE_NONE && ad->music_pos > 0) {
- DEBUG_TRACE("ad->music_pos = %f", ad->music_pos);
- ad->start_pos = ad->music_pos * 1000;
- mp_play_control_play_pause(ad, true);
- mp_player_view_set_play_image(view, true);
- } else if (ad->player_state == PLAY_STATE_PLAYING) {
- mp_play_control_play_pause(ad, false);
- mp_player_view_set_play_image(view, false);
- } else {
- mp_play_control_play_pause(ad, true);
- /*when player mgr resume failed*/
- if (ad->player_state != PLAY_STATE_PLAYING) {
- mp_player_view_set_play_image(view, false);
- } else {
- mp_player_view_set_play_image(view, true);
- }
- }
-}
-
static void _mp_player_view_prev_btn_pressed_cb(void *data, Evas_Object *obj, void *event_info)
{
DEBUG_TRACE("prev button pressed");
mp_play_control_ff(false, false, true);
}
-
-#ifndef MP_SOUND_PLAYER
static void _mp_player_view_queue_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info)
{
DEBUG_TRACE("queue button clicked");