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.cpp25
1 files changed, 19 insertions, 6 deletions
diff --git a/src/networksettings/qnetworksettingsservice.cpp b/src/networksettings/qnetworksettingsservice.cpp
index 3bd1c26..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,12 +196,7 @@ QString QNetworkSettingsService::name() const
}
/*!
- \qmlmethod void NetworkService::setAutoConnect(bool auto)
-*/
-
-/*!
- Sets automatic connections to the network service to
- \a autoconnect.
+ Sets automatic connections to the network service to \a autoconnect.
*/
void QNetworkSettingsService::setAutoConnect(const bool autoconnect)
{
@@ -201,6 +205,15 @@ void QNetworkSettingsService::setAutoConnect(const bool autoconnect)
}
/*!
+ Return automatic connection status of the network service.
+*/
+bool QNetworkSettingsService::autoConnect() const
+{
+ Q_D(const QNetworkSettingsService);
+ return d->autoConnect();
+}
+
+/*!
\qmlproperty enumeration NetworkService::state
\readonly
\brief Holds the state of this service.