RSA sync with private
[platform/core/messaging/msg-service.git] / plugin / sms_plugin / include / SmsPluginUAManager.h
1 /*
2 * Copyright 2012  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://www.tizenopensource.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_UA_MANAGER_H
18 #define SMS_PLUGIN_UA_MANAGER_H
19
20
21 /*==================================================================================================
22                                          INCLUDE FILES
23 ==================================================================================================*/
24 #include "MsgMutex.h"
25 #include "MsgQueue.h"
26 #include "MsgThread.h"
27 #include "SmsPluginTypes.h"
28
29
30 /*==================================================================================================
31                                      CLASS DEFINITIONS
32 ==================================================================================================*/
33 class SmsPluginUAManager : public MsgThread
34 {
35 public:
36         static SmsPluginUAManager* instance();
37
38         //virtual void start();
39
40         void addReqEntity(SMS_REQUEST_INFO_S *request);
41
42 private:
43         SmsPluginUAManager();
44         ~SmsPluginUAManager();
45
46         virtual void run();
47
48         static SmsPluginUAManager* pInstance;
49
50         bool bRunning;
51
52         MsgThdSafeQ <SMS_REQUEST_INFO_S> smsTranQ;
53
54         Mutex mx;
55         CndVar cv;
56 };
57
58 #endif //SMS_PLUGIN_UA_MANAGER_H
59