AlexaClientSDK  1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
CustomerDataManager.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_CUSTOMERDATAMANAGER_H_
17 #define REGISTRATIONMANAGER_CUSTOMERDATAMANAGER_H_
18 
19 #include <memory>
20 #include <mutex>
21 #include <unordered_set>
22 
24 
25 namespace alexaClientSDK {
26 namespace registrationManager {
27 
29 public:
35  static std::shared_ptr<registrationManager::CustomerDataManagerInterface> createCustomerDataManagerInteface();
36 
40  virtual ~CustomerDataManager();
41 
46  void clearData() override;
48 
49 private:
51  std::mutex m_mutex;
52 
54  std::unordered_set<registrationManager::CustomerDataHandlerInterface*> m_dataHandlers;
55 };
56 
57 } // namespace registrationManager
58 } // namespace alexaClientSDK
59 
60 #endif // REGISTRATIONMANAGER_CUSTOMERDATAMANAGER_H_
alexaClientSDK::registrationManager::CustomerDataManager::createCustomerDataManagerInteface
static std::shared_ptr< registrationManager::CustomerDataManagerInterface > createCustomerDataManagerInteface()
Definition: CustomerDataManager.cpp:34
alexaClientSDK::registrationManager::CustomerDataManager
Definition: CustomerDataManager.h:28
CustomerDataManagerInterface.h
alexaClientSDK::registrationManager::CustomerDataManager::~CustomerDataManager
virtual ~CustomerDataManager()
Definition: CustomerDataManager.cpp:39
alexaClientSDK
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
alexaClientSDK::registrationManager::CustomerDataManager::removeDataHandler
void removeDataHandler(registrationManager::CustomerDataHandlerInterface *handler) override
Definition: CustomerDataManager.cpp:54
alexaClientSDK::registrationManager::CustomerDataManager::addDataHandler
void addDataHandler(registrationManager::CustomerDataHandlerInterface *handler) override
Definition: CustomerDataManager.cpp:45
alexaClientSDK::registrationManager::CustomerDataManager::clearData
void clearData() override
Definition: CustomerDataManager.cpp:59
alexaClientSDK::registrationManager::CustomerDataManagerInterface
Definition: CustomerDataManagerInterface.h:27
alexaClientSDK::registrationManager::CustomerDataHandlerInterface
Definition: CustomerDataHandlerInterface.h:28

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