summaryrefslogtreecommitdiffstats
path: root/src/networksettings/qnetworksettingsservice.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/networksettings/qnetworksettingsservice.cpp')
-rw-r--r--src/networksettings/qnetworksettingsservice.cpp23
1 files changed, 18 insertions, 5 deletions
diff --git a/src/networksettings/qnetworksettingsservice.cpp b/src/networksettings/qnetworksettingsservice.cpp
index 150b54d..0983c0d 100644
--- a/src/networksettings/qnetworksettingsservice.cpp
+++ b/src/networksettings/qnetworksettingsservice.cpp
@@ -113,6 +113,14 @@ QT_BEGIN_NAMESPACE
*/
/*!
+ \property QNetworkSettingsService::autoConnect
+ \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 +195,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.
+ Returns the 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();
}
/*!