Skip to content
Snippets Groups Projects
Commit c69ae83d authored by Stepan Salenikovich's avatar Stepan Salenikovich
Browse files

expose connectivityChanged API

This allows the clients to notify the daemon when the network status
has changed.

Change-Id: I1f72de478aeb9f449e330753e77332a73f99301a
Tuleap: #841
parent 265adc76
No related branches found
No related tags found
No related merge requests found
......@@ -1074,4 +1074,10 @@ Qt::DropActions AccountModel::supportedDropActions() const
return Qt::MoveAction | Qt::TargetMoveAction;
}
void AccountModel::slotConnectivityChanged()
{
ConfigurationManager::instance().connectivityChanged();
}
#include <accountmodel.moc>
......@@ -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
......
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment