![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
Public Member Functions | |
bool | createDatabase () override |
bool | open () override |
void | close () override |
bool | enqueue (const NotificationIndicator ¬ificationIndicator) override |
bool | dequeue () override |
bool | peek (NotificationIndicator *notificationIndicator) override |
bool | setIndicatorState (IndicatorState state) override |
bool | getIndicatorState (IndicatorState *state) override |
bool | checkForEmptyQueue (bool *empty) override |
bool | clearNotificationIndicators () override |
bool | getQueueSize (int *size) override |
bool | waitForQueueSizeToBe (size_t size, std::chrono::milliseconds timeout=MY_WAIT_TIMEOUT) |
![]() | |
virtual | ~NotificationsStorageInterface ()=default |
Additional Inherited Members | |
![]() | |
using | IndicatorState = avsCommon::avs::IndicatorState |
Some useful shorthand. More... | |
A test class that acts as NotificationsStorage. This storage is implemented using a std::queue.
|
overridevirtual |
Checks if there are any NotificationIndicator records in the database.
[out] | empty | Whether there were any records in the database. |
Implements alexaClientSDK::acsdkNotificationsInterfaces::NotificationsStorageInterface.
|
overridevirtual |
Clears the database of all NotificationIndicators
.
Implements alexaClientSDK::acsdkNotificationsInterfaces::NotificationsStorageInterface.
|
overridevirtual |
Close the currently open database, if one is open.
Implements alexaClientSDK::acsdkNotificationsInterfaces::NotificationsStorageInterface.
|
overridevirtual |
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::acsdkNotificationsInterfaces::NotificationsStorageInterface.
|
overridevirtual |
Dequeues the next NotificationIndicator
in the database.
Implements alexaClientSDK::acsdkNotificationsInterfaces::NotificationsStorageInterface.
|
overridevirtual |
Enqueues a single NotificationIndicator
in the database.
notificationIndicator | The NotificationIndicator to enqueue. |
NotificationIndicator
was successfully enqueued. Implements alexaClientSDK::acsdkNotificationsInterfaces::NotificationsStorageInterface.
|
overridevirtual |
Retrieves the currently stored IndicatorState
.
[out] | state | A pointer to receive the currently stored IndicatorState |
Implements alexaClientSDK::acsdkNotificationsInterfaces::NotificationsStorageInterface.
|
overridevirtual |
Gets the size of the queue (number of records in the queue table).
[out] | size | A pointer to receive the calculated size. |
Implements alexaClientSDK::acsdkNotificationsInterfaces::NotificationsStorageInterface.
|
overridevirtual |
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::acsdkNotificationsInterfaces::NotificationsStorageInterface.
|
overridevirtual |
Peeks at the next NotificationIndicator
in the database.
[out] | notificationIndicator | A pointer to receive the peeked NotificationIndicator |
Implements alexaClientSDK::acsdkNotificationsInterfaces::NotificationsStorageInterface.
|
overridevirtual |
Stores the current IndicatorState
.
Implements alexaClientSDK::acsdkNotificationsInterfaces::NotificationsStorageInterface.
bool alexaClientSDK::acsdkNotifications::test::TestNotificationsStorage::waitForQueueSizeToBe | ( | size_t | size, |
std::chrono::milliseconds | timeout = MY_WAIT_TIMEOUT |
||
) |
Waits until the queue is a particular size.
size | The size to wait for. |
timeout | How much time to wait before failing. |
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0