-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update operational state server and related examples (#28577)
* Reordered Mode Base functions. * Moved generic OpState cluster objects into one header file. * Reordered OperationalStateServer functions. * Moved OpState delegate in the server header file. * Updated the TestOperationalStateDelegate inctludes following the operational state delegate change in location. * Renamed TestOperationalStateDelegate.cpp -> src/app/tests/TestOperationalStateClusterObjects.cpp * Restyled by clang-format * Minor corrections following revision. * Refactored the OperationalState server code to match with other derived cluters. Updated the examples to work with this change. * Explicitly initialised the edpoint ID in the operational state examples to improve readability. * OpState: Made OpState getters return const. * Restyled by clang-format * Moved the responsibility of storing and managing the countdown time attribute to the delegate. * Applied minor review changes. * OpState: Made the improved the relationship between the Delegate and Instance classes. * OpState: Removed the ability to set the OperationalState to the Error state and the ability to set the OperationalError. These can only be set via the ErrorDetected event. * OpState: Fixed GetCurrentOperationalError * Restyled by clang-format * Added checks to the phase and operational state setters to ensure that the value given is valid. * Added a safe method to check if two GenericOperationalError objects are equal. * GetInstance returns a const pointer. Co-authored-by: Boris Zbarsky <[email protected]> * Restyled by clang-format --------- Co-authored-by: Restyled.io <[email protected]> Co-authored-by: Boris Zbarsky <[email protected]>
- Loading branch information
Showing
16 changed files
with
665 additions
and
835 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.