Commit 38d8e7ff authored by Romain Bertozzi's avatar Romain Bertozzi Committed by gerrit2
Browse files

connectivityChanged: add support

This patch improves the network changes management. The client now
notifies the daemon that the network connectivity has changed.

Change-Id: I4a9e5dc2ea4913b41faa52d2375901c176f4ae67
Tuleap: #848
parent 0b16eea7
......@@ -1496,5 +1496,14 @@ public class DRingService extends Service {
}
});
}
public void connectivityChanged() {
getExecutor().execute(new SipRunnable() {
@Override
protected void doRun() throws SameThreadException, RemoteException {
Ringservice.connectivityChanged();
}
});
}
};
}
......@@ -111,4 +111,6 @@ interface IDRingService {
int exportAccounts(in List accountIDs, in String toDir, in String password);
int importAccounts(in String archivePath, in String password);
void connectivityChanged();
}
......@@ -1083,6 +1083,7 @@ public class LocalService extends Service implements SharedPreferences.OnSharedP
if (dringStarted) {
try {
getRemoteService().setAccountsActive(isConnected());
getRemoteService().connectivityChanged();
} catch (RemoteException e) {
e.printStackTrace();
}
......
......@@ -169,6 +169,7 @@ void sendTrustRequest(const std::string& accountId, const std::string& to, const
int exportAccounts(std::vector<std::string> accountIDs, std::string toDir, std::string password);
int importAccounts(std::string archivePath, std::string password);
void connectivityChanged();
}
class ConfigurationCallback {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment