Alexa Auto SDK  2.3.0
ContactUploader.h
1 /*
2  * Copyright 2018-2020 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 AACE_CONTACTUPLOADER_CONTACTUPLOADER_H
17 #define AACE_CONTACTUPLOADER_CONTACTUPLOADER_H
18 
19 #include "AACE/Core/PlatformInterface.h"
20 #include "ContactUploaderEngineInterface.h"
21 
24 namespace aace {
25 namespace contactUploader {
26 
36 protected:
37  ContactUploader() = default;
38 
39 public:
40  virtual ~ContactUploader();
41 
46  using ContactUploaderStatus = aace::contactUploader::ContactUploaderEngineInterface::ContactUploaderStatus;
47 
57  bool addContactsBegin();
58 
68  bool addContactsEnd();
69 
80  bool addContactsCancel();
81 
117  bool addContact(const std::string& contact);
118 
129  bool removeUploadedContacts();
130 
138  virtual void contactsUploaderStatusChanged(ContactUploaderStatus status, const std::string& info) = 0;
139 
146  void setEngineInterface(std::shared_ptr<ContactUploaderEngineInterface> contactUploaderEngineInterface);
147 
148 private:
149  std::shared_ptr<ContactUploaderEngineInterface> m_contactUploaderEngineInterface;
150 };
151 
152 } // namespace contactUploader
153 } // namespace aace
154 
155 #endif // AACE_CONTACTUPLOADER_CONTACTUPLOADER_H
Definition: PlatformInterface.h:29
Definition: ContactUploader.h:35
Definition: AddressBook.h:26
bool removeUploadedContacts()
Definition: ContactUploader.cpp:49
bool addContactsBegin()
Definition: ContactUploader.cpp:21
bool addContactsEnd()
Definition: ContactUploader.cpp:28
bool addContact(const std::string &contact)
Definition: ContactUploader.cpp:42
bool addContactsCancel()
Definition: ContactUploader.cpp:35
virtual void contactsUploaderStatusChanged(ContactUploaderStatus status, const std::string &info)=0

Alexa Auto SDK 2.3.0 - Copyright 2017-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0