summaryrefslogtreecommitdiffstats
path: root/plugins/declarative/systeminfo/qdeclarativenetworkinfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/declarative/systeminfo/qdeclarativenetworkinfo.cpp')
-rw-r--r--plugins/declarative/systeminfo/qdeclarativenetworkinfo.cpp60
1 files changed, 58 insertions, 2 deletions
diff --git a/plugins/declarative/systeminfo/qdeclarativenetworkinfo.cpp b/plugins/declarative/systeminfo/qdeclarativenetworkinfo.cpp
index edcdf1160c..4d98853ea7 100644
--- a/plugins/declarative/systeminfo/qdeclarativenetworkinfo.cpp
+++ b/plugins/declarative/systeminfo/qdeclarativenetworkinfo.cpp
@@ -274,7 +274,7 @@ void QDeclarativeNetworkInfo::startSignalStrengthChanged(bool on)
/*!
\qmlproperty bool NetworkInfo::monitorSignalStrengthChanges
- \brief Use the monitorSignalStrengthChanges signal.
+ \brief Use the signalStrengthChanged signal.
*/
bool QDeclarativeNetworkInfo::monitorSignalStrengthChanges()
{
@@ -300,7 +300,7 @@ void QDeclarativeNetworkInfo::startNameChanged(bool on)
/*!
\qmlproperty bool NetworkInfo::monitorNameChanges
- \brief Use the monitorNameChanges signal.
+ \brief Use the nameChanged signal.
*/
bool QDeclarativeNetworkInfo::monitorNameChanges()
{
@@ -527,3 +527,59 @@ QSystemNetworkInfo::NetworkMode QDeclarativeNetworkInfo::mode()
{
return m_mode;
}
+
+
+/*!
+ \qmlproperty bool NetworkInfo::monitoringCellDataTechnologyChanges
+ \brief Use the cellDataTechnologyChanges signal.
+
+ \sa QSystemNetworkInfo::cellDataTechnologyChanged
+ */
+bool QDeclarativeNetworkInfo::monitorCellDataChanges()
+{
+ return monitoringCellDataTechnologyChanges;
+}
+
+/*!
+ This function starts the cellDataTechnologyChanges notification
+
+*/
+void QDeclarativeNetworkInfo::startCellDataChanged(bool on)
+{
+ monitoringCellDataTechnologyChanges = on;
+ if (on) {
+ connect(netInfo(),SIGNAL(cellDataTechnologyChanged(QSystemNetworkInfo::CellDataTechnology)),
+ this,SIGNAL(cellDataTechnologyChanges(QSystemNetworkInfo::CellDataTechnology)),Qt::UniqueConnection);
+ } else {
+ disconnect(netInfo(),SIGNAL(cellDataTechnologyChanged(QSystemNetworkInfo::CellDataTechnology)),
+ this,SIGNAL(cellDataTechnologyChanges(QSystemNetworkInfo::CellDataTechnology)));
+ }
+}
+
+/*!
+ \qmlproperty bool NetworkInfo::monitoringCellIdChanges
+ \brief Use the cellIdChanges signal.
+ */
+bool QDeclarativeNetworkInfo::monitorCellIdChanges()
+{
+ return monitoringCellIdChanges;
+}
+
+/*!
+ This function starts the cellIdChanges notification
+
+ \sa QSystemNetworkInfo::cellIdChanged
+
+*/
+void QDeclarativeNetworkInfo::startCellIdChanged(bool on)
+{
+ monitoringCellIdChanges = on;
+ if (on) {
+ connect(netInfo(),SIGNAL(cellIdChanged(int)),
+ this,SIGNAL(cellIdChanges(int)),Qt::UniqueConnection);
+ } else {
+ disconnect(netInfo(),SIGNAL(cellIdChanged(int)),
+ this,SIGNAL(cellIdChanges(int)));
+ }
+}
+