Added spinners for selecting which identity to use.

(Although it isn't possible to create an identity yet...)
This commit is contained in:
akwizgran
2013-03-30 19:15:15 +00:00
parent 3309938467
commit 5800949b26
20 changed files with 432 additions and 228 deletions

View File

@@ -4,11 +4,14 @@ public class Contact {
private final ContactId id;
private final Author author;
private final AuthorId localAuthorId;
private final long lastConnected;
public Contact(ContactId id, Author author, long lastConnected) {
public Contact(ContactId id, Author author, AuthorId localAuthorId,
long lastConnected) {
this.id = id;
this.author = author;
this.localAuthorId = localAuthorId;
this.lastConnected = lastConnected;
}
@@ -20,6 +23,10 @@ public class Contact {
return author;
}
public AuthorId getLocalAuthorId() {
return localAuthorId;
}
public long getLastConnected() {
return lastConnected;
}

View File

@@ -1,22 +1,9 @@
package net.sf.briar.api.db.event;
import java.util.Collection;
import net.sf.briar.api.messaging.MessageId;
/**
* An event that is broadcast when one or messages expire from the database,
* potentially changing the database's retention time.
*/
public class MessageExpiredEvent extends DatabaseEvent {
private final Collection<MessageId> expired;
public MessageExpiredEvent(Collection<MessageId> expired) {
this.expired = expired;
}
public Collection<MessageId> getMessageIds() {
return expired;
}
}