Merge from master.
[framework/messaging/msg-service.git] / plugin / mms_plugin / include / MmsPluginUtil.h
1 /*
2 * Copyright 2012-2013  Samsung Electronics Co., Ltd
3 *
4 * Licensed under the Flora License, Version 1.0 (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
7 *
8 *    http://floralicense.org
9 *
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.
15 */
16
17 #ifndef MMS_PLUGIN_UTIL_H
18 #define MMS_PLUGIN_UTIL_H
19
20 #include <stdio.h>
21
22 bool makeImageThumbnail(char *srcPath, char *dstPath);
23 bool makeVideoThumbnail(char *srcPath, char *dstPath);
24
25 bool MsgIsASCII(char *pszText);
26 bool MsgReplaceNonAscii(char *szInText, char **szOutText, char replaceChar);
27 bool MsgIsSpace(char *pszText);
28 bool MsgReplaceSpecialChar(char *szInText, char **szOutText, char specialChar);
29 char *MsgStrAppend(char *szInputStr1, char *szInputStr2);
30 char *MsgStrCopy(const char *string);
31 char *MsgStrNCopy(const char *string, int length);
32 int     MsgStrlen(char *pStr);
33 bool MsgConvertCharToHex(char pSrc, char *pDest);
34 FILE *MmsFileOpen(char *pFileName);
35 void removeLessGreaterMark(const char *szSrcID, char *szDest, int destSize);
36 #endif //MMS_PLUGIN_UTIL_H