1 /* 2 * Copyright (c) 2024 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef BASE_NOTIFICATION_DISTRIBUTED_NOTIFICATION_SERVICE_REMINDER_INCLUDE_REMINDER_CALENDAR_SHARE_TABLE_H 17 #define BASE_NOTIFICATION_DISTRIBUTED_NOTIFICATION_SERVICE_REMINDER_INCLUDE_REMINDER_CALENDAR_SHARE_TABLE_H 18 19 #include <cstdint> 20 21 namespace OHOS::Notification { 22 class ReminderCalendarShareTable { 23 public: 24 static constexpr const char* ID = "_id"; 25 static constexpr const char* EVENT_ID = "event_id"; 26 static constexpr const char* END = "end"; 27 static constexpr const char* ALARM_TIME = "alarmTime"; 28 static constexpr const char* STATE = "state"; 29 static constexpr const char* TITLE = "title"; 30 static constexpr const char* CONTENT = "content"; 31 static constexpr const char* WANT_AGENT = "wantAgent"; 32 static constexpr const char* BUTTONS = "buttons"; 33 static constexpr const char* SLOT_TYPE = "slotType"; 34 static constexpr const char* KEEP_HEADSUP = "keepHeadsUp"; 35 static constexpr const char* IDENTIFIER = "identifier"; 36 37 static constexpr const char* PROXY = "datashareproxy://com.ohos.calendardata/CalendarAlerts"; 38 static constexpr const char* NAME = "com.ohos.calendar"; 39 static constexpr const char* DATA_NAME = "com.ohos.calendardata"; 40 static constexpr const char* ENTRY = "ReminderCallbackExtAbility"; 41 42 static constexpr const char* PARAM_CALLBACK_TYPE = "CallbackType"; 43 44 /** 45 * @brief An alert begins in this state when it is first created. 46 */ 47 static constexpr int8_t STATE_SCHEDULED = 0; 48 /** 49 * @brief After a notification for an alert has been created it should be updated to fired. 50 */ 51 static constexpr int8_t STATE_FIRED = 1; 52 /** 53 * @brief Once the user has dismissed the notification the alert's state should be set to 54 * dismissed so it is not fired again. 55 */ 56 static constexpr int8_t STATE_DISMISSED = 2; 57 58 /** 59 * @brief Start calendardata reason: Device start or restart complete. 60 */ 61 static constexpr int8_t START_BY_BOOT_COMPLETE = 0; 62 /** 63 * @brief Start calendardata reason: Time chage. 64 */ 65 static constexpr int8_t START_BY_TIME_CHANGE = 1; 66 /** 67 * @brief Start calendardata reason: Time zone chage. 68 */ 69 static constexpr int8_t START_BY_TIMEZONE_CHANGE = 2; 70 /** 71 * @brief Start calendardata reason: Timer. 72 */ 73 static constexpr int8_t START_BY_NORMAL = 3; 74 /** 75 * @brief Start calendardata reason: Language change. 76 */ 77 static constexpr int8_t START_BY_LANGUAGE_CHANGE = 4; 78 }; 79 } // namespace OHOS::Notification 80 #endif // BASE_NOTIFICATION_DISTRIBUTED_NOTIFICATION_SERVICE_REMINDER_INCLUDE_REMINDER_CALENDAR_SHARE_TABLE_H