2020-10-07 10:36:04 +00:00
|
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
2020-12-26 19:56:06 +00:00
|
|
|
// Copyright (c) 2020-2021, The Monero Project.
|
2020-10-07 10:36:04 +00:00
|
|
|
|
|
|
|
#ifndef FEATHER_TORINFODIALOG_H
|
|
|
|
#define FEATHER_TORINFODIALOG_H
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
|
|
|
|
#include "appcontext.h"
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class TorInfoDialog;
|
|
|
|
}
|
|
|
|
|
|
|
|
class TorInfoDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2021-05-18 15:59:18 +00:00
|
|
|
explicit TorInfoDialog(QSharedPointer<AppContext> ctx, QWidget *parent = nullptr);
|
2020-10-07 10:36:04 +00:00
|
|
|
~TorInfoDialog() override;
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
void onLogsUpdated();
|
|
|
|
|
2021-05-02 18:22:38 +00:00
|
|
|
private slots:
|
|
|
|
void onConnectionStatusChanged(bool connected);
|
|
|
|
void onApplySettings();
|
|
|
|
void onSettingsChanged();
|
|
|
|
void onStopTor();
|
2021-05-26 19:41:14 +00:00
|
|
|
void onShowInitSyncConfigDialog();
|
2021-05-02 18:22:38 +00:00
|
|
|
|
|
|
|
signals:
|
|
|
|
void torSettingsChanged();
|
|
|
|
|
2020-10-07 10:36:04 +00:00
|
|
|
private:
|
2021-05-02 18:22:38 +00:00
|
|
|
void initConnectionSettings();
|
|
|
|
void initPrivacyLevel();
|
|
|
|
|
2021-06-27 12:13:05 +00:00
|
|
|
QScopedPointer<Ui::TorInfoDialog> ui;
|
2021-05-18 15:59:18 +00:00
|
|
|
QSharedPointer<AppContext> m_ctx;
|
2020-10-07 10:36:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif //FEATHER_TORINFODIALOG_H
|