/src/connectedhomeip/examples/energy-management-app/energy-management-common/device-energy-management/include/DeviceEnergyManagementManager.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* |
2 | | * |
3 | | * Copyright (c) 2023-2024 Project CHIP Authors |
4 | | * All rights reserved. |
5 | | * |
6 | | * Licensed under the Apache License, Version 2.0 (the "License"); |
7 | | * you may not use this file except in compliance with the License. |
8 | | * You may obtain a copy of the License at |
9 | | * |
10 | | * http://www.apache.org/licenses/LICENSE-2.0 |
11 | | * |
12 | | * Unless required by applicable law or agreed to in writing, software |
13 | | * distributed under the License is distributed on an "AS IS" BASIS, |
14 | | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
15 | | * See the License for the specific language governing permissions and |
16 | | * limitations under the License. |
17 | | */ |
18 | | |
19 | | #pragma once |
20 | | |
21 | | #include <DeviceEnergyManagementDelegateImpl.h> |
22 | | #include <app/util/af-types.h> |
23 | | #include <lib/core/CHIPError.h> |
24 | | |
25 | | namespace chip { |
26 | | namespace app { |
27 | | namespace Clusters { |
28 | | |
29 | | using namespace chip::app::Clusters::DeviceEnergyManagement; |
30 | | |
31 | | class DeviceEnergyManagementManager : public Instance |
32 | | { |
33 | | public: |
34 | | DeviceEnergyManagementManager(EndpointId aEndpointId, DeviceEnergyManagementDelegate & aDelegate, Feature aFeature); |
35 | | |
36 | | // Delete copy constructor and assignment operator. |
37 | | DeviceEnergyManagementManager(const DeviceEnergyManagementManager &) = delete; |
38 | | DeviceEnergyManagementManager(const DeviceEnergyManagementManager &&) = delete; |
39 | | DeviceEnergyManagementManager & operator=(const DeviceEnergyManagementManager &) = delete; |
40 | | |
41 | | CHIP_ERROR Init(); |
42 | | void Shutdown(); |
43 | | |
44 | 0 | DeviceEnergyManagementDelegate * GetDelegate() { return mDelegate; }; |
45 | | |
46 | | private: |
47 | | DeviceEnergyManagementDelegate * mDelegate; |
48 | | }; |
49 | | |
50 | | } // namespace Clusters |
51 | | } // namespace app |
52 | | } // namespace chip |