2 * Copyright 2012-2013 Samsung Electronics Co., Ltd
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
8 * http://floralicense.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.
23 /*==================================================================================================
25 ==================================================================================================*/
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"
31 #define MAX_SOUND_FILE_LEN 1024
33 #define DEFAULT_FILE "/usr/share/media/Sherbet.wav"
34 //#define ALERT_ON_CALL_TONE "/opt/etc/msg-service/alert_on_call.mp3"
36 #define HAPTIC_TEST_ITERATION 1
37 #define MSG_VIBRATION_INTERVAL 3000
39 typedef void (*msg_sensor_cb)();
41 /*==================================================================================================
43 ==================================================================================================*/
46 msg_error_t MsgSoundPlayUninit();
47 void MsgSoundPlayStart(bool isEmergency);
48 void MsgSoundPlayStop();
49 int MsgSoundPlayMelody(char *pMsgToneFilePath, bool bIncreasing);
50 void MsgSoundPlayVibration(bool isOnCall);
51 void MsgSoundPlayDtmf();
54 msg_error_t MsgSensorConnect();
55 void MsgSensorDisconnect();
56 msg_error_t MsgRegSensorCB(msg_sensor_cb cb);
58 #endif // MSG_HELPER_H