From 47cea42e319176aa69decc43e8d8074374ff0c4b Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Fri, 11 Jan 2013 19:48:19 +1300 Subject: Add logout button --- src/org/traccar/web/client/model/DataService.java | 4 +++- src/org/traccar/web/client/model/DataServiceAsync.java | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'src/org/traccar/web/client/model') diff --git a/src/org/traccar/web/client/model/DataService.java b/src/org/traccar/web/client/model/DataService.java index d8d71520..d3a9ea73 100644 --- a/src/org/traccar/web/client/model/DataService.java +++ b/src/org/traccar/web/client/model/DataService.java @@ -14,7 +14,9 @@ public interface DataService extends RemoteService { boolean authenticated(); - boolean authenticate(String login, String password); + boolean login(String login, String password); + + boolean logout(); boolean register(String login, String password); diff --git a/src/org/traccar/web/client/model/DataServiceAsync.java b/src/org/traccar/web/client/model/DataServiceAsync.java index 357beb5d..51a419c6 100644 --- a/src/org/traccar/web/client/model/DataServiceAsync.java +++ b/src/org/traccar/web/client/model/DataServiceAsync.java @@ -10,10 +10,12 @@ import com.google.gwt.user.client.rpc.AsyncCallback; public interface DataServiceAsync { - void authenticate(String login, String password, AsyncCallback callback); - void authenticated(AsyncCallback callback); + void login(String login, String password, AsyncCallback callback); + + void logout(AsyncCallback callback); + void register(String login, String password, AsyncCallback callback); void getDevices(AsyncCallback> callback); -- cgit v1.2.3