1 /* 2 * Copyright (c) 2022-2024 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 OHOS_DM_IPC_REQ_H 17 #define OHOS_DM_IPC_REQ_H 18 19 #include <string> 20 21 #include "ipc_def.h" 22 #include "dm_device_info.h" 23 24 namespace OHOS { 25 namespace DistributedHardware { 26 class IpcReq { 27 DECLARE_IPC_MODEL(IpcReq); 28 29 public: GetPkgName()30 const std::string GetPkgName() const 31 { 32 return pkgName_; 33 } 34 SetPkgName(const std::string & pkgName)35 void SetPkgName(const std::string &pkgName) 36 { 37 pkgName_ = pkgName; 38 } 39 GetProcessInfo()40 const ProcessInfo GetProcessInfo() const 41 { 42 return processInfo_; 43 } 44 SetProcessInfo(const ProcessInfo & processInfo)45 void SetProcessInfo(const ProcessInfo &processInfo) 46 { 47 processInfo_ = processInfo; 48 } 49 private: 50 std::string pkgName_; 51 ProcessInfo processInfo_; 52 }; 53 } // namespace DistributedHardware 54 } // namespace OHOS 55 #endif // OHOS_DM_IPC_REQ_H 56