From: Denis Dolzhenko Date: Thu, 22 Sep 2016 13:57:26 +0000 (+0300) Subject: Added VCONFKEY_MESSAGE_ACTIVATED_CONVERSATION_ID flag. X-Git-Tag: submit/tizen/20160926.072415^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d2381e2788a309932a787e71e512758458b988de;p=profile%2Fmobile%2Fapps%2Fnative%2Fmessage.git Added VCONFKEY_MESSAGE_ACTIVATED_CONVERSATION_ID flag. Change-Id: I8b0419735fb441dfe5448844509a0d13d4c5928b Signed-off-by: Denis Dolzhenko --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 16a9014a..d53257bd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -77,6 +77,7 @@ pkg_check_modules(pkgs REQUIRED phonenumber-utils calendar-service2 dpm + vconf ) ADD_DEFINITIONS("-DAPP_DIR=\"${PKGDIR}\"") diff --git a/packaging/message.spec b/packaging/message.spec index be39c88c..a88ddd42 100755 --- a/packaging/message.spec +++ b/packaging/message.spec @@ -53,7 +53,8 @@ BuildRequires: pkgconfig(attach-panel) BuildRequires: pkgconfig(phonenumber-utils) BuildRequires: pkgconfig(calendar-service2) BuildRequires: pkgconfig(dpm) - +BuildRequires: pkgconfig(vconf) +BuildRequires: pkgconfig(vconf-internal-keys) %if %TIZEN_2_4_BUILD == 0 BuildRequires: pkgconfig(libtzplatform-config) diff --git a/src/Common/MsgEngine/src/private/MsgSettingsPrivate.cpp b/src/Common/MsgEngine/src/private/MsgSettingsPrivate.cpp index 810e4a90..341669f7 100644 --- a/src/Common/MsgEngine/src/private/MsgSettingsPrivate.cpp +++ b/src/Common/MsgEngine/src/private/MsgSettingsPrivate.cpp @@ -22,6 +22,8 @@ #include #include #include +#include +#include namespace { @@ -70,7 +72,7 @@ void MsgSettingsPrivate::finit() { ecore_job_del(m_pActiveNotifJob); m_pActiveNotifJob= nullptr; - // TODO: apply m_ActiveNotifValue when API will be ready + vconf_set_int(VCONFKEY_MESSAGE_ACTIVATED_CONVERSATION_ID, m_ActiveNotifValue); MSG_LOG("ActiveNotifValue = ", m_ActiveNotifValue); } msg_release_struct(&m_MmsRecvOpt); @@ -300,7 +302,7 @@ void MsgSettingsPrivate::addJobSetActiveNotifPolicy(int value) { auto *self =(MsgSettingsPrivate*)data; self->m_pActiveNotifJob = nullptr; - // TODO: apply m_ActiveNotifValue when API will be ready + vconf_set_int(VCONFKEY_MESSAGE_ACTIVATED_CONVERSATION_ID, self->m_ActiveNotifValue); MSG_LOG("ActiveNotifValue = ", self->m_ActiveNotifValue); }, this