diff options
author | Minkyu Kang <mk7.kang@samsung.com> | 2015-08-28 14:28:43 +0900 |
---|---|---|
committer | Minkyu Kang <mk7.kang@samsung.com> | 2015-08-28 14:28:43 +0900 |
commit | 76fccc1638b0a3cba6834d6eff01a5b8206925ac (patch) | |
tree | 796644132fce4e71e7094650e314621594a0ead2 | |
parent | cf99c31da1b03804c592f72c47312eb76c6e3ad8 (diff) | |
download | air_home-76fccc1638b0a3cba6834d6eff01a5b8206925ac.tar.gz air_home-76fccc1638b0a3cba6834d6eff01a5b8206925ac.tar.bz2 air_home-76fccc1638b0a3cba6834d6eff01a5b8206925ac.zip |
get parameter name for launching app from app-utils
Change-Id: I045bc6f1d3981476d8cbed86fc7229dd705ddec0
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
-rw-r--r-- | include/defs.h | 4 | ||||
-rw-r--r-- | src/data/data_recent.c | 8 | ||||
-rw-r--r-- | src/main.c | 2 |
3 files changed, 5 insertions, 9 deletions
diff --git a/include/defs.h b/include/defs.h index 532c62a..33693b0 100644 --- a/include/defs.h +++ b/include/defs.h @@ -227,10 +227,6 @@ #define MESSAGE_SUCCESS "success" #define MESSAGE_FAIL "fail" -#define KEY_MEDIA "media_id" -#define KEY_CHANNEL "service_id" -#define KEY_INFOSQUARE "launch_type" - #define GUM_ATTR_NAME "username" #define GUM_ATTR_USERTYPE "usertype" #define GUM_ATTR_UID "uid" diff --git a/src/data/data_recent.c b/src/data/data_recent.c index 5910f6b..f9b99b2 100644 --- a/src/data/data_recent.c +++ b/src/data/data_recent.c @@ -184,7 +184,7 @@ static void _channel_list_foreach(gpointer data, gpointer user_data) if (!strcmp(rdata->id, "1")) thumb = CHANNEL_GULLIVER; - di = _new_datamgr_item(buf, thumb, program, APP_ID_LIVETV, KEY_CHANNEL, + di = _new_datamgr_item(buf, thumb, program, APP_ID_LIVETV, PARAM_SERVICE_ID, rdata->id, IMAGE_RECENT_ICON_CHANNEL, 1, rdata->time); if (di) dm->list = eina_list_append(dm->list, di); @@ -244,7 +244,7 @@ static void _gallery_list_foreach(gpointer data, gpointer user_data) snprintf(buf, sizeof(buf), "%s, %s", day, date); di = _new_datamgr_item(buf, aminfo->thumbnail_path, NULL, - APP_ID_MEDIAHUB, KEY_MEDIA, rdata->id, + APP_ID_MEDIAHUB, PARAM_MEDIA_ID, rdata->id, IMAGE_RECENT_ICON_GALLERY, 1, rdata->time); if (di) dm->list = eina_list_append(dm->list, di); @@ -312,7 +312,7 @@ static void _movie_list_foreach(gpointer data, gpointer user_data) _get_duration(aminfo->video->duration, dur, sizeof(dur)); di = _new_datamgr_item(aminfo->title, aminfo->thumbnail_path, - dur, APP_ID_MEDIAHUB, KEY_MEDIA, + dur, APP_ID_MEDIAHUB, PARAM_MEDIA_ID, rdata->id, IMAGE_RECENT_ICON_MOVIE, 1, rdata->time); if (di) dm->list = eina_list_append(dm->list, di); @@ -361,7 +361,7 @@ static void _music_list_foreach(gpointer data, gpointer user_data) } di = _new_datamgr_item(aminfo->title, aminfo->thumbnail_path, - aminfo->audio->artist, APP_ID_MEDIAHUB, KEY_MEDIA, + aminfo->audio->artist, APP_ID_MEDIAHUB, PARAM_MEDIA_ID, rdata->id, IMAGE_RECENT_ICON_MUSIC, 1, rdata->time); if (di) dm->list = eina_list_append(dm->list, di); @@ -86,7 +86,7 @@ static Eina_Bool _key_down(void *data, int type, void *ei) ad = data; if (!strcmp(ev->keyname, KEY_POWER_REMOTE)) { - utils_launch_app(APP_ID_INFOSQUARE, KEY_INFOSQUARE, + utils_launch_app(APP_ID_INFOSQUARE, PARAM_LAUNCH_TYPE, VALUE_INFOSQUARE); } else if (!strcmp(ev->keyname, KEY_TV_REMOTE)) { utils_launch_app(APP_ID_LIVETV, NULL, NULL); |