qBittorrent
Net Namespace Reference

Classes

class  DNSUpdater
 
struct  ServiceID
 
class  DownloadRequest
 
struct  DownloadResult
 
class  DownloadHandler
 
class  DownloadManager
 
class  GeoIPManager
 
class  PortForwarder
 
struct  ProxyConfiguration
 
class  ProxyConfigurationManager
 
class  ReverseResolution
 
class  Smtp
 

Enumerations

enum class  DownloadStatus { Success , RedirectedToMagnet , Failed }
 
enum class  ProxyType {
  None = 0 , HTTP = 1 , SOCKS5 = 2 , HTTP_PW = 3 ,
  SOCKS5_PW = 4 , SOCKS4 = 5
}
 

Functions

uint qHash (const ServiceID &serviceID, uint seed)
 
bool operator== (const ServiceID &lhs, const ServiceID &rhs)
 
bool operator== (const ProxyConfiguration &left, const ProxyConfiguration &right)
 
bool operator!= (const ProxyConfiguration &left, const ProxyConfiguration &right)
 

Enumeration Type Documentation

◆ DownloadStatus

enum Net::DownloadStatus
strong
Enumerator
Success 
RedirectedToMagnet 
Failed 

Definition at line 56 of file downloadmanager.h.

◆ ProxyType

enum Net::ProxyType
strong
Enumerator
None 
HTTP 
SOCKS5 
HTTP_PW 
SOCKS5_PW 
SOCKS4 

Definition at line 39 of file proxyconfigurationmanager.h.

40  {
41  None = 0,
42  HTTP = 1,
43  SOCKS5 = 2,
44  HTTP_PW = 3,
45  SOCKS5_PW = 4,
46  SOCKS4 = 5
47  };

Function Documentation

◆ operator!=()

bool Net::operator!= ( const ProxyConfiguration left,
const ProxyConfiguration right 
)

Definition at line 42 of file proxyconfigurationmanager.cpp.

43 {
44  return !(left == right);
45 }

◆ operator==() [1/2]

bool Net::operator== ( const ProxyConfiguration left,
const ProxyConfiguration right 
)

◆ operator==() [2/2]

bool Net::operator== ( const ServiceID lhs,
const ServiceID rhs 
)

Definition at line 372 of file downloadmanager.cpp.

373 {
374  return ((lhs.hostName == rhs.hostName) && (lhs.port == rhs.port));
375 }

References Net::ServiceID::hostName, and Net::ServiceID::port.

◆ qHash()

uint Net::qHash ( const ServiceID serviceID,
uint  seed 
)

Definition at line 367 of file downloadmanager.cpp.

368 {
369  return ::qHash(serviceID.hostName, seed) ^ ::qHash(serviceID.port);
370 }
uint qHash(const TorrentID &key, uint seed)
Definition: infohash.cpp:86

References Net::ServiceID::hostName, Net::ServiceID::port, and BitTorrent::qHash().

Here is the call graph for this function: