AlexaClientSDK  1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
TestableAttachmentManager.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_UTILS_TEST_AVSCOMMON_UTILS_COMMON_TESTABLEATTACHMENTMANAGER_H_
17 #define ALEXA_CLIENT_SDK_AVSCOMMON_UTILS_TEST_AVSCOMMON_UTILS_COMMON_TESTABLEATTACHMENTMANAGER_H_
18 
20 
21 namespace alexaClientSDK {
22 namespace avsCommon {
23 namespace utils {
24 
30 public:
35 
36  std::string generateAttachmentId(const std::string& contextId, const std::string& contentId) const override;
37 
38  bool setAttachmentTimeoutMinutes(std::chrono::minutes timeoutMinutes) override;
39 
40  std::unique_ptr<avsCommon::avs::attachment::AttachmentWriter> createWriter(
41  const std::string& attachmentId,
42  avsCommon::utils::sds::WriterPolicy policy) override;
43 
44  std::unique_ptr<avsCommon::avs::attachment::AttachmentReader> createReader(
45  const std::string& attachmentId,
46  avsCommon::utils::sds::ReaderPolicy policy) override;
47 
48 private:
50  std::unique_ptr<avsCommon::avs::attachment::AttachmentManager> m_manager;
51 };
52 
53 } // namespace utils
54 } // namespace avsCommon
55 } // namespace alexaClientSDK
56 
57 #endif // ALEXA_CLIENT_SDK_AVSCOMMON_UTILS_TEST_AVSCOMMON_UTILS_COMMON_TESTABLEATTACHMENTMANAGER_H_
std::unique_ptr< avsCommon::avs::attachment::AttachmentReader > createReader(const std::string &attachmentId, avsCommon::utils::sds::ReaderPolicy policy) override
Definition: TestableAttachmentManager.cpp:68
WriterPolicy
Specifies the policy to use for writing to the stream.
Definition: WriterPolicy.h:25
std::unique_ptr< avsCommon::avs::attachment::AttachmentWriter > createWriter(const std::string &attachmentId, avsCommon::utils::sds::WriterPolicy policy) override
Definition: TestableAttachmentManager.cpp:49
bool setAttachmentTimeoutMinutes(std::chrono::minutes timeoutMinutes) override
Definition: TestableAttachmentManager.cpp:45
Definition: TestableAttachmentManager.h:29
std::string generateAttachmentId(const std::string &contextId, const std::string &contentId) const override
Definition: TestableAttachmentManager.cpp:40
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
ReaderPolicy
Specifies the policy to use for reading from the stream.
Definition: ReaderPolicy.h:25
TestableAttachmentManager()
Definition: TestableAttachmentManager.cpp:34

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