1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-04 10:19:33 +02:00

updated API

This commit is contained in:
Nikolay Pultsin 2011-06-18 23:50:59 +01:00
parent 3ea71a1efc
commit d2dfafccf8
5 changed files with 93 additions and 17 deletions

View file

@ -20,24 +20,30 @@
package org.geometerplus.android.fbreader.api;
public interface Api {
public void connect();
public void disconnect();
void connect();
void disconnect();
// fbreader information
public String getFBReaderVersion() throws ApiException;
String getFBReaderVersion() throws ApiException;
// book information
public String getBookLanguage() throws ApiException;
String getBookLanguage() throws ApiException;
String getBookTitle() throws ApiException;
//String getBookAuthors() throws ApiException;
//String getBookTags() throws ApiException;
String getBookFileName() throws ApiException;
// text information
public int getParagraphsNumber() throws ApiException;
public int getElementsNumber(int paragraphIndex) throws ApiException;
public String getParagraphText(int paragraphIndex) throws ApiException;
int getParagraphsNumber() throws ApiException;
int getElementsNumber(int paragraphIndex) throws ApiException;
String getParagraphText(int paragraphIndex) throws ApiException;
// page information
public TextPosition getPageStart() throws ApiException;
public TextPosition getPageEnd() throws ApiException;
TextPosition getPageStart() throws ApiException;
TextPosition getPageEnd() throws ApiException;
boolean isPageEndOfSection() throws ApiException;
boolean isPageEndOfText() throws ApiException;
// manage view
public void setPageStart(TextPosition position) throws ApiException;
void setPageStart(TextPosition position) throws ApiException;
}