feather/src/dialog/TorInfoDialog.h
2021-06-27 16:33:18 +02:00

45 lines
884 B
C++

// SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 2020-2021, The Monero Project.
#ifndef FEATHER_TORINFODIALOG_H
#define FEATHER_TORINFODIALOG_H
#include <QDialog>
#include "appcontext.h"
namespace Ui {
class TorInfoDialog;
}
class TorInfoDialog : public QDialog
{
Q_OBJECT
public:
explicit TorInfoDialog(QSharedPointer<AppContext> ctx, QWidget *parent = nullptr);
~TorInfoDialog() override;
public slots:
void onLogsUpdated();
private slots:
void onConnectionStatusChanged(bool connected);
void onApplySettings();
void onSettingsChanged();
void onStopTor();
void onShowInitSyncConfigDialog();
signals:
void torSettingsChanged();
private:
void initConnectionSettings();
void initPrivacyLevel();
QScopedPointer<Ui::TorInfoDialog> ui;
QSharedPointer<AppContext> m_ctx;
};
#endif //FEATHER_TORINFODIALOG_H