Add the missing Q_DISABLE_COPY for public bearer classes.

QNetworkConfigurationManager and QNetworkSession are QObject, which
should not be thought of as values that can be copied or assigned, but
as unique identities.

Change-Id: I6ff0124a613862c2b411da2df31f03d5033315a9
Reviewed-by: Jonas Gastal <jgastal@profusion.mobi>
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Reviewed-by: Peter Hartmann <peter.hartmann@nokia.com>
This commit is contained in:
Xizhi Zhu 2012-01-17 18:20:45 +02:00 committed by Qt by Nokia
parent 3664d3b842
commit a4402fdc89
2 changed files with 4 additions and 0 deletions

View File

@ -90,6 +90,9 @@ Q_SIGNALS:
void configurationChanged(const QNetworkConfiguration &config);
void onlineStateChanged(bool isOnline);
void updateCompleted();
private:
Q_DISABLE_COPY(QNetworkConfigurationManager)
};
Q_DECLARE_OPERATORS_FOR_FLAGS(QNetworkConfigurationManager::Capabilities)

View File

@ -129,6 +129,7 @@ protected:
virtual void disconnectNotify(const char *signal);
private:
Q_DISABLE_COPY(QNetworkSession)
friend class QNetworkSessionPrivate;
QNetworkSessionPrivate *d;
};