16 #ifndef _TORSETTINGS_H 17 #define _TORSETTINGS_H 21 #include <QHostAddress> 42 bool apply(QString *errmsg = 0);
void setControlPort(quint16 port)
bool useRandomPassword() const
void setControlMethod(ControlMethod::Method method)
TorSettings(TorControl *torControl=0)
QList< quint16 > getRejectPlaintextPorts() const
TorControl * torControl() const
AuthenticationMethod getAuthenticationMethod() const
void setControlPassword(const QString &password)
void setWarnPlaintextPorts(const QList< quint16 > &ports)
void setControlAddress(const QHostAddress &addr)
QList< quint16 > getWarnPlaintextPorts() const
static QString randomPassword()
void setBootstrap(bool enabled)
ControlMethod::Method getControlMethod() const
void setSocketPath(const QString &path)
QString getDataDirectory() const
void setExecutable(const QString &torExecutable)
bool autoControlPort() const
void setAuthenticationMethod(AuthenticationMethod method)
AuthenticationMethod toAuthenticationMethod(const QString &authMethod) const
void setDataDirectory(const QString &dataDir)
void setAutoControlPort(const bool auto)
void setUseRandomPassword(bool useRandomPassword)
QString bootstrapFrom() const
void setTorrc(const QString &torrc)
void setRejectPlaintextPorts(const QList< quint16 > &ports)
QString toString(AuthenticationMethod type) const
QString getSocketPath() const
static QString hashPassword(const QString &password)
bool apply(QString *errmsg=0)
void setBootstrapFrom(const QString &from)
QString getExecutable() const
QString getControlPassword() const
quint16 getControlPort() const
QHostAddress getControlAddress() const