#include <feedback.h>
#include <feedback-internal.h>
-#include <feedback-ids-mobile.h>
/*==================================================================================================
DEFINES
#ifndef MSG_CONTACTS_SERVICE_NOT_SUPPORTED
/* play vibration */
if (bPlayVibration) {
- MsgSoundPlayVibration(contactInfo.vibrationPath, bOnCall);
+ MsgSoundPlayVibration(contactInfo.vibrationPath);
}
#endif /* MSG_CONTACTS_SERVICE_NOT_SUPPORTED */
}
-void MsgSoundPlayer::MsgSoundPlayVibration(char *vibrationPath, bool isOnCall)
+void MsgSoundPlayer::MsgSoundPlayVibration(char *vibrationPath)
{
MSG_BEGIN();
if (ret != FEEDBACK_ERROR_NONE)
MSG_DEBUG("Fail to feedback_play_type");
} else {
- if (isOnCall) {
- ret = feedback_play_type(FEEDBACK_TYPE_VIBRATION, (feedback_pattern_e)FEEDBACK_PATTERN_MOBILE_MESSAGE_ON_CALL);
- } else {
- ret = feedback_set_resource_path(FEEDBACK_TYPE_VIBRATION, FEEDBACK_PATTERN_MESSAGE, NULL);
- if (ret != FEEDBACK_ERROR_NONE)
- MSG_DEBUG("Fail to feedback_set_resource_path");
- ret = feedback_play_type(FEEDBACK_TYPE_VIBRATION, FEEDBACK_PATTERN_MESSAGE);
- }
+ ret = feedback_set_resource_path(FEEDBACK_TYPE_VIBRATION, FEEDBACK_PATTERN_MESSAGE, NULL);
+ if (ret != FEEDBACK_ERROR_NONE)
+ MSG_DEBUG("Fail to feedback_set_resource_path");
+ ret = feedback_play_type(FEEDBACK_TYPE_VIBRATION, FEEDBACK_PATTERN_MESSAGE);
if (ret != FEEDBACK_ERROR_NONE)
MSG_DEBUG("Fail to feedback_play_type");
}
~MsgSoundPlayer();
void MsgSoundPlayMelody(char *pMsgToneFilePath);
- void MsgSoundPlayVibration(char *vibrationPath, bool isOnCall);
+ void MsgSoundPlayVibration(char *vibrationPath);
void MsgSoundSetRepeatAlarm();
void MsgSoundCreateRepeatAlarm(int RepeatTime);