Modify flora license version.
[platform/core/messaging/msg-service.git] / plugin / sms_plugin / include / SmsPluginSatHandler.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_SAT_HANDLER_H
18 #define SMS_PLUGIN_SAT_HANDLER_H
19
20
21 /*==================================================================================================
22                                          INCLUDE FILES
23 ==================================================================================================*/
24 #include "SmsPluginTypes.h"
25
26 /*==================================================================================================
27                                      CLASS DEFINITIONS
28 ==================================================================================================*/
29 class SmsPluginSatHandler
30 {
31 public:
32         static SmsPluginSatHandler* instance();
33
34         void refreshSms(void *pData);
35         void sendSms(void *pData);
36         void ctrlSms(void *pData);
37         void ctrlSms(msg_network_status_t netStatus);
38
39         void finishSimMsgInit(msg_error_t Err);
40
41 private:
42         SmsPluginSatHandler();
43         virtual ~SmsPluginSatHandler();
44
45         void initSim();
46
47         void    initSMSCList();
48         void    initCBConfig();
49
50         int handleSatTpdu(unsigned char *pTpdu, unsigned char TpduLen, int bIsPackingRequired);
51
52         void sendResult(SMS_SAT_CMD_TYPE_T CmdType, int ResultType);
53
54         static SmsPluginSatHandler* pInstance;
55
56         int commandId;
57
58         bool bSendSms;
59         bool bInitSim;
60         bool bSMSPChanged;
61         bool bCBMIChanged;
62 };
63
64 #endif //SMS_PLUGIN_SAT_HANDLER_H
65