Added VCONFKEY_MESSAGE_ACTIVATED_CONVERSATION_ID flag. 02/89202/2
authorDenis Dolzhenko <d.dolzhenko@samsung.com>
Thu, 22 Sep 2016 13:57:26 +0000 (16:57 +0300)
committerDenis Dolzhenko <d.dolzhenko@samsung.com>
Thu, 22 Sep 2016 14:04:14 +0000 (17:04 +0300)
Change-Id: I8b0419735fb441dfe5448844509a0d13d4c5928b
Signed-off-by: Denis Dolzhenko <d.dolzhenko@samsung.com>
CMakeLists.txt
packaging/message.spec
src/Common/MsgEngine/src/private/MsgSettingsPrivate.cpp

index 16a9014a6ae1693bd9aec64774e437a8334f1086..d53257bd41f9feb72414bcf95759575188d47755 100644 (file)
@@ -77,6 +77,7 @@ pkg_check_modules(pkgs REQUIRED
             phonenumber-utils
             calendar-service2
             dpm
+            vconf
 )
 
 ADD_DEFINITIONS("-DAPP_DIR=\"${PKGDIR}\"")
index be39c88c2fd810b8ca3c4b3a51da4fc4ab0d10cf..a88ddd429870f7a5d62f82f936a086a55be4726f 100755 (executable)
@@ -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)
index 810e4a9041e74d52a3f15fb3c101403f1cce5dbf..341669f7a137812f3dcf42fa9a67ae184236d054 100644 (file)
@@ -22,6 +22,8 @@
 #include <msg_types.h>
 #include <msg.h>
 #include <assert.h>
+#include <vconf-internal-msg-keys.h>
+#include <vconf.h>
 
 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