/workspace/aMetro/src/org/ametro/catalog/storage/tasks/ICatalogStorageTaskListener.java
http://ametro.googlecode.com/ · Java · 31 lines · 9 code · 2 blank · 20 comment · 0 complexity · 48757020e33208a54b6e1df84d57f4fa MD5 · raw file
- /*
- * http://code.google.com/p/ametro/
- * Transport map viewer for Android platform
- * Copyright (C) 2009-2010 contacts@ametro.org Roman Golovanov and other
- * respective project committers (see project home page)
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
- package org.ametro.catalog.storage.tasks;
-
- public interface ICatalogStorageTaskListener {
-
- boolean isTaskCanceled(BaseTask task);
- void onTaskUpdated(BaseTask task, long progress, long total, String message);
- void onTaskCanceled(BaseTask task);
- void onTaskFailed(BaseTask task, Throwable reason);
- void onTaskBegin(BaseTask task);
- void onTaskDone(BaseTask task);
- }