Plugin manager must add transports to the DB before activating them.

This commit is contained in:
akwizgran
2013-02-12 16:04:22 +00:00
parent d3a8dae583
commit d18fc1330b
6 changed files with 43 additions and 15 deletions

View File

@@ -69,8 +69,11 @@ public interface DatabaseComponent {
*/
void addSecrets(Collection<TemporarySecret> secrets) throws DbException;
/** Adds a transport to the database. */
void addTransport(TransportId t) throws DbException;
/**
* Adds a transport to the database and returns true if the transport was
* not previously in the database.
*/
boolean addTransport(TransportId t) throws DbException;
/**
* Generates an acknowledgement for the given contact. Returns null if