Basic database support for private messages.

This commit is contained in:
akwizgran
2011-09-13 14:43:48 +01:00
parent 2858c139fa
commit de5caca578
6 changed files with 113 additions and 44 deletions

View File

@@ -63,8 +63,11 @@ public interface DatabaseComponent {
ContactId addContact(Map<String, Map<String, String>> transports,
byte[] secret) throws DbException;
/** Adds a locally generated message to the database. */
void addLocallyGeneratedMessage(Message m) throws DbException;
/** Adds a locally generated group message to the database. */
void addLocalGroupMessage(Message m) throws DbException;
/** Adds a locally generated private message to the database. */
void addLocalPrivateMessage(Message m, ContactId c) throws DbException;
/**
* Finds any lost batches that were sent to the given contact, and marks any