mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
- Implemented asynchronous hostname resolution in Peer list
This commit is contained in:
parent
8260159ca4
commit
f7c196dbcf
4 changed files with 169 additions and 10 deletions
|
@ -34,28 +34,33 @@
|
|||
#include <QTreeView>
|
||||
#include <QHash>
|
||||
#include "qtorrenthandle.h"
|
||||
#include "misc.h"
|
||||
|
||||
class QStandardItemModel;
|
||||
class QStandardItem;
|
||||
class QSortFilterProxyModel;
|
||||
class PeerListDelegate;
|
||||
class ReverseResolution;
|
||||
|
||||
class PeerListWidget : public QTreeView {
|
||||
Q_OBJECT
|
||||
|
||||
private:
|
||||
QStandardItemModel *listModel;
|
||||
PeerListDelegate *listDelegate;
|
||||
QSortFilterProxyModel * proxyModel;
|
||||
QHash<QString, QStandardItem*> peerItems;
|
||||
ReverseResolution *resolver;
|
||||
|
||||
public:
|
||||
PeerListWidget();
|
||||
~PeerListWidget();
|
||||
PeerListWidget();
|
||||
~PeerListWidget();
|
||||
|
||||
public slots:
|
||||
void loadPeers(QTorrentHandle &h);
|
||||
QStandardItem* addPeer(QString ip, peer_info peer);
|
||||
void updatePeer(QString ip, peer_info peer);
|
||||
public slots:
|
||||
void loadPeers(QTorrentHandle &h);
|
||||
QStandardItem* addPeer(QString ip, peer_info peer);
|
||||
void updatePeer(QString ip, peer_info peer);
|
||||
void handleResolved(QString ip, QString hostname);
|
||||
};
|
||||
|
||||
#endif // PEERLISTWIDGET_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue