Skip to content

Commit

Permalink
Split out AttributeAccessInterface.h into separate headers/cpp for …
Browse files Browse the repository at this point in the history
…each underlying class (#32984)

* Switch out AttributeReportBuilder

* Restyle

* Moved things around

* Split out the decoder as well

* Fix lists to be working

* Restyle

* Fix up some headers

* Fix includes

* Fix copyrights

* Fix another include

* Restyle
  • Loading branch information
andy31415 authored Apr 15, 2024
1 parent 2f6d910 commit 5727ff0
Show file tree
Hide file tree
Showing 64 changed files with 542 additions and 554 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#pragma once

#include <app/AttributeAccessInterface.h>
#include <app/AttributeValueEncoder.h>
#include <app/clusters/media-input-server/media-input-server.h>

#include <string>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

#include "../logging/Log.h"

#include <app/AttributeAccessInterface.h>
#include <app/MessageDef/InvokeRequestMessage.h>
#include <app/MessageDef/InvokeResponseMessage.h>
#include <app/MessageDef/ReportDataMessage.h>
Expand Down
1 change: 0 additions & 1 deletion examples/tv-app/android/include/cluster-init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#include <app-common/zap-generated/cluster-objects.h>
#include <app-common/zap-generated/ids/Attributes.h>
#include <app-common/zap-generated/ids/Clusters.h>
#include <app/AttributeAccessInterface.h>
#include <app/util/attribute-storage.h>

using namespace chip;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@

#pragma once

#include <app/AttributeAccessInterface.h>
#include <app/clusters/content-app-observer/content-app-observer.h>
#include <vector>

using ContentAppObserverDelegate = chip::app::Clusters::ContentAppObserver::Delegate;
using ContentAppMessageResponse = chip::app::Clusters::ContentAppObserver::Commands::ContentAppMessageResponse::Type;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@

#pragma once

#include <app/AttributeAccessInterface.h>
#include <app/AttributeValueEncoder.h>
#include <app/clusters/content-control-server/content-control-server.h>
#include <vector>

using ContentControlDelegate = chip::app::Clusters::ContentControl::Delegate;
using ResetPINResponseType = chip::app::Clusters::ContentControl::Commands::ResetPINResponse::Type;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

#include "ContentAppAttributeDelegate.h"
#include <app-common/zap-generated/cluster-objects.h>
#include <app/AttributeAccessInterface.h>
#include <app/util/config.h>
#include <jni.h>
#include <lib/support/CHIPJNIError.h>
Expand Down
2 changes: 1 addition & 1 deletion examples/tv-app/android/java/ContentAppAttributeDelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#pragma once

#include <app-common/zap-generated/ids/Clusters.h>
#include <app/AttributeAccessInterface.h>
#include <app/ConcreteAttributePath.h>
#include <jni.h>
#include <lib/core/DataModelTypes.h>
#include <lib/support/JniReferences.h>
Expand Down
2 changes: 0 additions & 2 deletions examples/tv-app/android/java/ContentLauncherManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
#include <lib/support/JniReferences.h>
#include <lib/support/JniTypeWrappers.h>

#include <string>

using namespace std;
using namespace chip;
using namespace chip::app::DataModel;
Expand Down
2 changes: 1 addition & 1 deletion examples/tv-app/android/java/ContentLauncherManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#pragma once

#include <app/AttributeAccessInterface.h>
#include <app/AttributeValueEncoder.h>
#include <app/clusters/content-launch-server/content-launch-server.h>
#include <jni.h>
#include <lib/core/CHIPError.h>
Expand Down
2 changes: 1 addition & 1 deletion examples/tv-app/android/java/MediaInputManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#pragma once

#include <app/AttributeAccessInterface.h>
#include <app/AttributeValueEncoder.h>
#include <app/clusters/media-input-server/media-input-server.h>
#include <jni.h>
#include <lib/support/JniReferences.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@

#pragma once

#include <app/AttributeAccessInterface.h>
#include <app/clusters/content-app-observer/content-app-observer.h>
#include <vector>

using ContentAppObserverDelegate = chip::app::Clusters::ContentAppObserver::Delegate;
using ContentAppMessageResponse = chip::app::Clusters::ContentAppObserver::Commands::ContentAppMessageResponse::Type;
Expand All @@ -32,6 +30,4 @@ class ContentAppObserverManager : public ContentAppObserverDelegate

void HandleContentAppMessage(chip::app::CommandResponseHelper<ContentAppMessageResponse> & helper,
const chip::Optional<chip::CharSpan> & data, const chip::CharSpan & encodingHint) override;

protected:
};
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@

#pragma once

#include <app/AttributeAccessInterface.h>
#include <app/AttributeValueEncoder.h>
#include <app/clusters/content-control-server/content-control-server.h>
#include <vector>

using ContentControlDelegate = chip::app::Clusters::ContentControl::Delegate;
using ResetPINResponseType = chip::app::Clusters::ContentControl::Commands::ResetPINResponse::Type;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/*
*
* Copyright (c) 2021 Project CHIP Authors
* All rights reserved.
*
Expand All @@ -15,10 +14,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

#pragma once

#include <app/clusters/content-launch-server/content-launch-server.h>

#include <list>
#include <string>
#include <vector>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#pragma once

#include <app/AttributeAccessInterface.h>
#include <app/AttributeValueEncoder.h>
#include <app/clusters/media-input-server/media-input-server.h>
#include <vector>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@

#pragma once

#include <app/AttributeAccessInterface.h>
#include <app/clusters/content-app-observer/content-app-observer.h>
#include <vector>

using ContentAppObserverDelegate = chip::app::Clusters::ContentAppObserver::Delegate;
using ContentAppMessageResponse = chip::app::Clusters::ContentAppObserver::Commands::ContentAppMessageResponse::Type;
Expand Down
Loading

0 comments on commit 5727ff0

Please sign in to comment.