21
21
#include < app/clusters/device-energy-management-server/device-energy-management-server.h>
22
22
#include < app/util/config.h>
23
23
24
- using chip::Protocols::InteractionModel::Status;
25
24
namespace chip {
26
25
namespace app {
27
26
namespace Clusters {
@@ -55,15 +54,15 @@ class DeviceEnergyManagementDelegate : public DeviceEnergyManagement::Delegate
55
54
* @param duration The duration that the ESA SHALL maintain the requested power for.
56
55
* @return Success if the adjustment is accepted; otherwise the command SHALL be rejected with appropriate error.
57
56
*/
58
- virtual Status PowerAdjustRequest (const int64_t powerMw, const uint32_t durationS, AdjustmentCauseEnum cause) override ;
57
+ virtual chip::Protocols::InteractionModel:: Status PowerAdjustRequest (const int64_t powerMw, const uint32_t durationS, AdjustmentCauseEnum cause) override ;
59
58
60
59
/* *
61
60
* @brief Make the ESA end the active power adjustment session & return to normal (or idle) power levels.
62
61
* The ESA SHALL also generate an PowerAdjustEnd Event and the ESAState SHALL be restored to Online.
63
62
*
64
63
* @return It should report SUCCESS if successful and FAILURE otherwise.
65
64
*/
66
- virtual Status CancelPowerAdjustRequest () override ;
65
+ virtual chip::Protocols::InteractionModel:: Status CancelPowerAdjustRequest () override ;
67
66
68
67
/* *
69
68
* @brief The ESA SHALL update its Forecast attribute with the RequestedStartTime including a new ForecastID.
@@ -81,7 +80,7 @@ class DeviceEnergyManagementDelegate : public DeviceEnergyManagement::Delegate
81
80
* @return Success if the StartTime in the Forecast is updated, otherwise the command SHALL be rejected with appropriate
82
81
* IM_Status.
83
82
*/
84
- virtual Status StartTimeAdjustRequest (const uint32_t requestedStartTimeUtc, AdjustmentCauseEnum cause) override ;
83
+ virtual chip::Protocols::InteractionModel:: Status StartTimeAdjustRequest (const uint32_t requestedStartTimeUtc, AdjustmentCauseEnum cause) override ;
85
84
86
85
/* *
87
86
* @brief Handler for PauseRequest command
@@ -96,7 +95,7 @@ class DeviceEnergyManagementDelegate : public DeviceEnergyManagement::Delegate
96
95
* @param duration Duration that the ESA SHALL be paused for.
97
96
* @return Success if the ESA is paused, otherwise returns other IM_Status.
98
97
*/
99
- virtual Status PauseRequest (const uint32_t durationS, AdjustmentCauseEnum cause) override ;
98
+ virtual chip::Protocols::InteractionModel:: Status PauseRequest (const uint32_t durationS, AdjustmentCauseEnum cause) override ;
100
99
101
100
/* *
102
101
* @brief Handler for ResumeRequest command
@@ -107,7 +106,7 @@ class DeviceEnergyManagementDelegate : public DeviceEnergyManagement::Delegate
107
106
*
108
107
* @return Success if the ESA is resumed, otherwise returns other IM_Status.
109
108
*/
110
- virtual Status ResumeRequest () override ;
109
+ virtual chip::Protocols::InteractionModel:: Status ResumeRequest () override ;
111
110
112
111
/* *
113
112
* @brief Handler for ModifyForecastRequest
@@ -125,7 +124,7 @@ class DeviceEnergyManagementDelegate : public DeviceEnergyManagement::Delegate
125
124
* @return Success if the entire list of SlotAdjustmentStruct are accepted, otherwise the command
126
125
* SHALL be rejected returning other IM_Status.
127
126
*/
128
- virtual Status
127
+ virtual chip::Protocols::InteractionModel:: Status
129
128
ModifyForecastRequest (const uint32_t forecastID,
130
129
const DataModel::DecodableList<Structs::SlotAdjustmentStruct::DecodableType> & slotAdjustments,
131
130
AdjustmentCauseEnum cause) override ;
@@ -141,7 +140,7 @@ class DeviceEnergyManagementDelegate : public DeviceEnergyManagement::Delegate
141
140
* @param constraints Sequence of turn up/down power requests that the ESA is being asked to constrain its operation within.
142
141
* @return Success if successful, otherwise the command SHALL be rejected returning other IM_Status.
143
142
*/
144
- virtual Status
143
+ virtual chip::Protocols::InteractionModel:: Status
145
144
RequestConstraintBasedForecast (const DataModel::DecodableList<Structs::ConstraintsStruct::DecodableType> & constraints,
146
145
AdjustmentCauseEnum cause) override ;
147
146
@@ -162,7 +161,7 @@ class DeviceEnergyManagementDelegate : public DeviceEnergyManagement::Delegate
162
161
*
163
162
* @return Success if successful, otherwise the command SHALL be rejected returning other IM_Status.
164
163
*/
165
- virtual Status CancelRequest () override ;
164
+ virtual chip::Protocols::InteractionModel:: Status CancelRequest () override ;
166
165
167
166
// ------------------------------------------------------------------
168
167
// Overridden DeviceEnergyManagement::Delegate Get attribute methods
0 commit comments