RSA sync with private
[platform/core/messaging/msg-service.git] / include / msg_helper / MsgHelper.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_HELPER_H
18 #define MSG_HELPER_H
19
20
21 #include "MsgTypes.h"
22
23 /*==================================================================================================
24                                         DEFINES
25 ==================================================================================================*/
26
27 #define MSG_NORMAL_SOUND_START  "NORMAL_SOUND_START"
28 #define MSG_EMERGENCY_SOUND_START       "EMERGENCY_SOUND_START"
29 #define MSG_SOUND_STOP          "SOUND_STOP"
30
31 #define MAX_SOUND_FILE_LEN 1024
32
33 #define DEFAULT_FILE            "/usr/share/media/Sherbet.wav"
34 //#define ALERT_ON_CALL_TONE    "/opt/etc/msg-service/alert_on_call.mp3"
35
36 #define HAPTIC_TEST_ITERATION 1
37 #define MSG_VIBRATION_INTERVAL 3000
38
39 typedef void (*msg_sensor_cb)();
40
41 /*==================================================================================================
42                                         FUNCTION PROTOTYPES
43 ==================================================================================================*/
44
45 // SoundPlayer
46 msg_error_t MsgSoundPlayUninit();
47 void MsgSoundPlayStart(bool isEmergency);
48 void MsgSoundPlayStop();
49 int MsgSoundPlayMelody(char *pMsgToneFilePath, bool bIncreasing);
50 void MsgSoundPlayVibration();
51 void MsgSoundPlayDtmf();
52
53 //Sensor FW wrapper.
54 msg_error_t MsgSensorConnect();
55 void MsgSensorDisconnect();
56 msg_error_t MsgRegSensorCB(msg_sensor_cb cb);
57
58 #endif // MSG_HELPER_H