mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-05 10:49:24 +02:00
library code uniformization
This commit is contained in:
parent
3433318dc8
commit
8ed1bcaf30
8 changed files with 131 additions and 68 deletions
|
@ -24,6 +24,12 @@ import java.util.*;
|
|||
import org.geometerplus.fbreader.tree.FBTree;
|
||||
|
||||
public abstract class LibraryTree extends FBTree {
|
||||
public static enum Status {
|
||||
READY_TO_OPEN,
|
||||
WAIT_FOR_OPEN,
|
||||
CANNOT_OPEN
|
||||
};
|
||||
|
||||
protected LibraryTree() {
|
||||
super();
|
||||
}
|
||||
|
@ -36,6 +42,17 @@ public abstract class LibraryTree extends FBTree {
|
|||
return getName();
|
||||
}
|
||||
|
||||
public Status getOpeningStatus() {
|
||||
return Status.READY_TO_OPEN;
|
||||
}
|
||||
|
||||
public String getOpeningStatusMessage() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public void waitForOpening() {
|
||||
}
|
||||
|
||||
public Book getBook() {
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue