1885b47fbSopenharmony_ci/* 2885b47fbSopenharmony_ci * Copyright (c) 2022 Huawei Device Co., Ltd. 3885b47fbSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 4885b47fbSopenharmony_ci * you may not use this file except in compliance with the License. 5885b47fbSopenharmony_ci * You may obtain a copy of the License at 6885b47fbSopenharmony_ci * 7885b47fbSopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 8885b47fbSopenharmony_ci * 9885b47fbSopenharmony_ci * Unless required by applicable law or agreed to in writing, software 10885b47fbSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 11885b47fbSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12885b47fbSopenharmony_ci * See the License for the specific language governing permissions and 13885b47fbSopenharmony_ci * limitations under the License. 14885b47fbSopenharmony_ci */ 15885b47fbSopenharmony_ci 16885b47fbSopenharmony_ci#ifndef ACCESSIBILITY_DUMPER_H 17885b47fbSopenharmony_ci#define ACCESSIBILITY_DUMPER_H 18885b47fbSopenharmony_ci 19885b47fbSopenharmony_ci#include <refbase.h> 20885b47fbSopenharmony_ci#include <string> 21885b47fbSopenharmony_ci 22885b47fbSopenharmony_cinamespace OHOS { 23885b47fbSopenharmony_cinamespace Accessibility { 24885b47fbSopenharmony_cienum DumpType : uint32_t { 25885b47fbSopenharmony_ci DUMP_USER = 0, 26885b47fbSopenharmony_ci DUMP_CLIENT, 27885b47fbSopenharmony_ci DUMP_ACCESSIBILITY_WINDOW, 28885b47fbSopenharmony_ci DUMP_NONE = 100, 29885b47fbSopenharmony_ci}; 30885b47fbSopenharmony_ciclass AccessibilityDumper : public RefBase { 31885b47fbSopenharmony_cipublic: 32885b47fbSopenharmony_ci AccessibilityDumper() {} 33885b47fbSopenharmony_ci int Dump(int fd, const std::vector<std::u16string>& args) const; 34885b47fbSopenharmony_ci 35885b47fbSopenharmony_ciprivate: 36885b47fbSopenharmony_ci int DumpAccessibilityInfo(const std::vector<std::string>& args, std::string& dumpInfo) const; 37885b47fbSopenharmony_ci int DumpAccessibilityClientInfo(std::string& dumpInfo) const; 38885b47fbSopenharmony_ci int DumpAccessibilityWindowInfo(std::string& dumpInfo) const; 39885b47fbSopenharmony_ci int DumpAccessibilityUserInfo(std::string& dumpInfo) const; 40885b47fbSopenharmony_ci void ShowHelpInfo(std::string& dumpInfo) const; 41885b47fbSopenharmony_ci void ShowIllegalArgsInfo(std::string& dumpInfo) const; 42885b47fbSopenharmony_ci}; 43885b47fbSopenharmony_ci} // Accessibility 44885b47fbSopenharmony_ci} // OHOS 45885b47fbSopenharmony_ci#endif // ACCESSIBILITY_DUMPER_H 46