change RECORDER VCONF KEY to new API 07/91207/1 accepted/tizen/common/20161007.060651 accepted/tizen/mobile/20161007.103835 accepted/tizen/tv/20161007.103837 accepted/tizen/wearable/20161007.103833 submit/tizen/20161007.043741
authorchangjoo.lee <changjoo.lee@samsung.com>
Thu, 6 Oct 2016 08:43:38 +0000 (17:43 +0900)
committerchangjoo.lee <changjoo.lee@samsung.com>
Thu, 6 Oct 2016 08:43:50 +0000 (17:43 +0900)
Change-Id: I6a539c9e90ccb6e198bbe5d31f5c0c33243ea205
Signed-off-by: changjoo.lee <changjoo.lee@samsung.com>
packaging/system-servant.spec
system-cooperator/CMakeLists.txt
system-cooperator/system-cooperator.c

index 18aa305..b9e2567 100755 (executable)
@@ -96,6 +96,7 @@ BuildRequires:  pkgconfig(capi-media-sound-manager)
 BuildRequires:  pkgconfig(capi-media-wav-player)
 BuildRequires:  pkgconfig(capi-appfw-application)
 BuildRequires:  pkgconfig(capi-appfw-app-manager)
+BuildRequires:  pkgconfig(capi-media-recorder)
 BuildRequires:  model-build-features
 
 %if "%{?model_build_feature_formfactor}" == "circle"
index 5c400df..e66887d 100755 (executable)
@@ -17,6 +17,7 @@ SET(PKG_MODULES
                feedback
                capi-media-sound-manager
                capi-media-wav-player
+               capi-media-recorder
 )
 INCLUDE(FindPkgConfig)
 pkg_check_modules(system-cooperator_pkgs REQUIRED ${PKG_MODULES})
index 6ef683b..f0fdb87 100755 (executable)
@@ -28,6 +28,7 @@
 #include <vconf.h>
 #include <feedback.h>
 #include <appcore-common.h>
+#include <recorder.h>
 
 #undef LOG_TAG
 #define LOG_TAG "SYSTEM_APPS"
@@ -95,9 +96,10 @@ static bool get_call_state(void)
 
 static bool get_voice_recording_state(void)
 {
-       int state;
-       if (vconf_get_int(VCONFKEY_RECORDER_STATE, &state) == 0
-                       && (state == VCONFKEY_RECORDER_STATE_RECORDING))
+       recorder_device_state_e state = RECORDER_DEVICE_STATE_IDLE;
+
+       if (recorder_get_device_state(RECORDER_TYPE_AUDIO, &state) == 0
+                       && (state == RECORDER_DEVICE_STATE_RECORDING))
                return true;
        return false;
 }