Net::ServiceID Struct Reference

#include <downloadmanager.h>

Static Public Member Functions

static ServiceID fromURL (const QUrl &url)

Public Attributes

QString hostName
int port

Detailed Description

Definition at line 45 of file downloadmanager.h.

Member Function Documentation

◆ fromURL()

Net::ServiceID Net::ServiceID::fromURL ( const QUrl &  url)

Definition at line 362 of file downloadmanager.cpp.

363 {
364  return {url.host(), url.port(80)};
365 }

References port.

Referenced by Net::DownloadManager::download(), RSS::Feed::Feed(), and Net::DownloadManager::handleReplyFinished().

Here is the caller graph for this function:

Member Data Documentation

◆ hostName

QString Net::ServiceID::hostName

Definition at line 47 of file downloadmanager.h.

Referenced by Net::operator==(), and Net::qHash().

◆ port

int Net::ServiceID::port

Definition at line 48 of file downloadmanager.h.

Referenced by fromURL(), Net::operator==(), and Net::qHash().

The documentation for this struct was generated from the following files: