ComponentsGetter.java 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /**
  2. * ownCloud Android client application
  3. *
  4. * Copyright (C) 2012 Bartek Przybylski
  5. * Copyright (C) 2016 ownCloud Inc.
  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 version 2,
  9. * as published by the Free Software Foundation.
  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 General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  18. *
  19. */
  20. package com.owncloud.android.ui.activity;
  21. import com.owncloud.android.datamodel.FileDataStorageManager;
  22. import com.owncloud.android.files.services.FileDownloader.FileDownloaderBinder;
  23. import com.owncloud.android.files.services.FileUploader.FileUploaderBinder;
  24. import com.owncloud.android.services.OperationsService.OperationsServiceBinder;
  25. import com.owncloud.android.ui.helpers.FileOperationsHelper;
  26. public interface ComponentsGetter {
  27. /**
  28. * To be invoked when the parent activity is fully created to get a reference
  29. * to the FileDownloader service API.
  30. */
  31. public FileDownloaderBinder getFileDownloaderBinder();
  32. /**
  33. * To be invoked when the parent activity is fully created to get a reference
  34. * to the FileUploader service API.
  35. */
  36. public FileUploaderBinder getFileUploaderBinder();
  37. /**
  38. * To be invoked when the parent activity is fully created to get a reference
  39. * to the OperationsSerivce service API.
  40. */
  41. public OperationsServiceBinder getOperationsServiceBinder();
  42. public FileDataStorageManager getStorageManager();
  43. public FileOperationsHelper getFileOperationsHelper();
  44. }