• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 #ifndef TO_STRING_H
17 #define TO_STRING_H
18 
19 #include <string>
20 #include "permission_used_request.h"
21 #include "permission_used_result.h"
22 
23 namespace OHOS {
24 namespace Security {
25 namespace AccessToken {
26 class ToString {
27 public:
28     static void DetailUsedRecordToString(
29         bool isAccessDetail, const std::vector<UsedRecordDetail>& detailRecord, std::string& infos);
30     static void PermissionUsedRecordToString(
31         const std::vector<PermissionUsedRecord>& permissionRecords, std::string& infos);
32     static void BundleUsedRecordToString(const BundleUsedRecord& bundleRecord, std::string& infos);
33     static void PermissionUsedResultToString(const PermissionUsedResult& result, std::string& infos);
34 };
35 } // namespace AccessToken
36 } // namespace Security
37 } // namespace OHOS
38 #endif // TO_STRING_H
39