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.
34 lines
819 B
34 lines
819 B
![]()
5 years ago
|
#ifndef SAVERIMPL_H
|
||
|
#define SAVERIMPL_H
|
||
|
|
||
|
#include <map>
|
||
|
#include <string>
|
||
|
|
||
|
#include <QObject>
|
||
|
#include "QList"
|
||
|
|
||
|
#include "mainwindow.h"
|
||
|
#include "TunnelConfig.h"
|
||
|
#include "Saver.h"
|
||
|
|
||
|
class MainWindowItem;
|
||
|
class TunnelConfig;
|
||
|
|
||
|
class SaverImpl : public Saver
|
||
|
{
|
||
|
public:
|
||
|
SaverImpl(MainWindow *mainWindowPtr_, QList<MainWindowItem*> * configItems_, std::map<std::string,TunnelConfig*>* tunnelConfigs_);
|
||
|
virtual ~SaverImpl();
|
||
|
virtual bool save(const bool focusOnTunnel, const std::string& tunnelNameToFocus);
|
||
|
void setConfPath(QString& confpath_);
|
||
|
void setTunnelsConfPath(QString& tunconfpath_);
|
||
|
private:
|
||
|
QList<MainWindowItem*> * configItems;
|
||
|
std::map<std::string,TunnelConfig*>* tunnelConfigs;
|
||
|
QString confpath;
|
||
|
QString tunconfpath;
|
||
|
MainWindow* mainWindowPtr;
|
||
|
};
|
||
|
|
||
|
#endif // SAVERIMPL_H
|