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 17 #ifndef OHOS_NOTIFICATION_ENABLE_H 18 #define OHOS_NOTIFICATION_ENABLE_H 19 20 #include "notification_bundle_option.h" 21 #include "iremote_object.h" 22 #include "ans_dialog_host_client.h" 23 24 namespace OHOS { 25 namespace CJSystemapi { 26 constexpr int32_t SUBSCRIBE_USER_INIT = -1; 27 28 struct IsEnableParams { 29 ::OHOS::Notification::NotificationBundleOption option; 30 bool hasBundleOption = false; 31 int32_t userId = SUBSCRIBE_USER_INIT; 32 bool hasUserId = false; 33 bool allowToPop = false; 34 sptr<IRemoteObject> callerToken = nullptr; 35 bool hasCallerToken = false; 36 }; 37 } // namespace CJSystemapi 38 } // namespace OHOS 39 40 #endif // OHOS_NOTIFICATION_ENABLE_H