2 * Copyright 2012-2013 Samsung Electronics Co., Ltd
4 * Licensed under the Flora License, Version 1.1 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://floralicense.org/license/
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #ifndef MMS_PLUGIN_DRM_H
18 #define MMS_PLUGIN_DRM_H
20 #include "MsgMmsTypes.h"
21 #include "MmsPluginCodecTypes.h"
23 #ifdef __SUPPORT_DRM__
25 #define MMS_DECODE_DRM_CONVERTED_TEMP_FILE MSG_DATA_PATH"Mms_Decode_Drm_Converted"
26 #define MMS_MIMETYPELENGTH 50
29 MMS_DRM2_CONVERT_NONE,
30 MMS_DRM2_CONVERT_NOT_FIXED,
31 MMS_DRM2_CONVERT_REQUIRED,
32 MMS_DRM2_CONVERT_FINISH
33 } MmsDrm2ConvertState;
35 MsgDrmType MsgGetDRMType(MsgType *pMsgType, MsgBody *pMsgBody);
36 void MmsDrm2SetConvertState(MmsDrm2ConvertState newConvertState);
37 MmsDrm2ConvertState MmsDrm2GetConvertState(void);
38 bool MsgDRM2GetDRMInfo(char *szFilePath, MsgType *pMsgType);
39 bool MsgDRMIsForwardLockType(MsgDrmType drmType);
40 bool MsgChangeDrm2FileName(char *szFileName);
41 bool MsgIsDCFFile(char *szFilePath);
43 #endif //__SUPPORT_DRM__
45 #endif //MMS_PLUGIN_DRM_H