AlexaClientSDK  1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Namespaces | Classes | Functions | Variables
alexaClientSDK::settings::storage Namespace Reference

Namespaces

 test
 

Classes

class  DeviceSettingStorageInterface
 
class  SQLiteDeviceSettingStorage
 

Functions

static const std::string TAG ("SQLiteDeviceSettingStorage")
 String to identify log entries originating from this file. More...
 

Variables

static const std::string DEVICE_SETTING_DATABASE_CONFIGURATION_ROOT_KEY = "deviceSettings"
 The key in our config file to find the root of settings for this database. More...
 
static const std::string DEVICE_SETTING_DATABASE_DB_FILE_PATH_KEY = "databaseFilePath"
 The key in our config file to find the database file path. More...
 
static const std::string DEVICE_SETTING_DATABASE_DB_COMPONENT_TABLE_NAMES_SEPARATOR = "_"
 Component and table name separator in DB table name. More...
 
static const std::string DEVICE_SETTINGS_TABLE_NAME = "deviceSettings"
 The name of the settings table. More...
 
static const std::string DEVICE_SETTINGS_KEY_COLUMN_NAME = "key"
 The name of the column to store the settings key. More...
 
static const std::string DEVICE_SETTINGS_VALUE_COLUMN_NAME = "value"
 The name of the column to store the settings value. More...
 
static const std::string DEVICE_SETTINGS_STATUS_COLUMN_NAME = "status"
 The name of the column to store the settings status. More...
 
static const int KEY_INDEX = 0
 The index of key in the tuple vector of data. More...
 
static const int VALUE_INDEX = 1
 The index of value in the tuple vector of data. More...
 
static const int STATUS_INDEX = 2
 The index of status in the tuple vector of data. More...
 
static const std::string CREATE_DEVICE_SETTINGS_TABLE_SQL_STRING
 The SQL string to create the alert configurations table. More...
 

Function Documentation

◆ TAG()

static const std::string alexaClientSDK::settings::storage::TAG ( "SQLiteDeviceSettingStorage"  )
static

String to identify log entries originating from this file.

Variable Documentation

◆ CREATE_DEVICE_SETTINGS_TABLE_SQL_STRING

const std::string alexaClientSDK::settings::storage::CREATE_DEVICE_SETTINGS_TABLE_SQL_STRING
static
Initial value:
= std::string("CREATE TABLE ") +
DEVICE_SETTINGS_KEY_COLUMN_NAME + " TEXT PRIMARY KEY NOT NULL," +
DEVICE_SETTINGS_VALUE_COLUMN_NAME+ " TEXT NOT NULL," +
static const std::string DEVICE_SETTINGS_VALUE_COLUMN_NAME
The name of the column to store the settings value.
Definition: SQLiteDeviceSettingStorage.cpp:50
static const std::string DEVICE_SETTINGS_TABLE_NAME
The name of the settings table.
Definition: SQLiteDeviceSettingStorage.cpp:44
static const std::string DEVICE_SETTINGS_STATUS_COLUMN_NAME
The name of the column to store the settings status.
Definition: SQLiteDeviceSettingStorage.cpp:53
static const std::string DEVICE_SETTINGS_KEY_COLUMN_NAME
The name of the column to store the settings key.
Definition: SQLiteDeviceSettingStorage.cpp:47

The SQL string to create the alert configurations table.

◆ DEVICE_SETTING_DATABASE_CONFIGURATION_ROOT_KEY

const std::string alexaClientSDK::settings::storage::DEVICE_SETTING_DATABASE_CONFIGURATION_ROOT_KEY = "deviceSettings"
static

The key in our config file to find the root of settings for this database.

◆ DEVICE_SETTING_DATABASE_DB_COMPONENT_TABLE_NAMES_SEPARATOR

const std::string alexaClientSDK::settings::storage::DEVICE_SETTING_DATABASE_DB_COMPONENT_TABLE_NAMES_SEPARATOR = "_"
static

Component and table name separator in DB table name.

◆ DEVICE_SETTING_DATABASE_DB_FILE_PATH_KEY

const std::string alexaClientSDK::settings::storage::DEVICE_SETTING_DATABASE_DB_FILE_PATH_KEY = "databaseFilePath"
static

The key in our config file to find the database file path.

◆ DEVICE_SETTINGS_KEY_COLUMN_NAME

const std::string alexaClientSDK::settings::storage::DEVICE_SETTINGS_KEY_COLUMN_NAME = "key"
static

The name of the column to store the settings key.

◆ DEVICE_SETTINGS_STATUS_COLUMN_NAME

const std::string alexaClientSDK::settings::storage::DEVICE_SETTINGS_STATUS_COLUMN_NAME = "status"
static

The name of the column to store the settings status.

◆ DEVICE_SETTINGS_TABLE_NAME

const std::string alexaClientSDK::settings::storage::DEVICE_SETTINGS_TABLE_NAME = "deviceSettings"
static

The name of the settings table.

◆ DEVICE_SETTINGS_VALUE_COLUMN_NAME

const std::string alexaClientSDK::settings::storage::DEVICE_SETTINGS_VALUE_COLUMN_NAME = "value"
static

The name of the column to store the settings value.

◆ KEY_INDEX

const int alexaClientSDK::settings::storage::KEY_INDEX = 0
static

The index of key in the tuple vector of data.

◆ STATUS_INDEX

const int alexaClientSDK::settings::storage::STATUS_INDEX = 2
static

The index of status in the tuple vector of data.

◆ VALUE_INDEX

const int alexaClientSDK::settings::storage::VALUE_INDEX = 1
static

The index of value in the tuple vector of data.

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