Alexa Auto SDK  2.0.0
ContactUploader.h
1 /*
2  * Copyright 2018-2019 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 
48 
58  bool addContactsBegin();
59 
69  bool addContactsEnd();
70 
81  bool addContactsCancel();
82 
118  bool addContact( const std::string& contact );
119 
130  bool removeUploadedContacts();
131 
139  virtual void contactsUploaderStatusChanged( ContactUploaderStatus status, const std::string& info ) = 0;
140 
147  void setEngineInterface( std::shared_ptr<ContactUploaderEngineInterface> contactUploaderEngineInterface );
148 
149 private:
150  std::shared_ptr<ContactUploaderEngineInterface> m_contactUploaderEngineInterface;
151 };
152 
153 } // aace::contactUploader
154 } // aace
155 
156 #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.0.0 - Copyright 2017-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0