QtNetwork: declare some classes as shared

Change-Id: Ib3eaba59836529ad0cf8e4353b54dd0cd31fd1ad
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
This commit is contained in:
Marc Mutz 2012-05-07 19:48:52 +02:00 committed by Qt by Nokia
parent 8633f7ac0d
commit d16b02bd17
14 changed files with 38 additions and 2 deletions

View File

@ -104,6 +104,8 @@ private:
QSharedDataPointer<QNetworkCacheMetaDataPrivate> d;
};
Q_DECLARE_SHARED(QNetworkCacheMetaData)
Q_NETWORK_EXPORT QDataStream &operator<<(QDataStream &, const QNetworkCacheMetaData &);
Q_NETWORK_EXPORT QDataStream &operator>>(QDataStream &, QNetworkCacheMetaData &);

View File

@ -81,6 +81,8 @@ private:
friend class QHttpMultiPartIODevice;
};
Q_DECLARE_SHARED(QHttpPart)
class QHttpMultiPartPrivate;
class Q_NETWORK_EXPORT QHttpMultiPart : public QObject

View File

@ -109,7 +109,8 @@ private:
QSharedDataPointer<QNetworkCookiePrivate> d;
friend class QNetworkCookiePrivate;
};
Q_DECLARE_TYPEINFO(QNetworkCookie, Q_MOVABLE_TYPE);
Q_DECLARE_SHARED(QNetworkCookie)
#ifndef QT_NO_DEBUG_STREAM
class QDebug;

View File

@ -153,6 +153,8 @@ private:
friend class QNetworkRequestPrivate;
};
Q_DECLARE_SHARED(QNetworkRequest)
QT_END_NAMESPACE
Q_DECLARE_METATYPE(QNetworkRequest)

View File

@ -124,6 +124,8 @@ private:
QExplicitlySharedDataPointer<QNetworkConfigurationPrivate> d;
};
Q_DECLARE_SHARED(QNetworkConfiguration)
QT_END_NAMESPACE
Q_DECLARE_METATYPE(QNetworkConfiguration)

View File

@ -82,6 +82,8 @@ private:
friend class QDnsLookupRunnable;
};
Q_DECLARE_SHARED(QDnsDomainNameRecord)
class Q_NETWORK_EXPORT QDnsHostAddressRecord
{
public:
@ -102,6 +104,8 @@ private:
friend class QDnsLookupRunnable;
};
Q_DECLARE_SHARED(QDnsHostAddressRecord)
class Q_NETWORK_EXPORT QDnsMailExchangeRecord
{
public:
@ -123,6 +127,8 @@ private:
friend class QDnsLookupRunnable;
};
Q_DECLARE_SHARED(QDnsMailExchangeRecord)
class Q_NETWORK_EXPORT QDnsServiceRecord
{
public:
@ -146,6 +152,8 @@ private:
friend class QDnsLookupRunnable;
};
Q_DECLARE_SHARED(QDnsServiceRecord)
class Q_NETWORK_EXPORT QDnsTextRecord
{
public:
@ -166,6 +174,8 @@ private:
friend class QDnsLookupRunnable;
};
Q_DECLARE_SHARED(QDnsTextRecord)
class Q_NETWORK_EXPORT QDnsLookup : public QObject
{
Q_OBJECT

View File

@ -85,6 +85,8 @@ private:
QScopedPointer<QNetworkAddressEntryPrivate> d;
};
Q_DECLARE_SHARED(QNetworkAddressEntry)
class QNetworkInterfacePrivate;
class Q_NETWORK_EXPORT QNetworkInterface
{
@ -125,6 +127,8 @@ private:
QSharedDataPointer<QNetworkInterfacePrivate> d;
};
Q_DECLARE_SHARED(QNetworkInterface)
Q_DECLARE_OPERATORS_FOR_FLAGS(QNetworkInterface::InterfaceFlags)
#ifndef QT_NO_DEBUG_STREAM

View File

@ -119,7 +119,8 @@ public:
private:
QSharedDataPointer<QNetworkProxyQueryPrivate> d;
};
Q_DECLARE_TYPEINFO(QNetworkProxyQuery, Q_MOVABLE_TYPE);
Q_DECLARE_SHARED(QNetworkProxyQuery)
class QNetworkProxyPrivate;
@ -193,6 +194,8 @@ public:
private:
QSharedDataPointer<QNetworkProxyPrivate> d;
};
Q_DECLARE_SHARED(QNetworkProxy)
Q_DECLARE_OPERATORS_FOR_FLAGS(QNetworkProxy::Capabilities)
class Q_NETWORK_EXPORT QNetworkProxyFactory

View File

@ -146,6 +146,7 @@ private:
friend class QSslCertificatePrivate;
friend class QSslSocketBackendPrivate;
};
Q_DECLARE_SHARED(QSslCertificate)
#ifndef QT_NO_DEBUG_STREAM
class QDebug;

View File

@ -79,6 +79,8 @@ private:
QSharedDataPointer<QSslCertificateExtensionPrivate> d;
};
Q_DECLARE_SHARED(QSslCertificateExtension)
#endif // QT_NO_SSL
QT_END_NAMESPACE

View File

@ -86,6 +86,8 @@ private:
friend class QSslSocketBackendPrivate;
};
Q_DECLARE_SHARED(QSslCipher)
#ifndef QT_NO_DEBUG_STREAM
class QDebug;
Q_NETWORK_EXPORT QDebug operator<<(QDebug debug, const QSslCipher &cipher);

View File

@ -133,6 +133,8 @@ private:
QSharedDataPointer<QSslConfigurationPrivate> d;
};
Q_DECLARE_SHARED(QSslConfiguration)
QT_END_NAMESPACE
Q_DECLARE_METATYPE(QSslConfiguration)

View File

@ -110,6 +110,7 @@ public:
private:
QScopedPointer<QSslErrorPrivate> d;
};
Q_DECLARE_SHARED(QSslError)
#ifndef QT_NO_DEBUG_STREAM
class QDebug;

View File

@ -99,6 +99,8 @@ private:
friend class QSslCertificate;
};
Q_DECLARE_SHARED(QSslKey)
#ifndef QT_NO_DEBUG_STREAM
class QDebug;
Q_NETWORK_EXPORT QDebug operator<<(QDebug debug, const QSslKey &key);