2 * Copyright (c) 2014 Samsung Electronics Co., Ltd. All rights reserved
4 * Licensed under the Apache License, Version 2.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.apache.org/licenses/LICENSE-2.0
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_SOUND_PLAYER_H
18 #define MSG_SOUND_PLAYER_H
21 /*==================================================================================================
23 ==================================================================================================*/
24 typedef unsigned char MSG_SOUND_TYPE_T;
26 /*==================================================================================================
28 ==================================================================================================*/
29 enum _MSG_SOUND_TYPE_E
31 MSG_SOUND_PLAY_DEFAULT = 0,
33 MSG_SOUND_PLAY_EMERGENCY,
34 MSG_SOUND_PLAY_VOICEMAIL,
37 /*==================================================================================================
39 ==================================================================================================*/
40 class MsgSoundPlayer {
42 static MsgSoundPlayer* instance();
44 void MsgSoundPlayStart(const MSG_ADDRESS_INFO_S *pAddrInfo, MSG_SOUND_TYPE_T soundType);
45 void MsgSoundPlayStop();
47 int MsgStreamStart(MSG_SOUND_TYPE_T soundType);
50 void MsgSoundInitRepeatAlarm();
52 void MsgGetRingtonePath(char *userRingtonePath, char **msg_tone_file_path_p);
53 void MsgGetPlayStatus(bool bVoiceMail, bool *bPlaySound, bool *bPlayVibration, bool *bOnCall);
59 void MsgSoundPlayMelody(char *pMsgToneFilePath);
60 void MsgSoundPlayVibration(char *vibrationPath);
62 void MsgSoundSetRepeatAlarm();
63 void MsgSoundCreateRepeatAlarm(int RepeatTime);
64 int MsgSoundGetUnreadMsgCnt();
65 void MsgGetPlayStatus(bool bOnCall, bool bSound, bool bVibration, bool bMsgSound, bool bMsgVibration, bool *bPlaySound, bool *bPlayVibration);
67 static MsgSoundPlayer* pInstance;
75 char *defaultRingtonePath;
78 #endif /* MSG_SOUND_PLAYER_H */