5#ifndef MARBLE_DOWNLOADPOLICY_H
6#define MARBLE_DOWNLOADPOLICY_H
11#include "MarbleGlobal.h"
16class DownloadPolicyKey
18 friend bool operator==(DownloadPolicyKey
const &lhs, DownloadPolicyKey
const &rhs);
22 DownloadPolicyKey(
const QStringList &hostNames,
const DownloadUsage usage);
23 DownloadPolicyKey(
const QString &hostName,
const DownloadUsage usage);
28 DownloadUsage usage()
const;
29 void setUsage(DownloadUsage
const usage);
31 bool matches(
const QString &hostName,
const DownloadUsage usage)
const;
35 DownloadUsage m_usage;
38inline bool operator==(
const DownloadPolicyKey &lhs,
const DownloadPolicyKey &rhs)
40 return lhs.m_hostNames == rhs.m_hostNames && lhs.m_usage == rhs.m_usage;
45 friend bool operator==(
const DownloadPolicy &lhs,
const DownloadPolicy &rhs);
49 explicit DownloadPolicy(
const DownloadPolicyKey &key);
51 int maximumConnections()
const;
52 void setMaximumConnections(
const int);
54 DownloadPolicyKey key()
const;
57 DownloadPolicyKey m_key;
58 int m_maximumConnections;
61inline bool operator==(
const DownloadPolicy &lhs,
const DownloadPolicy &rhs)
63 return lhs.m_key == rhs.m_key && lhs.m_maximumConnections == rhs.m_maximumConnections;
bool operator==(const StyleDelim &l, const StyleDelim &r)
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 8 2024 12:02:42 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.