ActivitiesContract.java 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /**
  2. * Nextcloud Android client application
  3. *
  4. * Copyright (C) 2018 Edvard Holst
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
  8. * License as published by the Free Software Foundation; either
  9. * version 3 of the License, or any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU AFFERO GENERAL PUBLIC LICENSE for more details.
  15. *
  16. * You should have received a copy of the GNU Affero General Public
  17. * License along with this program. If not, see <http://www.gnu.org/licenses/>.
  18. */
  19. package com.owncloud.android.ui.activities;
  20. import com.owncloud.android.datamodel.OCFile;
  21. import com.owncloud.android.lib.common.OwnCloudClient;
  22. import com.owncloud.android.ui.activity.BaseActivity;
  23. import java.util.List;
  24. public interface ActivitiesContract {
  25. interface View {
  26. void showActivities(List<Object> activities, OwnCloudClient client, String nextPageUrl);
  27. void showActivitiesLoadError(String error);
  28. void showActivityDetailUI(OCFile ocFile);
  29. void showActivityDetailUIIsNull();
  30. void showActivityDetailError(String error);
  31. void showLoadingMessage();
  32. void showEmptyContent(String headline, String message);
  33. void setProgressIndicatorState(boolean isActive);
  34. }
  35. interface ActionListener {
  36. void loadActivities(String pageUrl);
  37. void openActivity(String fileUrl, BaseActivity baseActivity, boolean isSharingSupported);
  38. void stopLoadingActivity();
  39. }
  40. }