mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-10 15:20:25 -04:00
added basic hidden service creation. Untested.
This commit is contained in:
parent
f5ce711ad6
commit
659367ca96
6 changed files with 145 additions and 100 deletions
|
@ -60,6 +60,7 @@ class TorManager : public QObject
|
|||
Q_PROPERTY(QString dataDirectory READ dataDirectory WRITE setDataDirectory)
|
||||
|
||||
public:
|
||||
|
||||
explicit TorManager(QObject *parent = 0);
|
||||
static TorManager *instance();
|
||||
|
||||
|
@ -69,6 +70,12 @@ public:
|
|||
QString dataDirectory() const;
|
||||
void setDataDirectory(const QString &path);
|
||||
|
||||
QString hiddenServiceDirectory() const;
|
||||
void setHiddenServiceDirectory(const QString &path);
|
||||
|
||||
// Starts a hidden service, loading it from the config directory that has been set earlier.
|
||||
bool setupHiddenService() ;
|
||||
|
||||
// True on first run or when the Tor configuration wizard needs to be shown
|
||||
bool configurationNeeded() const;
|
||||
|
||||
|
@ -80,6 +87,9 @@ public:
|
|||
public slots:
|
||||
void start();
|
||||
|
||||
private slots:
|
||||
void hiddenServicePrivateKeyChanged();
|
||||
|
||||
signals:
|
||||
void configurationNeededChanged();
|
||||
void errorChanged();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue