16 #ifndef ACSDKALERTS_STORAGE_ALERTSTORAGEINTERFACE_H_ 17 #define ACSDKALERTS_STORAGE_ALERTSTORAGEINTERFACE_H_ 29 namespace acsdkAlerts {
60 virtual bool open() = 0;
65 virtual void close() = 0;
73 virtual bool store(std::shared_ptr<Alert> alert) = 0;
96 std::vector<std::shared_ptr<Alert>>* alertContainer,
97 std::shared_ptr<settings::DeviceSettingsManager> settingsManager) = 0;
116 virtual bool modify(std::shared_ptr<Alert> alert) = 0;
124 virtual bool erase(std::shared_ptr<Alert> alert) = 0;
144 virtual bool bulkErase(
const std::list<std::shared_ptr<Alert>>& alertList) = 0;
159 #endif // ACSDKALERTS_STORAGE_ALERTSTORAGEINTERFACE_H_ virtual bool createDatabase()=0
::std::string string
Definition: gtest-port.h:1097
virtual ~AlertStorageInterface()=default
virtual bool bulkErase(const std::list< std::shared_ptr< Alert >> &alertList)=0
virtual bool store(std::shared_ptr< Alert > alert)=0
virtual bool eraseOffline(const std::string &token, int id)=0
virtual bool loadOfflineAlerts(rapidjson::Value *alertContainer, rapidjson::Document::AllocatorType &allocator)=0
virtual bool modify(std::shared_ptr< Alert > alert)=0
virtual bool storeOfflineAlert(const std::string &token, const std::string &scheduledTime, const std::string &eventTime)=0
virtual bool clearDatabase()=0
virtual bool erase(std::shared_ptr< Alert > alert)=0
bool Value(const T &value, M matcher)
Definition: gmock-matchers.h:4347
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
Definition: AlertStorageInterface.h:36
virtual bool load(std::vector< std::shared_ptr< Alert >> *alertContainer, std::shared_ptr< settings::DeviceSettingsManager > settingsManager)=0