Modify flora license version.
[platform/core/messaging/msg-service.git] / plugin / sms_plugin / include / SmsPluginMain.h
1 /*
2 * Copyright 2012-2013  Samsung Electronics Co., Ltd
3 *
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
7 *
8 *    http://floralicense.org/license/
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 SMS_PLUGIN_MAIN_H
18 #define SMS_PLUGIN_MAIN_H
19
20
21 /*==================================================================================================
22                                          INCLUDE FILES
23 ==================================================================================================*/
24 #include "SmsPluginTypes.h"
25 #include "MsgPluginInterface.h"
26
27
28 #ifdef __cplusplus
29 extern "C"
30 {
31 #endif
32
33
34 /*==================================================================================================
35                                      FUNCTION PROTOTYPES
36 ==================================================================================================*/
37 msg_error_t SmsPlgInitialize();
38
39 msg_error_t SmsPlgFinalize();
40
41 msg_error_t SmsPlgRegisterListener(MSG_PLUGIN_LISTENER_S *pListener);
42
43 msg_error_t SmsPlgCheckSimStatus(MSG_SIM_STATUS_T *pStatus);
44
45 msg_error_t SmsPlgCheckDeviceStatus();
46
47 msg_error_t SmsPlgSubmitRequest(MSG_REQUEST_INFO_S *pReqInfo);
48
49 msg_error_t SmsPlgInitSimMessage();
50
51 msg_error_t SmsPlgSaveSimMessage(const MSG_MESSAGE_INFO_S *pMsgInfo, SMS_SIM_ID_LIST_S *pSimIdList);
52
53 msg_error_t SmsPlgDeleteSimMessage(msg_sim_id_t SimMsgId);
54
55 msg_error_t SmsPlgGetSimMessage(msg_sim_id_t SimMsgId);
56
57 msg_error_t SmsPlgGetSimMessageCount();
58
59 msg_error_t SmsPlgSetReadStatus(msg_sim_id_t SimMsgId);
60
61 msg_error_t SmsPlgSetMemoryStatus(msg_error_t Error);
62
63 msg_error_t SmsPlgInitConfigData(MSG_SIM_STATUS_T SimStatus);
64
65 msg_error_t SmsPlgSetConfigData(const MSG_SETTING_S *pSetting);
66
67 msg_error_t SmsPlgGetConfigData(MSG_SETTING_S *pSetting);
68
69 #ifdef __cplusplus
70 }
71 #endif
72
73 #endif //SMS_PLUGIN_MAIN_H
74