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 static constexpr const char* TIME_INTERVAL = "timeInterval"; 37 static constexpr const char* SNOOZE_TIMES = "snoozeTimes"; 38 static constexpr const char* RING_DURATION = "ringDuration"; 39 static constexpr const char* SNOOZE_SLOT_TYPE = "snoozeSlotType"; 40 static constexpr const char* SNOOZE_CONTENT = "snoozeContent"; 41 static constexpr const char* EXPIRED_CONTENT = "expiredContent"; 42 static constexpr const char* MAX_SCREEN_WANT_AGENT = "maxScreenWantAgent"; 43 static constexpr const char* CUSTOM_RING_URI = "customRingUri"; 44 45 static constexpr const char* PROXY = "datashareproxy://com.ohos.calendardata/CalendarAlerts"; 46 static constexpr const char* NAME = "com.ohos.calendar"; 47 static constexpr const char* DATA_NAME = "com.ohos.calendardata"; 48 static constexpr const char* ENTRY = "ReminderCallbackExtAbility"; 49 50 static constexpr const char* PARAM_CALLBACK_TYPE = "CallbackType"; 51 52 /** 53 * @brief An alert begins in this state when it is first created. 54 */ 55 static constexpr int8_t STATE_SCHEDULED = 0; 56 /** 57 * @brief After a notification for an alert has been created it should be updated to fired. 58 */ 59 static constexpr int8_t STATE_FIRED = 1; 60 /** 61 * @brief Once the user has dismissed the notification the alert's state should be set to 62 * dismissed so it is not fired again. 63 */ 64 static constexpr int8_t STATE_DISMISSED = 2; 65 66 /** 67 * @brief Start calendardata reason: Device start or restart complete. 68 */ 69 static constexpr int8_t START_BY_BOOT_COMPLETE = 0; 70 /** 71 * @brief Start calendardata reason: Time chage. 72 */ 73 static constexpr int8_t START_BY_TIME_CHANGE = 1; 74 /** 75 * @brief Start calendardata reason: Time zone chage. 76 */ 77 static constexpr int8_t START_BY_TIMEZONE_CHANGE = 2; 78 /** 79 * @brief Start calendardata reason: Timer. 80 */ 81 static constexpr int8_t START_BY_NORMAL = 3; 82 /** 83 * @brief Start calendardata reason: Language change. 84 */ 85 static constexpr int8_t START_BY_LANGUAGE_CHANGE = 4; 86 }; 87 } // namespace OHOS::Notification 88 #endif // BASE_NOTIFICATION_DISTRIBUTED_NOTIFICATION_SERVICE_REMINDER_INCLUDE_REMINDER_CALENDAR_SHARE_TABLE_H