1 /* 2 * Copyright (c) 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 "simple_timer_info.h" 17 18 namespace OHOS { 19 namespace MiscServices { SimpleTimerInfo()20SimpleTimerInfo::SimpleTimerInfo() 21 { 22 } ~SimpleTimerInfo()23SimpleTimerInfo::~SimpleTimerInfo() 24 { 25 } SetType(const int & _type)26void SimpleTimerInfo::SetType(const int &_type) 27 { 28 type = _type; 29 } 30 SetRepeat(bool _repeat)31void SimpleTimerInfo::SetRepeat(bool _repeat) 32 { 33 repeat = _repeat; 34 } SetInterval(const uint64_t & _interval)35void SimpleTimerInfo::SetInterval(const uint64_t &_interval) 36 { 37 interval = _interval; 38 } SetWantAgent(std::shared_ptr<OHOS::AbilityRuntime::WantAgent::WantAgent> _wantAgent)39void SimpleTimerInfo::SetWantAgent(std::shared_ptr<OHOS::AbilityRuntime::WantAgent::WantAgent> _wantAgent) 40 { 41 wantAgent = _wantAgent; 42 } OnTrigger()43void SimpleTimerInfo::OnTrigger() 44 { 45 } 46 } // namespace MiscServices 47 } // namespace OHOS