AlexaClientSDK  1.23.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
CapabilitiesDelegateInterface.h
Go to the documentation of this file.
1 /*
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License").
5  * You may not use this file except in compliance with the License.
6  * A copy of the License is located at
7  *
8  * http://aws.amazon.com/apache2.0/
9  *
10  * or in the "license" file accompanying this file. This file is distributed
11  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12  * express or implied. See the License for the specific language governing
13  * permissions and limitations under the License.
14  */
15 
16 #ifndef ALEXA_CLIENT_SDK_AVSCOMMON_SDKINTERFACES_INCLUDE_AVSCOMMON_SDKINTERFACES_CAPABILITIESDELEGATEINTERFACE_H_
17 #define ALEXA_CLIENT_SDK_AVSCOMMON_SDKINTERFACES_INCLUDE_AVSCOMMON_SDKINTERFACES_CAPABILITIESDELEGATEINTERFACE_H_
18 
19 #include <memory>
20 #include <vector>
21 
30 
31 namespace alexaClientSDK {
32 namespace avsCommon {
33 namespace sdkInterfaces {
34 
43 public:
47  virtual ~CapabilitiesDelegateInterface() = default;
48 
62  virtual bool addOrUpdateEndpoint(
63  const avsCommon::avs::AVSDiscoveryEndpointAttributes& endpointAttributes,
64  const std::vector<avsCommon::avs::CapabilityConfiguration>& capabilities) = 0;
65 
79  virtual bool deleteEndpoint(
80  const avsCommon::avs::AVSDiscoveryEndpointAttributes& endpointAttributes,
81  const std::vector<avsCommon::avs::CapabilityConfiguration>& capabilities) = 0;
82 
90  virtual void addCapabilitiesObserver(
91  std::shared_ptr<avsCommon::sdkInterfaces::CapabilitiesDelegateObserverInterface> observer) = 0;
92 
98  virtual void removeCapabilitiesObserver(
99  std::shared_ptr<avsCommon::sdkInterfaces::CapabilitiesDelegateObserverInterface> observer) = 0;
100 
105  virtual void invalidateCapabilities() = 0;
106 
112  virtual void setMessageSender(
113  const std::shared_ptr<avsCommon::sdkInterfaces::MessageSenderInterface>& messageSender) = 0;
114 };
115 
116 } // namespace sdkInterfaces
117 } // namespace avsCommon
118 } // namespace alexaClientSDK
119 
120 #endif // ALEXA_CLIENT_SDK_AVSCOMMON_SDKINTERFACES_INCLUDE_AVSCOMMON_SDKINTERFACES_CAPABILITIESDELEGATEINTERFACE_H_
Definition: ConnectionStatusObserverInterface.h:31
virtual void removeCapabilitiesObserver(std::shared_ptr< avsCommon::sdkInterfaces::CapabilitiesDelegateObserverInterface > observer)=0
Definition: AlexaEventProcessedObserverInterface.h:28
virtual void setMessageSender(const std::shared_ptr< avsCommon::sdkInterfaces::MessageSenderInterface > &messageSender)=0
virtual bool deleteEndpoint(const avsCommon::avs::AVSDiscoveryEndpointAttributes &endpointAttributes, const std::vector< avsCommon::avs::CapabilityConfiguration > &capabilities)=0
Definition: AVSDiscoveryEndpointAttributes.h:41
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
virtual void addCapabilitiesObserver(std::shared_ptr< avsCommon::sdkInterfaces::CapabilitiesDelegateObserverInterface > observer)=0
virtual bool addOrUpdateEndpoint(const avsCommon::avs::AVSDiscoveryEndpointAttributes &endpointAttributes, const std::vector< avsCommon::avs::CapabilityConfiguration > &capabilities)=0

AlexaClientSDK 1.23.0 - Copyright 2016-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0