PageRenderTime 178ms CodeModel.GetById 0ms RepoModel.GetById 0ms 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
Possible License(s): GPL-3.0
  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. */
  21. package org.ametro.catalog.storage.tasks;
  22. public interface ICatalogStorageTaskListener {
  23. boolean isTaskCanceled(BaseTask task);
  24. void onTaskUpdated(BaseTask task, long progress, long total, String message);
  25. void onTaskCanceled(BaseTask task);
  26. void onTaskFailed(BaseTask task, Throwable reason);
  27. void onTaskBegin(BaseTask task);
  28. void onTaskDone(BaseTask task);
  29. }