AlexaClientSDK
1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <DavsRequester.h>
Public Member Functions | |
~DavsRequester () override | |
DavsCheckCallbackInterface Functions | |
bool | checkIfOkToDownload (std::shared_ptr< commonInterfaces::VendableArtifact > availableArtifact, size_t freeSpaceNeeded) override |
void | onCheckFailure (commonInterfaces::ResultCode errorCode) override |
DavsDownloadCallbackInterface Functions | |
void | onStart () override |
void | onArtifactDownloaded (std::shared_ptr< commonInterfaces::VendableArtifact > downloadedArtifact, const std::string &path) override |
void | onDownloadFailure (commonInterfaces::ResultCode errorCode) override |
void | onProgressUpdate (int progress) override |
Public Member Functions inherited from alexaClientSDK::acsdkAssets::manager::Requester | |
virtual | ~Requester () |
size_t | deleteAndCleanup () |
void | handleUpdate (bool accept) |
std::string | name () const |
const std::shared_ptr< commonInterfaces::ArtifactRequest > & | getArtifactRequest () const |
commonInterfaces::State | getState () const |
std::chrono::milliseconds | getLastUsed () const |
commonInterfaces::Priority | getPriority () const |
bool | isDownloaded () |
std::string | getArtifactPath () |
virtual void | setPriority (commonInterfaces::Priority newPriority) |
bool | validateWriteRequest (const std::string &name, int newValue) override |
Override of the CommunicationPropertyValidatorInterface. More... | |
std::string | functionToBeInvoked (const std::string &Name) override |
Override of the InvokeFunctionInterface. More... | |
Public Member Functions inherited from alexaClientSDK::acsdkCommunicationInterfaces::CommunicationPropertyValidatorInterface< int > | |
virtual | ~CommunicationPropertyValidatorInterface ()=default |
Public Member Functions inherited from alexaClientSDK::acsdkCommunicationInterfaces::FunctionInvokerInterface< std::string > | |
virtual | ~FunctionInvokerInterface ()=default |
virtual std::string | functionToBeInvoked (const std::string &name, Types... args)=0 |
Public Member Functions inherited from alexaClientSDK::acsdkAssets::davsInterfaces::DavsCheckCallbackInterface | |
virtual | ~DavsCheckCallbackInterface ()=default |
virtual bool | checkIfOkToDownload (std::shared_ptr< commonInterfaces::VendableArtifact > artifact, size_t freeSpaceNeeded)=0 |
Public Member Functions inherited from alexaClientSDK::acsdkAssets::davsInterfaces::DavsDownloadCallbackInterface | |
virtual | ~DavsDownloadCallbackInterface ()=default |
virtual void | onArtifactDownloaded (std::shared_ptr< commonInterfaces::VendableArtifact > artifact, const std::string &path)=0 |
Requester Functions | |
bool | download () override |
bool | validateWriteRequest (const std::string &name, int newValue) override |
|
inlineoverride |
Deregister this artifact from DAVS Client.
|
override |
|
overridevirtual |
Issues a download request if not already in progress.
Implements alexaClientSDK::acsdkAssets::manager::Requester.
|
override |
|
overridevirtual |
An event that is called when the check failed with a specific reason.
errorCode | reason for the failure. |
Implements alexaClientSDK::acsdkAssets::davsInterfaces::DavsCheckCallbackInterface.
|
overridevirtual |
An event that is called when the download fails, providing a reason for failure.
errorCode | reason for the failure. |
Implements alexaClientSDK::acsdkAssets::davsInterfaces::DavsDownloadCallbackInterface.
|
overridevirtual |
An event that is called periodically to denote the progress of the download.
progress | ALWAYS VALID, between 0 and 100 |
Implements alexaClientSDK::acsdkAssets::davsInterfaces::DavsDownloadCallbackInterface.
|
overridevirtual |
An event that is called as soon as the download has started.
Implements alexaClientSDK::acsdkAssets::davsInterfaces::DavsDownloadCallbackInterface.
|
overridevirtual |
Called when we want to write to a property. Used to validate before we write the newValue
propertyName | The name of the property |
newValue | The new value of the property |
Implements alexaClientSDK::acsdkCommunicationInterfaces::CommunicationPropertyValidatorInterface< int >.
AlexaClientSDK 1.26.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0