2 * Copyright 2012 Samsung Electronics Co., Ltd
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
8 * http://www.tizenopensource.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 MSG_QUICKPANEL_WRAPPER_H
18 #define MSG_QUICKPANEL_WRAPPER_H
20 /*==================================================================================================
22 ==================================================================================================*/
23 #include "MsgInternalTypes.h"
24 #include "MsgSqliteWrapper.h"
27 /*==================================================================================================
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"
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"
44 #define NOTIFICATION_PRIV_ID DEFAULT_SETTING_PATH"/notification_priv_id"
46 /*==================================================================================================
48 ==================================================================================================*/
50 msg_error_t MsgInsertNoti(MsgDbHandler *pDbHandle, MSG_MESSAGE_INFO_S* pMsg);
52 msg_error_t MsgInsertNoti(MSG_MESSAGE_INFO_S* pMsg);
54 msg_error_t MsgInsertSmsReportToNoti(MsgDbHandler *pDbHandle, msg_message_id_t MsgId, msg_delivery_report_status_t Status);
56 msg_error_t MsgInsertMmsReportToNoti(MsgDbHandler *pDbHandle, MSG_MESSAGE_INFO_S* pMsg);
58 msg_error_t MsgRefreshNoti();
59 msg_error_t MsgCleanAndResetNoti();
61 msg_error_t MsgInsertTicker(const char* pTickerMsg, const char* pLocaleTickerMsg);
62 msg_error_t MsgInsertBadge(unsigned int unreadMsgCnt);
64 #endif // MSG_QUICKPANEL_WRAPPER_H