From 971139785e30b466defbd5ecb49d04e8d52c33f8 Mon Sep 17 00:00:00 2001 From: "mk5004.lee" Date: Tue, 14 Aug 2018 15:03:23 +0900 Subject: [PATCH] Add notification_type_internal header Change-Id: If100f8c1de2b17d4d028c8a78d96f1d2cfadccc0 Signed-off-by: mk5004.lee --- include/notification_internal.h | 49 +-------------------- include/notification_type_internal.h | 84 ++++++++++++++++++++++++++++++++++++ packaging/notification.spec | 1 + 3 files changed, 87 insertions(+), 47 deletions(-) create mode 100644 include/notification_type_internal.h diff --git a/include/notification_internal.h b/include/notification_internal.h index cb6e86a..7c8d4a5 100644 --- a/include/notification_internal.h +++ b/include/notification_internal.h @@ -22,6 +22,7 @@ #include #include #include +#include #ifdef __cplusplus extern "C" { @@ -31,54 +32,8 @@ extern "C" { * @addtogroup NOTIFICATION_INTERNAL * @{ */ -#define NOTIFICATION_GLOBAL_UID -1 -#define NOTIFICATION_DISPLAY_APP_HEADS_UP NOTIFICATION_DISPLAY_APP_ACTIVE /* To avoid build error */ -#define NOTIFICATION_ERROR (notification_error_quark()) - -#define NOTIFICATION_LY_MAX NOTIFICATION_LY_EXTENSION -#define NOTIFICATION_EVENT_TYPE_MAX NOTIFICATION_EVENT_TYPE_CLICK_ON_BUTTON_10 -#define NOTIFICATION_SOUND_TYPE_MAX NOTIFICATION_SOUND_TYPE_USER_DATA -#define NOTIFICATION_VIBRATION_TYPE_MAX NOTIFICATION_VIBRATION_TYPE_USER_DATA -#define NOTIFICATION_LED_OP_MAX NOTIFICATION_LED_OP_ON_CUSTOM_COLOR -#define NOTIFICATION_COUNT_DISPLAY_TYPE_MAX NOTIFICATION_COUNT_DISPLAY_TYPE_RIGHT -#define NOTIFICATION_TEXT_TYPE_MAX NOTIFICATION_TEXT_TYPE_BUTTON_10 -#define NOTIFICATION_IMAGE_TYPE_MAX NOTIFICATION_IMAGE_TYPE_BUTTON_10 -#define NOTIFICATION_EXECUTE_TYPE_MAX NOTIFICATION_EXECUTE_TYPE_MULTI_LAUNCH -#define NOTIFICATION_TYPE_MAX NOTIFICATION_TYPE_ONGOING -#define NOTIFICATION_OP_DATA_MAX NOTIFICATION_OP_DATA_EXTRA_INFO_2 -#define NOTIFICATION_COUNT_POS_MAX NOTIFICATION_COUNT_POS_RIGHT -#define NOTIFICATION_VARIABLE_TYPE_MAX NOTIFICATION_VARIABLE_TYPE_COUNT - -/** - * @brief Enumeration for notification resource path type. - * @since_tizen 3.0 - */ -typedef enum _notification_res_path_type { - NOTIFICATION_RES_PATH_TYPE_SOUND = NOTIFICATION_IMAGE_TYPE_MAX + 1, /**< Sound */ - NOTIFICATION_RES_PATH_TYPE_VIBRATION, /**< Vibration */ -} notification_res_path_type_e; -/** - * @brief Enumeration for notification ongoing value type. - * @since_tizen 3.0 - */ -typedef enum _notification_ongoing_value_type { - NOTIFICATION_ONGOING_VALUE_TYPE_PERCENT = 0, /**< Percent */ - NOTIFICATION_ONGOING_VALUE_TYPE_TIME, /**< Time */ -} notification_ongoing_value_type_e; - -/** - * @brief Enumeration for extension event type on notification. - * @since_tizen 3.0 - * @see #notification_event_type_e - */ -typedef enum _notification_event_type_extension { - NOTIFICATION_EVENT_TYPE_HIDDEN_BY_USER = 100, /**< Hidden by user */ - NOTIFICATION_EVENT_TYPE_HIDDEN_BY_TIMEOUT = 101, /**< Hidden by timeout */ - NOTIFICATION_EVENT_TYPE_HIDDEN_BY_EXTERNAL = 102, /**< Hidden by external */ - NOTIFICATION_EVENT_TYPE_PRESSED = 200, /**< Pressed by user */ - NOTIFICATION_EVENT_TYPE_DELETED = 201, /**< Deleted by user */ -} notification_event_type_extension_e; +#define NOTIFICATION_ERROR (notification_error_quark()) GQuark notification_error_quark(void); diff --git a/include/notification_type_internal.h b/include/notification_type_internal.h new file mode 100644 index 0000000..cd93858 --- /dev/null +++ b/include/notification_type_internal.h @@ -0,0 +1,84 @@ +/* + * Copyright (c) 2000 - 2017 Samsung Electronics Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef __NOTIFICATION_TYPE_INTERNAL_H__ +#define __NOTIFICATION_TYPE_INTERNAL_H__ + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * @addtogroup NOTIFICATION_INTERNAL + * @{ + */ + +#define NOTIFICATION_GLOBAL_UID -1 +#define NOTIFICATION_DISPLAY_APP_HEADS_UP NOTIFICATION_DISPLAY_APP_ACTIVE /* To avoid build error */ + +#define NOTIFICATION_LY_MAX NOTIFICATION_LY_EXTENSION +#define NOTIFICATION_EVENT_TYPE_MAX NOTIFICATION_EVENT_TYPE_CLICK_ON_BUTTON_10 +#define NOTIFICATION_SOUND_TYPE_MAX NOTIFICATION_SOUND_TYPE_USER_DATA +#define NOTIFICATION_VIBRATION_TYPE_MAX NOTIFICATION_VIBRATION_TYPE_USER_DATA +#define NOTIFICATION_LED_OP_MAX NOTIFICATION_LED_OP_ON_CUSTOM_COLOR +#define NOTIFICATION_COUNT_DISPLAY_TYPE_MAX NOTIFICATION_COUNT_DISPLAY_TYPE_RIGHT +#define NOTIFICATION_TEXT_TYPE_MAX NOTIFICATION_TEXT_TYPE_BUTTON_10 +#define NOTIFICATION_IMAGE_TYPE_MAX NOTIFICATION_IMAGE_TYPE_BUTTON_10 +#define NOTIFICATION_EXECUTE_TYPE_MAX NOTIFICATION_EXECUTE_TYPE_MULTI_LAUNCH +#define NOTIFICATION_TYPE_MAX NOTIFICATION_TYPE_ONGOING +#define NOTIFICATION_OP_DATA_MAX NOTIFICATION_OP_DATA_EXTRA_INFO_2 +#define NOTIFICATION_COUNT_POS_MAX NOTIFICATION_COUNT_POS_RIGHT +#define NOTIFICATION_VARIABLE_TYPE_MAX NOTIFICATION_VARIABLE_TYPE_COUNT + +/** + * @brief Enumeration for notification resource path type. + * @since_tizen 3.0 + */ +typedef enum _notification_res_path_type { + NOTIFICATION_RES_PATH_TYPE_SOUND = NOTIFICATION_IMAGE_TYPE_MAX + 1, /**< Sound */ + NOTIFICATION_RES_PATH_TYPE_VIBRATION, /**< Vibration */ +} notification_res_path_type_e; + +/** + * @brief Enumeration for notification ongoing value type. + * @since_tizen 3.0 + */ +typedef enum _notification_ongoing_value_type { + NOTIFICATION_ONGOING_VALUE_TYPE_PERCENT = 0, /**< Percent */ + NOTIFICATION_ONGOING_VALUE_TYPE_TIME, /**< Time */ +} notification_ongoing_value_type_e; + +/** + * @brief Enumeration for extension event type on notification. + * @since_tizen 3.0 + * @see #notification_event_type_e + */ +typedef enum _notification_event_type_extension { + NOTIFICATION_EVENT_TYPE_HIDDEN_BY_USER = 100, /**< Hidden by user */ + NOTIFICATION_EVENT_TYPE_HIDDEN_BY_TIMEOUT = 101, /**< Hidden by timeout */ + NOTIFICATION_EVENT_TYPE_HIDDEN_BY_EXTERNAL = 102, /**< Hidden by external */ + NOTIFICATION_EVENT_TYPE_PRESSED = 200, /**< Pressed by user */ + NOTIFICATION_EVENT_TYPE_DELETED = 201, /**< Deleted by user */ +} notification_event_type_extension_e; + +/** + * @} + */ + +#ifdef __cplusplus +} +#endif +#endif /* __NOTIFICATION_TYPE_INTERNAL_H__ */ diff --git a/packaging/notification.spec b/packaging/notification.spec index bcdb453..d32c25b 100644 --- a/packaging/notification.spec +++ b/packaging/notification.spec @@ -103,5 +103,6 @@ fi %{_includedir}/notification/notification_setting_service.h %{_includedir}/notification/notification_viewer.h %{_includedir}/notification/notification_shared_file.h +%{_includedir}/notification/notification_type_internal.h %{_libdir}/pkgconfig/notification.pc %{_libdir}/libnotification.so -- 2.7.4