1 /* 2 * Copyright (c) 2021-2022 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 #include "reminder_timer_info.h" 17 18 #include "ans_log_wrapper.h" 19 #include "common_event_manager.h" 20 #include "reminder_request.h" 21 22 using namespace OHOS::EventFwk; 23 using namespace OHOS::HiviewDFX; 24 namespace OHOS { 25 namespace Notification { SetType(const int & _type)26void ReminderTimerInfo::SetType(const int &_type) 27 { 28 type = _type; 29 } 30 SetRepeat(bool _repeat)31void ReminderTimerInfo::SetRepeat(bool _repeat) 32 { 33 repeat = _repeat; 34 } 35 SetInterval(const uint64_t & _interval)36void ReminderTimerInfo::SetInterval(const uint64_t &_interval) 37 { 38 interval = _interval; 39 } 40 SetWantAgent(std::shared_ptr<OHOS::AbilityRuntime::WantAgent::WantAgent> _wantAgent)41void ReminderTimerInfo::SetWantAgent(std::shared_ptr<OHOS::AbilityRuntime::WantAgent::WantAgent> _wantAgent) 42 { 43 wantAgent = _wantAgent; 44 } 45 OnTrigger()46void ReminderTimerInfo::OnTrigger() 47 { 48 ANSR_LOGI("Timing is arrivelled."); 49 } 50 } 51 } 52