5#include "DownloadPolicy.h"
10DownloadPolicyKey::DownloadPolicyKey()
16DownloadPolicyKey::DownloadPolicyKey(
const QStringList &hostNames,
const DownloadUsage usage)
17 : m_hostNames(hostNames)
22DownloadPolicyKey::DownloadPolicyKey(
const QString &hostName,
const DownloadUsage usage)
23 : m_hostNames(hostName)
33void DownloadPolicyKey::setHostNames(
const QStringList &hostNames)
35 m_hostNames = hostNames;
38DownloadUsage DownloadPolicyKey::usage()
const
43void DownloadPolicyKey::setUsage(DownloadUsage
const usage)
48bool DownloadPolicyKey::matches(
QString const &hostName,
const DownloadUsage usage)
const
50 return m_hostNames.contains(hostName) && m_usage == usage;
53DownloadPolicy::DownloadPolicy()
55 , m_maximumConnections(1)
59DownloadPolicy::DownloadPolicy(
const DownloadPolicyKey &key)
61 , m_maximumConnections(1)
65int DownloadPolicy::maximumConnections()
const
67 return m_maximumConnections;
70void DownloadPolicy::setMaximumConnections(
const int n)
72 m_maximumConnections = n;
75DownloadPolicyKey DownloadPolicy::key()
const
Binds a QML item to a specific geodetic location in screen coordinates.
@ DownloadBrowse
Browsing mode, normal operation of Marble, like a web browser.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:13 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.