Marble
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;
46 friend bool operator==(
const DownloadPolicy & lhs,
const DownloadPolicy & rhs );
50 explicit DownloadPolicy(
const DownloadPolicyKey & key );
52 int maximumConnections()
const;
53 void setMaximumConnections(
const int );
55 DownloadPolicyKey key()
const;
58 DownloadPolicyKey m_key;
59 int m_maximumConnections;
62inline bool operator==(
const DownloadPolicy & lhs,
const DownloadPolicy & rhs )
64 return lhs.m_key == rhs.m_key && lhs.m_maximumConnections == rhs.m_maximumConnections;
Binds a QML item to a specific geodetic location in screen coordinates.
bool operator==(const QGraphicsApiFilter &reference, const QGraphicsApiFilter &sample)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:18:17 by
doxygen 1.10.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.