mirror of
https://github.com/openharmony/device_manager.git
synced 2026-08-27 21:40:56 -04:00
ba5169ef19
Signed-off-by: wangyb0625 <wangyibo38@huawei.com>
54 lines
1.5 KiB
C++
54 lines
1.5 KiB
C++
/*
|
|
* Copyright (c) 2022 Huawei Device Co., Ltd.
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
#ifndef OHOS_DEVICE_MANAGER_IPC_GET_USER_OPERATION_REQ_H
|
|
#define OHOS_DEVICE_MANAGER_IPC_GET_USER_OPERATION_REQ_H
|
|
|
|
#include "dm_device_info.h"
|
|
#include "ipc_req.h"
|
|
|
|
namespace OHOS {
|
|
namespace DistributedHardware {
|
|
class IpcGetOperationReq : public IpcReq {
|
|
DECLARE_IPC_MODEL(IpcGetOperationReq);
|
|
|
|
public:
|
|
/**
|
|
* @tc.name: IpcGetOperationReq::GetOperation
|
|
* @tc.desc: Ipc Get Operation Request Get Operation
|
|
* @tc.type: FUNC
|
|
*/
|
|
int32_t GetOperation() const
|
|
{
|
|
return action_;
|
|
}
|
|
|
|
/**
|
|
* @tc.name: IpcGetOperationReq::SetOperation
|
|
* @tc.desc: Ipc Get Operation Request Set Operation
|
|
* @tc.type: FUNC
|
|
*/
|
|
void SetOperation(int32_t action)
|
|
{
|
|
action_ = action;
|
|
}
|
|
|
|
private:
|
|
int32_t action_ { 0 };
|
|
};
|
|
} // namespace DistributedHardware
|
|
} // namespace OHOS
|
|
#endif // OHOS_DEVICE_MANAGER_IPC_GET_USER_OPERATION_REQ_H
|