RSA sync with private
[platform/core/messaging/msg-service.git] / include / utils / MsgNotificationWrapper.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 MSG_QUICKPANEL_WRAPPER_H
18 #define MSG_QUICKPANEL_WRAPPER_H
19
20 /*==================================================================================================
21                                          INCLUDE FILES
22 ==================================================================================================*/
23 #include "MsgInternalTypes.h"
24 #include "MsgSqliteWrapper.h"
25
26
27 /*==================================================================================================
28                                          DEFINES
29 ==================================================================================================*/
30 #define MSG_APP_PACKAGE_NAME    "message"
31 #define NORMAL_MSG_ICON_PATH    "/usr/apps/org.tizen.message/res/icons/default/small/org.tizen.message.noti.png"
32 #define VOICE_MSG_ICON_PATH             "/usr/apps/org.tizen.message/res/icons/default/small/org.tizen.message.voice.png"
33 #define CB_MSG_ICON_PATH                        "/usr/apps/org.tizen.message/res/icons/default/small/org.tizen.message.noti.png"
34 #define NOTI_MSG_ICON_PATH              "/usr/apps/org.tizen.message/res/icons/default/small/org.tizen.message.noti.png"
35
36 #define MSG_APP_LOCALEDIR                       "/usr/apps/org.tizen.message/res/locale"
37 #define SENDING_MULTIMEDIA_MESSAGE_FAILED       "Sending multimedia message failed"
38 #define MULTIMEDIA_MESSAGE_SENT                                 "Multimedia message sent"
39 #define RETRIEVING_MESSAGE_FAILED                                       "Retrieving message failed"
40 #define MESSAGE_RETRIEVED                                                               "Message retrieved"
41 #define SMS_MESSAGE_SENT                                        "Message sent"
42 #define SMS_MESSAGE_SENDING_FAIL                        "Sending message failed"
43
44 #define NOTIFICATION_PRIV_ID DEFAULT_SETTING_PATH"/notification_priv_id"
45
46 /*==================================================================================================
47                                      FUNCTION PROTOTYPES
48 ==================================================================================================*/
49
50 msg_error_t MsgInsertNoti(MsgDbHandler *pDbHandle, MSG_MESSAGE_INFO_S* pMsg);
51
52 msg_error_t MsgInsertNoti(MSG_MESSAGE_INFO_S* pMsg);
53
54 msg_error_t MsgInsertSmsReportToNoti(MsgDbHandler *pDbHandle, msg_message_id_t MsgId, msg_delivery_report_status_t Status);
55
56 msg_error_t MsgInsertMmsReportToNoti(MsgDbHandler *pDbHandle, MSG_MESSAGE_INFO_S* pMsg);
57
58 msg_error_t MsgRefreshNoti();
59 msg_error_t MsgCleanAndResetNoti();
60
61 msg_error_t MsgInsertTicker(const char* pTickerMsg, const char* pLocaleTickerMsg);
62 msg_error_t MsgInsertBadge(unsigned int unreadMsgCnt);
63
64 #endif // MSG_QUICKPANEL_WRAPPER_H