1 /* 2 * Copyright (c) 2021 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_ANS_STANDARD_SERVICES_ANS_INCLUDE_ADVANCED_NOTIFICATION_SERVICE_ABILITY_H 17 #define BASE_NOTIFICATION_ANS_STANDARD_SERVICES_ANS_INCLUDE_ADVANCED_NOTIFICATION_SERVICE_ABILITY_H 18 19 #include "system_ability.h" 20 21 #include "advanced_notification_service.h" 22 #include "reminder_data_manager.h" 23 #include "system_ability_definition.h" 24 25 namespace OHOS { 26 namespace Notification { 27 class AdvancedNotificationServiceAbility final : public SystemAbility { 28 public: 29 AdvancedNotificationServiceAbility(const int32_t systemAbilityId, bool runOnCreate); 30 ~AdvancedNotificationServiceAbility() final; 31 DISALLOW_COPY_AND_MOVE(AdvancedNotificationServiceAbility); 32 DECLARE_SYSTEM_ABILITY(AdvancedNotificationServiceAbility); 33 34 private: 35 void OnStart() final; 36 void OnStop() final; 37 38 private: 39 sptr<AdvancedNotificationService> service_; 40 std::shared_ptr<ReminderDataManager> reminderAgent_; 41 }; 42 } // namespace Notification 43 } // namespace OHOS 44 45 #endif // BASE_NOTIFICATION_ANS_STANDARD_SERVICES_ANS_INCLUDE_ADVANCED_NOTIFICATION_SERVICE_ABILITY_H