22
22
#include < app/CommandHandlerInterface.h>
23
23
#include < protocols/interaction_model/StatusCode.h>
24
24
25
- using namespace chip ;
26
- using namespace chip ::app;
27
- using namespace chip ::app::Clusters;
28
- using namespace chip ::Protocols::InteractionModel;
29
-
30
25
namespace chip {
31
26
namespace app {
32
27
namespace Clusters {
@@ -126,7 +121,7 @@ class Delegate
126
121
* @param actionId The id of an action on which an action shall takes place.
127
122
* @return Returns a Success if an action took place successfully otherwise, suitable error.
128
123
*/
129
- virtual Status HandleInstantAction (uint16_t actionId, Optional<uint32_t > invokeId);
124
+ virtual Protocols::InteractionModel:: Status HandleInstantAction (uint16_t actionId, Optional<uint32_t > invokeId);
130
125
131
126
/* *
132
127
* When an InstantActionWithTransition command is recieved, an action (state change) on the involved endpoints shall trigger,
@@ -137,7 +132,7 @@ class Delegate
137
132
* @param transitionTime The time for transition from the current state to the new state.
138
133
* @return Returns a Success if an action took place successfully otherwise, suitable error.
139
134
*/
140
- virtual Status HandleInstantActionWithTransition (uint16_t actionId, uint16_t transitionTime, Optional<uint32_t > invokeId);
135
+ virtual Protocols::InteractionModel:: Status HandleInstantActionWithTransition (uint16_t actionId, uint16_t transitionTime, Optional<uint32_t > invokeId);
141
136
142
137
/* *
143
138
* When a StartAction command is recieved, the commencement of an action on the involved endpoints shall trigger. Afterwards,
@@ -146,7 +141,7 @@ class Delegate
146
141
* @param actionId The id of an action on which an action shall takes place.
147
142
* @return Returns a Success if an action took place successfully otherwise, suitable error.
148
143
*/
149
- virtual Status HandleStartAction (uint16_t actionId, Optional<uint32_t > invokeId);
144
+ virtual Protocols::InteractionModel:: Status HandleStartAction (uint16_t actionId, Optional<uint32_t > invokeId);
150
145
151
146
/* *
152
147
* When a StartActionWithDuration command is recieved, the commencement of an action on the involved endpoints shall trigger,
@@ -157,7 +152,7 @@ class Delegate
157
152
* @param duration The time for which an action shall be in start state.
158
153
* @return Returns a Success if an action took place successfully otherwise, suitable error.
159
154
*/
160
- virtual Status HandleStartActionWithDuration (uint16_t actionId, uint32_t duration, Optional<uint32_t > invokeId);
155
+ virtual Protocols::InteractionModel:: Status HandleStartActionWithDuration (uint16_t actionId, uint32_t duration, Optional<uint32_t > invokeId);
161
156
162
157
/* *
163
158
* When a StopAction command is recieved, the ongoing action on the involved endpoints shall stop. Afterwards, the action’s
@@ -166,7 +161,7 @@ class Delegate
166
161
* @param actionId The id of an action on which an action shall takes place.
167
162
* @return Returns a Success if an action took place successfully otherwise, suitable error.
168
163
*/
169
- virtual Status HandleStopAction (uint16_t actionId, Optional<uint32_t > invokeId);
164
+ virtual Protocols::InteractionModel:: Status HandleStopAction (uint16_t actionId, Optional<uint32_t > invokeId);
170
165
171
166
/* *
172
167
* When a PauseAction command is recieved, the ongoing action on the involved endpoints shall pause and SHALL change the
@@ -175,7 +170,7 @@ class Delegate
175
170
* @param actionId The id of an action on which an action shall takes place.
176
171
* @return Returns a Success if an action took place successfully otherwise, suitable error.
177
172
*/
178
- virtual Status HandlePauseAction (uint16_t actionId, Optional<uint32_t > invokeId);
173
+ virtual Protocols::InteractionModel:: Status HandlePauseAction (uint16_t actionId, Optional<uint32_t > invokeId);
179
174
180
175
/* *
181
176
* When a PauseActionWithDuration command is recieved, pauses an ongoing action, and SHALL change the action’s state to Paused.
@@ -186,7 +181,7 @@ class Delegate
186
181
* @param duration The time for which an action shall be in pause state.
187
182
* @return Returns a Success if an action took place successfully otherwise, suitable error.
188
183
*/
189
- virtual Status HandlePauseActionWithDuration (uint16_t actionId, uint32_t duration, Optional<uint32_t > invokeId);
184
+ virtual Protocols::InteractionModel:: Status HandlePauseActionWithDuration (uint16_t actionId, uint32_t duration, Optional<uint32_t > invokeId);
190
185
191
186
/* *
192
187
* When a ResumeAction command is recieved, the previously paused action shall resume and SHALL change the action’s state to
@@ -195,7 +190,7 @@ class Delegate
195
190
* @param actionId The id of an action on which an action shall takes place.
196
191
* @return Returns a Success if an action took place successfully otherwise, suitable error.
197
192
*/
198
- virtual Status HandleResumeAction (uint16_t actionId, Optional<uint32_t > invokeId);
193
+ virtual Protocols::InteractionModel:: Status HandleResumeAction (uint16_t actionId, Optional<uint32_t > invokeId);
199
194
200
195
/* *
201
196
* When an EnableAction command is recieved, it enables a certain action or automation. Afterwards, the action’s state SHALL be
@@ -204,7 +199,7 @@ class Delegate
204
199
* @param actionId The id of an action on which an action shall takes place.
205
200
* @return Returns a Success if an action took place successfully otherwise, suitable error.
206
201
*/
207
- virtual Status HandleEnableAction (uint16_t actionId, Optional<uint32_t > invokeId);
202
+ virtual Protocols::InteractionModel:: Status HandleEnableAction (uint16_t actionId, Optional<uint32_t > invokeId);
208
203
209
204
/* *
210
205
* When an EnableActionWithDuration command is recieved, it enables a certain action or automation, and SHALL change the
@@ -215,7 +210,7 @@ class Delegate
215
210
* @param duration The time for which an action shall be in active state.
216
211
* @return Returns a Success if an action took place successfully otherwise, suitable error.
217
212
*/
218
- virtual Status HandleEnableActionWithDuration (uint16_t actionId, uint32_t duration, Optional<uint32_t > invokeId);
213
+ virtual Protocols::InteractionModel:: Status HandleEnableActionWithDuration (uint16_t actionId, uint32_t duration, Optional<uint32_t > invokeId);
219
214
220
215
/* *
221
216
* When a DisableAction command is recieved, it disables a certain action or automation, and SHALL change the action’s state to
@@ -224,7 +219,7 @@ class Delegate
224
219
* @param actionId The id of an action on which an action shall takes place.
225
220
* @return Returns a Success if an action took place successfully otherwise, suitable error.
226
221
*/
227
- virtual Status HandleDisableAction (uint16_t actionId, Optional<uint32_t > invokeId);
222
+ virtual Protocols::InteractionModel:: Status HandleDisableAction (uint16_t actionId, Optional<uint32_t > invokeId);
228
223
229
224
/* *
230
225
* When a DisableActionWithDuration command is recieved, it disables a certain action or automation, and SHALL change the
@@ -235,7 +230,7 @@ class Delegate
235
230
* @param duration The time for which an action shall be in disable state.
236
231
* @return Returns a Success if an action took place successfully otherwise, suitable error.
237
232
*/
238
- virtual Status HandleDisableActionWithDuration (uint16_t actionId, uint32_t duration, Optional<uint32_t > invokeId);
233
+ virtual Protocols::InteractionModel:: Status HandleDisableActionWithDuration (uint16_t actionId, uint32_t duration, Optional<uint32_t > invokeId);
239
234
};
240
235
241
236
} // namespace Actions
0 commit comments