2020-03-10 13:49:04 +00:00
|
|
|
#ifndef SAVER_H
|
|
|
|
#define SAVER_H
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <QObject>
|
|
|
|
#include <QString>
|
2020-12-17 21:37:01 +00:00
|
|
|
class QWidget;
|
|
|
|
|
|
|
|
#include "I2pdQtTypes.h"
|
2020-03-10 13:49:04 +00:00
|
|
|
|
|
|
|
class Saver : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
Saver();
|
2020-12-17 21:37:01 +00:00
|
|
|
//FocusEnum::focusNone iff failures //??? wtf
|
|
|
|
virtual bool save(bool reloadAfterSave, const FocusEnum focusOn, const std::string& tunnelNameToFocus="", QWidget* widgetToFocus=nullptr)=0;
|
2020-03-10 13:49:04 +00:00
|
|
|
|
|
|
|
signals:
|
|
|
|
void reloadTunnelsConfigAndUISignal(const QString);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // SAVER_H
|