AlexaClientSDK  1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
RegistrationManager.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 REGISTRATIONMANAGER_REGISTRATIONMANAGER_H_
17 #define REGISTRATIONMANAGER_REGISTRATIONMANAGER_H_
18 
19 #include <memory>
20 
27 
28 namespace alexaClientSDK {
29 namespace registrationManager {
30 
32 public:
43  static std::shared_ptr<registrationManager::RegistrationManagerInterface> createRegistrationManagerInterface(
44  const std::shared_ptr<registrationManager::CustomerDataManagerInterface>& dataManager,
45  const std::shared_ptr<registrationManager::RegistrationNotifierInterface>& notifier,
46  const std::shared_ptr<avsCommon::sdkInterfaces::AVSConnectionManagerInterface>& connectionManager,
47  const std::shared_ptr<avsCommon::sdkInterfaces::DirectiveSequencerInterface>& directiveSequencer,
48  const std::shared_ptr<avsCommon::utils::metrics::MetricRecorderInterface>& metricRecorder);
49 
52  void logout() override;
54 private:
64  const std::shared_ptr<registrationManager::CustomerDataManagerInterface>& dataManager,
65  const std::shared_ptr<registrationManager::RegistrationNotifierInterface>& notifier,
66  const std::shared_ptr<avsCommon::sdkInterfaces::AVSConnectionManagerInterface>& connectionManager,
67  const std::shared_ptr<avsCommon::sdkInterfaces::DirectiveSequencerInterface>& directiveSequencer,
68  const std::shared_ptr<avsCommon::utils::metrics::MetricRecorderInterface>& metricRecorder);
69 
71  std::shared_ptr<registrationManager::CustomerDataManagerInterface> m_dataManager;
73  std::shared_ptr<registrationManager::RegistrationNotifierInterface> m_notifier;
75  std::shared_ptr<avsCommon::sdkInterfaces::AVSConnectionManagerInterface> m_connectionManager;
77  std::shared_ptr<avsCommon::sdkInterfaces::DirectiveSequencerInterface> m_directiveSequencer;
79  std::shared_ptr<avsCommon::utils::metrics::MetricRecorderInterface> m_metricRecorder;
80 };
81 
82 } // namespace registrationManager
83 } // namespace alexaClientSDK
84 
85 #endif // REGISTRATIONMANAGER_REGISTRATIONMANAGER_H_
RegistrationManagerInterface.h
CustomerDataManagerInterface.h
RegistrationNotifierInterface.h
alexaClientSDK::registrationManager::RegistrationManager::createRegistrationManagerInterface
static std::shared_ptr< registrationManager::RegistrationManagerInterface > createRegistrationManagerInterface(const std::shared_ptr< registrationManager::CustomerDataManagerInterface > &dataManager, const std::shared_ptr< registrationManager::RegistrationNotifierInterface > &notifier, const std::shared_ptr< avsCommon::sdkInterfaces::AVSConnectionManagerInterface > &connectionManager, const std::shared_ptr< avsCommon::sdkInterfaces::DirectiveSequencerInterface > &directiveSequencer, const std::shared_ptr< avsCommon::utils::metrics::MetricRecorderInterface > &metricRecorder)
Definition: RegistrationManager.cpp:69
MetricRecorderInterface.h
AVSConnectionManagerInterface.h
alexaClientSDK
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
DirectiveSequencerInterface.h
alexaClientSDK::registrationManager::RegistrationManagerInterface
Definition: RegistrationManagerInterface.h:24
alexaClientSDK::registrationManager::RegistrationManager
Definition: RegistrationManager.h:31
alexaClientSDK::registrationManager::RegistrationManager::logout
void logout() override
Definition: RegistrationManager.cpp:104

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