summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorseungha.son <seungha.son@samsung.com>2016-09-07 09:07:35 +0900
committerseungha.son <seungha.son@samsung.com>2016-09-07 09:08:37 +0900
commit907d6771ab6601274f7f52272a478ea562e48001 (patch)
tree888b4239df8010835ef255c06cfcae36bf637bde /include
parente55256ab28e1ba54291e577c40ab6e437ccaa19a (diff)
downloadnotification-907d6771ab6601274f7f52272a478ea562e48001.tar.gz
notification-907d6771ab6601274f7f52272a478ea562e48001.tar.bz2
notification-907d6771ab6601274f7f52272a478ea562e48001.zip
Signed-off-by: seungha.son <seungha.son@samsung.com> Change-Id: I8fe4b3e6cd4aab60a7024a7f5682c42f97e1f650
Diffstat (limited to 'include')
-rwxr-xr-xinclude/notification.h100
-rw-r--r--include/notification_internal.h34
-rw-r--r--include/notification_list.h20
-rw-r--r--include/notification_ongoing_flag.h6
-rw-r--r--include/notification_setting.h8
-rw-r--r--include/notification_setting_internal.h62
-rw-r--r--include/notification_status_internal.h2
-rw-r--r--include/notification_text_domain.h6
8 files changed, 119 insertions, 119 deletions
diff --git a/include/notification.h b/include/notification.h
index 2a48877..74babf5 100755
--- a/include/notification.h
+++ b/include/notification.h
@@ -61,12 +61,12 @@ extern "C" {
int noti_err = NOTIFICATION_ERROR_NONE;
noti = notification_create(NOTIFICATION_TYPE_NOTI);
- if(noti == NULL) {
+ if (noti == NULL) {
return;
}
noti_err = notification_set_image(noti, NOTIFICATION_IMAGE_TYPE_ICON, APP_IMAGE_FULL_PATH);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
notification_free(noti);
return;
}
@@ -191,7 +191,7 @@ int notification_get_time(notification_h noti, time_t *ret_time);
int noti_err = NOTIFICATION_ERROR_NONE;
noti_err = notification_get_insert_time(noti, &ret_time);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
}
@@ -230,12 +230,12 @@ int notification_get_insert_time(notification_h noti, time_t *ret_time);
int noti_err = NOTIFICATION_ERROR_NONE;
noti = notification_create(NOTIFICATION_TYPE_NOTI);
- if(noti == NULL) {
+ if (noti == NULL) {
return;
}
noti_err = notification_set_text(noti, NOTIFICATION_TEXT_TYPE_TITLE, "I'm Title", "IDS_APP_BODY_IM_TITLE", NOTIFICATION_VARIABLE_TYPE_NONE);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
notification_free(noti);
return;
}
@@ -265,7 +265,7 @@ int notification_set_text(notification_h noti, notification_text_type_e type,
char *text = NULL;
noti_err = notification_get_text(noti, NOTIFICATION_TEXT_TYPE_TITLE, &text);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
}
@@ -324,7 +324,7 @@ int notification_get_time_from_text(notification_h noti,
int noti_err = NOTIFICATION_ERROR_NONE;
noti_err = notification_set_sound(noti, NOTIFICATION_SOUND_TYPE_DEFAULT, NULL);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
}
@@ -353,7 +353,7 @@ int notification_set_sound(notification_h noti,
notification_sound_type_e type = NOTIFICATION_SOUND_TYPE_NONE;
noti_err = notification_get_sound(noti, &type, NULL);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
}
@@ -381,7 +381,7 @@ int notification_get_sound(notification_h noti,
int noti_err = NOTIFICATION_ERROR_NONE;
noti_err = notification_set_vibration(noti, NOTIFICATION_VIBRATION_TYPE_DEFAULT, NULL);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
}
@@ -410,7 +410,7 @@ int notification_set_vibration(notification_h noti,
notification_vibration_type_e type = NOTIFICATION_VIBRATION_TYPE_NONE;
noti_err = notification_get_vibration(noti, &type, NULL);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
}
@@ -438,7 +438,7 @@ int notification_get_vibration(notification_h noti,
int noti_err = NOTIFICATION_ERROR_NONE;
noti_err = notification_set_led(noti, NOTIFICATION_LED_OP_ON, NULL);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
}
@@ -467,7 +467,7 @@ int notification_set_led(notification_h noti, notification_led_op_e operation,
notification_led_type_e type = NOTIFICATION_LED_OP_OFF;
noti_err = notification_get_led(noti, &type, NULL);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
}
@@ -495,7 +495,7 @@ int notification_get_led(notification_h noti, notification_led_op_e *operation,
int noti_err = NOTIFICATION_ERROR_NONE;
noti_err = notification_set_led_time_period(noti, 100, 100);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
}
@@ -525,7 +525,7 @@ int notification_set_led_time_period(notification_h noti, int on_ms,
int led_off_ms = 0;
noti_err = notification_get_led_time_period(noti, &led_on_ms, &led_off_ms);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
}
@@ -562,7 +562,7 @@ int notification_get_led_time_period(notification_h noti, int *on_ms,
...
noti_err = notification_set_launch_option(noti, NOTIFICATION_LAUNCH_OPTION_APP_CONTROL, (void *)app_control);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
notification_free(noti);
return;
}
@@ -596,7 +596,7 @@ int notification_set_launch_option(notification_h noti,
...
noti_err = notification_get_launch_option(noti, NOTIFICATION_LAUNCH_OPTION_APP_CONTROL, (void *)&app_control);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
notification_free(noti);
return;
}
@@ -636,7 +636,7 @@ int notification_get_launch_option(notification_h noti,
...
noti_err = notification_set_event_handler(noti, NOTIFICATION_EVENT_TYPE_CLICK_ON_BUTTON_1, app_control);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
notification_free(noti);
return;
}
@@ -672,7 +672,7 @@ int notification_set_event_handler(notification_h noti,
...
noti_err = notification_get_event_handler(noti, NOTIFICATION_EVENT_TYPE_CLICK_ON_BUTTON_1, &app_control);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
notification_free(noti);
return;
}
@@ -702,12 +702,12 @@ int notification_get_event_handler(notification_h noti,
bundle *b = NULL;
noti = notification_create(NOTIFICATION_TYPE_NOTI);
- if(noti == NULL) {
+ if (noti == NULL) {
return;
}
noti_err = notification_set_property(noti, NOTIFICATION_PROP_DISPLAY_ONLY_SIMMODE | NOTIFICATION_PROP_DISABLE_APP_LAUNCH);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
notification_free(noti);
return;
}
@@ -735,7 +735,7 @@ int notification_set_property(notification_h noti, int flags);
int flags = 0;
noti_err = notification_get_property(noti, &flags);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
}
@@ -763,12 +763,12 @@ int notification_get_property(notification_h noti, int *flags);
bundle *b = NULL;
noti = notification_create(NOTIFICATION_TYPE_NOTI);
- if(noti == NULL) {
+ if (noti == NULL) {
return;
}
noti_err = notification_set_display_applist(noti, NOTIFICATION_DISPLAY_APP_NOTIFICATION_TRAY | NOTIFICATION_DISPLAY_APP_TICKER | NOTIFICATION_DISPLAY_APP_INDICATOR);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
notification_free(noti);
return;
}
@@ -797,7 +797,7 @@ int notification_set_display_applist(notification_h noti, int applist);
int applist = 0;
noti_err = notification_get_display_applist(noti, &applist);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
}
@@ -824,12 +824,12 @@ int notification_get_display_applist(notification_h noti, int *applist);
int noti_err = NOTIFICATION_ERROR_NONE;
noti = notification_create(NOTIFICATION_TYPE_NOTI);
- if(noti == NULL) {
+ if (noti == NULL) {
return;
}
noti_err = notification_set_size(noti, 0.0);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
notification_free(noti);
return;
}
@@ -857,7 +857,7 @@ int notification_set_size(notification_h noti, double size);
double size = 0.0;
noti_err = notification_get_size(noti, &size);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
}
@@ -884,12 +884,12 @@ int notification_get_size(notification_h noti, double *size);
int noti_err = NOTIFICATION_ERROR_NONE;
noti = notification_create(NOTIFICATION_TYPE_NOTI);
- if(noti == NULL) {
+ if (noti == NULL) {
return;
}
noti_err = notification_set_progress(noti, 0.0);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
notification_free(noti);
return;
}
@@ -918,7 +918,7 @@ int notification_set_progress(notification_h noti, double percentage);
double percentage = 0.0;
noti_err = notification_get_progress(noti, &percentage);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
}
@@ -972,7 +972,7 @@ int notification_get_layout(notification_h noti,
notification_type_e type;
noti_err = notification_get_type(noti, &type);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
}
@@ -1000,7 +1000,7 @@ int notification_get_type(notification_h noti, notification_type_e *type);
int noti_err = NOTIFICATION_ERROR_NONE;
noti_err = notification_update(NULL);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
}
@@ -1031,7 +1031,7 @@ int notification_update(notification_h noti);
...
noti_err = notification_delete(noti);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
@@ -1064,7 +1064,7 @@ int notification_delete(notification_h noti);
notification_h noti = NULL;
noti = notification_create(NOTIFICATION_TYPE_NOTI);
- if(noti == NULL) {
+ if (noti == NULL) {
return;
}
...
@@ -1119,13 +1119,13 @@ int notification_clone(notification_h noti, notification_h *clone);
int noti_err = NOTIFICATION_ERROR_NONE;
noti = notification_create(NOTIFICATION_TYPE_NOTI);
- if(noti == NULL) {
+ if (noti == NULL) {
return;
}
...
noti_err = notification_free(noti);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
}
@@ -1161,13 +1161,13 @@ int notification_free(notification_h noti);
int noti_err = NOTIFICATION_ERROR_NONE;
noti = notification_create(NOTIFICATION_TYPE_NOTI);
- if(noti == NULL) {
+ if (noti == NULL) {
return;
}
...
noti_err = notification_set_tag(noti, tag);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
}
@@ -1196,7 +1196,7 @@ int notification_set_tag(notification_h noti, const char *tag);
...
noti_err = notification_get_tag(noti, &tag);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
}
@@ -1227,7 +1227,7 @@ int notification_get_tag(notification_h noti, const char **tag);
notification_h noti = NULL;
noti = notification_load_by_tag(tag);
- if(noti == NULL) {
+ if (noti == NULL) {
return;
}
...
@@ -1254,7 +1254,7 @@ notification_h notification_load_by_tag(const char *tag);
int noti_err = NOTIFICATION_ERROR_NONE;
noti_err = notification_delete_all(NOTIFICATION_TYPE_NOTI);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
}
@@ -1282,7 +1282,7 @@ int notification_delete_all(notification_type_e type);
int noti_err = NOTIFICATION_ERROR_NONE;
noti_err = notification_post(noti);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
}
@@ -1311,7 +1311,7 @@ int notification_post(notification_h noti);
noti_err = notification_get_pkgname(noti, &pkgname);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
notification_free(noti);
return;
}
@@ -1341,7 +1341,7 @@ int notification_get_pkgname(notification_h noti, char **pkgname);
noti_err = notification_add_button(noti, NOTIFICATION_BUTTON_1);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
notification_free(noti);
return;
}
@@ -1372,7 +1372,7 @@ int notification_add_button(notification_h noti,
noti_err = notification_remove_button(noti, NOTIFICATION_BUTTON_1);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
notification_free(noti);
return;
}
@@ -1405,7 +1405,7 @@ int notification_remove_button(notification_h noti,
...
noti_err = notification_set_auto_remove(noti, false);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
}
@@ -1434,7 +1434,7 @@ int notification_set_auto_remove(notification_h noti, bool auto_remove);
...
noti_err = notification_get_auto_remove(noti, &auto_remove);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
}
@@ -1473,7 +1473,7 @@ int notification_get_auto_remove(notification_h noti, bool *auto_remove);
...
noti_err = notification_save_as_template(noti, "CALL_ACCEPT");
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
}
@@ -1509,7 +1509,7 @@ int notification_save_as_template(notification_h noti, const char *template_name
notification_h noti = NULL;
noti = notification_create_from_template("CALL_ACCEPT");
- if(noti == NULL) {
+ if (noti == NULL) {
return;
}
...
@@ -1548,7 +1548,7 @@ notification_h notification_create_from_template(const char *template_name);
...
noti_err = notification_get_noti_block_state(&state);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
}
diff --git a/include/notification_internal.h b/include/notification_internal.h
index e7ede7d..a97c2b6 100644
--- a/include/notification_internal.h
+++ b/include/notification_internal.h
@@ -99,7 +99,7 @@ notification_unresister_changed_cb_for_uid(
int noti_err = NOTIFICATION_ERROR_NONE;
noti_err = notification_update_progress(NULL, APP_NOTI_PRIV_ID, 0.6);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
}
@@ -126,7 +126,7 @@ int notification_update_progress(notification_h noti,
int noti_err = NOTIFICATION_ERROR_NONE;
noti_err = notification_update_size(NULL, APP_NOTI_PRIV_ID, 3000000);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
}
@@ -152,7 +152,7 @@ int notification_update_size(notification_h noti,
int noti_err = NOTIFICATION_ERROR_NONE;
noti_err = notification_update_content(NULL, APP_NOTI_PRIV_ID, "updated string");
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
}
@@ -300,7 +300,7 @@ NOTIFICATION_DEPRECATED_API int notifiation_clear(notification_type_e type);
int noti_err = NOTIFICATION_ERROR_NONE;
noti_err = notification_clear(NOTIFICATION_TYPE_NOTI);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
}
@@ -347,12 +347,12 @@ NOTIFICATION_DEPRECATED_API int notification_op_get_data(notification_op *noti_o
int noti_err = NOTIFICATION_ERROR_NONE;
noti = notification_new(NOTIFICATION_TYPE_NOTI, APP_GROUP_ID, NOTIFICATION_PRIV_ID_NONE);
- if(noti == NULL) {
+ if (noti == NULL) {
return;
}
noti_err = notification_set_pkgname(noti, "org.tizen.phone");
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
notification_free(noti);
return;
}
@@ -379,7 +379,7 @@ NOTIFICATION_DEPRECATED_API int notification_set_pkgname(notification_h noti,
int noti_err = NOTIFICATION_ERROR_NONE;
noti_err = notification_delete_all_by_type(NULL, NOTIFICATION_TYPE_NOTI);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
}
@@ -406,7 +406,7 @@ NOTIFICATION_DEPRECATED_API int notification_delete_all_by_type(const char *pkgn
int noti_err = NOTIFICATION_ERROR_NONE;
noti_err = notification_delete_by_priv_id(NULL, NOTIFICATION_TYPE_NOTI, APP_PRIV_ID);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
}
@@ -444,7 +444,7 @@ NOTIFICATION_DEPRECATED_API int notification_delete_by_priv_id(const char *pkgna
appsvc_set_uri(b,"http://www.samsung.com");
noti_err = notification_set_execute_option(noti, NOTIFICATION_EXECUTE_TYPE_SINGLE_LAUNCH, NULL, NULL, b);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
notification_free(noti);
return;
}
@@ -478,7 +478,7 @@ NOTIFICATION_DEPRECATED_API int notification_set_execute_option(notification_h n
int group_id, priv_id;
noti_err = notification_get_id(noti, &group_id, &priv_id);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
}
@@ -506,7 +506,7 @@ NOTIFICATION_DEPRECATED_API int notification_get_id(notification_h noti,
notification_h noti = NULL;
noti = notification_load("org.tizen.app", priv_id);
- if(noti == NULL) {
+ if (noti == NULL) {
return;
}
...
@@ -542,7 +542,7 @@ NOTIFICATION_DEPRECATED_API notification_h notification_load(char *pkgname,
notification_h noti = NULL;
noti = notification_new(NOTIFICATION_TYPE_NOTI, APP_GROUP_ID, NOTIFICATION_PRIV_ID_NONE);
- if(noti == NULL) {
+ if (noti == NULL) {
return;
}
...
@@ -574,7 +574,7 @@ NOTIFICATION_DEPRECATED_API notification_h notification_new(notification_type_e
...
noti_err = notification_get_execute_option(noti, NOTIFICATION_EXECUTE_TYPE_SINGLE_LAUNCH, NULL, NULL, &b);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
notification_free(noti);
return;
}
@@ -611,7 +611,7 @@ NOTIFICATION_DEPRECATED_API int notification_get_execute_option(notification_h n
int noti_err = NOTIFICATION_ERROR_NONE;
noti_err = notification_insert(noti, NULL);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
}
@@ -648,7 +648,7 @@ int notification_insert_for_uid(notification_h noti,
int noti_err = NOTIFICATION_ERROR_NONE;
noti_err = notification_update_async(NULL, result_cb, data);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
}
@@ -680,7 +680,7 @@ int notification_update_async_for_uid(notification_h noti,
...
{
noti_err = notification_register_detailed_changed_cb(app_changed_cb, user_data);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
}
@@ -712,7 +712,7 @@ int notification_register_detailed_changed_cb_for_uid(
...
{
noti_err = notification_register_detailed_changed_cb(app_changed_cb, user_data);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
}
diff --git a/include/notification_list.h b/include/notification_list.h
index 447b893..dc255e6 100644
--- a/include/notification_list.h
+++ b/include/notification_list.h
@@ -66,7 +66,7 @@ typedef struct _notification_list *notification_list_h;
int noti_err = NOTIFICATION_ERROR_NONE;
noti_err = notification_get_list(NOTIFICATION_TYPE_NONE, -1, &noti_list);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
}
@@ -106,7 +106,7 @@ int notification_get_list_for_uid(notification_type_e type,
int noti_err = NOTIFICATION_ERROR_NONE;
noti_err = notification_get_detail_list(pkgname, group_id, priv_id, -1, &noti_list);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
}
@@ -149,7 +149,7 @@ int notification_get_detail_list_for_uid(const char *pkgname,
...
noti_err = notification_free_list(noti_list);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
}
@@ -178,7 +178,7 @@ int notification_free_list(notification_list_h list);
int noti_err = NOTIFICATION_ERROR_NONE;
noti_err = notification_get_grouping_list(NOTIFICATION_TYPE_NONE, -1, &noti_list);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
@@ -208,7 +208,7 @@ notification_list_h notification_list_get_head(notification_list_h list);
int noti_err = NOTIFICATION_ERROR_NONE;
noti_err = notification_get_grouping_list(NOTIFICATION_TYPE_NONE, -1, &noti_list);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
@@ -238,7 +238,7 @@ notification_list_h notification_list_get_tail(notification_list_h list);
int noti_err = NOTIFICATION_ERROR_NONE;
noti_err = notification_get_grouping_list(NOTIFICATION_TYPE_NONE, -1, &noti_list);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
@@ -268,7 +268,7 @@ notification_list_h notification_list_get_prev(notification_list_h list);
int noti_err = NOTIFICATION_ERROR_NONE;
noti_err = notification_get_grouping_list(NOTIFICATION_TYPE_NONE, -1, &noti_list);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
@@ -300,7 +300,7 @@ notification_list_h notification_list_get_next(notification_list_h list);
int noti_err = NOTIFICATION_ERROR_NONE;
noti_err = notification_get_grouping_list(NOTIFICATION_TYPE_NONE, -1, &noti_list);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
@@ -330,7 +330,7 @@ include <notification.h>
int noti_err = NOTIFICATION_ERROR_NONE;
noti_err = notification_get_detail_list(pkgname, group_id, priv_id, -1, &noti_list);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
@@ -364,7 +364,7 @@ int notification_list_get_count(notification_list_h list);
int noti_err = NOTIFICATION_ERROR_NONE;
noti = notification_new(NOTIFICATION_TYPE_NOTI, NOTIFICATION_GROUP_ID_NONE, NOTIFICATION_PRIV_ID_NONE);
- if(noti == NULL) {
+ if (noti == NULL) {
return;
}
diff --git a/include/notification_ongoing_flag.h b/include/notification_ongoing_flag.h
index cb8c149..e5fba52 100644
--- a/include/notification_ongoing_flag.h
+++ b/include/notification_ongoing_flag.h
@@ -38,12 +38,12 @@
bundle *b = NULL;
noti = notification_create(NOTIFICATION_TYPE_NOTI);
- if(noti == NULL) {
+ if (noti == NULL) {
return;
}
noti_err = notification_set_ongoing_flag(noti, true);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
notification_free(noti);
return;
}
@@ -71,7 +71,7 @@ int notification_set_ongoing_flag(notification_h noti, bool ongoing_flag);
bool ongoing_flag = 0;
noti_err = notification_get_ongoing_flag(noti, &ongoing_flag);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
}
diff --git a/include/notification_setting.h b/include/notification_setting.h
index 851fbe6..0de72c8 100644
--- a/include/notification_setting.h
+++ b/include/notification_setting.h
@@ -52,7 +52,7 @@ int notification_setting_get_setting(notification_setting_h *setting);
...
noti_err = notifiacation_setting_get_visibility_class(setting, &value);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
@@ -90,7 +90,7 @@ int notification_setting_get_visibility_class(notification_setting_h setting, in
value = true; // or false
noti_err = notifiacation_setting_set_visibility_class(setting, value);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
@@ -126,7 +126,7 @@ int notification_setting_set_visibility_class(notification_setting_h setting, in
...
noti_err = notifiacation_setting_update_setting(setting);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
@@ -159,7 +159,7 @@ int notification_setting_update_setting(notification_setting_h setting);
...
noti_err = notifiacation_setting_free_notification(setting);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
diff --git a/include/notification_setting_internal.h b/include/notification_setting_internal.h
index 9294887..3011cae 100644
--- a/include/notification_setting_internal.h
+++ b/include/notification_setting_internal.h
@@ -106,7 +106,7 @@ struct notification_system_setting {
notification_setting_h setting;
noti_err = notification_setting_get_setting_array(&setting, &count);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
@@ -145,7 +145,7 @@ int notification_setting_get_setting_array_for_uid(notification_setting_h *setti
notification_setting_h setting = NULL;
noti_err = notifiacation_setting_get_setting_by_package_name(PACKAGE_NAME, &setting);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
@@ -182,7 +182,7 @@ int notification_setting_get_setting_by_package_name_for_uid(const char *package
...
noti_err = notifiacation_setting_get_package_name(setting, &package_name);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
@@ -217,7 +217,7 @@ int notification_setting_get_package_name(notification_setting_h setting, char *
...
noti_err = notifiacation_setting_set_package_name(setting, package_name);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
@@ -252,7 +252,7 @@ int notification_setting_set_package_name(notification_setting_h setting, char *
...
noti_err = notifiacation_setting_get_allow_to_notify(setting, &value);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
@@ -290,7 +290,7 @@ int notification_setting_get_allow_to_notify(notification_setting_h setting, boo
value = true; // or false
noti_err = notifiacation_setting_set_allow_to_notify(setting, value);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
@@ -326,7 +326,7 @@ int notification_setting_set_allow_to_notify(notification_setting_h setting, boo
...
noti_err = notifiacation_setting_get_do_not_disturb_except(setting, &value);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
@@ -364,7 +364,7 @@ int notification_setting_get_do_not_disturb_except(notification_setting_h settin
value = true; // or false
noti_err = notifiacation_setting_set_do_not_disturb_except(setting, value);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
@@ -401,7 +401,7 @@ int notification_setting_set_do_not_disturb_except(notification_setting_h settin
value = true; // or false
noti_err = notifiacation_setting_get_pop_up_notification(setting, value);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
@@ -439,7 +439,7 @@ int notification_setting_get_pop_up_notification(notification_setting_h setting,
value = true; // or false
noti_err = notifiacation_setting_get_pop_up_notification(setting, value);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
@@ -475,7 +475,7 @@ int notification_setting_set_pop_up_notification(notification_setting_h setting,
...
noti_err = notifiacation_setting_get_lock_screen_content(setting, &level);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
@@ -514,7 +514,7 @@ int notification_setting_get_lock_screen_content(notification_setting_h setting,
level = SHOW_ALL_CONTENT; // or HIDE_SENSITIVE_CONTENT or DO_NOT_SHOW_NOTIFICATIONS;
noti_err = notifiacation_setting_get_lock_screen_content(setting, level);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
@@ -549,7 +549,7 @@ int notification_setting_set_lock_screen_content(notification_setting_h setting,
...
noti_err = notifiacation_system_setting_load_system_setting(setting);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
@@ -585,7 +585,7 @@ int notification_system_setting_load_system_setting_for_uid(notification_system_
...
noti_err = notifiacation_system_setting_update_system_setting(setting);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
@@ -619,7 +619,7 @@ int notification_system_setting_update_system_setting_for_uid(notification_syste
...
noti_err = notifiacation_system_setting_free_system_setting(setting);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
@@ -653,7 +653,7 @@ int notification_system_setting_free_system_setting(notification_system_setting_
...
noti_err = notifiacation_system_setting_get_do_not_disturb_except(setting, &value);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
@@ -692,7 +692,7 @@ int notification_system_setting_get_do_not_disturb(notification_system_setting_h
value = true; // or false
noti_err = notifiacation_setting_set_do_not_disturb_except(setting, value);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
@@ -727,7 +727,7 @@ int notification_system_setting_set_do_not_disturb(notification_system_setting_h
...
noti_err = notifiacation_system_setting_get_visibility_class(setting, &value);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
@@ -765,7 +765,7 @@ int notification_system_setting_get_visibility_class(notification_system_setting
value = true; // or false
noti_err = notifiacation_setting_set_visibility_class(setting, value);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
@@ -800,7 +800,7 @@ int notification_system_setting_set_visibility_class(notification_system_setting
...
noti_err = notifiacation_system_setting_dnd_schedule_get_enabled(setting, &value);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
@@ -838,7 +838,7 @@ int notification_system_setting_dnd_schedule_get_enabled(notification_system_set
value = true; // or false
noti_err = notifiacation_system_setting_dnd_schedule_set_enabled(setting, &value);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
@@ -874,7 +874,7 @@ int notification_system_setting_dnd_schedule_set_enabled(notification_system_set
...
noti_err = notifiacation_system_setting_dnd_schedule_get_day(setting, &day);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
@@ -913,7 +913,7 @@ int notification_system_setting_dnd_schedule_get_day(notification_system_setting
day = DND_SCHEDULE_WEEK_FLAG_SUNDAY;
noti_err = notifiacation_system_setting_dnd_schedule_set_day(setting, day);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
@@ -950,7 +950,7 @@ int notification_system_setting_dnd_schedule_set_day(notification_system_setting
...
noti_err = notifiacation_system_setting_dnd_schedule_get_start_time(setting, &hour, &min);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
@@ -990,7 +990,7 @@ int notification_system_setting_dnd_schedule_get_start_time(notification_system_
min = START_MIN // 0 ~ 59
noti_err = notifiacation_system_setting_dnd_schedule_set_start_time(setting, hour, min);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
@@ -1027,7 +1027,7 @@ int notification_system_setting_dnd_schedule_set_start_time(notification_system_
...
noti_err = notifiacation_system_setting_dnd_schedule_get_end_time(setting, &hour, &min);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
@@ -1067,7 +1067,7 @@ int notification_system_setting_dnd_schedule_get_end_time(notification_system_se
min = START_MIN // 0 ~ 59
noti_err = notifiacation_system_setting_dnd_schedule_set_end_time(setting, hour, min);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
@@ -1103,7 +1103,7 @@ int notification_system_setting_dnd_schedule_set_end_time(notification_system_se
...
noti_err = notifiacation_system_setting_get_lock_screen_content(setting, &level);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
@@ -1141,7 +1141,7 @@ int notification_system_setting_get_lock_screen_content(notification_system_sett
level = SHOW_ALL_CONTENT; // or HIDE_SENSITIVE_CONTENT or DO_NOT_SHOW_NOTIFICATIONS;
noti_err = notifiacation_system_setting_set_lock_screen_content(setting, &level);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
@@ -1185,7 +1185,7 @@ static void changed_cb(void *user_data, int do_not_disturb)
...
noti_err = notification_register_system_setting_dnd_changed_cb(changed_cb, NULL);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
@@ -1225,7 +1225,7 @@ static void changed_cb(void *user_data, int do_not_disturb)
...
noti_err = notification_unregister_system_setting_dnd_changed_cb(changed_cb);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
diff --git a/include/notification_status_internal.h b/include/notification_status_internal.h
index fcfb94e..e7228a7 100644
--- a/include/notification_status_internal.h
+++ b/include/notification_status_internal.h
@@ -49,7 +49,7 @@ extern "C" {
...
{
noti_err = notification_register_detailed_changed_cb(app_changed_cb, user_data);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
}
diff --git a/include/notification_text_domain.h b/include/notification_text_domain.h
index 9902719..3155381 100644
--- a/include/notification_text_domain.h
+++ b/include/notification_text_domain.h
@@ -40,12 +40,12 @@ extern "C" {
int noti_err = NOTIFICATION_ERROR_NONE;
noti = notification_create(NOTIFICATION_TYPE_NOTI);
- if(noti == NULL) {
+ if (noti == NULL) {
return;
}
noti_err = notification_set_text_domain(noti, PACKAGE, LOCALEDIR);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
notification_free(noti);
return;
}
@@ -78,7 +78,7 @@ int notification_set_text_domain(notification_h noti,
char *dir = NULL;
noti_err = notification_get_text_domain(noti, &domain, &dir);
- if(noti_err != NOTIFICATION_ERROR_NONE) {
+ if (noti_err != NOTIFICATION_ERROR_NONE) {
return;
}
}