2020-03-10 13:49:04 +00:00
|
|
|
#ifndef DELAYEDSAVEMANAGER_H
|
|
|
|
#define DELAYEDSAVEMANAGER_H
|
|
|
|
|
|
|
|
#include "Saver.h"
|
2020-12-17 21:37:01 +00:00
|
|
|
#include "I2pdQtTypes.h"
|
2020-03-10 13:49:04 +00:00
|
|
|
|
|
|
|
class DelayedSaveManager
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
DelayedSaveManager();
|
|
|
|
|
|
|
|
virtual void setSaver(Saver* saver)=0;
|
|
|
|
|
|
|
|
typedef unsigned int DATA_SERIAL_TYPE;
|
|
|
|
|
2020-12-17 21:37:01 +00:00
|
|
|
virtual void delayedSave(bool reloadAfterSave, DATA_SERIAL_TYPE dataSerial, FocusEnum focusOn, std::string tunnelNameToFocus, QWidget* widgetToFocus)=0;
|
2020-03-10 13:49:04 +00:00
|
|
|
|
|
|
|
//returns false iff save failed
|
|
|
|
virtual bool appExiting()=0;
|
|
|
|
|
2020-12-17 21:37:01 +00:00
|
|
|
virtual FocusEnum getFocusOn()=0;
|
2020-03-10 15:22:49 +00:00
|
|
|
virtual std::string& getTunnelNameToFocus()=0;
|
2020-12-17 21:37:01 +00:00
|
|
|
virtual QWidget* getWidgetToFocus()=0;
|
2020-03-10 13:49:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // DELAYEDSAVEMANAGER_H
|