1115cd2caSopenharmony_ci/*
2115cd2caSopenharmony_ci * Copyright (C) 2023 Huawei Device Co., Ltd.
3115cd2caSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
4115cd2caSopenharmony_ci * you may not use this file except in compliance with the License.
5115cd2caSopenharmony_ci * You may obtain a copy of the License at
6115cd2caSopenharmony_ci *
7115cd2caSopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
8115cd2caSopenharmony_ci *
9115cd2caSopenharmony_ci * Unless required by applicable law or agreed to in writing, software
10115cd2caSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
11115cd2caSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12115cd2caSopenharmony_ci * See the License for the specific language governing permissions and
13115cd2caSopenharmony_ci * limitations under the License.
14115cd2caSopenharmony_ci */
15115cd2caSopenharmony_ci
16115cd2caSopenharmony_ci#ifndef CONTACTS_TELEPHONY_PERMISSION_H
17115cd2caSopenharmony_ci#define CONTACTS_TELEPHONY_PERMISSION_H
18115cd2caSopenharmony_ci
19115cd2caSopenharmony_ci#include <string>
20115cd2caSopenharmony_ci
21115cd2caSopenharmony_cinamespace OHOS {
22115cd2caSopenharmony_cinamespace ContactsApi {
23115cd2caSopenharmony_cinamespace Permission {
24115cd2caSopenharmony_cistatic constexpr const char *READ_CONTACTS = "ohos.permission.READ_CONTACTS";
25115cd2caSopenharmony_cistatic constexpr const char *WRITE_CONTACTS = "ohos.permission.WRITE_CONTACTS";
26115cd2caSopenharmony_cistatic constexpr const char *WRITE_CALL_LOG = "ohos.permission.WRITE_CALL_LOG";
27115cd2caSopenharmony_cistatic constexpr const char *READ_CALL_LOG = "ohos.permission.READ_CALL_LOG";
28115cd2caSopenharmony_cistatic constexpr const char *OHOS_PERMISSION_MANAGE_VOICEMAIL = "ohos.permission.MANAGE_VOICEMAIL";
29115cd2caSopenharmony_ci} // namespace Permission
30115cd2caSopenharmony_ci
31115cd2caSopenharmony_ciclass ContactsTelephonyPermission {
32115cd2caSopenharmony_cipublic:
33115cd2caSopenharmony_ci    ContactsTelephonyPermission();
34115cd2caSopenharmony_ci    ~ContactsTelephonyPermission();
35115cd2caSopenharmony_ci    static bool CheckPermission(const std::string &permissionName);
36115cd2caSopenharmony_ci};
37115cd2caSopenharmony_ci} // namespace Telephony
38115cd2caSopenharmony_ci} // namespace OHOS
39115cd2caSopenharmony_ci#endif // TELEPHONY_PERMISSION_H
40