16 #ifndef ACSDKBLUETOOTHINTERFACES_BLUETOOTHSTORAGEINTERFACE_H_ 17 #define ACSDKBLUETOOTHINTERFACES_BLUETOOTHSTORAGEINTERFACE_H_ 19 #include <unordered_map> 23 namespace acsdkBluetoothInterfaces {
43 virtual bool open() = 0;
46 virtual void close() = 0;
53 virtual bool clear() = 0;
88 virtual bool getMacToUuid(std::unordered_map<std::string, std::string>* macToUuid) = 0;
96 virtual bool getMacToCategory(std::unordered_map<std::string, std::string>* macToCategory) = 0;
104 virtual bool getUuidToMac(std::unordered_map<std::string, std::string>* uuidToMac) = 0;
112 virtual bool getUuidToCategory(std::unordered_map<std::string, std::string>* uuidToCategory) = 0;
122 virtual bool getOrderedMac(
bool ascending, std::list<std::string>* macs) = 0;
158 #endif // ACSDKBLUETOOTHINTERFACES_BLUETOOTHSTORAGEINTERFACE_H_ ::std::string string
Definition: gtest-port.h:1097
virtual bool getUuidToMac(std::unordered_map< std::string, std::string > *uuidToMac)=0
virtual bool getMacToCategory(std::unordered_map< std::string, std::string > *macToCategory)=0
virtual void close()=0
Close the database.
virtual bool getCategory(const std::string &uuid, std::string *category)=0
virtual bool getMacToUuid(std::unordered_map< std::string, std::string > *macToUuid)=0
virtual bool updateByCategory(const std::string &uuid, const std::string &category)=0
virtual bool getUuid(const std::string &mac, std::string *uuid)=0
A storage interface used for Bluetooth that should provide UUID to MAC mappings and maintain insertio...
Definition: BluetoothStorageInterface.h:26
virtual ~BluetoothStorageInterface()=default
Destructor.
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
virtual bool getMac(const std::string &uuid, std::string *mac)=0
virtual bool getUuidToCategory(std::unordered_map< std::string, std::string > *uuidToCategory)=0
virtual bool getOrderedMac(bool ascending, std::list< std::string > *macs)=0
virtual bool createDatabase()=0
virtual bool insertByMac(const std::string &mac, const std::string &uuid, bool overwrite)=0