forked from project-chip/connectedhomeip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
763424e
commit 45bb224
Showing
11 changed files
with
186 additions
and
209 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
153 changes: 153 additions & 0 deletions
153
examples/tv-casting-app/tv-casting-common/clusters/Clusters.h
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,153 @@ | ||
/* | ||
* | ||
* Copyright (c) 2023 Project CHIP Authors | ||
* All rights reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include "core/Attribute.h" | ||
#include "core/Command.h" | ||
#include "core/Endpoint.h" | ||
|
||
namespace matter { | ||
namespace casting { | ||
namespace clusters { | ||
namespace application_basic { | ||
class ApplicationBasicCluster : public core::BaseCluster | ||
{ | ||
public: | ||
ApplicationBasicCluster(memory::Weak<core::Endpoint> endpoint) : core::BaseCluster(endpoint) {} | ||
|
||
void SetUp() | ||
{ | ||
ChipLogProgress(AppServer, "Setting up ApplicationBasicCluster on EndpointId: %d", GetEndpoint().lock()->GetId()); | ||
} | ||
}; | ||
}; // namespace application_basic | ||
|
||
namespace application_launcher { | ||
class ApplicationLauncherCluster : public core::BaseCluster | ||
{ | ||
public: | ||
ApplicationLauncherCluster(memory::Weak<core::Endpoint> endpoint) : core::BaseCluster(endpoint) {} | ||
|
||
void SetUp() | ||
{ | ||
ChipLogProgress(AppServer, "Setting up ApplicationLauncherCluster on EndpointId: %d", GetEndpoint().lock()->GetId()); | ||
} | ||
}; | ||
}; // namespace application_launcher | ||
|
||
namespace content_launcher { | ||
class ContentLauncherCluster : public core::BaseCluster | ||
{ | ||
public: | ||
ContentLauncherCluster(memory::Weak<core::Endpoint> endpoint) : core::BaseCluster(endpoint) {} | ||
|
||
void SetUp() | ||
{ | ||
ChipLogProgress(AppServer, "Setting up ContentLauncherCluster on EndpointId: %d", GetEndpoint().lock()->GetId()); | ||
|
||
RegisterCommand(chip::app::Clusters::ContentLauncher::Commands::LaunchURL::Id, | ||
new core::Command<chip::app::Clusters::ContentLauncher::Commands::LaunchURL::Type>(GetEndpoint())); | ||
} | ||
}; | ||
}; // namespace content_launcher | ||
|
||
namespace keypad_input { | ||
class KeypadInputCluster : public core::BaseCluster | ||
{ | ||
public: | ||
KeypadInputCluster(memory::Weak<core::Endpoint> endpoint) : core::BaseCluster(endpoint) {} | ||
|
||
void SetUp() | ||
{ | ||
ChipLogProgress(AppServer, "Setting up KeypadInputCluster on EndpointId: %d", GetEndpoint().lock()->GetId()); | ||
} | ||
}; | ||
}; // namespace keypad_input | ||
|
||
namespace level_control { | ||
class LevelControlCluster : public core::BaseCluster | ||
{ | ||
public: | ||
LevelControlCluster(memory::Weak<core::Endpoint> endpoint) : core::BaseCluster(endpoint) {} | ||
|
||
void SetUp() | ||
{ | ||
ChipLogProgress(AppServer, "Setting up LevelControlCluster on EndpointId: %d", GetEndpoint().lock()->GetId()); | ||
} | ||
}; | ||
}; // namespace level_control | ||
|
||
namespace media_playback { | ||
class MediaPlaybackCluster : public core::BaseCluster | ||
{ | ||
public: | ||
MediaPlaybackCluster(memory::Weak<core::Endpoint> endpoint) : core::BaseCluster(endpoint) {} | ||
|
||
void SetUp() | ||
{ | ||
ChipLogProgress(AppServer, "Setting up MediaPlaybackCluster on EndpointId: %d", GetEndpoint().lock()->GetId()); | ||
|
||
RegisterAttribute(chip::app::Clusters::MediaPlayback::Attributes::CurrentState::Id, | ||
new core::Attribute<chip::app::Clusters::MediaPlayback::Attributes::CurrentState::TypeInfo>(GetEndpoint())); | ||
} | ||
}; | ||
}; // namespace media_playback | ||
|
||
namespace on_off { | ||
class OnOffCluster : public core::BaseCluster | ||
{ | ||
public: | ||
OnOffCluster(memory::Weak<core::Endpoint> endpoint) : core::BaseCluster(endpoint) {} | ||
|
||
void SetUp() | ||
{ | ||
ChipLogProgress(AppServer, "Setting up OnOffCluster on EndpointId: %d", GetEndpoint().lock()->GetId()); | ||
} | ||
}; | ||
}; // namespace on_off | ||
|
||
namespace target_navigator { | ||
class TargetNavigatorCluster : public core::BaseCluster | ||
{ | ||
public: | ||
TargetNavigatorCluster(memory::Weak<core::Endpoint> endpoint) : core::BaseCluster(endpoint) {} | ||
|
||
void SetUp() | ||
{ | ||
ChipLogProgress(AppServer, "Setting up TargetNavigatorCluster on EndpointId: %d", GetEndpoint().lock()->GetId()); | ||
} | ||
}; | ||
}; // namespace target_navigator | ||
|
||
namespace wake_on_lan { | ||
class WakeOnLanCluster : public core::BaseCluster | ||
{ | ||
public: | ||
WakeOnLanCluster(memory::Weak<core::Endpoint> endpoint) : core::BaseCluster(endpoint) {} | ||
|
||
void SetUp() | ||
{ | ||
ChipLogProgress(AppServer, "Setting up WakeOnLanCluster on EndpointId: %d", GetEndpoint().lock()->GetId()); | ||
} | ||
}; | ||
}; // namespace wake_on_lan | ||
|
||
}; // namespace clusters | ||
}; // namespace casting | ||
}; // namespace matter |
38 changes: 0 additions & 38 deletions
38
examples/tv-casting-app/tv-casting-common/clusters/ContentLauncherCluster.cpp
This file was deleted.
Oops, something went wrong.
55 changes: 0 additions & 55 deletions
55
examples/tv-casting-app/tv-casting-common/clusters/ContentLauncherCluster.h
This file was deleted.
Oops, something went wrong.
55 changes: 0 additions & 55 deletions
55
examples/tv-casting-app/tv-casting-common/clusters/MediaPlaybackCluster.h
This file was deleted.
Oops, something went wrong.
42 changes: 0 additions & 42 deletions
42
examples/tv-casting-app/tv-casting-common/clusters/TargetNavigatorCluster.h
This file was deleted.
Oops, something went wrong.
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.