You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
661 B
29 lines
661 B
// nodespage.h — Nodes table + dump in settings |
|
#pragma once |
|
|
|
#include <QWidget> |
|
#include <QTableWidget> |
|
#include <QPlainTextEdit> |
|
#include <QPushButton> |
|
|
|
class DbManager; |
|
|
|
class NodesPage : public QWidget { |
|
Q_OBJECT |
|
public: |
|
explicit NodesPage(DbManager* db, QWidget* parent = nullptr); |
|
void refreshNodes(); |
|
|
|
private slots: |
|
void onRefreshClicked(); |
|
|
|
private: |
|
static QString shortenKey(const QByteArray& key); |
|
static QString addrStr(const void* addr, int family); |
|
static QString protoStr(int protocol); |
|
|
|
DbManager* m_db; |
|
QTableWidget* m_table; |
|
QPlainTextEdit* m_dumpText; |
|
QPushButton* m_refreshBtn; |
|
};
|
|
|