diff options
Diffstat (limited to 'src/networksettings/qnetworksettingsservice.cpp')
-rw-r--r-- | src/networksettings/qnetworksettingsservice.cpp | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/src/networksettings/qnetworksettingsservice.cpp b/src/networksettings/qnetworksettingsservice.cpp index 150b54d..fd21140 100644 --- a/src/networksettings/qnetworksettingsservice.cpp +++ b/src/networksettings/qnetworksettingsservice.cpp @@ -113,6 +113,15 @@ QT_BEGIN_NAMESPACE */ /*! + \property QNetworkSettingsService::autoConnect + \readwrite + \brief Holds autoconnect property for this service. + + Autoconnect property determines whether the service connects automatically + when it is available. +*/ + +/*! \fn QNetworkSettingsService::connectionStateCleared() This signal is emitted when the connection state is cleared. @@ -187,16 +196,21 @@ QString QNetworkSettingsService::name() const } /*! - \qmlmethod void NetworkService::setAutoConnect(bool auto) + Sets automatic connections to the network service to \a autoconnect. */ +void QNetworkSettingsService::setAutoConnect(const bool autoconnect) +{ + Q_D(QNetworkSettingsService); + d->setAutoConnect(autoconnect); +} /*! - Sets automatic connections to the network service to - \a autoconnect. + Return automatic connection status of the network service. */ -void QNetworkSettingsService::setAutoConnect(const bool autoconnect) +bool QNetworkSettingsService::autoConnect() const { - Q_UNUSED(autoconnect); + Q_D(const QNetworkSettingsService); + return d->autoConnect(); } /*! |