1
1
/*
2
- *
3
- * Copyright (c) 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
- */
2
+ *
3
+ * Copyright (c) 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
18
19
19
#pragma once
20
20
@@ -35,22 +35,22 @@ class RvcServiceAreaDelegate : public Delegate
35
35
{
36
36
private:
37
37
// containers for array attributes.
38
- std::vector<ServiceArea::LocationStructureWrapper> mSupportedLocations ;
39
- std::vector<ServiceArea::MapStructureWrapper> mSupportedMaps ;
40
- std::vector<uint32_t > mSelectedLocations ;
41
- std::vector<ServiceArea::Structs::ProgressStruct::Type> mProgressList ;
42
-
38
+ std::vector<ServiceArea::LocationStructureWrapper> mSupportedLocations ;
39
+ std::vector<ServiceArea::MapStructureWrapper> mSupportedMaps ;
40
+ std::vector<uint32_t > mSelectedLocations ;
41
+ std::vector<ServiceArea::Structs::ProgressStruct::Type> mProgressList ;
43
42
44
43
public:
45
44
CHIP_ERROR Init () override ;
46
45
47
46
// command support
48
- bool IsSetSelectedLocationsAllowed (char * statusText) override ;
47
+ bool IsSetSelectedLocationsAllowed (char * statusText) override ;
49
48
50
49
bool IsValidSelectLocationsSet (const ServiceArea::Commands::SelectLocations::DecodableType & req,
51
- ServiceArea::SelectLocationsStatus & locationStatus, char * statusText, bool & useStatusText) override ;
50
+ ServiceArea::SelectLocationsStatus & locationStatus, char * statusText,
51
+ bool & useStatusText) override ;
52
52
53
- bool HandleSkipCurrentLocation (char * skipStatusText) override ;
53
+ bool HandleSkipCurrentLocation (char * skipStatusText) override ;
54
54
55
55
// *************************************************************************
56
56
// Supported Locations accessors
@@ -61,7 +61,8 @@ class RvcServiceAreaDelegate : public Delegate
61
61
62
62
bool GetSupportedLocationByIndex (uint32_t listIndex, ServiceArea::LocationStructureWrapper & supportedLocation) override ;
63
63
64
- bool GetSupportedLocationById (uint32_t aLocationId, uint32_t & listIndex, ServiceArea::LocationStructureWrapper & supportedLocation) override ;
64
+ bool GetSupportedLocationById (uint32_t aLocationId, uint32_t & listIndex,
65
+ ServiceArea::LocationStructureWrapper & supportedLocation) override ;
65
66
66
67
bool AddSupportedLocation (const ServiceArea::LocationStructureWrapper & newLocation, uint32_t & listIndex) override ;
67
68
@@ -106,11 +107,13 @@ class RvcServiceAreaDelegate : public Delegate
106
107
107
108
bool GetProgressElementByIndex (uint32_t listIndex, ServiceArea::Structs::ProgressStruct::Type & aProgressElement) override ;
108
109
109
- bool GetProgressElementById (uint32_t aLocationId, uint32_t & listIndex, ServiceArea::Structs::ProgressStruct::Type & aProgressElement) override ;
110
+ bool GetProgressElementById (uint32_t aLocationId, uint32_t & listIndex,
111
+ ServiceArea::Structs::ProgressStruct::Type & aProgressElement) override ;
110
112
111
113
bool AddProgressElement (const ServiceArea::Structs::ProgressStruct::Type & newProgressElement, uint32_t & listIndex) override ;
112
114
113
- bool ModifyProgressElement (uint32_t listIndex, const ServiceArea::Structs::ProgressStruct::Type & modifiedProgressElement) override ;
115
+ bool ModifyProgressElement (uint32_t listIndex,
116
+ const ServiceArea::Structs::ProgressStruct::Type & modifiedProgressElement) override ;
114
117
115
118
bool ClearProgress () override ;
116
119
};
0 commit comments