char *text = NULL;
char *content = NULL;
const char *tag = NULL;
+ notification_vibration_type_e vib_type = NOTIFICATION_VIBRATION_TYPE_NONE;
notification_get_pkgname(noti, &pkgname);
notification_get_text(noti, NOTIFICATION_TEXT_TYPE_TITLE, &text);
notification_get_text(noti, NOTIFICATION_TEXT_TYPE_CONTENT, &content);
notification_get_tag(noti, &tag);
+ notification_get_vibration(noti, &vib_type, NULL);
NOTIFICATION_DBG("client print_noti pkgname = %s ", pkgname );
NOTIFICATION_DBG("client print_noti title = %s ", text );
NOTIFICATION_DBG("client print_noti tag = %s ", tag );
NOTIFICATION_DBG("client print_noti priv_id = %d ", noti->priv_id);
NOTIFICATION_DBG("client print_noti vibration_path = %s ", noti->vibration_path);
+ NOTIFICATION_DBG("client print_noti vibration_type = %d ", vib_type);
}
static inline char *_string_get(char *string)
return result;
}
+ if (!pkgname)
+ pkgname = "";
+
body = g_variant_new("(si)", pkgname, type);
result = _send_sync_noti(body, &reply, "del_noti_multiple");
return result;
}
+ if (!pkgname)
+ pkgname = "";
+
body = g_variant_new("(ss)", pkgname, tag);
result = _send_sync_noti(body, &reply, "load_noti_by_tag");
return result;
}
+ if (!pkgname)
+ pkgname = "";
+
body = g_variant_new("(si)", pkgname, priv_id);
result = _send_sync_noti(body, &reply, "load_noti_by_priv_id");
return result;
}
+ if (!pkgname)
+ pkgname = "";
+
body = g_variant_new("(isii)", type, pkgname, group_id, priv_id);
result = _send_sync_noti(body, &reply, "get_noti_count");
if (noti->sound_path)
g_variant_builder_add(&builder, "{iv}", NOTIFICATION_DATA_TYPE_SOUND_PATH, g_variant_new_string((const gchar *)noti->sound_path));
- if (noti->vibration_type != NOTIFICATION_VIBRATION_TYPE_NONE)
- g_variant_builder_add(&builder, "{iv}", NOTIFICATION_DATA_TYPE_VIBRATION_TYPE, g_variant_new_int32(noti->vibration_type));
+ g_variant_builder_add(&builder, "{iv}", NOTIFICATION_DATA_TYPE_VIBRATION_TYPE, g_variant_new_int32(noti->vibration_type));
if (noti->vibration_path)
g_variant_builder_add(&builder, "{iv}", NOTIFICATION_DATA_TYPE_VIBRATION_PATH, g_variant_new_string((const gchar *)noti->vibration_path));
"flags_for_property, display_applist, progress_size, progress_percentage, ongoing_flag, auto_remove "
"from noti_list ";
- if (pkgname != NULL)
+ if (pkgname != NULL && strlen(pkgname) != 0)
query = sqlite3_mprintf("%s where caller_pkgname = '%s' and priv_id = %d",
base_query, pkgname, priv_id);
else
if (!db)
return get_last_result();
- if (pkgname != NULL) {
+ if (pkgname != NULL && strlen(pkgname) != 0) {
ret = sqlite3_prepare_v2(db, "select "
"type, layout, caller_pkgname, launch_pkgname, image_path, group_id, priv_id, "
"tag, b_text, b_key, b_format_args, num_format_args, "
snprintf(query_base, sizeof(query_base),
"select count(*) from noti_list ");
- if (pkgname != NULL) {
+ if (pkgname != NULL && strlen(pkgname) != 0) {
if (group_id == NOTIFICATION_GROUP_ID_NONE) {
if (priv_id == NOTIFICATION_PRIV_ID_NONE) {
snprintf(query_where, sizeof(query_where),