AlexaClientSDK
1.19.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
Public Member Functions | |
MOCK_METHOD0 (createDatabase, bool()) | |
MOCK_METHOD0 (open, bool()) | |
MOCK_METHOD0 (close, void()) | |
MOCK_METHOD1 (store, bool(std::shared_ptr< Alert >)) | |
MOCK_METHOD2 (load, bool(std::vector< std::shared_ptr< Alert >> *, std::shared_ptr< settings::DeviceSettingsManager >)) | |
MOCK_METHOD1 (modify, bool(std::shared_ptr< Alert >)) | |
MOCK_METHOD1 (erase, bool(std::shared_ptr< Alert >)) | |
MOCK_METHOD1 (bulkErase, bool(const std::list< std::shared_ptr< Alert >> &)) | |
MOCK_METHOD0 (clearDatabase, bool()) | |
MockAlertStorage () | |
bool | createDatabase () |
bool | open () |
bool | isOpen () |
void | close () |
bool | alertExists (const std::string &token) |
bool | store (std::shared_ptr< Alert > alert) |
bool | load (std::vector< std::shared_ptr< Alert >> *alertContainer, std::shared_ptr< settings::DeviceSettingsManager > settingsManager) |
bool | erase (const std::vector< int > &alertDbIds) |
void | setCreateDatabaseRetVal (bool retVal) |
void | setOpenRetVal (bool retVal) |
void | setIsOpenRetVal (bool retVal) |
void | setAlertExistsRetVal (bool retVal) |
void | setStoreRetVal (bool retVal) |
void | setLoadRetVal (bool retVal) |
void | setEraseRetVal (bool retVal) |
void | setAlerts (std::vector< std::shared_ptr< TestAlert >> alertsToAdd) |
MOCK_METHOD1 (bulkErase, bool(const std::list< std::shared_ptr< Alert >> &)) | |
MOCK_METHOD1 (erase, bool(std::shared_ptr< Alert >)) | |
MOCK_METHOD1 (modify, bool(std::shared_ptr< Alert >)) | |
MOCK_METHOD0 (clearDatabase, bool()) | |
Public Member Functions inherited from alexaClientSDK::capabilityAgents::alerts::storage::AlertStorageInterface | |
virtual | ~AlertStorageInterface ()=default |
virtual bool | modify (std::shared_ptr< Alert > alert)=0 |
virtual bool | erase (std::shared_ptr< Alert > alert)=0 |
virtual bool | bulkErase (const std::list< std::shared_ptr< Alert >> &alertList)=0 |
virtual bool | clearDatabase ()=0 |
Mock of AlertStorageInterface
.
|
inline |
|
inline |
|
inlinevirtual |
Close the currently open database, if one is open.
Implements alexaClientSDK::capabilityAgents::alerts::storage::AlertStorageInterface.
|
inlinevirtual |
Creates a new database. If a database is already being handled by this object or there is another internal error, then this function returns false.
true
If the database is created ok, or false
if a database is already being handled by this object or there is a problem creating the database. Implements alexaClientSDK::capabilityAgents::alerts::storage::AlertStorageInterface.
|
inline |
|
inline |
|
inlinevirtual |
Loads all alerts in the database.
[out] | alertContainer | The container where alerts should be stored. |
settingsManager | A settingsManager object that manages alarm volume ramp setting. |
Alerts
were successfully loaded. Implements alexaClientSDK::capabilityAgents::alerts::storage::AlertStorageInterface.
alexaClientSDK::capabilityAgents::alerts::test::MockAlertStorage::MOCK_METHOD0 | ( | createDatabase | , |
bool() | |||
) |
alexaClientSDK::capabilityAgents::alerts::test::MockAlertStorage::MOCK_METHOD0 | ( | open | , |
bool() | |||
) |
alexaClientSDK::capabilityAgents::alerts::test::MockAlertStorage::MOCK_METHOD0 | ( | close | , |
void() | |||
) |
alexaClientSDK::capabilityAgents::alerts::test::MockAlertStorage::MOCK_METHOD0 | ( | clearDatabase | , |
bool() | |||
) |
alexaClientSDK::capabilityAgents::alerts::test::MockAlertStorage::MOCK_METHOD0 | ( | clearDatabase | , |
bool() | |||
) |
alexaClientSDK::capabilityAgents::alerts::test::MockAlertStorage::MOCK_METHOD1 | ( | store | , |
bool(std::shared_ptr< Alert >) | |||
) |
alexaClientSDK::capabilityAgents::alerts::test::MockAlertStorage::MOCK_METHOD1 | ( | modify | , |
bool(std::shared_ptr< Alert >) | |||
) |
alexaClientSDK::capabilityAgents::alerts::test::MockAlertStorage::MOCK_METHOD1 | ( | erase | , |
bool(std::shared_ptr< Alert >) | |||
) |
alexaClientSDK::capabilityAgents::alerts::test::MockAlertStorage::MOCK_METHOD1 | ( | bulkErase | , |
bool(const std::list< std::shared_ptr< Alert >> &) | |||
) |
alexaClientSDK::capabilityAgents::alerts::test::MockAlertStorage::MOCK_METHOD1 | ( | bulkErase | , |
bool(const std::list< std::shared_ptr< Alert >> &) | |||
) |
alexaClientSDK::capabilityAgents::alerts::test::MockAlertStorage::MOCK_METHOD1 | ( | erase | , |
bool(std::shared_ptr< Alert >) | |||
) |
alexaClientSDK::capabilityAgents::alerts::test::MockAlertStorage::MOCK_METHOD1 | ( | modify | , |
bool(std::shared_ptr< Alert >) | |||
) |
alexaClientSDK::capabilityAgents::alerts::test::MockAlertStorage::MOCK_METHOD2 | ( | load | , |
bool(std::vector< std::shared_ptr< Alert >> *, std::shared_ptr< settings::DeviceSettingsManager >) | |||
) |
|
inlinevirtual |
Open an existing database. If this object is already managing an open database, or there is a problem opening the database, this function returns false.
true
If the database is opened ok, false
if this object is already managing an open database, or if there is another internal reason the database could not be opened. Implements alexaClientSDK::capabilityAgents::alerts::storage::AlertStorageInterface.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
Stores a single Alert
in the database.
The | Alert to store. |
Alert
was successfully stored. Implements alexaClientSDK::capabilityAgents::alerts::storage::AlertStorageInterface.
AlexaClientSDK 1.19.0 - Copyright 2016-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0