24 #include <util/constants.h>
25 #include <ktorrent_export.h>
35 struct KTORRENT_EXPORT
Port
42 Port(bt::Uint16 number,Protocol proto,
bool forward);
45 bool operator == (
const Port & p)
const;
75 class KTORRENT_EXPORT
PortList :
public QList<Port>
88 void addNewPort(bt::Uint16 number,Protocol proto,
bool forward);
108 inline uint qHash(
const net::Port & port) {
return qHash((uint)port.number);}