1/*
2 * Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved.
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 NAVIGATION_H
17#define NAVIGATION_H
18#include <vector>
19#include <string>
20#include "sp_profiler.h"
21namespace OHOS {
22namespace SmartPerf {
23class Navigation : public SpProfiler {
24public:
25    std::map<std::string, std::string> ItemData() override;
26    static Navigation &GetInstance()
27    {
28        static Navigation instance;
29        return instance;
30    }
31    std::map<std::string, std::string> GetNavInfo() const;
32    void SetPackageName(const std::string &pName);
33    std::string GetWinId(std::string navPid) const;
34    std::map<std::string, std::string> GetNavResult(std::string winId) const;
35    void SetProcessId(const std::string &pid);
36private:
37    Navigation() {};
38    Navigation(const Navigation &);
39    Navigation &operator = (const Navigation &);
40    std::string packageName = "";
41    const int paramTen = 10;
42    const int paramEleven = 11;
43    const int paramTwelve = 12;
44    const int paramTwo = 2;
45    const int paramThree = 3;
46    std::string processId = "";
47};
48}
49}
50#endif // NAVIGATION_H
51