2 #include <Poco/Timer.h>
3 #include <Poco/AtomicCounter.h>
4 #include <Poco/Timespan.h>
6 #include "credentials/CredentialsStorage.h"
21 void setFile(
const std::string &path);
44 const Poco::SharedPtr<Credentials> credentials)
override;
46 void remove(
const DeviceID &device)
override;
47 void clear()
override;
54 void onSaveLater(Poco::Timer &);
56 void saveUnlocked()
const;
60 std::string m_confRoot;
62 Poco::TimerCallback<FileCredentialsStorage> m_callback;
63 Poco::AtomicCounter m_timerRunning;
64 Poco::Timespan m_saveDelayTime;
void setSaveDelay(const Poco::Timespan &delay)
Definition: FileCredentialsStorage.cpp:40
Definition: CredentialsStorage.h:16
void setConfigRoot(const std::string &root)
Definition: FileCredentialsStorage.cpp:59
void saveLater()
Definition: FileCredentialsStorage.cpp:124
Definition: FileCredentialsStorage.h:16
Definition: DeviceID.h:17