mirror of https://github.com/PurpleI2P/i2pd.git
I2P: End-to-End encrypted and anonymous Internet
https://i2pd.website/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
541 B
25 lines
541 B
5 years ago
|
#ifndef DELAYEDSAVEMANAGER_H
|
||
|
#define DELAYEDSAVEMANAGER_H
|
||
|
|
||
|
#include "Saver.h"
|
||
|
|
||
|
class DelayedSaveManager
|
||
|
{
|
||
|
public:
|
||
|
DelayedSaveManager();
|
||
|
|
||
|
virtual void setSaver(Saver* saver)=0;
|
||
|
|
||
|
typedef unsigned int DATA_SERIAL_TYPE;
|
||
|
|
||
|
virtual void delayedSave(DATA_SERIAL_TYPE dataSerial, bool needsTunnelFocus, std::string tunnelNameToFocus)=0;
|
||
|
|
||
|
//returns false iff save failed
|
||
|
virtual bool appExiting()=0;
|
||
|
|
||
|
virtual bool needsFocusOnTunnel()=0;
|
||
|
virtual std::string getTunnelNameToFocus()=0;
|
||
|
};
|
||
|
|
||
|
#endif // DELAYEDSAVEMANAGER_H
|