feather/src/dialog/torinfodialog.h

46 lines
857 B
C
Raw Normal View History

// SPDX-License-Identifier: BSD-3-Clause
2020-12-26 19:56:06 +00:00
// Copyright (c) 2020-2021, The Monero Project.
#ifndef FEATHER_TORINFODIALOG_H
#define FEATHER_TORINFODIALOG_H
#include <QDialog>
2021-05-02 18:22:38 +00:00
#include <QAbstractButton>
#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);
~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();
signals:
void torSettingsChanged();
private:
2021-05-02 18:22:38 +00:00
void initConnectionSettings();
void initPrivacyLevel();
Ui::TorInfoDialog *ui;
2021-05-18 15:59:18 +00:00
QSharedPointer<AppContext> m_ctx;
};
#endif //FEATHER_TORINFODIALOG_H