AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
PostConnectOperationInterface.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_POSTCONNECTOPERATIONINTERFACE_H_
17 #define ALEXA_CLIENT_SDK_AVSCOMMON_SDKINTERFACES_INCLUDE_AVSCOMMON_SDKINTERFACES_POSTCONNECTOPERATIONINTERFACE_H_
18 
19 #include <memory>
20 
22 
23 namespace alexaClientSDK {
24 namespace avsCommon {
25 namespace sdkInterfaces {
26 
27 /*
28  * Interface to be implemented by post connect actions that will be executed in sequence by the @c PostConnectSequencer.
29  */
31 public:
33  static constexpr unsigned int VERIFY_GATEWAY_PRIORITY = 50;
34 
36  static constexpr unsigned int ENDPOINT_DISCOVERY_PRIORITY = 100;
37 
39  static constexpr unsigned int SYNCHRONIZE_STATE_PRIORITY = 150;
40 
44  virtual ~PostConnectOperationInterface() = default;
45 
51  virtual unsigned int getOperationPriority() = 0;
52 
63  virtual bool performOperation(
64  const std::shared_ptr<avsCommon::sdkInterfaces::MessageSenderInterface>& messageSender) = 0;
65 
72  virtual void abortOperation() = 0;
73 };
74 
75 } // namespace sdkInterfaces
76 } // namespace avsCommon
77 } // namespace alexaClientSDK
78 
79 #endif // ALEXA_CLIENT_SDK_AVSCOMMON_SDKINTERFACES_INCLUDE_AVSCOMMON_SDKINTERFACES_POSTCONNECTOPERATIONINTERFACE_H_
virtual void abortOperation()=0
virtual ~PostConnectOperationInterface()=default
static constexpr unsigned int SYNCHRONIZE_STATE_PRIORITY
Operation priority for sending SynchronizeState event to AVS.
Definition: PostConnectOperationInterface.h:39
static constexpr unsigned int VERIFY_GATEWAY_PRIORITY
Operation priority for AVS Gateway Verification.
Definition: PostConnectOperationInterface.h:33
virtual bool performOperation(const std::shared_ptr< avsCommon::sdkInterfaces::MessageSenderInterface > &messageSender)=0
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
Definition: PostConnectOperationInterface.h:30
static constexpr unsigned int ENDPOINT_DISCOVERY_PRIORITY
Operation priority for Publishing Capabilities to AVS.
Definition: PostConnectOperationInterface.h:36
virtual unsigned int getOperationPriority()=0

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