// Regist vconf CB.
MsgSettingRegVconfCB();
- // Call-log DB init.
- MsgCalllogDBInit();
-
try
{
// plugin manager initialize
MSG_DEBUG("Fail to start Messaging Framework!!!");
}
- // Close calllog DB.
- MsgCalllogDBFinish();
-
// Remove vconf CB
MsgSettingRemoveVconfCB();
msg_error_t MsgGetFilterOperation(bool *pSetFlag);
bool MsgCheckFilter(MsgDbHandler *pDbHandle, MSG_MESSAGE_INFO_S *pMsgInfo);
-void MsgCalllogDBInit(void);
-void MsgCalllogDBFinish(void);
#endif // MSG_SPAM_FILTER_H
Name: msg-service
Version: 0.9.0
Release: 1
-License: Apache License v2.0
+License: Samsung
Summary: Messaging Framework Library
Group: System/Libraries
Source0: %{name}-%{version}.tar.gz
BuildRequires: pkgconfig(mm-session)
BuildRequires: pkgconfig(network)
BuildRequires: pkgconfig(notification)
-BuildRequires: pkgconfig(phone-misc)
BuildRequires: pkgconfig(pmapi)
BuildRequires: pkgconfig(mmutil-imgp)
BuildRequires: pkgconfig(mmutil-jpeg)
)
INCLUDE(FindPkgConfig)
-pkg_check_modules(utils_pkgs REQUIRED glib-2.0 vconf db-util contacts-service dlog pmapi mm-session alarm-service notification phone-misc drm-client)
+pkg_check_modules(utils_pkgs REQUIRED glib-2.0 vconf db-util contacts-service dlog pmapi mm-session alarm-service notification drm-client)
FOREACH(flag ${utils_pkgs_CFLAGS})
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
#include "MsgGconfWrapper.h"
#include "MsgSpamFilter.h"
-extern "C" {
-#include <phone-misc.h>
-}
-
-/*==================================================================================================
- VARIABLES
-==================================================================================================*/
-phone_misc_h *calllogHandle = NULL;
-
-
/*==================================================================================================
FUNCTION IMPLEMENTATION
==================================================================================================*/
if (checkNumber[0] == '\0') {
if (MsgSettingGetUnknownAutoReject())
return true;
- } else {
- ret = phone_misc_block_check(calllogHandle, checkNumber);
- MSG_DEBUG("phone_misc_block_check [%d]", ret);
}
if (ret > 0) {
return false;
}
-
-void MsgCalllogDBInit(void)
-{
- MSG_BEGIN();
-
- if (calllogHandle == NULL)
- calllogHandle = phone_misc_connect();
-
- MSG_END();
-}
-
-void MsgCalllogDBFinish(void)
-{
- MSG_BEGIN();
-
- if (calllogHandle != NULL) {
- if (phone_misc_disconnect(calllogHandle) == PH_MISC_SUCCESS)
- calllogHandle = NULL;
- }
-
- MSG_END();
-}