mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-06-16 02:56:52 +02:00
some work on qt
This commit is contained in:
parent
26ad793d82
commit
ee73ee365f
13 changed files with 466 additions and 75 deletions
33
qt/i2pd_qt/SaverImpl.h
Normal file
33
qt/i2pd_qt/SaverImpl.h
Normal file
|
@ -0,0 +1,33 @@
|
|||
#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
|
Loading…
Add table
Add a link
Reference in a new issue