15bbf6e98Sopenharmony_ci/* 25bbf6e98Sopenharmony_ci * Copyright (c) 2023 Huawei Device Co., Ltd. 35bbf6e98Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 45bbf6e98Sopenharmony_ci * you may not use this file except in compliance with the License. 55bbf6e98Sopenharmony_ci * You may obtain a copy of the License at 65bbf6e98Sopenharmony_ci * 75bbf6e98Sopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 85bbf6e98Sopenharmony_ci * 95bbf6e98Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software 105bbf6e98Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 115bbf6e98Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 125bbf6e98Sopenharmony_ci * See the License for the specific language governing permissions and 135bbf6e98Sopenharmony_ci * limitations under the License. 145bbf6e98Sopenharmony_ci */ 155bbf6e98Sopenharmony_ci 165bbf6e98Sopenharmony_ci#ifndef PERMISSION_H 175bbf6e98Sopenharmony_ci#define PERMISSION_H 185bbf6e98Sopenharmony_ci 195bbf6e98Sopenharmony_ci#include <string> 205bbf6e98Sopenharmony_ci#include "singleton.h" 215bbf6e98Sopenharmony_ci 225bbf6e98Sopenharmony_cinamespace OHOS { 235bbf6e98Sopenharmony_cinamespace DevAttest { 245bbf6e98Sopenharmony_ciclass Permission { 255bbf6e98Sopenharmony_ci DECLARE_DELAYED_SINGLETON(Permission) 265bbf6e98Sopenharmony_cipublic: 275bbf6e98Sopenharmony_ci bool IsSystem(); 285bbf6e98Sopenharmony_ci bool IsPermissionGranted(const std::string& perm); 295bbf6e98Sopenharmony_ci}; 305bbf6e98Sopenharmony_ci} // namespace DevAttest 315bbf6e98Sopenharmony_ci} // namespace OHOS 325bbf6e98Sopenharmony_ci#endif // PERMISSION_H 33