)
INCLUDE(FindPkgConfig)
-pkg_check_modules(mgr_pkgs REQUIRED glib-2.0 dlog alarm-service badge callmgr_client contacts-service2 capi-appfw-application capi-appfw-service-application capi-appfw-package-manager notification vconf feedback capi-media-player capi-media-sound-manager capi-system-device)
+pkg_check_modules(mgr_pkgs REQUIRED glib-2.0 dlog alarm-service badge callmgr_client contacts-service2 capi-appfw-application capi-appfw-service-application capi-appfw-package-manager notification vconf feedback capi-media-player capi-media-sound-manager capi-media-recorder capi-system-device)
INCLUDE_DIRECTORIES(${mgr_pkgs_INCLUDE_DIRS})
LINK_DIRECTORIES(${mgr_pkgs_LIBRARY_DIRS})
#include <unistd.h>
#include <player.h>
+#include <recorder.h>
#include <sound_manager.h>
#include <feedback.h>
#include <feedback-internal.h>
} else {
/* 2. Call is not active */
MSG_MGR_DEBUG("Call is not active.");
- int voiceRecording = 0;
- if (vconf_get_int(VCONFKEY_RECORDER_STATE, &voiceRecording) != 0) {
- MSG_MGR_INFO("vconf_get_int() is failed");
- }
+ recorder_device_state_e recorderState = RECORDER_DEVICE_STATE_IDLE;
+ int ret = recorder_get_device_state(RECORDER_TYPE_AUDIO, &recorderState);
+ if (ret != 0)
+ MSG_MGR_INFO("recorder_get_device_state() is failed [%d]", ret);
if (bVoiceMail) { /* 2-1. Voice message */
if (bMsgSettingNoti) {
}
} else { /* 2-1. Normal message */
if (bMsgSettingNoti) {
- if (voiceRecording != VCONFKEY_RECORDER_STATE_RECORDING) {
+ if (recorderState != RECORDER_DEVICE_STATE_RECORDING) {
MsgMgrGetPlayStatus(false, bSoundOn, bVibrationOn, bMsgSettingSound, bMsgSettingVibration, bPlaySound, bPlayVibration);
} else {
MSG_MGR_DEBUG("It doesn't play sound/vibration.");
MSG_MGR_DEBUG("soundType [%d]", soundType);
- /* check camera state */
- int cameraState = 0; /* camera recording state */
- if (vconf_get_int(VCONFKEY_CAMERA_STATE, &cameraState) != 0) {
- MSG_MGR_INFO("vconf_get_int() is failed");
- }
- MSG_MGR_SEC_DEBUG("Camera state [%d]", cameraState);
+ /* check recorder state */
+ recorder_device_state_e recorderState = RECORDER_DEVICE_STATE_IDLE;
+ int ret = recorder_get_device_state(RECORDER_TYPE_VIDEO, &recorderState);
+ if (ret != 0)
+ MSG_MGR_INFO("recorder_get_device_state() is failed [%d]", ret);
+
+ MSG_MGR_SEC_DEBUG("Recorder state [%d]", recorderState);
- if (cameraState == VCONFKEY_CAMERA_STATE_RECORDING) {
+ if (recorderState == RECORDER_DEVICE_STATE_RECORDING) {
MSG_MGR_END();
return;
}