1 /*
2  * Copyright (c) 2021 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 DISTRIBUTED_CAMERA_OFFLINE_STREAM_OPERATOR_H
17 #define DISTRIBUTED_CAMERA_OFFLINE_STREAM_OPERATOR_H
18 
19 #include "v1_0/ioffline_stream_operator.h"
20 
21 namespace OHOS {
22 namespace DistributedHardware {
23 using namespace OHOS::HDI::Camera::V1_0;
24 class DOfflineStreamOperator : public IOfflineStreamOperator {
25 public:
26     DOfflineStreamOperator() = default;
27     ~DOfflineStreamOperator() override = default;
28     DOfflineStreamOperator(const DOfflineStreamOperator &other) = delete;
29     DOfflineStreamOperator(DOfflineStreamOperator &&other) = delete;
30     DOfflineStreamOperator& operator=(const DOfflineStreamOperator &other) = delete;
31     DOfflineStreamOperator& operator=(DOfflineStreamOperator &&other) = delete;
32 
33 public:
34     int32_t CancelCapture(int32_t captureId) override;
35     int32_t ReleaseStreams(const std::vector<int32_t>& streamIds) override;
36     int32_t Release() override;
37 };
38 } // namespace DistributedHardware
39 } // namespace OHOS
40 #endif // DISTRIBUTED_CAMERA_OFFLINE_STREAM_OPERATOR_H