diff --git a/src/accountmodel.cpp b/src/accountmodel.cpp index 4d0842b0f818c66e4c75cdeda33f74435aee6162..363a23bdcaeb4b9c58d1dbff5c5fa8bec6dc9318 100644 --- a/src/accountmodel.cpp +++ b/src/accountmodel.cpp @@ -1074,4 +1074,10 @@ Qt::DropActions AccountModel::supportedDropActions() const return Qt::MoveAction | Qt::TargetMoveAction; } +void AccountModel::slotConnectivityChanged() +{ + ConfigurationManager::instance().connectivityChanged(); +} + + #include <accountmodel.moc> diff --git a/src/accountmodel.h b/src/accountmodel.h index 6260eb9b7c1d9cb4a2806f19e410e8335e4b2def..7420849d49cb946e10cefbc81ff67f7bf2bdb19e 100644 --- a/src/accountmodel.h +++ b/src/accountmodel.h @@ -126,7 +126,8 @@ public Q_SLOTS: void registerAllAccounts(); bool moveUp (); bool moveDown (); - + ///Notifies the Ring daemon that the connectivity (network status) has changed + void slotConnectivityChanged(); Q_SIGNALS: ///The account list changed diff --git a/src/qtwrapper/configurationmanager_wrap.h b/src/qtwrapper/configurationmanager_wrap.h index 454a8698058fe67ebf224b6f6273ae8e2bf8bd71..3fd8cac8c052f323b4c880d37843f1d97567e698 100644 --- a/src/qtwrapper/configurationmanager_wrap.h +++ b/src/qtwrapper/configurationmanager_wrap.h @@ -618,6 +618,11 @@ public Q_SLOTS: // METHODS return DRing::getMessageStatus(id); } + void connectivityChanged() + { + DRing::connectivityChanged(); + } + Q_SIGNALS: // SIGNALS void volumeChanged(const QString& device, double value); void accountsChanged();