MSG_DEBUG("Set Memory Status");
plg->setMemoryStatus(simIndex, MSG_SUCCESS);
+ } else if (MsgStoCheckMsgCntFull(dbHandle, &msgType, folderId) == MSG_ERR_MESSAGE_COUNT_FULL) {
+ MSG_DEBUG("Set Memory Status");
+ plg->setMemoryStatus(simIndex, MSG_ERR_MESSAGE_COUNT_FULL);
+ } else {
+ MSG_DEBUG("Storage event error :Failed to get space info ");
}
}
msg_error_t MsgStoAllowTcsMessage(msg_message_id_t msgId)
{
MSG_BEGIN();
- MSG_MESSAGE_INFO_S msgInfo = {0,};
- MSG_SENDINGOPT_INFO_S sendOptInfo = {0,};
+ MSG_MESSAGE_INFO_S msgInfo = {0, };
+ MSG_SENDINGOPT_INFO_S sendOptInfo = {0, };
msg_error_t err = MSG_SUCCESS;
err = MsgStoGetMessage(msgId, &msgInfo, &sendOptInfo);
#include "SmsCdmaPluginSetting.h"
#include "SmsCdmaPluginMain.h"
#include <gio/gio.h>
+#include <tzplatform_config.h>
+
extern "C"
{
#define BUS_NAME "org.tizen.system.storage"
#define PATH_NAME "/Org/Tizen/System/Storage/Lowmem"
#define INTERFACE_NAME BUS_NAME".lowmem"
-#define MEMBER_NAME "Full"
+#define MEMBER_NAME "NeedCleanup"
+#define SIGNAL_VAL "Full"
+
+
struct tapi_handle *pTapiHandle = NULL;
bool isMemAvailable = true;
MSG_DEBUG("signal_name = [%s]", signal_name);
if (g_strcmp0(signal_name, MEMBER_NAME) == 0) {
- gint memStatus;
- g_variant_get(parameters, "(i)", &memStatus);
- MSG_DEBUG("memStatus = [%d]", memStatus);
- if (memStatus == 0) {
- SmsPlgSetMemoryStatus(MSG_SUCCESS);
+ gchar *str_val = NULL;
+ gint path;
+ g_variant_get(parameters, "(is)", &path, &str_val);
+ MSG_DEBUG("path = [%i] and str_val = [%s]", path , str_val);
+ if (path == TZ_SYS_USER && g_strcmp0(str_val, SIGNAL_VAL) == 0)
+ {
+ SmsPlgSetMemoryStatus(MSG_ERR_SIM_STORAGE_FULL);
}
}
}
if (MsgStoCheckMsgCntFull(dbHandle, &msgType, folderId) == MSG_SUCCESS) {
MSG_DEBUG("Set Memory Status");
SmsPlgSetMemoryStatus(MSG_SUCCESS);
+ } else if (MsgStoCheckMsgCntFull(dbHandle, &msgType, folderId) == MSG_ERR_MESSAGE_COUNT_FULL) {
+ MSG_DEBUG("Set Memory Status");
+ SmsPlgSetMemoryStatus(MSG_ERR_MESSAGE_COUNT_FULL);
+ } else {
+ MSG_DEBUG("Storage event error :Failed to get space info ");
}
}
#include "SmsPluginMain.h"
#include "SmsPluginDSHandler.h"
#include <gio/gio.h>
+#include <tzplatform_config.h>
+
extern "C" {
#include <tapi_common.h>
#define BUS_NAME "org.tizen.system.storage"
#define PATH_NAME "/Org/Tizen/System/Storage/Lowmem"
#define INTERFACE_NAME BUS_NAME".lowmem"
-#define MEMBER_NAME "Full"
+#define MEMBER_NAME "NeedCleanup"
+#define SIGNAL_VAL "Full"
+
GDBusConnection *gdbus_conn = NULL;
GDBusProxy *gdbus_proxy = NULL;
MSG_DEBUG("signal_name = [%s]", signal_name);
if (g_strcmp0(signal_name, MEMBER_NAME) == 0) {
- gint memStatus;
- g_variant_get(parameters, "(i)", &memStatus);
- MSG_DEBUG("memStatus = [%d]", memStatus);
- if (memStatus == 0) {
+ gchar *str_val = NULL;
+ gint path;
+ g_variant_get(parameters, "(is)", &path, &str_val);
+ MSG_DEBUG("path = [%i] and str_val = [%s]", path , str_val);
+ if (path == TZ_SYS_USER && g_strcmp0(str_val, SIGNAL_VAL) == 0)
+ {
int sim_count = SmsPluginDSHandler::instance()->getTelHandleCount();
for (int i = 0; i < sim_count; i++) {
- SmsPlgSetMemoryStatus(i, MSG_SUCCESS);
+ SmsPlgSetMemoryStatus(i, MSG_ERR_SIM_STORAGE_FULL);
}
}
}
if (MsgStoCheckMsgCntFull(dbHandle, &msgType, folderId) == MSG_SUCCESS) {
MSG_DEBUG("Set Memory Status");
SmsPlgSetMemoryStatus(simIndex, MSG_SUCCESS);
+ } else if (MsgStoCheckMsgCntFull(dbHandle, &msgType, folderId) == MSG_ERR_MESSAGE_COUNT_FULL) {
+ MSG_DEBUG("Set Memory Status");
+ SmsPlgSetMemoryStatus(simIndex, MSG_ERR_MESSAGE_COUNT_FULL);
+ } else {
+ MSG_DEBUG("Storage event error :Failed to get space info ");
}
}