ctkXnatScanResource.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /*=============================================================================
  2. Plugin: org.commontk.xnat
  3. Copyright (c) University College London,
  4. Centre for Medical Image Computing
  5. Licensed under the Apache License, Version 2.0 (the "License");
  6. you may not use this file except in compliance with the License.
  7. You may obtain a copy of the License at
  8. http://www.apache.org/licenses/LICENSE-2.0
  9. Unless required by applicable law or agreed to in writing, software
  10. distributed under the License is distributed on an "AS IS" BASIS,
  11. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. See the License for the specific language governing permissions and
  13. limitations under the License.
  14. =============================================================================*/
  15. #ifndef ctkXnatScanResource_h
  16. #define ctkXnatScanResource_h
  17. #include "ctkXNATCoreExport.h"
  18. #include "ctkXnatObject.h"
  19. class ctkXnatConnection;
  20. class ctkXnatScanResourcePrivate;
  21. class CTK_XNAT_CORE_EXPORT ctkXnatScanResource : public ctkXnatObject
  22. {
  23. public:
  24. typedef QSharedPointer<ctkXnatScanResource> Pointer;
  25. typedef QWeakPointer<ctkXnatScanResource> WeakPointer;
  26. static Pointer Create();
  27. virtual ~ctkXnatScanResource();
  28. const QString& uri() const;
  29. void setUri(const QString& uri);
  30. void reset();
  31. void remove();
  32. bool isFile() const;
  33. void download(const QString& filename);
  34. /* bool receivesFiles() const; */
  35. /* bool holdsFiles() const; */
  36. /* bool isDeletable() const; */
  37. /* bool isModifiable() const; */
  38. private:
  39. friend class qRestResult;
  40. explicit ctkXnatScanResource();
  41. virtual void fetchImpl();
  42. Q_DECLARE_PRIVATE(ctkXnatScanResource);
  43. Q_DISABLE_COPY(ctkXnatScanResource);
  44. };
  45. #endif