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 SMS_PLUGIN_STORAGE_H
18 #define SMS_PLUGIN_STORAGE_H
21 /*==================================================================================================
23 ==================================================================================================*/
26 #include "MsgStorageTypes.h"
27 #include "SmsPluginTypes.h"
28 #include "MsgInternalTypes.h"
29 #include "MsgSqliteWrapper.h"
34 #include <tapi_common.h>
36 #include <TapiUtility.h>
37 #include <ITapiNetText.h>
40 /*==================================================================================================
42 ==================================================================================================*/
43 class SmsPluginStorage
46 static SmsPluginStorage* instance();
48 msg_error_t updateSentMsg(MSG_MESSAGE_INFO_S *pMsgInfo, msg_network_status_t Status);
50 msg_error_t addSimMessage(MSG_MESSAGE_INFO_S *pSimMsgInfo);
52 msg_error_t addMessage(MSG_MESSAGE_INFO_S *pMsgInfo);
53 msg_error_t addSmsMessage(MSG_MESSAGE_INFO_S *pMsgInfo);
55 msg_error_t addSmsSendOption(MSG_MESSAGE_INFO_S *pMsg, MSG_SENDINGOPT_INFO_S *pSendOptInfo);
57 msg_error_t deleteSmsMessage(msg_message_id_t MsgId);
59 msg_error_t getRegisteredPushEvent(char* pPushHeader, int *count, char *app_id, char *content_type);
60 msg_error_t getnthPushEvent(int index, int *appcode);
61 msg_error_t releasePushEvent();
66 msg_error_t updateSmsMessage(MSG_MESSAGE_INFO_S *pMsgInfo);
68 msg_error_t addCbMessage(MSG_MESSAGE_INFO_S *pMsgInfo);
69 msg_error_t addReplaceTypeMsg(MSG_MESSAGE_INFO_S *pMsgInfo);
70 msg_error_t addWAPMessage(MSG_MESSAGE_INFO_S *pMsgInfo);
71 msg_error_t handleCOWAPMessage(MSG_MESSAGE_INFO_S *pMsgInfo);
72 msg_error_t checkPushMsgValidation(MSG_PUSH_MESSAGE_S *pPushMsg, bool *pbProceed);
74 msg_error_t checkStorageStatus(MSG_MESSAGE_INFO_S *pMsgInfo);
75 msg_error_t updateAllAddress();
77 static SmsPluginStorage* pInstance;
79 MsgDbHandler dbHandle;
80 std::list<PUSH_APPLICATION_INFO_S> pushAppInfoList;
81 // unsigned char tmpMsgRef;
84 #endif //SMS_PLUGIN_STORAGE_H