summaryrefslogtreecommitdiff
path: root/viewer/src/msg-ui-viewer-main.c
blob: e0ffbd9a92959b21a7168f3cf82e4648605049e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
/*
 * Copyright 2012  Samsung Electronics Co., Ltd
 *
 * Licensed under the Flora License, Version 1.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://floralicense.org/license
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/*==================================================================================================
									  INCLUDE HEADERS
*==================================================================================================*/
#include <msg.h>
#include <msg_storage.h>

#include "msg-smil-player-interface.h"
#include "msg-ui-common-utility.h"

#include "msg-ui-viewer-main.h"
#include "msg-ui-viewer-drm-utility.h"

/*==================================================================================================
 *							FUNCTION DECLARATIONS
 *==================================================================================================*/
static MSG_BOOL __msg_ui_viewer_check_drm_content(void *data);
static MSG_SMIL_ERROR_E __msg_ui_viewer_main_smil_cb(SMIL_SLIDE_CLIENT_CB_PARAM_S *eventStatus, void *data);
static MSG_BOOL __msg_ui_vewer_get_smil_handle(void *data);
static MSG_BOOL __msg_ui_viewer_launch_drm_list(void *data);
static MSG_BOOL __msg_ui_viewer_launch_play_view(void *data);
static MSG_BOOL __msg_ui_viewer_show_play_view(void *data);

/*==================================================================================================
 *							FUNCTION IMPLEMENTATIONS
 *================================================================================================*/
void msg_ui_viewer_main_init(void *data)
{
	MSG_UI_ENTER(MSG_UI_LEVEL_DEBUG);
	MSG_UI_RET_IF(MSG_UI_LEVEL_ERR, data == NULL);
	MSG_VIEWER_MAIN_DATA_S *viewer_main_data = (MSG_VIEWER_MAIN_DATA_S *)data;

	viewer_main_data->main_window = NULL;
	viewer_main_data->layout_main = NULL;
	viewer_main_data->bg = NULL;
	viewer_main_data->msgHandle = NULL;
	viewer_main_data->msgID = -1;
	viewer_main_data->launchmode = MSG_VIEWER_FULLVIEW_MODE;
	viewer_main_data->SmilHandle = NULL;
	viewer_main_data->msg_t = NULL;
	viewer_main_data->mms_t = NULL;
	viewer_main_data->ug_launch_mode = MSG_UG_MODE_FULLVIEW;
	viewer_main_data->navi_frame = NULL;
	viewer_main_data->player_view = NULL;
	viewer_main_data->drm_list_view = NULL;
	viewer_main_data->del_idler = NULL;
}

MSG_BOOL msg_ui_viewer_launch(void *data)
{
	MSG_UI_ENTER(MSG_UI_LEVEL_DEBUG);
	MSG_UI_RETV_IF(MSG_UI_LEVEL_ERR, data == NULL, FALSE);
	MSG_VIEWER_MAIN_DATA_S *viewer_main_data = (MSG_VIEWER_MAIN_DATA_S *)data;
	MSG_BOOL ret = TRUE;

	if (!__msg_ui_vewer_get_smil_handle(viewer_main_data)) {
		MSG_UI_DEBUG(MSG_UI_LEVEL_ERR, "__msg_ui_vewer_get_smil_handle is failed");
		return FALSE;
	}

	if (viewer_main_data->launchmode == MSG_VIEWER_FULLVIEW_MODE) {
		if (__msg_ui_viewer_check_drm_content(viewer_main_data)) {
			ret = __msg_ui_viewer_launch_drm_list(viewer_main_data);
			viewer_main_data->view_mode = MSG_VIEWER_DRM_LIST_VIEW;
		} else {
			ret = __msg_ui_viewer_launch_play_view(viewer_main_data);
			viewer_main_data->view_mode = MSG_VIEWER_PLAYER_VIEW;
		}
	} else {
		ret = __msg_ui_viewer_launch_play_view(viewer_main_data);
		viewer_main_data->view_mode = MSG_VIEWER_PLAYER_VIEW;
	}

	return ret;
}

void msg_ui_viewer_show_view_by_mode(void *data, MSG_VIEWER_VIEW_MODE_E viewMode, unsigned int commandType)
{
	MSG_UI_RET_IF(MSG_UI_LEVEL_ERR, data == NULL);
	MSG_VIEWER_MAIN_DATA_S *viewer_main_data = (MSG_VIEWER_MAIN_DATA_S *)data;

	MSG_UI_DEBUG(MSG_UI_LEVEL_DEBUG, "viewMode = %d", viewMode);
	MSG_UI_DEBUG(MSG_UI_LEVEL_DEBUG, "viewer_main_data->player_view = 0x%x", viewer_main_data->player_view);
	MSG_UI_DEBUG(MSG_UI_LEVEL_DEBUG, "viewer_main_data->drm_list_view = 0x%x", viewer_main_data->drm_list_view);

	if (viewMode == MSG_VIEWER_PLAYER_VIEW) {
		if (commandType == MSG_VIEWER_VIEW_CMD_PLAY) {
			if (__msg_ui_viewer_show_play_view(viewer_main_data))
				viewer_main_data->view_mode = MSG_VIEWER_PLAYER_VIEW;
		} else {
			__msg_ui_viewer_launch_play_view(viewer_main_data);
			viewer_main_data->view_mode = MSG_VIEWER_PLAYER_VIEW;
		}
	} else if (viewMode == MSG_VIEWER_DRM_LIST_VIEW) {
		__msg_ui_viewer_launch_drm_list(viewer_main_data);
		viewer_main_data->view_mode = MSG_VIEWER_DRM_LIST_VIEW;
	} else {
		MSG_UI_DEBUG(MSG_UI_LEVEL_ERR, "Invalid viewMode!!");
	}
}

static MSG_BOOL __msg_ui_viewer_launch_drm_list(void *data)
{
	MSG_UI_ENTER(MSG_UI_LEVEL_DEBUG);
	MSG_UI_RETV_IF(MSG_UI_LEVEL_ERR, data == NULL, FALSE);
	MSG_VIEWER_MAIN_DATA_S *viewer_main_data = (MSG_VIEWER_MAIN_DATA_S *)data;
	MSG_DRM_LIST_DATA_S *pdrm_list_data = NULL;

	/*allocate drm_list_view*/
	if (!viewer_main_data->drm_list_view) {
		pdrm_list_data = (MSG_DRM_LIST_DATA_S *)calloc(1, sizeof(MSG_DRM_LIST_DATA_S));
		if (!pdrm_list_data) {
			MSG_UI_DEBUG(MSG_UI_LEVEL_ERR, "calloc is failed");
			return FALSE;
		} else
			viewer_main_data->drm_list_view = pdrm_list_data;
	} else {
		MSG_UI_DEBUG(MSG_UI_LEVEL_DEBUG, "drm list view is already created");
		pdrm_list_data = viewer_main_data->drm_list_view;
	}

	msg_ui_viewer_drm_list_init(pdrm_list_data);
	/*set drm list view data from viewer_main_data*/
	pdrm_list_data->mms_t = viewer_main_data->mms_t;
	pdrm_list_data->msgID = viewer_main_data->msgID;
	pdrm_list_data->main_window = viewer_main_data->main_window;
	if (viewer_main_data->navi_frame)
		pdrm_list_data->navi_frame = viewer_main_data->navi_frame;

	if (viewer_main_data->drm_list) {
		MSG_VIEWER_MEDIA_INFO_S *pmedia_info = NULL;
		int ntotal = eina_list_count(viewer_main_data->drm_list);
		int index = 0;

		/*copy drm list*/
		for (index = 0; index < ntotal; index++) {
			pmedia_info = eina_list_nth(viewer_main_data->drm_list, index);
			if (pmedia_info) {
				MSG_VIEWER_MEDIA_INFO_S *ptmp_media_info = (MSG_VIEWER_MEDIA_INFO_S *)calloc(1, sizeof(MSG_VIEWER_MEDIA_INFO_S));
				if (ptmp_media_info) {
					memcpy(ptmp_media_info, pmedia_info, sizeof(MSG_VIEWER_MEDIA_INFO_S));
				} else {
					MSG_UI_DEBUG(MSG_UI_LEVEL_ERR, "calloc is failed");
					break;
				}

				pdrm_list_data->drm_list = eina_list_append(pdrm_list_data->drm_list, ptmp_media_info);
			}
		}

		/*free the drm list*/
		if (viewer_main_data->drm_list) {
			MSG_VIEWER_MEDIA_INFO_S *pmedia_info = NULL;
			int ntotal = eina_list_count(viewer_main_data->drm_list);
			int index = 0;

			for (index = 0; index < ntotal; index++) {
				pmedia_info = eina_list_nth(viewer_main_data->drm_list, index);
				if (pmedia_info) {
					free(pmedia_info);
					pmedia_info = NULL;
				}
			}
			eina_list_free(viewer_main_data->drm_list);
			viewer_main_data->drm_list = NULL;
		}
	}
	pdrm_list_data->viewer_main = viewer_main_data;

	return msg_ui_viewer_create_drm_list_view(pdrm_list_data);
}

static MSG_BOOL __msg_ui_viewer_show_play_view(void *data)
{
	MSG_UI_ENTER(MSG_UI_LEVEL_DEBUG);
	MSG_UI_RETV_IF(MSG_UI_LEVEL_ERR, data == NULL, FALSE);
	MSG_VIEWER_MAIN_DATA_S *viewer_main_data = (MSG_VIEWER_MAIN_DATA_S *)data;
	MSG_PLAY_DATA_S *viewer_play_data = NULL;

	if (!viewer_main_data->player_view) {
		MSG_UI_DEBUG(MSG_UI_LEVEL_ERR, "player view is not created");
		return FALSE;
	} else
		viewer_play_data = viewer_main_data->player_view;

	return msg_ui_viewer_show_player_view(viewer_play_data);
}

static MSG_BOOL __msg_ui_viewer_launch_play_view(void *data)
{
	MSG_UI_ENTER(MSG_UI_LEVEL_DEBUG);
	MSG_UI_RETV_IF(MSG_UI_LEVEL_ERR, data == NULL, FALSE);
	MSG_VIEWER_MAIN_DATA_S *viewer_main_data = (MSG_VIEWER_MAIN_DATA_S *)data;
	MSG_PLAY_DATA_S *viewer_play_data = NULL;

	if (!viewer_main_data->player_view) {
		viewer_play_data = (MSG_PLAY_DATA_S *)calloc(1, sizeof(MSG_PLAY_DATA_S));
		if (!viewer_play_data) {
			MSG_UI_DEBUG(MSG_UI_LEVEL_ERR, "calloc is failed");
			return FALSE;
		}
		viewer_main_data->player_view = viewer_play_data;
	} else {
		MSG_UI_DEBUG(MSG_UI_LEVEL_DEBUG, "play view is already created");
		viewer_play_data = viewer_main_data->player_view;
	}

	msg_ui_viewer_play_view_init(viewer_play_data);

	viewer_play_data->msgID = viewer_main_data->msgID;
	viewer_play_data->msgHandle = viewer_main_data->msgHandle;
	viewer_play_data->SmilHandle = viewer_main_data->SmilHandle;
	viewer_play_data->msg_t = viewer_main_data->msg_t;
	viewer_play_data->mms_t = viewer_main_data->mms_t;
	viewer_play_data->main_window = viewer_main_data->main_window;
	viewer_play_data->msg_box_viewer = viewer_main_data->msg_box_viewer;

	if (viewer_main_data->navi_frame)
		viewer_play_data->navi_frame = viewer_main_data->navi_frame;

	viewer_play_data->cbs = viewer_main_data->cbs;
	viewer_play_data->viewer_main = viewer_main_data;

	return msg_ui_viewer_create_player_view(viewer_play_data);
}

static MSG_SMIL_ERROR_E __msg_ui_viewer_main_smil_cb(SMIL_SLIDE_CLIENT_CB_PARAM_S *eventStatus, void *data)
{
	MSG_UI_RETV_IF(MSG_UI_LEVEL_ERR, eventStatus == NULL, MSG_ERR_SMIL_INVALID_PARAMETER);
	MSG_UI_RETV_IF(MSG_UI_LEVEL_ERR, data == NULL, MSG_ERR_SMIL_INVALID_PARAMETER);
	MSG_VIEWER_MAIN_DATA_S *viewer_main_data = (MSG_VIEWER_MAIN_DATA_S *)data;
	MSG_PLAY_DATA_S *viewer_data = viewer_main_data->player_view;

	return msg_ui_viewer_smil_cb(eventStatus, viewer_data);
}

static MSG_BOOL __msg_ui_vewer_get_smil_handle(void *data)
{
	MSG_UI_RETV_IF(MSG_UI_LEVEL_ERR, data == NULL, FALSE);
	MSG_VIEWER_MAIN_DATA_S *viewer_main_data = (MSG_VIEWER_MAIN_DATA_S *)data;
	MSG_SMIL_ERROR_E Error = MSG_SMIL_SUCCESS;

	if (viewer_main_data->launchmode == MSG_VIEWER_FULLVIEW_MODE) {
		if (!viewer_main_data->mms_t) {
			MSG_UI_DEBUG(MSG_UI_LEVEL_ERR, "viewer_main_data->mms_t is null");
			return FALSE;
		}
	}

	/*Create smilplayer handler*/
	Error = msg_smil_create_smil_player(viewer_main_data->mms_t, __msg_ui_viewer_main_smil_cb, (void *)viewer_main_data, &(viewer_main_data->SmilHandle));
	if (Error != MSG_SMIL_SUCCESS) {
		MSG_UI_DEBUG(MSG_UI_LEVEL_ERR, "msg_smil_create_smil_player is failed! Error = %d", Error);
		service_h svc_handle = NULL;
		service_create(&svc_handle);
		MSG_UI_RETV_IF(MSG_UI_LEVEL_ERR, svc_handle < 0 || svc_handle == NULL, FALSE);

		service_add_extra_data(svc_handle, MSG_BUNDLE_KEY_VIEWER_MESSAGE, MSG_BUNDLE_VALUE_ERROR);
		ug_send_result(viewer_main_data->viewer_ug, svc_handle);
		service_destroy(svc_handle);

		return FALSE;
	}

	return TRUE;
}

static MSG_BOOL __msg_ui_viewer_check_drm_content(void *data)
{
	MSG_UI_ENTER(MSG_UI_LEVEL_DEBUG);
	MSG_UI_RETV_IF(MSG_UI_LEVEL_ERR, data == NULL, FALSE);
	MSG_VIEWER_MAIN_DATA_S *viewer_main_data = (MSG_VIEWER_MAIN_DATA_S *)data;
	MSG_UI_RETV_IF(MSG_UI_LEVEL_ERR, viewer_main_data->mms_t == NULL, FALSE);

	MSG_BOOL isdrm_content = FALSE;

	/*check invalid sd, ssd type drm file*/
	if (msg_ui_viewer_get_invalid_ro_drm_list(viewer_main_data->mms_t, &viewer_main_data->drm_list)) {
		MSG_UI_DEBUG(MSG_UI_LEVEL_DEBUG, "RO is required");
		isdrm_content = TRUE;
	} else
		MSG_UI_DEBUG(MSG_UI_LEVEL_DEBUG, "Ro is not required");

	return isdrm_content;
}

Evas_Object *msg_ui_viewer_create_bg(void *data, Evas_Object *parent)
{
	MSG_UI_RETV_IF(MSG_UI_LEVEL_ERR, data == NULL, NULL);
	MSG_UI_RETV_IF(MSG_UI_LEVEL_ERR, parent == NULL, NULL);
	MSG_VIEWER_MAIN_DATA_S *viewer_main_data = (MSG_VIEWER_MAIN_DATA_S *)data;
	Evas_Object *bg = NULL;

	if (viewer_main_data->bg == NULL) {
		bg = elm_bg_add(parent);
		MSG_UI_RETV_IF(MSG_UI_LEVEL_ERR, bg == NULL, NULL);
		evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
		elm_win_resize_object_add(parent, bg);
		evas_object_show(bg);
		viewer_main_data->bg = bg;
	} else {
		MSG_UI_DEBUG(MSG_UI_LEVEL_ERR, "bg is already created");
		return NULL;
	}

	return bg;
}

Evas_Object *msg_ui_viewer_create_layout_main(Evas_Object *parent, bool indicator)
{
	MSG_UI_RETV_IF(MSG_UI_LEVEL_ERR, parent == NULL, NULL);
	Evas_Object *layout = NULL;

	layout = elm_layout_add(parent);
	MSG_UI_RETV_IF(MSG_UI_LEVEL_ERR, layout == NULL, NULL);

	if (indicator)
		elm_layout_theme_set(layout, "layout", "application", "default");
	else
		elm_layout_theme_set(layout, "layout", "application", "noindicator");

	evas_object_size_hint_weight_set(layout, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
	evas_object_show(layout);

	return layout;
}

void msg_ui_viewer_set_loaded_ug(void *data, ui_gadget_h loaded_ug)
{
	MSG_UI_RET_IF(MSG_UI_LEVEL_ERR, data == NULL);
	MSG_UI_RET_IF(MSG_UI_LEVEL_ERR, loaded_ug == NULL);
	MSG_VIEWER_MAIN_DATA_S *viewer_main_data = (MSG_VIEWER_MAIN_DATA_S *)data;
	viewer_main_data->loaded_ug = loaded_ug;
}

void msg_ui_viewer_set_navi_frame(void *data, Evas_Object *navi_frame)
{
	MSG_UI_RET_IF(MSG_UI_LEVEL_ERR, data == NULL);
	MSG_UI_RET_IF(MSG_UI_LEVEL_ERR, navi_frame == NULL);
	MSG_VIEWER_MAIN_DATA_S *viewer_main_data = (MSG_VIEWER_MAIN_DATA_S *)data;
	viewer_main_data->navi_frame = navi_frame;
}

void msg_ui_viewer_set_smilhandle(void *data, void *smilhandle)
{
	MSG_UI_RET_IF(MSG_UI_LEVEL_ERR, data == NULL);
	MSG_VIEWER_MAIN_DATA_S *viewer_main_data = (MSG_VIEWER_MAIN_DATA_S *)data;

	if (!smilhandle)
		MSG_UI_DEBUG(MSG_UI_LEVEL_DEBUG, "smilhandle is set as NULL");

	viewer_main_data->SmilHandle = smilhandle;
}

MSG_BOOL msg_ui_viewer_get_viewer_launchmode(void *data, MSG_VIEWER_LAUNCH_VIEW_MODE_E *launchmode)
{
	MSG_UI_RETV_IF(MSG_UI_LEVEL_ERR, data == NULL, FALSE);
	MSG_UI_RETV_IF(MSG_UI_LEVEL_ERR, launchmode == NULL, FALSE);
	MSG_VIEWER_MAIN_DATA_S *viewer_main_data = (MSG_VIEWER_MAIN_DATA_S *)data;
	*launchmode = viewer_main_data->launchmode;

	return TRUE;
}

MSG_BOOL msg_ui_viewer_get_viewer_ug_mode(void *data, MSG_UG_LAUNCH_MODE_E *ug_mode)
{
	MSG_UI_RETV_IF(MSG_UI_LEVEL_ERR, data == NULL, FALSE);
	MSG_UI_RETV_IF(MSG_UI_LEVEL_ERR, ug_mode == NULL, FALSE);
	MSG_VIEWER_MAIN_DATA_S *viewer_main_data = (MSG_VIEWER_MAIN_DATA_S *)data;
	*ug_mode = viewer_main_data->ug_launch_mode;

	return TRUE;
}

ui_gadget_h msg_ui_viewer_get_viewer_ug(void *data)
{
	MSG_UI_RETV_IF(MSG_UI_LEVEL_ERR, data == NULL, NULL);
	MSG_VIEWER_MAIN_DATA_S *viewer_main_data = (MSG_VIEWER_MAIN_DATA_S *)data;

	return viewer_main_data->viewer_ug;
}

Evas_Object *msg_ui_viewer_get_main_layout(void *data)
{
	MSG_UI_RETV_IF(MSG_UI_LEVEL_ERR, data == NULL, NULL);
	MSG_VIEWER_MAIN_DATA_S *viewer_main_data = (MSG_VIEWER_MAIN_DATA_S *)data;

	return viewer_main_data->layout_main;
}

Evas_Object *msg_ui_viewer_get_bg_layout(void *data)
{
	MSG_UI_RETV_IF(MSG_UI_LEVEL_ERR, data == NULL, NULL);
	MSG_VIEWER_MAIN_DATA_S *viewer_main_data = (MSG_VIEWER_MAIN_DATA_S *)data;

	return viewer_main_data->bg;
}

void msg_ui_viewer_change_language(void *data)
{
	MSG_UI_ENTER(MSG_UI_LEVEL_DEBUG);
	MSG_UI_RET_IF(MSG_UI_LEVEL_DEBUG, data == NULL);
	MSG_VIEWER_MAIN_DATA_S *viewer_main_data = (MSG_VIEWER_MAIN_DATA_S *)data;

	if (viewer_main_data->player_view) {
		MSG_PLAY_DATA_S *viewer_play_data = (MSG_PLAY_DATA_S *)viewer_main_data->player_view;

		if (viewer_play_data->popup) {
			switch (viewer_play_data->popup_type) {
				case MSG_VIEWER_DELETE_POPUP:
					msg_ui_viewer_delete_button_cb(viewer_play_data, NULL, NULL);
					break;
				case MSG_VIEWER_ATTACHMENTS_POPUP:
					msg_ui_viewer_create_save_attachments_popup(viewer_play_data);
					break;
				case MSG_VIEWER_DETAILS_POPUP:
					msg_ui_viewer_create_msg_detail_popup(viewer_play_data);
					break;
				case MSG_VIEWER_MENU_CTX_POPUP:
					msg_ui_viewer_more_button_cb(viewer_play_data, NULL, NULL);
					break;
				case MSG_VIEWER_CUTLINK_POPUP:
				case MSG_VIEWER_TITLE_MENU_POPUP:
				case MSG_VIEWER_BLOCK_POPOP:
					/* fall through */
				default:
					evas_object_del(viewer_play_data->popup);
					viewer_play_data->popup = NULL;
					viewer_play_data->popup_type = MSG_VIEWER_POPUP_NONE;
					break;
			}
		}

		if (viewer_play_data->title_menu_opened) {
			/* close and open again */
			msg_ui_viewer_close_title_menu_genlist(viewer_play_data);
			msg_ui_viewer_open_title_menu_genlist(viewer_play_data);
		}

		if (viewer_play_data->render_entry && viewer_play_data->smil_eventStatus->isHelpSlide) {
			char buf_helptext[DEF_BUF_LEN+1] = {0,};
			snprintf(buf_helptext, sizeof(buf_helptext), "<color=#6ca8c7>%s", ((viewer_play_data->attach_count > 1) ? dgettext(MESSAGE_PKGNAME, "IDS_MSGF_POP_HELP_PAGE_MESSAGE") : dgettext(MESSAGE_PKGNAME, "IDS_MSGF_POP_HELP_PAGE_MESSAGE_FOR_ONE_FILE")));
			elm_entry_entry_set(viewer_play_data->render_entry, buf_helptext);
		}
	}
}