2 * To apply the Flora License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
\r
4 * Copyright [2012] [JongDong Lee <jongdong.lee@samsung.com>, ChangSun Lee <cs78.lee@samsung.com>]
\r
6 * Licensed under the Flora License, Version 1.0 (the "License");
\r
7 * you may not use this file except in compliance with the License.
\r
8 * You may obtain a copy of the License at
\r
10 * http://www.tizenopensource.org/license
\r
12 * Unless required by applicable law or agreed to in writing, software
\r
13 * distributed under the License is distributed on an "AS IS" BASIS,
\r
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
15 * See the License for the specific language governing permissions and
\r
16 * limitations under the License.
\r
25 #include "video-player.h"
\r
30 NORMAL_POPUP_RETURN_TYPE_UNKNOW = 0,
\r
31 NORMAL_POPUP_RETURN_TYPE_YES,
\r
32 NORMAL_POPUP_RETURN_TYPE_NO,
\r
33 NORMAL_POPUP_RETURN_TYPE_ERR,
\r
34 }NormalPopUpRetType;
\r
37 void MpUtilResetForRelaunching(void);
\r
38 void MpUtilSetAlphaOfMainWindow(bool bSetAlpha);
\r
39 void* MpUtilCreateMainWindow(const char *pStrName);
\r
41 int MpUtilSetKeyGrab(const char* szKeyName, int nGrabMode);
\r
42 int MpUtilSetKeyUngrab(const char* szKeyName);
\r
43 bool MpUtilCheckRTSPType(char *szUriPath);
\r
44 int MpUtilCheckUriType(char *szUriPath);
\r
45 bool MpUtilCheckLocalFileExist(char *uri);
\r
46 bool MpUtilCheckBatteryStatus(void);
\r
47 int MpUtilBatteryStatusNoti(VideoAppData* pAppData);
\r
48 int MpUtilBatteryStatusNotiIgnore(void);
\r
49 int MpUtilMMCstatusNoti(VideoAppData* pAppData);
\r
50 int MpUtilMMCstatusNotiIgnore(void);
\r
51 int MpUtilCheckDlnaSortType(void* pSvcHandle, char* szBundleKey);
\r
52 int MpUtilCheckDlnaMediaID(void* pSvcHandle, char* szBundleKey);
\r
53 int MpUtilGetRotationStateFromAppcore(void);
\r
54 int MpUtilGetRotationState(void);
\r
55 void MpUtilSetRotationState(int nCurRotation);
\r
56 bool MpUtilGetTitleFromFilepath(char* szFilepath, char* szTitle, int nLengthTitle);
\r
57 void MpUtilInitSession(void);
\r
58 void MpUtilFinishSession(void);
\r
59 void MpUtilDeletePopupHandle(void);
\r
60 bool MpUtilNotifyPopUp(VideoAppData* pAppData, char* szContents, void* PopupButtonCallbackFunc);
\r
61 bool MpUtilWarinigPopUp(VideoAppData *pAppData, char *szContents,void *PopupButtonCallbackFunc);
\r
62 bool MpUtilYesNoPopUp(VideoAppData *pAppData, char *szTitle, char *szContents, void *PopupYesButtonCallbackFunc, void *PopupNoButtonCallbackFunc);
\r
63 bool MpUtilRemoveQuestionPopUp(VideoAppData *pAppData, void *PopupDeleteButtonCallbackFunc, void *PopupCancelButtonCallbackFunc, void *pUserData);
\r
64 bool MpUtilProgressPopUp(VideoAppData* pAppData, char* szLabel);
\r
65 void MpUtilStatusBarNotiPopupShow(const char *szStr);
\r
66 void *MpUtilCreateButtonIcon(void *pParent, const char *szIconPath, bool bSizeUp, bool bSizeDown, int nAspectWidth, int nAspectHeight, void *pUserData, char* szButtonStyle, void *func);
\r
67 void* MpUtilCreateStyleButton(void *pParent, const char* szButtonText, const void *pUserData, char* szButtonStyle, void *func);
\r
68 void* MpUtilLoadEdjFile(Evas* pEvas, char* szEdjName, char* szGroupName);
\r
69 bool MpUtilIsCallOff(void);
\r
70 bool MpUtilIsCameraOff(void);
\r
71 bool MpUtilRegisteCameraStatusCbFunc(void *pCameraStatusCb, void *pUserData);
\r
72 bool MpUtilSetPreviewUrlVideos(char* szPreviewUrl);
\r
73 bool MpUtilGetPreviewUrlVideos(char* szRetPreviewUrl, int nStrSize);
\r
74 bool MpUtilSetPreviewUrlRecords(char* szPreviewUrl);
\r
75 bool MpUtilGetPreviewUrlRecords(char* szRetPreviewUrl, int nStrSize);
\r
76 unsigned int MpUtilGetMainWindowXID(void);
\r
77 void MpUtilRotateWindow(int nRotateMode, void* pWindowHandle);
\r
78 void MpUtilGetUserAgent(VideoAppData* pAppData);
\r
79 double MpUtilGetSysTime(void);
\r
80 void MpUtilLcdNormalPowerLockForResume(void);
\r
81 void MpUtilLcdNormalPowerUnlockForPause(void);
\r
82 void MpUtilLcdOffForPowerButton(void);
\r
83 bool MpUtilTurnOverSensorInit(void *pUserData);
\r
84 bool MpUtilTurnOverSensorDestroy(void);
\r
85 void MpUtilMultimediaKeyGrab(void);
\r
86 void MpUtilMultimediaKeyUngrab(void);
\r
87 void MpUtilMultimediaVolumeKeyGrab(void);
\r
88 void MpUtilMultimediaVolumeKeyUngrab(void);
\r
90 char* MpUtilGetFileSize(unsigned int size);
\r
91 void MpUtilConvertTime(int nVideoTime, char* szRetTime, bool bIsHideHour);
\r
92 bool MpUtilAddToHome(const char *file_path);
\r
93 void MpUtilLayoutVisibleOff(void *pWindowHandle);
\r