import be.nikiroo.fanfix.data.Story;
import be.nikiroo.utils.Image;
import be.nikiroo.utils.Progress;
-import be.nikiroo.utils.Version;
import be.nikiroo.utils.serial.server.ConnectActionClientObject;
/**
Instance.getTraceHandler().trace("Getting remote lib status...");
new ConnectActionClientObject(host, port, key) {
@Override
- public void action(Version serverVersion) throws Exception {
+ public void action() throws Exception {
Object rep = send(new Object[] { "PING" });
if ("PONG".equals(rep)) {
try {
new ConnectActionClientObject(host, port, key) {
@Override
- public void action(Version serverVersion) throws Exception {
+ public void action() throws Exception {
Object rep = send(new Object[] { "GET_COVER", luid });
result[0] = (Image) rep;
}
try {
new ConnectActionClientObject(host, port, key) {
@Override
- public void action(Version serverVersion) throws Exception {
+ public void action() throws Exception {
Object rep = send(new Object[] { "GET_CUSTOM_COVER", type,
source });
result[0] = (Image) rep;
try {
new ConnectActionClientObject(host, port, key) {
@Override
- public void action(Version serverVersion) throws Exception {
+ public void action() throws Exception {
Progress pg = pgF;
if (pg == null) {
pg = new Progress();
new ConnectActionClientObject(host, port, key) {
@Override
- public void action(Version serverVersion) throws Exception {
+ public void action() throws Exception {
Progress pg = pgF;
if (story.getMeta().getWords() <= Integer.MAX_VALUE) {
pg.setMinMax(0, (int) story.getMeta().getWords());
public synchronized void delete(final String luid) throws IOException {
new ConnectActionClientObject(host, port, key) {
@Override
- public void action(Version serverVersion) throws Exception {
+ public void action() throws Exception {
send(new Object[] { "DELETE_STORY", luid });
}
try {
new ConnectActionClientObject(host, port, key) {
@Override
- public void action(Version serverVersion) throws Exception {
+ public void action() throws Exception {
send(new Object[] { "SET_COVER", type, value, luid });
}
try {
new ConnectActionClientObject(host, port, key) {
@Override
- public void action(Version serverVersion) throws Exception {
+ public void action() throws Exception {
Progress pg = pgF;
Object rep = send(new Object[] { "IMPORT", url.toString() });
try {
new ConnectActionClientObject(host, port, key) {
@Override
- public void action(Version serverVersion) throws Exception {
+ public void action() throws Exception {
Progress pg = pgF;
Object rep = send(new Object[] { "CHANGE_STA", luid,
try {
new ConnectActionClientObject(host, port, key) {
@Override
- public void action(Version serverVersion) throws Exception {
+ public void action() throws Exception {
send(new Object[] { "EXIT" });
}
try {
new ConnectActionClientObject(host, port, key) {
@Override
- public void action(Version serverVersion) throws Exception {
+ public void action() throws Exception {
Progress pg = pgF;
if (pg == null) {
pg = new Progress();