PageRenderTime 82ms CodeModel.GetById 40ms app.highlight 2ms RepoModel.GetById 38ms app.codeStats 0ms

/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
 1/*
 2 * http://code.google.com/p/ametro/
 3 * Transport map viewer for Android platform
 4 * Copyright (C) 2009-2010 contacts@ametro.org Roman Golovanov and other
 5 * respective project committers (see project home page)
 6 *
 7 * This program is free software: you can redistribute it and/or modify
 8 * it under the terms of the GNU General Public License as published by
 9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
19 *  
20 */
21package org.ametro.catalog.storage.tasks;
22
23public interface ICatalogStorageTaskListener {
24
25	boolean isTaskCanceled(BaseTask task);
26	void onTaskUpdated(BaseTask task, long progress, long total, String message);
27	void onTaskCanceled(BaseTask task);
28	void onTaskFailed(BaseTask task, Throwable reason);
29	void onTaskBegin(BaseTask task);
30	void onTaskDone(BaseTask task);
31}